sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget#/translations/zh_CN/core-api/mm-apimodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/zh_TW/core-api/mm-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/it_IT/core-api/mm-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/ja_JP/core-api/mm-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/ko_KR/core-api/mm-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/pt_BR/core-api/mm-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/sp_SP/core-api/mm-apimodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hMemory Management APIsh]hMemory Management APIs}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhh=/var/lib/git/docbuild/linux/Documentation/core-api/mm-api.rsthKubh)}(hhh](h)}(hUser Space Memory Accessh]hUser Space Memory Access}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singleget_user (C macro) c.get_userhNtauh1hhhhhhNhNubhdesc)}(hhh](hdesc_signature)}(hget_userh]hdesc_signature_line)}(hget_userh]h desc_name)}(hget_userh]h desc_sig_name)}(hhh]hget_user}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1hhhhhh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK[ubah}(h]h ]h"]h$]h&]jj add_permalinkuh1hsphinx_line_type declaratorhhhhhjhK[ubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1hhjhK[hhhhubh desc_content)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hhhhhjhK[ubeh}(h]h ](cmacroeh"]h$]h&]domainjAobjtypejBdesctypejBnoindex noindexentrynocontentsentryuh1hhhhhhNhNubh paragraph)}(h``get_user (x, ptr)``h]hliteral)}(hjPh]hget_user (x, ptr)}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK]hhhhubh block_quote)}(h'Get a simple variable from user space. h]jM)}(h&Get a simple variable from user space.h]h&Get a simple variable from user space.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK[hjjubah}(h]h ]h"]h$]h&]uh1jhhj|hK[hhhhubh container)}(hXW**Parameters** ``x`` Variable to store result. ``ptr`` Source address, in user space. **Context** User context only. This function may sleep if pagefaults are enabled. **Description** This macro copies a single simple variable from user space to kernel space. It supports simple types like char and int, but not larger data types like structures or arrays. **ptr** must have pointer-to-simple-variable type, and the result of dereferencing **ptr** must be assignable to **x** without a cast. **Return** zero on success, or -EFAULT on error. On error, the variable **x** is set to zero.h](jM)}(h**Parameters**h]hstrong)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK_hjubhdefinition_list)}(hhh](hdefinition_list_item)}(h ``x`` Variable to store result. h](hterm)}(h``x``h]jS)}(hjh]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK\hjubh definition)}(hhh]jM)}(hVariable to store result.h]hVariable to store result.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhK\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjubj)}(h'``ptr`` Source address, in user space. h](j)}(h``ptr``h]jS)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK]hjubj)}(hhh]jM)}(hSource address, in user space.h]hSource address, in user space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhK]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK]hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Context**h]j)}(hj(h]hContext}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK_hjubjM)}(hEUser context only. This function may sleep if pagefaults are enabled.h]hEUser context only. This function may sleep if pagefaults are enabled.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK_hjubjM)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKbhjubjM)}(hThis macro copies a single simple variable from user space to kernel space. It supports simple types like char and int, but not larger data types like structures or arrays.h]hThis macro copies a single simple variable from user space to kernel space. It supports simple types like char and int, but not larger data types like structures or arrays.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKahjubjM)}(h**ptr** must have pointer-to-simple-variable type, and the result of dereferencing **ptr** must be assignable to **x** without a cast.h](j)}(h**ptr**h]hptr}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubhL must have pointer-to-simple-variable type, and the result of dereferencing }(hjthhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh must be assignable to }(hjthhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh without a cast.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKehjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhhjubjM)}(hRzero on success, or -EFAULT on error. On error, the variable **x** is set to zero.h](h=zero on success, or -EFAULT on error. On error, the variable }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is set to zero.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKihjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__get_user (C macro) c.__get_userhNtauh1hhhhhhNhNubh)}(hhh](h)}(h __get_userh]h)}(h __get_userh]h)}(h __get_userh]j)}(hjh]h __get_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKoubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj%hKoubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj%hKohjhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjhhhj%hKoubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGj>jHj>jIjJjKuh1hhhhhhNhNubjM)}(h``__get_user (x, ptr)``h]jS)}(hjDh]h__get_user (x, ptr)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKqhhhhubji)}(h;Get a simple variable from user space, with less checking. h]jM)}(h:Get a simple variable from user space, with less checking.h]h:Get a simple variable from user space, with less checking.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKohjZubah}(h]h ]h"]h$]h&]uh1jhhjlhKohhhhubj)}(hX**Parameters** ``x`` Variable to store result. ``ptr`` Source address, in user space. **Context** User context only. This function may sleep if pagefaults are enabled. **Description** This macro copies a single simple variable from user space to kernel space. It supports simple types like char and int, but not larger data types like structures or arrays. **ptr** must have pointer-to-simple-variable type, and the result of dereferencing **ptr** must be assignable to **x** without a cast. Caller must check the pointer with access_ok() before calling this function. **Return** zero on success, or -EFAULT on error. On error, the variable **x** is set to zero.h](jM)}(h**Parameters**h]j)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKshjsubj)}(hhh](j)}(h ``x`` Variable to store result. h](j)}(h``x``h]jS)}(hjh]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKphjubj)}(hhh]jM)}(hVariable to store result.h]hVariable to store result.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKphjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKphjubj)}(h'``ptr`` Source address, in user space. h](j)}(h``ptr``h]jS)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKqhjubj)}(hhh]jM)}(hSource address, in user space.h]hSource address, in user space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKqhjubeh}(h]h ]h"]h$]h&]uh1jhjsubjM)}(h **Context**h]j)}(hj h]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKshjsubjM)}(hEUser context only. This function may sleep if pagefaults are enabled.h]hEUser context only. This function may sleep if pagefaults are enabled.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKshjsubjM)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKvhjsubjM)}(hThis macro copies a single simple variable from user space to kernel space. It supports simple types like char and int, but not larger data types like structures or arrays.h]hThis macro copies a single simple variable from user space to kernel space. It supports simple types like char and int, but not larger data types like structures or arrays.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKuhjsubjM)}(h**ptr** must have pointer-to-simple-variable type, and the result of dereferencing **ptr** must be assignable to **x** without a cast.h](j)}(h**ptr**h]hptr}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubhL must have pointer-to-simple-variable type, and the result of dereferencing }(hjXhhhNhNubj)}(h**ptr**h]hptr}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh must be assignable to }(hjXhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh without a cast.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKyhjsubjM)}(hLCaller must check the pointer with access_ok() before calling this function.h]hLCaller must check the pointer with access_ok() before calling this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK|hjsubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjsubjM)}(hRzero on success, or -EFAULT on error. On error, the variable **x** is set to zero.h](h=zero on success, or -EFAULT on error. On error, the variable }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is set to zero.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hput_user (C macro) c.put_userhNtauh1hhhhhhNhNubh)}(hhh](h)}(hput_userh]h)}(hput_userh]h)}(hput_userh]j)}(hjh]hput_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGj1jHj1jIjJjKuh1hhhhhhNhNubjM)}(h``put_user (x, ptr)``h]jS)}(hj7h]hput_user (x, ptr)}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5ubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhhhhubji)}(h&Write a simple value into user space. h]jM)}(h%Write a simple value into user space.h]h%Write a simple value into user space.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjMubah}(h]h ]h"]h$]h&]uh1jhhj_hKhhhhubj)}(hX **Parameters** ``x`` Value to copy to user space. ``ptr`` Destination address, in user space. **Context** User context only. This function may sleep if pagefaults are enabled. **Description** This macro copies a single simple value from kernel space to user space. It supports simple types like char and int, but not larger data types like structures or arrays. **ptr** must have pointer-to-simple-variable type, and **x** must be assignable to the result of dereferencing **ptr**. **Return** zero on success, or -EFAULT on error.h](jM)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjfubj)}(hhh](j)}(h#``x`` Value to copy to user space. h](j)}(h``x``h]jS)}(hjh]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjubj)}(hhh]jM)}(hValue to copy to user space.h]hValue to copy to user space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h,``ptr`` Destination address, in user space. h](j)}(h``ptr``h]jS)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjubj)}(hhh]jM)}(h#Destination address, in user space.h]h#Destination address, in user space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjfubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjfubjM)}(hEUser context only. This function may sleep if pagefaults are enabled.h]hEUser context only. This function may sleep if pagefaults are enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjfubjM)}(h**Description**h]j)}(hj&h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjfubjM)}(hThis macro copies a single simple value from kernel space to user space. It supports simple types like char and int, but not larger data types like structures or arrays.h]hThis macro copies a single simple value from kernel space to user space. It supports simple types like char and int, but not larger data types like structures or arrays.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjfubjM)}(hw**ptr** must have pointer-to-simple-variable type, and **x** must be assignable to the result of dereferencing **ptr**.h](j)}(h**ptr**h]hptr}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh0 must have pointer-to-simple-variable type, and }(hjKhhhNhNubj)}(h**x**h]hx}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh3 must be assignable to the result of dereferencing }(hjKhhhNhNubj)}(h**ptr**h]hptr}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjfubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjfubjM)}(h%zero on success, or -EFAULT on error.h]h%zero on success, or -EFAULT on error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__put_user (C macro) c.__put_userhNtauh1hhhhhhNhNubh)}(hhh](h)}(h __put_userh]h)}(h __put_userh]h)}(h __put_userh]j)}(hjh]h __put_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhhhNhNubjM)}(h``__put_user (x, ptr)``h]jS)}(hj h]h__put_user (x, ptr)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhhhhubji)}(h:Write a simple value into user space, with less checking. h]jM)}(h9Write a simple value into user space, with less checking.h]h9Write a simple value into user space, with less checking.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjubah}(h]h ]h"]h$]h&]uh1jhhj1hKhhhhubj)}(hXn**Parameters** ``x`` Value to copy to user space. ``ptr`` Destination address, in user space. **Context** User context only. This function may sleep if pagefaults are enabled. **Description** This macro copies a single simple value from kernel space to user space. It supports simple types like char and int, but not larger data types like structures or arrays. **ptr** must have pointer-to-simple-variable type, and **x** must be assignable to the result of dereferencing **ptr**. Caller must check the pointer with access_ok() before calling this function. **Return** zero on success, or -EFAULT on error.h](jM)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj8ubj)}(hhh](j)}(h#``x`` Value to copy to user space. h](j)}(h``x``h]jS)}(hj]h]hx}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjWubj)}(hhh]jM)}(hValue to copy to user space.h]hValue to copy to user space.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhKhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjTubj)}(h,``ptr`` Destination address, in user space. h](j)}(h``ptr``h]jS)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjubj)}(hhh]jM)}(h#Destination address, in user space.h]h#Destination address, in user space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj8ubjM)}(hEUser context only. This function may sleep if pagefaults are enabled.h]hEUser context only. This function may sleep if pagefaults are enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj8ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj8ubjM)}(hThis macro copies a single simple value from kernel space to user space. It supports simple types like char and int, but not larger data types like structures or arrays.h]hThis macro copies a single simple value from kernel space to user space. It supports simple types like char and int, but not larger data types like structures or arrays.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj8ubjM)}(hw**ptr** must have pointer-to-simple-variable type, and **x** must be assignable to the result of dereferencing **ptr**.h](j)}(h**ptr**h]hptr}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0 must have pointer-to-simple-variable type, and }(hjhhhNhNubj)}(h**x**h]hx}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3 must be assignable to the result of dereferencing }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj8ubjM)}(hLCaller must check the pointer with access_ok() before calling this function.h]hLCaller must check the pointer with access_ok() before calling this function.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj8ubjM)}(h **Return**h]j)}(hjoh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj8ubjM)}(h%zero on success, or -EFAULT on error.h]h%zero on success, or -EFAULT on error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_user (C function) c.clear_userhNtauh1hhhhhhNhNubh)}(hhh](h)}(h;unsigned long clear_user (void __user *to, unsigned long n)h]h)}(h:unsigned long clear_user(void __user *to, unsigned long n)h](hdesc_sig_keyword_type)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK4ubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhjhK4ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK4ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK4ubh)}(h clear_userh]j)}(h clear_userh]h clear_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhK4ubhdesc_parameterlist)}(h"(void __user *to, unsigned long n)h](hdesc_parameter)}(hvoid __user *toh](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj% hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh__user}(hj hhhNhNubj)}(h h]h }(hj7 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubhdesc_sig_punctuation)}(h*h]h*}(hjG hhhNhNubah}(h]h ]pah"]h$]h&]uh1jE hj ubj)}(htoh]hto}(hjV hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hunsigned long nh](j)}(hunsignedh]hunsigned}(hjo hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk ubj)}(h h]h }(hj} hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk ubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk ubj)}(hjh]hn}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhK4ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhK4ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhK4hjhhubj4)}(hhh]jM)}(h%Zero a block of memory in user space.h]h%Zero a block of memory in user space.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK4hj hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhK4ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhhhNhNubj)}(hX**Parameters** ``void __user *to`` Destination address, in user space. ``unsigned long n`` Number of bytes to zero. **Description** Zero a block of memory in user space. **Return** number of bytes that could not be cleared. On success, this will be zero.h](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK8hj ubj)}(hhh](j)}(h8``void __user *to`` Destination address, in user space. h](j)}(h``void __user *to``h]jS)}(hj h]hvoid __user *to}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK5hj ubj)}(hhh]jM)}(h#Destination address, in user space.h]h#Destination address, in user space.}(hj* hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj& hK5hj' ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj& hK5hj ubj)}(h-``unsigned long n`` Number of bytes to zero. h](j)}(h``unsigned long n``h]jS)}(hjJ h]hunsigned long n}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjH ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK6hjD ubj)}(hhh]jM)}(hNumber of bytes to zero.h]hNumber of bytes to zero.}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_ hK6hj` ubah}(h]h ]h"]h$]h&]uh1jhjD ubeh}(h]h ]h"]h$]h&]uh1jhj_ hK6hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK8hj ubjM)}(h%Zero a block of memory in user space.h]h%Zero a block of memory in user space.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK7hj ubjM)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK9hj ubjM)}(hInumber of bytes that could not be cleared. On success, this will be zero.h]hInumber of bytes that could not be cleared. On success, this will be zero.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK:hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__clear_user (C function)c.__clear_userhNtauh1hhhhhhNhNubh)}(hhh](h)}(h=unsigned long __clear_user (void __user *to, unsigned long n)h]h)}(h ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKIhj: ubj)}(hhh]jM)}(h#Destination address, in user space.h]h#Destination address, in user space.}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjU hKIhjV ubah}(h]h ]h"]h$]h&]uh1jhj: ubeh}(h]h ]h"]h$]h&]uh1jhjU hKIhj7 ubj)}(h-``unsigned long n`` Number of bytes to zero. h](j)}(h``unsigned long n``h]jS)}(hjy h]hunsigned long n}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjw ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKJhjs ubj)}(hhh]jM)}(hNumber of bytes to zero.h]hNumber of bytes to zero.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hKJhj ubah}(h]h ]h"]h$]h&]uh1jhjs ubeh}(h]h ]h"]h$]h&]uh1jhj hKJhj7 ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKLhj ubjM)}(h{Zero a block of memory in user space. Caller must check the specified block with access_ok() before calling this function.h]h{Zero a block of memory in user space. Caller must check the specified block with access_ok() before calling this function.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKKhj ubjM)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKNhj ubjM)}(hInumber of bytes that could not be cleared. On success, this will be zero.h]hInumber of bytes that could not be cleared. On success, this will be zero.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKOhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h get_user_pages_fast (C function)c.get_user_pages_fasthNtauh1hhhhhhNhNubh)}(hhh](h)}(hhint get_user_pages_fast (unsigned long start, int nr_pages, unsigned int gup_flags, struct page **pages)h]h)}(hgint get_user_pages_fast(unsigned long start, int nr_pages, unsigned int gup_flags, struct page **pages)h](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM ubj)}(h h]h }(hj/ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj. hM ubh)}(hget_user_pages_fasth]j)}(hget_user_pages_fasth]hget_user_pages_fast}(hjA hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj= ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj. hM ubj )}(hP(unsigned long start, int nr_pages, unsigned int gup_flags, struct page **pages)h](j )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hj] hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubj)}(h h]h }(hjk hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubj)}(hlongh]hlong}(hjy hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubj)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjU ubj )}(h int nr_pagesh](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hnr_pagesh]hnr_pages}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjU ubj )}(hunsigned int gup_flagsh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h gup_flagsh]h gup_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjU ubj )}(hstruct page **pagesh](hdesc_sig_keyword)}(hstructh]hstruct}(hj6hhhNhNubah}(h]h ]kah"]h$]h&]uh1j4hj0ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]j)}(hpageh]hpage}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjAreftype identifier reftargetjXmodnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]jq ASTIdentifier)}jljC sbc.get_user_pages_fastasbuh1hhj0ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj0ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj0ubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjU ubeh}(h]h ]h"]h$]h&]jjuh1j hj hhhj. hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj. hM ubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj. hM hj hhubj4)}(hhh]jM)}(hpin user pages in memoryh]hpin user pages in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj. hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhhhNhNubj)}(hXl**Parameters** ``unsigned long start`` starting user address ``int nr_pages`` number of pages from start to pin ``unsigned int gup_flags`` flags modifying pin behaviour ``struct page **pages`` array that receives pointers to the pages pinned. Should be at least nr_pages long. **Description** Attempt to pin user pages in memory without taking mm->mmap_lock. If not successful, it will fall back to taking the lock and calling get_user_pages(). Returns number of pages pinned. This may be fewer than the number requested. If nr_pages is 0 or negative, returns 0. If no pages were pinned, returns -errno.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjubj)}(hhh](j)}(h.``unsigned long start`` starting user address h](j)}(h``unsigned long start``h]jS)}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hj ubj)}(hhh]jM)}(hstarting user addressh]hstarting user address}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&hM hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hM hjubj)}(h3``int nr_pages`` number of pages from start to pin h](j)}(h``int nr_pages``h]jS)}(hjJh]h int nr_pages}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjDubj)}(hhh]jM)}(h!number of pages from start to pinh]h!number of pages from start to pin}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hM hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hM hjubj)}(h9``unsigned int gup_flags`` flags modifying pin behaviour h](j)}(h``unsigned int gup_flags``h]jS)}(hjh]hunsigned int gup_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hj}ubj)}(hhh]jM)}(hflags modifying pin behaviourh]hflags modifying pin behaviour}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hl``struct page **pages`` array that receives pointers to the pages pinned. Should be at least nr_pages long. h](j)}(h``struct page **pages``h]jS)}(hjh]hstruct page **pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjubj)}(hhh]jM)}(hSarray that receives pointers to the pages pinned. Should be at least nr_pages long.h]hSarray that receives pointers to the pages pinned. Should be at least nr_pages long.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjubjM)}(hAttempt to pin user pages in memory without taking mm->mmap_lock. If not successful, it will fall back to taking the lock and calling get_user_pages().h]hAttempt to pin user pages in memory without taking mm->mmap_lock. If not successful, it will fall back to taking the lock and calling get_user_pages().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjubjM)}(hReturns number of pages pinned. This may be fewer than the number requested. If nr_pages is 0 or negative, returns 0. If no pages were pinned, returns -errno.h]hReturns number of pages pinned. This may be fewer than the number requested. If nr_pages is 0 or negative, returns 0. If no pages were pinned, returns -errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubhtarget)}(h.. _mm-api-gfp-flags:h]h}(h]h ]h"]h$]h&]refidmm-api-gfp-flagsuh1j3hKhhhhhhubeh}(h]user-space-memory-accessah ]h"]user space memory accessah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hMemory Allocation Controlsh]hMemory Allocation Controls}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhKubh)}(hhh](h)}(h!Page mobility and placement hintsh]h!Page mobility and placement hints}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhNhNubjM)}(hThese flags provide hints about how mobile the page is. Pages with similar mobility are placed within the same pageblocks to minimise problems due to external fragmentation.h]hThese flags provide hints about how mobile the page is. Pages with similar mobility are placed within the same pageblocks to minimise problems due to external fragmentation.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKvhjZubjM)}(h``__GFP_MOVABLE`` (also a zone modifier) indicates that the page can be moved by page migration during memory compaction or can be reclaimed.h](jS)}(h``__GFP_MOVABLE``h]h __GFP_MOVABLE}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubh| (also a zone modifier) indicates that the page can be moved by page migration during memory compaction or can be reclaimed.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKzhjZubjM)}(h``__GFP_RECLAIMABLE`` is used for slab allocations that specify SLAB_RECLAIM_ACCOUNT and whose pages can be freed via shrinkers.h](jS)}(h``__GFP_RECLAIMABLE``h]h__GFP_RECLAIMABLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhk is used for slab allocations that specify SLAB_RECLAIM_ACCOUNT and whose pages can be freed via shrinkers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhK}hjZubjM)}(h``__GFP_WRITE`` indicates the caller intends to dirty the page. Where possible, these pages will be spread between local zones to avoid all the dirty pages being in one zone (fair zone allocation policy).h](jS)}(h``__GFP_WRITE``h]h __GFP_WRITE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh indicates the caller intends to dirty the page. Where possible, these pages will be spread between local zones to avoid all the dirty pages being in one zone (fair zone allocation policy).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKhjZubjM)}(h@``__GFP_HARDWALL`` enforces the cpuset memory allocation policy.h](jS)}(h``__GFP_HARDWALL``h]h__GFP_HARDWALL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh. enforces the cpuset memory allocation policy.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKhjZubjM)}(h``__GFP_THISNODE`` forces the allocation to be satisfied from the requested node with no fallbacks or placement policy enforcements.h](jS)}(h``__GFP_THISNODE``h]h__GFP_THISNODE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhr forces the allocation to be satisfied from the requested node with no fallbacks or placement policy enforcements.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKhjZubjM)}(hB``__GFP_ACCOUNT`` causes the allocation to be accounted to kmemcg.h](jS)}(h``__GFP_ACCOUNT``h]h __GFP_ACCOUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh1 causes the allocation to be accounted to kmemcg.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKhjZubjM)}(h``__GFP_NO_OBJ_EXT`` causes slab allocation to have no object extension. mark_obj_codetag_empty() should be called upon freeing for objects allocated with this flag to indicate that their NULL tags are expected and normal.h](jS)}(h``__GFP_NO_OBJ_EXT``h]h__GFP_NO_OBJ_EXT}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubh causes slab allocation to have no object extension. mark_obj_codetag_empty() should be called upon freeing for objects allocated with this flag to indicate that their NULL tags are expected and normal.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKhjZubeh}(h]!page-mobility-and-placement-hintsah ]h"]!page mobility and placement hintsah$]h&]uh1hhjIhhhNhNubh)}(hhh](h)}(h ``PAGE_ALLOC_COSTLY_ORDER``). !costly allocations are too essential to fail so they are implicitly non-failing by default (with some exceptions like OOM victims might fail so the caller still has to check for failures) while costly requests try to be not disruptive and back off even without invoking the OOM killer. The following three modifiers might be used to override some of these implicit rules. Please note that all of them must be used along with ``__GFP_DIRECT_RECLAIM`` flag.3h](h|The default allocator behavior depends on the request size. We have a concept of so-called costly allocations (with order > }(hjhhhNhNubjS)}(h``PAGE_ALLOC_COSTLY_ORDER``h]hPAGE_ALLOC_COSTLY_ORDER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhX). !costly allocations are too essential to fail so they are implicitly non-failing by default (with some exceptions like OOM victims might fail so the caller still has to check for failures) while costly requests try to be not disruptive and back off even without invoking the OOM killer. The following three modifiers might be used to override some of these implicit rules. Please note that all of them must be used along with }(hjhhhNhNubjS)}(h``__GFP_DIRECT_RECLAIM``h]h__GFP_DIRECT_RECLAIM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh flag.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubjM)}(hX``__GFP_NORETRY``: The VM implementation will try only very lightweight memory direct reclaim to get some memory under memory pressure (thus it can sleep). It will avoid disruptive actions like OOM killer. The caller must handle the failure which is quite likely to happen under heavy memory pressure. The flag is suitable when failure can easily be handled at small cost, such as reduced throughput.h](jS)}(h``__GFP_NORETRY``h]h __GFP_NORETRY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhX: The VM implementation will try only very lightweight memory direct reclaim to get some memory under memory pressure (thus it can sleep). It will avoid disruptive actions like OOM killer. The caller must handle the failure which is quite likely to happen under heavy memory pressure. The flag is suitable when failure can easily be handled at small cost, such as reduced throughput.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubjM)}(hX``__GFP_RETRY_MAYFAIL``: The VM implementation will retry memory reclaim procedures that have previously failed if there is some indication that progress has been made elsewhere. It can wait for other tasks to attempt high-level approaches to freeing memory such as compaction (which removes fragmentation) and page-out. There is still a definite limit to the number of retries, but it is a larger limit than with ``__GFP_NORETRY``. Allocations with this flag may fail, but only when there is genuinely little unused memory. While these allocations do not directly trigger the OOM killer, their failure indicates that the system is likely to need to use the OOM killer soon. The caller must handle failure, but can reasonably do so by failing a higher-level request, or completing it only in a much less efficient manner. If the allocation does fail, and the caller is in a position to free some non-essential memory, doing so could benefit the system as a whole.h](jS)}(h``__GFP_RETRY_MAYFAIL``h]h__GFP_RETRY_MAYFAIL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhX: The VM implementation will retry memory reclaim procedures that have previously failed if there is some indication that progress has been made elsewhere. It can wait for other tasks to attempt high-level approaches to freeing memory such as compaction (which removes fragmentation) and page-out. There is still a definite limit to the number of retries, but it is a larger limit than with }(hjhhhNhNubjS)}(h``__GFP_NORETRY``h]h __GFP_NORETRY}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhX. Allocations with this flag may fail, but only when there is genuinely little unused memory. While these allocations do not directly trigger the OOM killer, their failure indicates that the system is likely to need to use the OOM killer soon. The caller must handle failure, but can reasonably do so by failing a higher-level request, or completing it only in a much less efficient manner. If the allocation does fail, and the caller is in a position to free some non-essential memory, doing so could benefit the system as a whole.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubjM)}(hX``__GFP_NOFAIL``: The VM implementation _must_ retry infinitely: the caller cannot handle allocation failures. The allocation could block indefinitely but will never return with failure. Testing for failure is pointless. It _must_ be blockable and used together with __GFP_DIRECT_RECLAIM. It should _never_ be used in non-sleepable contexts. New users should be evaluated carefully (and the flag should be used only when there is no reasonable failure policy) but it is definitely preferable to use the flag rather than opencode endless loop around allocator. Allocating pages from the buddy with __GFP_NOFAIL and order > 1 is not supported. Please consider using kvmalloc() instead.h](jS)}(h``__GFP_NOFAIL``h]h __GFP_NOFAIL}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubhX: The VM implementation _must_ retry infinitely: the caller cannot handle allocation failures. The allocation could block indefinitely but will never return with failure. Testing for failure is pointless. It _must_ be blockable and used together with __GFP_DIRECT_RECLAIM. It should _never_ be used in non-sleepable contexts. New users should be evaluated carefully (and the flag should be used only when there is no reasonable failure policy) but it is definitely preferable to use the flag rather than opencode endless loop around allocator. Allocating pages from the buddy with __GFP_NOFAIL and order > 1 is not supported. Please consider using kvmalloc() instead.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubeh}(h]reclaim-modifiersah ]h"]reclaim modifiersah$]h&]uh1hhjIhhhNhNubh)}(hhh](h)}(hUseful GFP flag combinationsh]hUseful GFP flag combinations}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhNhNubjM)}(hUseful GFP flag combinations that are commonly used. It is recommended that subsystems start with one of these combinations and then set/clear ``__GFP_FOO`` flags as necessary.h](hUseful GFP flag combinations that are commonly used. It is recommended that subsystems start with one of these combinations and then set/clear }(hjYhhhNhNubjS)}(h ``__GFP_FOO``h]h __GFP_FOO}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYubh flags as necessary.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhM2hjHubjM)}(hX``GFP_ATOMIC`` users can not sleep and need the allocation to succeed. A lower watermark is applied to allow access to "atomic reserves". The current implementation doesn't support NMI, nor contexts that disable preemption under PREEMPT_RT. This includes raw_spin_lock() and plain preempt_disable() - see "Memory allocation" in Documentation/core-api/real-time/differences.rst for more info.h](jS)}(h``GFP_ATOMIC``h]h GFP_ATOMIC}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubhX users can not sleep and need the allocation to succeed. A lower watermark is applied to allow access to “atomic reserves”. The current implementation doesn’t support NMI, nor contexts that disable preemption under PREEMPT_RT. This includes raw_spin_lock() and plain preempt_disable() - see “Memory allocation” in Documentation/core-api/real-time/differences.rst for more info.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhM6hjHubjM)}(h``GFP_KERNEL`` is typical for kernel-internal allocations. The caller requires ``ZONE_NORMAL`` or a lower zone for direct access but can direct reclaim.h](jS)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhA is typical for kernel-internal allocations. The caller requires }(hjhhhNhNubjS)}(h``ZONE_NORMAL``h]h ZONE_NORMAL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh: or a lower zone for direct access but can direct reclaim.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhM=hjHubjM)}(h_``GFP_KERNEL_ACCOUNT`` is the same as GFP_KERNEL, except the allocation is accounted to kmemcg.h](jS)}(h``GFP_KERNEL_ACCOUNT``h]hGFP_KERNEL_ACCOUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhI is the same as GFP_KERNEL, except the allocation is accounted to kmemcg.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhM@hjHubjM)}(hX``GFP_NOWAIT`` is for kernel allocations that should not stall for direct reclaim, start physical IO or use any filesystem callback. It is very likely to fail to allocate memory, even for very small allocations. The same restrictions on calling contexts apply as for ``GFP_ATOMIC``.h](jS)}(h``GFP_NOWAIT``h]h GFP_NOWAIT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh is for kernel allocations that should not stall for direct reclaim, start physical IO or use any filesystem callback. It is very likely to fail to allocate memory, even for very small allocations. The same restrictions on calling contexts apply as for }(hjhhhNhNubjS)}(h``GFP_ATOMIC``h]h GFP_ATOMIC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMChjHubjM)}(hXd``GFP_NOIO`` will use direct reclaim to discard clean pages or slab pages that do not require the starting of any physical IO. Please try to avoid using this flag directly and instead use memalloc_noio_{save,restore} to mark the whole scope which cannot perform any IO with a short explanation why. All allocation requests will inherit GFP_NOIO implicitly.h](jS)}(h ``GFP_NOIO``h]hGFP_NOIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhXX will use direct reclaim to discard clean pages or slab pages that do not require the starting of any physical IO. Please try to avoid using this flag directly and instead use memalloc_noio_{save,restore} to mark the whole scope which cannot perform any IO with a short explanation why. All allocation requests will inherit GFP_NOIO implicitly.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMHhjHubjM)}(hXK``GFP_NOFS`` will use direct reclaim but will not use any filesystem interfaces. Please try to avoid using this flag directly and instead use memalloc_nofs_{save,restore} to mark the whole scope which cannot/shouldn't recurse into the FS layer with a short explanation why. All allocation requests will inherit GFP_NOFS implicitly.h](jS)}(h ``GFP_NOFS``h]hGFP_NOFS}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj/ubhXA will use direct reclaim but will not use any filesystem interfaces. Please try to avoid using this flag directly and instead use memalloc_nofs_{save,restore} to mark the whole scope which cannot/shouldn’t recurse into the FS layer with a short explanation why. All allocation requests will inherit GFP_NOFS implicitly.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMOhjHubjM)}(hX``GFP_USER`` is for userspace allocations that also need to be directly accessibly by the kernel or hardware. It is typically used by hardware for buffers that are mapped to userspace (e.g. graphics) that hardware still must DMA to. cpuset limits are enforced for these allocations.h](jS)}(h ``GFP_USER``h]hGFP_USER}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubhX is for userspace allocations that also need to be directly accessibly by the kernel or hardware. It is typically used by hardware for buffers that are mapped to userspace (e.g. graphics) that hardware still must DMA to. cpuset limits are enforced for these allocations.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMUhjHubjM)}(hX``GFP_DMA`` exists for historical reasons and should be avoided where possible. The flags indicates that the caller requires that the lowest zone be used (``ZONE_DMA`` or 16M on x86-64). Ideally, this would be removed but it would require careful auditing as some users really require it and others use the flag to avoid lowmem reserves in ``ZONE_DMA`` and treat the lowest zone as a type of emergency reserve.h](jS)}(h ``GFP_DMA``h]hGFP_DMA}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubh exists for historical reasons and should be avoided where possible. The flags indicates that the caller requires that the lowest zone be used (}(hjihhhNhNubjS)}(h ``ZONE_DMA``h]hZONE_DMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubh or 16M on x86-64). Ideally, this would be removed but it would require careful auditing as some users really require it and others use the flag to avoid lowmem reserves in }(hjihhhNhNubjS)}(h ``ZONE_DMA``h]hZONE_DMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubh: and treat the lowest zone as a type of emergency reserve.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMZhjHubjM)}(h``GFP_DMA32`` is similar to ``GFP_DMA`` except that the caller requires a 32-bit address. Note that kmalloc(..., GFP_DMA32) does not return DMA32 memory because the DMA32 kmalloc cache array is not implemented. (Reason: there is no such user in kernel).h](jS)}(h ``GFP_DMA32``h]h GFP_DMA32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh is similar to }(hjhhhNhNubjS)}(h ``GFP_DMA``h]hGFP_DMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh except that the caller requires a 32-bit address. Note that kmalloc(..., GFP_DMA32) does not return DMA32 memory because the DMA32 kmalloc cache array is not implemented. (Reason: there is no such user in kernel).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMahjHubjM)}(hX``GFP_HIGHUSER`` is for userspace allocations that may be mapped to userspace, do not need to be directly accessible by the kernel but that cannot move once in use. An example may be a hardware allocation that maps data directly into userspace but has no addressing limitations.h](jS)}(h``GFP_HIGHUSER``h]h GFP_HIGHUSER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhX is for userspace allocations that may be mapped to userspace, do not need to be directly accessible by the kernel but that cannot move once in use. An example may be a hardware allocation that maps data directly into userspace but has no addressing limitations.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMfhjHubjM)}(hX'``GFP_HIGHUSER_MOVABLE`` is for userspace allocations that the kernel does not need direct access to but can use kmap() when access is required. They are expected to be movable via page reclaim or page migration. Typically, pages on the LRU would also be allocated with ``GFP_HIGHUSER_MOVABLE``.h](jS)}(h``GFP_HIGHUSER_MOVABLE``h]hGFP_HIGHUSER_MOVABLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh is for userspace allocations that the kernel does not need direct access to but can use kmap() when access is required. They are expected to be movable via page reclaim or page migration. Typically, pages on the LRU would also be allocated with }(hjhhhNhNubjS)}(h``GFP_HIGHUSER_MOVABLE``h]hGFP_HIGHUSER_MOVABLE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMkhjHubjM)}(hXh``GFP_TRANSHUGE`` and ``GFP_TRANSHUGE_LIGHT`` are used for THP allocations. They are compound allocations that will generally fail quickly if memory is not available and will not wake kswapd/kcompactd on failure. The _LIGHT version does not attempt reclaim/compaction at all and is by default used in page fault path, while the non-light is used by khugepaged.h](jS)}(h``GFP_TRANSHUGE``h]h GFP_TRANSHUGE}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubh and }(hj%hhhNhNubjS)}(h``GFP_TRANSHUGE_LIGHT``h]hGFP_TRANSHUGE_LIGHT}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubhX; are used for THP allocations. They are compound allocations that will generally fail quickly if memory is not available and will not wake kswapd/kcompactd on failure. The _LIGHT version does not attempt reclaim/compaction at all and is by default used in page fault path, while the non-light is used by khugepaged.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMphjHubeh}(h]useful-gfp-flag-combinationsah ]h"]useful gfp flag combinationsah$]h&]uh1hhjIhhhNhNubeh}(h](memory-allocation-controlsj@eh ]h"](memory allocation controlsmm-api-gfp-flagseh$]h&]uh1hhhhhhhhKexpect_referenced_by_name}jbj5sexpect_referenced_by_id}j@j5subh)}(hhh](h)}(hThe Slab Cacheh]hThe Slab Cache}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihhhhhK#ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hSLAB_HWCACHE_ALIGN (C macro)c.SLAB_HWCACHE_ALIGNhNtauh1hhjihhhNhNubh)}(hhh](h)}(hSLAB_HWCACHE_ALIGNh]h)}(hSLAB_HWCACHE_ALIGNh]h)}(hSLAB_HWCACHE_ALIGNh]j)}(hjh]hSLAB_HWCACHE_ALIGN}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKTubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKTubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKThjhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjhhhjhKTubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjihNhNubjM)}(h``SLAB_HWCACHE_ALIGN``h]jS)}(hjh]hSLAB_HWCACHE_ALIGN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKVhjihhubji)}(hX Align objects on cache line boundaries. **Description** Sufficiently large objects are aligned on cache line boundary. For object size smaller than a half of cache line size, the alignment is on the half of cache line size. In general, if object size is smaller than 1/2^n of cache line size, the alignment is adjusted to 1/2^n. If explicit alignment is also requested by the respective :c:type:`struct kmem_cache_args ` field, the greater of both is alignments is applied. h](ji)}(h(Align objects on cache line boundaries. h]jM)}(h'Align objects on cache line boundaries.h]h'Align objects on cache line boundaries.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKThjubah}(h]h ]h"]h$]h&]uh1jhhjhKThjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKVhjubjM)}(hXSufficiently large objects are aligned on cache line boundary. For object size smaller than a half of cache line size, the alignment is on the half of cache line size. In general, if object size is smaller than 1/2^n of cache line size, the alignment is adjusted to 1/2^n.h]hXSufficiently large objects are aligned on cache line boundary. For object size smaller than a half of cache line size, the alignment is on the half of cache line size. In general, if object size is smaller than 1/2^n of cache line size, the alignment is adjusted to 1/2^n.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKUhjubjM)}(hIf explicit alignment is also requested by the respective :c:type:`struct kmem_cache_args ` field, the greater of both is alignments is applied.h](h:If explicit alignment is also requested by the respective }(hj#hhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]jS)}(hj-h]hstruct kmem_cache_args}(hj/hhhNhNubah}(h]h ](xrefjAc-typeeh"]h$]h&]uh1jRhj+ubah}(h]h ]h"]h$]h&]refdoccore-api/mm-api refdomainjAreftypetype refexplicitrefwarnjpjs)}jv]sb reftargetkmem_cache_argsuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKZhj#ubh5 field, the greater of both is alignments is applied.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjPhKZhjubeh}(h]h ]h"]h$]h&]uh1jhhjhKThjihhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hSLAB_TYPESAFE_BY_RCU (C macro)c.SLAB_TYPESAFE_BY_RCUhNtauh1hhjihhhNhNubh)}(hhh](h)}(hSLAB_TYPESAFE_BY_RCUh]h)}(hSLAB_TYPESAFE_BY_RCUh]h)}(hSLAB_TYPESAFE_BY_RCUh]j)}(hjth]hSLAB_TYPESAFE_BY_RCU}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jjuh1hhjvhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjrhhhjhKhubah}(h]jmah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhhjohhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjohhhjhKhubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjihNhNubjM)}(h``SLAB_TYPESAFE_BY_RCU``h]jS)}(hjh]hSLAB_TYPESAFE_BY_RCU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKjhjihhubji)}(hX **WARNING** READ THIS! **Description** This delays freeing the SLAB page by a grace period, it does _NOT_ delay object freeing. This means that if you do kmem_cache_free() that memory location is free to be reused at any time. Thus it may be possible to see another object there in the same RCU grace period. This feature only ensures the memory location backing the object stays valid, the trick to using this is relying on an independent object validation pass. Something like: :: begin: rcu_read_lock(); obj = lockless_lookup(key); if (obj) { if (!try_get_ref(obj)) // might fail for free objects rcu_read_unlock(); goto begin; if (obj->key != key) { // not the object we expected put_ref(obj); rcu_read_unlock(); goto begin; } } rcu_read_unlock(); This is useful if we need to approach a kernel structure obliquely, from its address obtained without the usual locking. We can lock the structure to stabilize it and check it's still at the given address, only if we can be sure that the memory has not been meanwhile reused for some other kind of object (which our subsystem's lock might corrupt). rcu_read_lock before reading the address, then rcu_read_unlock after taking the spinlock within the structure expected at that address. Note that object identity check has to be done *after* acquiring a reference, therefore user has to ensure proper ordering for loads. Similarly, when initializing objects allocated with SLAB_TYPESAFE_BY_RCU, the newly allocated object has to be fully initialized *before* its refcount gets initialized and proper ordering for stores is required. refcount_{add|inc}_not_zero_acquire() and refcount_set_release() are designed with the proper fences required for reference counting objects allocated with SLAB_TYPESAFE_BY_RCU. Note that it is not possible to acquire a lock within a structure allocated with SLAB_TYPESAFE_BY_RCU without first acquiring a reference as described above. The reason is that SLAB_TYPESAFE_BY_RCU pages are not zeroed before being given to the slab, which means that any locks must be initialized after each and every kmem_struct_alloc(). Alternatively, make the ctor passed to kmem_cache_create() initialize the locks at page-allocation time, as is done in __i915_request_ctor(), sighand_ctor(), and anon_vma_ctor(). Such a ctor permits readers to safely acquire those ctor-initialized locks under rcu_read_lock() protection. Note that SLAB_TYPESAFE_BY_RCU was originally named SLAB_DESTROY_BY_RCU. h](ji)}(h**WARNING** READ THIS! h]jM)}(h**WARNING** READ THIS!h](j)}(h **WARNING**h]hWARNING}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh READ THIS!}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhhjubah}(h]h ]h"]h$]h&]uh1jhhjhKhhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKjhjubjM)}(hX This delays freeing the SLAB page by a grace period, it does _NOT_ delay object freeing. This means that if you do kmem_cache_free() that memory location is free to be reused at any time. Thus it may be possible to see another object there in the same RCU grace period.h]hX This delays freeing the SLAB page by a grace period, it does _NOT_ delay object freeing. This means that if you do kmem_cache_free() that memory location is free to be reused at any time. Thus it may be possible to see another object there in the same RCU grace period.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKihjubjM)}(hThis feature only ensures the memory location backing the object stays valid, the trick to using this is relying on an independent object validation pass. Something like:h]hThis feature only ensures the memory location backing the object stays valid, the trick to using this is relying on an independent object validation pass. Something like:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKnhjubh literal_block)}(hX3begin: rcu_read_lock(); obj = lockless_lookup(key); if (obj) { if (!try_get_ref(obj)) // might fail for free objects rcu_read_unlock(); goto begin; if (obj->key != key) { // not the object we expected put_ref(obj); rcu_read_unlock(); goto begin; } } rcu_read_unlock();h]hX3begin: rcu_read_lock(); obj = lockless_lookup(key); if (obj) { if (!try_get_ref(obj)) // might fail for free objects rcu_read_unlock(); goto begin; if (obj->key != key) { // not the object we expected put_ref(obj); rcu_read_unlock(); goto begin; } } rcu_read_unlock();}hj)sbah}(h]h ]h"]h$]h&]jjuh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKthjubjM)}(hX\This is useful if we need to approach a kernel structure obliquely, from its address obtained without the usual locking. We can lock the structure to stabilize it and check it's still at the given address, only if we can be sure that the memory has not been meanwhile reused for some other kind of object (which our subsystem's lock might corrupt).h]hX`This is useful if we need to approach a kernel structure obliquely, from its address obtained without the usual locking. We can lock the structure to stabilize it and check it’s still at the given address, only if we can be sure that the memory has not been meanwhile reused for some other kind of object (which our subsystem’s lock might corrupt).}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubjM)}(hrcu_read_lock before reading the address, then rcu_read_unlock after taking the spinlock within the structure expected at that address.h]hrcu_read_lock before reading the address, then rcu_read_unlock after taking the spinlock within the structure expected at that address.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubjM)}(hX Note that object identity check has to be done *after* acquiring a reference, therefore user has to ensure proper ordering for loads. Similarly, when initializing objects allocated with SLAB_TYPESAFE_BY_RCU, the newly allocated object has to be fully initialized *before* its refcount gets initialized and proper ordering for stores is required. refcount_{add|inc}_not_zero_acquire() and refcount_set_release() are designed with the proper fences required for reference counting objects allocated with SLAB_TYPESAFE_BY_RCU.h](h/Note that object identity check has to be done }(hjVhhhNhNubhemphasis)}(h*after*h]hafter}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjVubh acquiring a reference, therefore user has to ensure proper ordering for loads. Similarly, when initializing objects allocated with SLAB_TYPESAFE_BY_RCU, the newly allocated object has to be fully initialized }(hjVhhhNhNubj_)}(h*before*h]hbefore}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjVubh its refcount gets initialized and proper ordering for stores is required. refcount_{add|inc}_not_zero_acquire() and refcount_set_release() are designed with the proper fences required for reference counting objects allocated with SLAB_TYPESAFE_BY_RCU.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubjM)}(hXuNote that it is not possible to acquire a lock within a structure allocated with SLAB_TYPESAFE_BY_RCU without first acquiring a reference as described above. The reason is that SLAB_TYPESAFE_BY_RCU pages are not zeroed before being given to the slab, which means that any locks must be initialized after each and every kmem_struct_alloc(). Alternatively, make the ctor passed to kmem_cache_create() initialize the locks at page-allocation time, as is done in __i915_request_ctor(), sighand_ctor(), and anon_vma_ctor(). Such a ctor permits readers to safely acquire those ctor-initialized locks under rcu_read_lock() protection.h]hXuNote that it is not possible to acquire a lock within a structure allocated with SLAB_TYPESAFE_BY_RCU without first acquiring a reference as described above. The reason is that SLAB_TYPESAFE_BY_RCU pages are not zeroed before being given to the slab, which means that any locks must be initialized after each and every kmem_struct_alloc(). Alternatively, make the ctor passed to kmem_cache_create() initialize the locks at page-allocation time, as is done in __i915_request_ctor(), sighand_ctor(), and anon_vma_ctor(). Such a ctor permits readers to safely acquire those ctor-initialized locks under rcu_read_lock() protection.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubjM)}(hHNote that SLAB_TYPESAFE_BY_RCU was originally named SLAB_DESTROY_BY_RCU.h]hHNote that SLAB_TYPESAFE_BY_RCU was originally named SLAB_DESTROY_BY_RCU.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhhjhKhhjihhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hSLAB_ACCOUNT (C macro)c.SLAB_ACCOUNThNtauh1hhjihhhNhNubh)}(hhh](h)}(h SLAB_ACCOUNTh]h)}(h SLAB_ACCOUNTh]h)}(h SLAB_ACCOUNTh]j)}(hjh]h SLAB_ACCOUNT}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjihNhNubjM)}(h``SLAB_ACCOUNT``h]jS)}(hjh]h SLAB_ACCOUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjihhubji)}(h Account allocations to memcg. **Description** All object allocations from this cache will be memcg accounted, regardless of __GFP_ACCOUNT being or not being passed to individual allocations. h](ji)}(hAccount allocations to memcg. h]jM)}(hAccount allocations to memcg.h]hAccount allocations to memcg.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubah}(h]h ]h"]h$]h&]uh1jhhj*hKhjubjM)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubjM)}(hAll object allocations from this cache will be memcg accounted, regardless of __GFP_ACCOUNT being or not being passed to individual allocations.h]hAll object allocations from this cache will be memcg accounted, regardless of __GFP_ACCOUNT being or not being passed to individual allocations.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhhj*hKhjihhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hSLAB_RECLAIM_ACCOUNT (C macro)c.SLAB_RECLAIM_ACCOUNThNtauh1hhjihhhNhNubh)}(hhh](h)}(hSLAB_RECLAIM_ACCOUNTh]h)}(hSLAB_RECLAIM_ACCOUNTh]h)}(hSLAB_RECLAIM_ACCOUNTh]j)}(hjqh]hSLAB_RECLAIM_ACCOUNT}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1hhjshhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjohhhjhKubah}(h]jjah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjlhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjlhhhjhKubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjihNhNubjM)}(h``SLAB_RECLAIM_ACCOUNT``h]jS)}(hjh]hSLAB_RECLAIM_ACCOUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjihhubji)}(hX  Objects are reclaimable. **Description** Use this flag for caches that have an associated shrinker. As a result, slab pages are allocated with __GFP_RECLAIMABLE, which affects grouping pages by mobility, and are accounted in SReclaimable counter in /proc/meminfo h](ji)}(hObjects are reclaimable. h]jM)}(hObjects are reclaimable.h]hObjects are reclaimable.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubah}(h]h ]h"]h$]h&]uh1jhhjhKhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubjM)}(hUse this flag for caches that have an associated shrinker. As a result, slab pages are allocated with __GFP_RECLAIMABLE, which affects grouping pages by mobility, and are accounted in SReclaimable counter in /proc/meminfoh]hUse this flag for caches that have an associated shrinker. As a result, slab pages are allocated with __GFP_RECLAIMABLE, which affects grouping pages by mobility, and are accounted in SReclaimable counter in /proc/meminfo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhhjhKhjihhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmem_cache_args (C struct)c.kmem_cache_argshNtauh1hhjihhhNhNubh)}(hhh](h)}(hkmem_cache_argsh]h)}(hstruct kmem_cache_argsh](j5)}(hj8h]hstruct}(hj&hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj"hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhj3hKubh)}(hkmem_cache_argsh]j)}(hj h]hkmem_cache_args}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1hhj"hhhj3hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj3hKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj3hKhjhhubj4)}(hhh]jM)}(h-Less common arguments for kmem_cache_create()h]h-Less common arguments for kmem_cache_create()}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjehhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj3hKubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjihNhNubj)}(hX **Definition**:: struct kmem_cache_args { unsigned int align; unsigned int useroffset; unsigned int usersize; unsigned int freeptr_offset; bool use_freeptr_offset; void (*ctor)(void *); unsigned int sheaf_capacity; }; **Members** ``align`` The required alignment for the objects. ``0`` means no specific alignment is requested. ``useroffset`` Usercopy region offset. ``0`` is a valid offset, when **usersize** is non-``0`` ``usersize`` Usercopy region size. ``0`` means no usercopy region is specified. ``freeptr_offset`` Custom offset for the free pointer in caches with :c:type:`SLAB_TYPESAFE_BY_RCU` or **ctor** By default, :c:type:`SLAB_TYPESAFE_BY_RCU` and **ctor** caches place the free pointer outside of the object. This might cause the object to grow in size. Cache creators that have a reason to avoid this can specify a custom free pointer offset in their data structure where the free pointer will be placed. For caches with :c:type:`SLAB_TYPESAFE_BY_RCU`, the caller must ensure that the free pointer does not overlay fields required to guard against object recycling (See :c:type:`SLAB_TYPESAFE_BY_RCU` for details). For caches with **ctor**, the caller must ensure that the free pointer does not overlay fields initialized by the constructor. Currently, only caches with :c:type:`SLAB_TYPESAFE_BY_RCU` or **ctor** may specify **freeptr_offset**. Using ``0`` as a value for **freeptr_offset** is valid. If **freeptr_offset** is specified, **use_freeptr_offset** must be set ``true``. ``use_freeptr_offset`` Whether a **freeptr_offset** is used. ``ctor`` A constructor for the objects. The constructor is invoked for each object in a newly allocated slab page. It is the cache user's responsibility to free object in the same state as after calling the constructor, or deal appropriately with any differences between a freshly constructed and a reallocated object. ``NULL`` means no constructor. ``sheaf_capacity`` Enable sheaves of given capacity for the cache. With a non-zero value, allocations from the cache go through caching arrays called sheaves. Each cpu has a main sheaf that's always present, and a spare sheaf that may be not present. When both become empty, there's an attempt to replace an empty sheaf with a full sheaf from the per-node barn. When no full sheaf is available, and gfp flags allow blocking, a sheaf is allocated and filled from slab(s) using bulk allocation. Otherwise the allocation falls back to the normal operation allocating a single object from a slab. Analogically when freeing and both percpu sheaves are full, the barn may replace it with an empty sheaf, unless it's over capacity. In that case a sheaf is bulk freed to slab pages. The sheaves do not enforce NUMA placement of objects, so allocations via kmem_cache_alloc_node() with a node specified other than NUMA_NO_NODE will bypass them. Bulk allocation and free operations also try to use the cpu sheaves and barn, but fallback to using slab pages directly. When slub_debug is enabled for the cache, the sheaf_capacity argument is ignored. ``0`` means no sheaves will be created.h](jM)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjubj()}(hstruct kmem_cache_args { unsigned int align; unsigned int useroffset; unsigned int usersize; unsigned int freeptr_offset; bool use_freeptr_offset; void (*ctor)(void *); unsigned int sheaf_capacity; };h]hstruct kmem_cache_args { unsigned int align; unsigned int useroffset; unsigned int usersize; unsigned int freeptr_offset; bool use_freeptr_offset; void (*ctor)(void *); unsigned int sheaf_capacity; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjubjM)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM"hjubj)}(hhh](j)}(hc``align`` The required alignment for the objects. ``0`` means no specific alignment is requested. h](j)}(h ``align``h]jS)}(hjh]halign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM"hjubj)}(hhh](jM)}(h'The required alignment for the objects.h]h'The required alignment for the objects.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM hjubjM)}(h/``0`` means no specific alignment is requested.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh* means no specific alignment is requested.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhM"hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjubj)}(h```useroffset`` Usercopy region offset. ``0`` is a valid offset, when **usersize** is non-``0`` h](j)}(h``useroffset``h]jS)}(hj+h]h useroffset}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM(hj%ubj)}(hhh](jM)}(hUsercopy region offset.h]hUsercopy region offset.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM&hjAubjM)}(h7``0`` is a valid offset, when **usersize** is non-``0``h](jS)}(h``0``h]h0}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubh is a valid offset, when }(hjShhhNhNubj)}(h **usersize**h]husersize}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh is non-}(hjShhhNhNubjS)}(h``0``h]h0}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubeh}(h]h ]h"]h$]h&]uh1jLhj@hM(hjAubeh}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hM(hjubj)}(hQ``usersize`` Usercopy region size. ``0`` means no usercopy region is specified. h](j)}(h ``usersize``h]jS)}(hjh]husersize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM.hjubj)}(hhh](jM)}(hUsercopy region size.h]hUsercopy region size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM,hjubjM)}(h,``0`` means no usercopy region is specified.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh' means no usercopy region is specified.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhM.hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjubj)}(hX``freeptr_offset`` Custom offset for the free pointer in caches with :c:type:`SLAB_TYPESAFE_BY_RCU` or **ctor** By default, :c:type:`SLAB_TYPESAFE_BY_RCU` and **ctor** caches place the free pointer outside of the object. This might cause the object to grow in size. Cache creators that have a reason to avoid this can specify a custom free pointer offset in their data structure where the free pointer will be placed. For caches with :c:type:`SLAB_TYPESAFE_BY_RCU`, the caller must ensure that the free pointer does not overlay fields required to guard against object recycling (See :c:type:`SLAB_TYPESAFE_BY_RCU` for details). For caches with **ctor**, the caller must ensure that the free pointer does not overlay fields initialized by the constructor. Currently, only caches with :c:type:`SLAB_TYPESAFE_BY_RCU` or **ctor** may specify **freeptr_offset**. Using ``0`` as a value for **freeptr_offset** is valid. If **freeptr_offset** is specified, **use_freeptr_offset** must be set ``true``. h](j)}(h``freeptr_offset``h]jS)}(hjh]hfreeptr_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMFhjubj)}(hhh](jM)}(h\Custom offset for the free pointer in caches with :c:type:`SLAB_TYPESAFE_BY_RCU` or **ctor**h](h2Custom offset for the free pointer in caches with }(hjhhhNhNubh)}(h:c:type:`SLAB_TYPESAFE_BY_RCU`h]jS)}(hjh]hSLAB_TYPESAFE_BY_RCU}(hjhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNSLAB_TYPESAFE_BY_RCUuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM2hjubh or }(hjhhhNhNubj)}(h**ctor**h]hctor}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jLhj7hM2hj ubjM)}(hX1By default, :c:type:`SLAB_TYPESAFE_BY_RCU` and **ctor** caches place the free pointer outside of the object. This might cause the object to grow in size. Cache creators that have a reason to avoid this can specify a custom free pointer offset in their data structure where the free pointer will be placed.h](h By default, }(hjPhhhNhNubh)}(h:c:type:`SLAB_TYPESAFE_BY_RCU`h]jS)}(hjZh]hSLAB_TYPESAFE_BY_RCU}(hj\hhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjXubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNSLAB_TYPESAFE_BY_RCUuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM5hjPubh and }(hjPhhhNhNubj)}(h**ctor**h]hctor}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh caches place the free pointer outside of the object. This might cause the object to grow in size. Cache creators that have a reason to avoid this can specify a custom free pointer offset in their data structure where the free pointer will be placed.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjwhM5hj ubjM)}(hFor caches with :c:type:`SLAB_TYPESAFE_BY_RCU`, the caller must ensure that the free pointer does not overlay fields required to guard against object recycling (See :c:type:`SLAB_TYPESAFE_BY_RCU` for details).h](hFor caches with }(hjhhhNhNubh)}(h:c:type:`SLAB_TYPESAFE_BY_RCU`h]jS)}(hjh]hSLAB_TYPESAFE_BY_RCU}(hjhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNSLAB_TYPESAFE_BY_RCUuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM;hjubhw, the caller must ensure that the free pointer does not overlay fields required to guard against object recycling (See }(hjhhhNhNubh)}(h:c:type:`SLAB_TYPESAFE_BY_RCU`h]jS)}(hjh]hSLAB_TYPESAFE_BY_RCU}(hjhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNSLAB_TYPESAFE_BY_RCUuh1hhjhM;hjubh for details).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhM;hj ubjM)}(h~For caches with **ctor**, the caller must ensure that the free pointer does not overlay fields initialized by the constructor.h](hFor caches with }(hjhhhNhNubj)}(h**ctor**h]hctor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhf, the caller must ensure that the free pointer does not overlay fields initialized by the constructor.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM?hj ubjM)}(hfCurrently, only caches with :c:type:`SLAB_TYPESAFE_BY_RCU` or **ctor** may specify **freeptr_offset**.h](hCurrently, only caches with }(hj hhhNhNubh)}(h:c:type:`SLAB_TYPESAFE_BY_RCU`h]jS)}(hjh]hSLAB_TYPESAFE_BY_RCU}(hjhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNSLAB_TYPESAFE_BY_RCUuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMBhj ubh or }(hj hhhNhNubj)}(h**ctor**h]hctor}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh may specify }(hj hhhNhNubj)}(h**freeptr_offset**h]hfreeptr_offset}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj1hMBhj ubjM)}(hUsing ``0`` as a value for **freeptr_offset** is valid. If **freeptr_offset** is specified, **use_freeptr_offset** must be set ``true``.h](hUsing }(hj`hhhNhNubjS)}(h``0``h]h0}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`ubh as a value for }(hj`hhhNhNubj)}(h**freeptr_offset**h]hfreeptr_offset}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh is valid. If }(hj`hhhNhNubj)}(h**freeptr_offset**h]hfreeptr_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh is specified, }(hj`hhhNhNubj)}(h**use_freeptr_offset**h]huse_freeptr_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh must be set }(hj`hhhNhNubjS)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`ubh.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMEhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMFhjubj)}(h=``use_freeptr_offset`` Whether a **freeptr_offset** is used. h](j)}(h``use_freeptr_offset``h]jS)}(hjh]huse_freeptr_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMJhjubj)}(hhh]jM)}(h%Whether a **freeptr_offset** is used.h](h Whether a }(hjhhhNhNubj)}(h**freeptr_offset**h]hfreeptr_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubj)}(hX```ctor`` A constructor for the objects. The constructor is invoked for each object in a newly allocated slab page. It is the cache user's responsibility to free object in the same state as after calling the constructor, or deal appropriately with any differences between a freshly constructed and a reallocated object. ``NULL`` means no constructor. h](j)}(h``ctor``h]jS)}(hj&h]hctor}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMVhj ubj)}(hhh](jM)}(hA constructor for the objects.h]hA constructor for the objects.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMNhj<ubjM)}(hXThe constructor is invoked for each object in a newly allocated slab page. It is the cache user's responsibility to free object in the same state as after calling the constructor, or deal appropriately with any differences between a freshly constructed and a reallocated object.h]hXThe constructor is invoked for each object in a newly allocated slab page. It is the cache user’s responsibility to free object in the same state as after calling the constructor, or deal appropriately with any differences between a freshly constructed and a reallocated object.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMPhj<ubjM)}(h``NULL`` means no constructor.h](jS)}(h``NULL``h]hNULL}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj]ubh means no constructor.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj;hMVhj<ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMVhjubj)}(hX``sheaf_capacity`` Enable sheaves of given capacity for the cache. With a non-zero value, allocations from the cache go through caching arrays called sheaves. Each cpu has a main sheaf that's always present, and a spare sheaf that may be not present. When both become empty, there's an attempt to replace an empty sheaf with a full sheaf from the per-node barn. When no full sheaf is available, and gfp flags allow blocking, a sheaf is allocated and filled from slab(s) using bulk allocation. Otherwise the allocation falls back to the normal operation allocating a single object from a slab. Analogically when freeing and both percpu sheaves are full, the barn may replace it with an empty sheaf, unless it's over capacity. In that case a sheaf is bulk freed to slab pages. The sheaves do not enforce NUMA placement of objects, so allocations via kmem_cache_alloc_node() with a node specified other than NUMA_NO_NODE will bypass them. Bulk allocation and free operations also try to use the cpu sheaves and barn, but fallback to using slab pages directly. When slub_debug is enabled for the cache, the sheaf_capacity argument is ignored. ``0`` means no sheaves will be created.h](j)}(h``sheaf_capacity``h]jS)}(hjh]hsheaf_capacity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMthjubj)}(hhh](jM)}(h/Enable sheaves of given capacity for the cache.h]h/Enable sheaves of given capacity for the cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMZhjubjM)}(hX&With a non-zero value, allocations from the cache go through caching arrays called sheaves. Each cpu has a main sheaf that's always present, and a spare sheaf that may be not present. When both become empty, there's an attempt to replace an empty sheaf with a full sheaf from the per-node barn.h]hX*With a non-zero value, allocations from the cache go through caching arrays called sheaves. Each cpu has a main sheaf that’s always present, and a spare sheaf that may be not present. When both become empty, there’s an attempt to replace an empty sheaf with a full sheaf from the per-node barn.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM\hjubjM)}(hWhen no full sheaf is available, and gfp flags allow blocking, a sheaf is allocated and filled from slab(s) using bulk allocation. Otherwise the allocation falls back to the normal operation allocating a single object from a slab.h]hWhen no full sheaf is available, and gfp flags allow blocking, a sheaf is allocated and filled from slab(s) using bulk allocation. Otherwise the allocation falls back to the normal operation allocating a single object from a slab.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMbhjubjM)}(hAnalogically when freeing and both percpu sheaves are full, the barn may replace it with an empty sheaf, unless it's over capacity. In that case a sheaf is bulk freed to slab pages.h]hAnalogically when freeing and both percpu sheaves are full, the barn may replace it with an empty sheaf, unless it’s over capacity. In that case a sheaf is bulk freed to slab pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMghjubjM)}(hThe sheaves do not enforce NUMA placement of objects, so allocations via kmem_cache_alloc_node() with a node specified other than NUMA_NO_NODE will bypass them.h]hThe sheaves do not enforce NUMA placement of objects, so allocations via kmem_cache_alloc_node() with a node specified other than NUMA_NO_NODE will bypass them.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMkhjubjM)}(hxBulk allocation and free operations also try to use the cpu sheaves and barn, but fallback to using slab pages directly.h]hxBulk allocation and free operations also try to use the cpu sheaves and barn, but fallback to using slab pages directly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMohjubjM)}(hQWhen slub_debug is enabled for the cache, the sheaf_capacity argument is ignored.h]hQWhen slub_debug is enabled for the cache, the sheaf_capacity argument is ignored.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMrhjubjM)}(h'``0`` means no sheaves will be created.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh" means no sheaves will be created.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMuhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMthjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubjM)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMxhjihhubjM)}(hX4Any uninitialized fields of the structure are interpreted as unused. The exception is **freeptr_offset** where ``0`` is a valid value, so **use_freeptr_offset** must be also set to ``true`` in order to interpret the field as used. For **useroffset** ``0`` is also valid, but only with non-``0`` **usersize**.h](hVAny uninitialized fields of the structure are interpreted as unused. The exception is }(hj[hhhNhNubj)}(h**freeptr_offset**h]hfreeptr_offset}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh where }(hj[hhhNhNubjS)}(h``0``h]h0}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubh is a valid value, so }(hj[hhhNhNubj)}(h**use_freeptr_offset**h]huse_freeptr_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh must be also set to }(hj[hhhNhNubjS)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubh. in order to interpret the field as used. For }(hj[hhhNhNubj)}(h**useroffset**h]h useroffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh }(hj[hhhNhNubjS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubh" is also valid, but only with non-}(hj[hhhNhNubjS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubh }(hj[hhhNhNubj)}(h **usersize**h]husersize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjihhubjM)}(h[When ``NULL`` args is passed to kmem_cache_create(), it is equivalent to all fields unused.h](hWhen }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhN args is passed to kmem_cache_create(), it is equivalent to all fields unused.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjihhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'kmem_cache_create_usercopy (C function)c.kmem_cache_create_usercopyhNtauh1hhjihhhNhNubh)}(hhh](h)}(hstruct kmem_cache * kmem_cache_create_usercopy (const char *name, unsigned int size, unsigned int align, slab_flags_t flags, unsigned int useroffset, unsigned int usersize, void (*ctor)(void *))h]h)}(hstruct kmem_cache *kmem_cache_create_usercopy(const char *name, unsigned int size, unsigned int align, slab_flags_t flags, unsigned int useroffset, unsigned int usersize, void (*ctor)(void*))h](j5)}(hj8h]hstruct}(hj4hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj0hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjAhMubh)}(hhh]j)}(h kmem_cacheh]h kmem_cache}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jy)}jlkmem_cache_create_usercopysbc.kmem_cache_create_usercopyasbuh1hhj0hhhjAhMubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjAhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj0hhhjAhMubh)}(hkmem_cache_create_usercopyh]j)}(hjqh]hkmem_cache_create_usercopy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj0hhhjAhMubj )}(h(const char *name, unsigned int size, unsigned int align, slab_flags_t flags, unsigned int useroffset, unsigned int usersize, void (*ctor)(void*))h](j )}(hconst char *nameh](j5)}(hconsth]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int sizeh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hinth]hint}(hj( hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj6 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hsizeh]hsize}(hjD hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int alignh](j)}(hunsignedh]hunsigned}(hj] hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubj)}(h h]h }(hjk hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubj)}(hinth]hint}(hjy hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubj)}(halignh]halign}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hslab_flags_t flagsh](h)}(hhh]j)}(h slab_flags_th]h slab_flags_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]joc.kmem_cache_create_usercopyasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hflagsh]hflags}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int useroffseth](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hinth]hint}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj !hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h useroffseth]h useroffset}(hj.!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int usersizeh](j)}(hunsignedh]hunsigned}(hjG!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC!ubj)}(h h]h }(hjU!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC!ubj)}(hinth]hint}(hjc!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC!ubj)}(h h]h }(hjq!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC!ubj)}(husersizeh]husersize}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hvoid (*ctor)(void*)h](j)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjF )}(h(h]h(}(hj!hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubjF )}(hjI h]h*}(hj!hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubj)}(hctorh]hctor}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjF )}(h)h]h)}(hj!hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubjF )}(hj!h]h(}(hj!hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubj)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjF )}(hjI h]h*}(hj"hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubjF )}(hj!h]h)}(hj"hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj0hhhjAhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj,hhhjAhMubah}(h]j'ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjAhMhj)hhubj4)}(hhh]jM)}(hDCreate a kmem cache with a region suitable for copying to userspace.h]hDCreate a kmem cache with a region suitable for copying to userspace.}(hj<"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj9"hhubah}(h]h ]h"]h$]h&]uh1j3hj)hhhjAhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjT"jHjT"jIjJjKuh1hhhhjihNhNubj)}(hX **Parameters** ``const char *name`` A string which is used in /proc/slabinfo to identify this cache. ``unsigned int size`` The size of objects to be created in this cache. ``unsigned int align`` The required alignment for the objects. ``slab_flags_t flags`` SLAB flags ``unsigned int useroffset`` Usercopy region offset ``unsigned int usersize`` Usercopy region size ``void (*ctor)(void *)`` A constructor for the objects, or ``NULL``. **Description** This is a legacy wrapper, new code should use either KMEM_CACHE_USERCOPY() if whitelisting a single field is sufficient, or kmem_cache_create() with the necessary parameters passed via the args parameter (see :c:type:`struct kmem_cache_args `) **Return** a pointer to the cache on success, NULL on failure.h](jM)}(h**Parameters**h]j)}(hj^"h]h Parameters}(hj`"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\"ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjX"ubj)}(hhh](j)}(hV``const char *name`` A string which is used in /proc/slabinfo to identify this cache. h](j)}(h``const char *name``h]jS)}(hj}"h]hconst char *name}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj{"ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjw"ubj)}(hhh]jM)}(h@A string which is used in /proc/slabinfo to identify this cache.h]h@A string which is used in /proc/slabinfo to identify this cache.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjw"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjt"ubj)}(hG``unsigned int size`` The size of objects to be created in this cache. h](j)}(h``unsigned int size``h]jS)}(hj"h]hunsigned int size}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj"ubj)}(hhh]jM)}(h0The size of objects to be created in this cache.h]h0The size of objects to be created in this cache.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjt"ubj)}(h?``unsigned int align`` The required alignment for the objects. h](j)}(h``unsigned int align``h]jS)}(hj"h]hunsigned int align}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj"ubj)}(hhh]jM)}(h'The required alignment for the objects.h]h'The required alignment for the objects.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjt"ubj)}(h"``slab_flags_t flags`` SLAB flags h](j)}(h``slab_flags_t flags``h]jS)}(hj(#h]hslab_flags_t flags}(hj*#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&#ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj"#ubj)}(hhh]jM)}(h SLAB flagsh]h SLAB flags}(hjA#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=#hMhj>#ubah}(h]h ]h"]h$]h&]uh1jhj"#ubeh}(h]h ]h"]h$]h&]uh1jhj=#hMhjt"ubj)}(h3``unsigned int useroffset`` Usercopy region offset h](j)}(h``unsigned int useroffset``h]jS)}(hja#h]hunsigned int useroffset}(hjc#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj_#ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj[#ubj)}(hhh]jM)}(hUsercopy region offseth]hUsercopy region offset}(hjz#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjv#hMhjw#ubah}(h]h ]h"]h$]h&]uh1jhj[#ubeh}(h]h ]h"]h$]h&]uh1jhjv#hMhjt"ubj)}(h/``unsigned int usersize`` Usercopy region size h](j)}(h``unsigned int usersize``h]jS)}(hj#h]hunsigned int usersize}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj#ubj)}(hhh]jM)}(hUsercopy region sizeh]hUsercopy region size}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjt"ubj)}(hE``void (*ctor)(void *)`` A constructor for the objects, or ``NULL``. h](j)}(h``void (*ctor)(void *)``h]jS)}(hj#h]hvoid (*ctor)(void *)}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj#ubj)}(hhh]jM)}(h+A constructor for the objects, or ``NULL``.h](h"A constructor for the objects, or }(hj#hhhNhNubjS)}(h``NULL``h]hNULL}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubh.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjt"ubeh}(h]h ]h"]h$]h&]uh1jhjX"ubjM)}(h**Description**h]j)}(hj $h]h Description}(hj"$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjX"ubjM)}(hXThis is a legacy wrapper, new code should use either KMEM_CACHE_USERCOPY() if whitelisting a single field is sufficient, or kmem_cache_create() with the necessary parameters passed via the args parameter (see :c:type:`struct kmem_cache_args `)h](hThis is a legacy wrapper, new code should use either KMEM_CACHE_USERCOPY() if whitelisting a single field is sufficient, or kmem_cache_create() with the necessary parameters passed via the args parameter (see }(hj6$hhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]jS)}(hj@$h]hstruct kmem_cache_args}(hjB$hhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhj>$ubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNkmem_cache_argsuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj6$ubh)}(hj6$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj]$hMhjX"ubjM)}(h **Return**h]j)}(hjj$h]hReturn}(hjl$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh$ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjX"ubjM)}(h3a pointer to the cache on success, NULL on failure.h]h3a pointer to the cache on success, NULL on failure.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjX"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmem_cache_create (C macro)c.kmem_cache_createhNtauh1hhjihhhNhNubh)}(hhh](h)}(hkmem_cache_createh]h)}(hkmem_cache_createh]h)}(hkmem_cache_createh]j)}(hj$h]hkmem_cache_create}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj$hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj$hhhj$hMubah}(h]j$ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj$hMhj$hhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hj$hhhj$hMubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGj$jHj$jIjJjKuh1hhhhjihNhNubjM)}(h:``kmem_cache_create (__name, __object_size, __args, ...)``h]jS)}(hj$h]h6kmem_cache_create (__name, __object_size, __args, ...)}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjihhubji)}(hCreate a kmem cache. h]jM)}(hCreate a kmem cache.h]hCreate a kmem cache.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj$ubah}(h]h ]h"]h$]h&]uh1jhhj %hMhjihhubj)}(hX**Parameters** ``__name`` A string which is used in /proc/slabinfo to identify this cache. ``__object_size`` The size of objects to be created in this cache. ``__args`` Optional arguments, see :c:type:`struct kmem_cache_args `. Passing ``NULL`` means defaults will be used for all the arguments. ``...`` variable arguments **Description** This is currently implemented as a macro using ``_Generic()`` to call either the new variant of the function, or a legacy one. The new variant has 4 parameters: ``kmem_cache_create(name, object_size, args, flags)`` See __kmem_cache_create_args() which implements this. The legacy variant has 5 parameters: ``kmem_cache_create(name, object_size, align, flags, ctor)`` The align and ctor parameters map to the respective fields of :c:type:`struct kmem_cache_args ` **Context** Cannot be called within a interrupt, but can be interrupted. **Return** a pointer to the cache on success, NULL on failure.h](jM)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj%ubj)}(hhh](j)}(hL``__name`` A string which is used in /proc/slabinfo to identify this cache. h](j)}(h ``__name``h]jS)}(hj9%h]h__name}(hj;%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7%ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj3%ubj)}(hhh]jM)}(h@A string which is used in /proc/slabinfo to identify this cache.h]h@A string which is used in /proc/slabinfo to identify this cache.}(hjR%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjN%hMhjO%ubah}(h]h ]h"]h$]h&]uh1jhj3%ubeh}(h]h ]h"]h$]h&]uh1jhjN%hMhj0%ubj)}(hC``__object_size`` The size of objects to be created in this cache. h](j)}(h``__object_size``h]jS)}(hjr%h]h __object_size}(hjt%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjp%ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjl%ubj)}(hhh]jM)}(h0The size of objects to be created in this cache.h]h0The size of objects to be created in this cache.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jhjl%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj0%ubj)}(h``__args`` Optional arguments, see :c:type:`struct kmem_cache_args `. Passing ``NULL`` means defaults will be used for all the arguments. h](j)}(h ``__args``h]jS)}(hj%h]h__args}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj%ubj)}(hhh]jM)}(hOptional arguments, see :c:type:`struct kmem_cache_args `. Passing ``NULL`` means defaults will be used for all the arguments.h](hOptional arguments, see }(hj%hhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]jS)}(hj%h]hstruct kmem_cache_args}(hj%hhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhj%ubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNkmem_cache_argsuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj%ubh . Passing }(hj%hhhNhNubjS)}(h``NULL``h]hNULL}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubh3 means defaults will be used for all the arguments.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj0%ubj)}(h``...`` variable arguments h](j)}(h``...``h]jS)}(hj&h]h...}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhj&ubj)}(hhh]jM)}(hvariable argumentsh]hvariable arguments}(hj3&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/&hKhj0&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj/&hKhj0%ubeh}(h]h ]h"]h$]h&]uh1jhj%ubjM)}(h**Description**h]j)}(hjU&h]h Description}(hjW&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS&ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhj%ubjM)}(h~This is currently implemented as a macro using ``_Generic()`` to call either the new variant of the function, or a legacy one.h](h/This is currently implemented as a macro using }(hjk&hhhNhNubjS)}(h``_Generic()``h]h _Generic()}(hjs&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjk&ubhA to call either the new variant of the function, or a legacy one.}(hjk&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj%ubjM)}(hWThe new variant has 4 parameters: ``kmem_cache_create(name, object_size, args, flags)``h](h"The new variant has 4 parameters: }(hj&hhhNhNubjS)}(h5``kmem_cache_create(name, object_size, args, flags)``h]h1kmem_cache_create(name, object_size, args, flags)}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj%ubjM)}(h5See __kmem_cache_create_args() which implements this.h]h5See __kmem_cache_create_args() which implements this.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj%ubjM)}(haThe legacy variant has 5 parameters: ``kmem_cache_create(name, object_size, align, flags, ctor)``h](h%The legacy variant has 5 parameters: }(hj&hhhNhNubjS)}(h<``kmem_cache_create(name, object_size, align, flags, ctor)``h]h8kmem_cache_create(name, object_size, align, flags, ctor)}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj%ubjM)}(hpThe align and ctor parameters map to the respective fields of :c:type:`struct kmem_cache_args `h](h>The align and ctor parameters map to the respective fields of }(hj&hhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]jS)}(hj&h]hstruct kmem_cache_args}(hj&hhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhj&ubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNkmem_cache_argsuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj&ubeh}(h]h ]h"]h$]h&]uh1jLhj&hMhj%ubjM)}(h **Context**h]j)}(hj'h]hContext}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj%ubjM)}(hvoid *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags)h](j)}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM7ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj+hM7ubjF )}(hjI h]h*}(hj+hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj+hhhj+hM7ubh)}(hkmem_cache_alloch]j)}(hkmem_cache_alloch]hkmem_cache_alloc}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj+hhhj+hM7ubj )}(h((struct kmem_cache *cachep, gfp_t flags)h](j )}(hstruct kmem_cache *cacheph](j5)}(hj8h]hstruct}(hj,hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj,ubj)}(h h]h }(hj),hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubh)}(hhh]j)}(h kmem_cacheh]h kmem_cache}(hj:,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj<,modnameN classnameNjpjs)}jv]jy)}jlj,sbc.kmem_cache_allocasbuh1hhj,ubj)}(h h]h }(hjZ,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjF )}(hjI h]h*}(hjh,hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj,ubj)}(hcacheph]hcachep}(hju,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj,ubj )}(h gfp_t flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,modnameN classnameNjpjs)}jv]jV,c.kmem_cache_allocasbuh1hhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hflagsh]hflags}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj,ubeh}(h]h ]h"]h$]h&]jjuh1j hj+hhhj+hM7ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj+hhhj+hM7ubah}(h]j+ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj+hM7hj+hhubj4)}(hhh]jM)}(hAllocate an objecth]hAllocate an object}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM7hj,hhubah}(h]h ]h"]h$]h&]uh1j3hj+hhhj+hM7ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj,jHj,jIjJjKuh1hhhhjihNhNubj)}(hX-**Parameters** ``struct kmem_cache *cachep`` The cache to allocate from. ``gfp_t flags`` See kmalloc(). **Description** Allocate an object from this cache. See kmem_cache_zalloc() for a shortcut of adding __GFP_ZERO to flags. **Return** pointer to the new object or ``NULL`` in case of errorh](jM)}(h**Parameters**h]j)}(hj -h]h Parameters}(hj -hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM;hj-ubj)}(hhh](j)}(h:``struct kmem_cache *cachep`` The cache to allocate from. h](j)}(h``struct kmem_cache *cachep``h]jS)}(hj(-h]hstruct kmem_cache *cachep}(hj*-hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&-ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM8hj"-ubj)}(hhh]jM)}(hThe cache to allocate from.h]hThe cache to allocate from.}(hjA-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=-hM8hj>-ubah}(h]h ]h"]h$]h&]uh1jhj"-ubeh}(h]h ]h"]h$]h&]uh1jhj=-hM8hj-ubj)}(h``gfp_t flags`` See kmalloc(). h](j)}(h``gfp_t flags``h]jS)}(hja-h]h gfp_t flags}(hjc-hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj_-ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM9hj[-ubj)}(hhh]jM)}(hSee kmalloc().h]hSee kmalloc().}(hjz-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjv-hM9hjw-ubah}(h]h ]h"]h$]h&]uh1jhj[-ubeh}(h]h ]h"]h$]h&]uh1jhjv-hM9hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-ubjM)}(h**Description**h]j)}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM;hj-ubjM)}(hiAllocate an object from this cache. See kmem_cache_zalloc() for a shortcut of adding __GFP_ZERO to flags.h]hiAllocate an object from this cache. See kmem_cache_zalloc() for a shortcut of adding __GFP_ZERO to flags.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM:hj-ubjM)}(h **Return**h]j)}(hj-h]hReturn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM=hj-ubjM)}(h6pointer to the new object or ``NULL`` in case of errorh](hpointer to the new object or }(hj-hhhNhNubjS)}(h``NULL``h]hNULL}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-ubh in case of error}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM>hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmem_cache_charge (C function)c.kmem_cache_chargehNtauh1hhjihhhNhNubh)}(hhh](h)}(h3bool kmem_cache_charge (void *objp, gfp_t gfpflags)h]h)}(h2bool kmem_cache_charge(void *objp, gfp_t gfpflags)h](j)}(hboolh]hbool}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMIubj)}(h h]h }(hj).hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj(.hMIubh)}(hkmem_cache_chargeh]j)}(hkmem_cache_chargeh]hkmem_cache_charge}(hj;.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7.ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj.hhhj(.hMIubj )}(h(void *objp, gfp_t gfpflags)h](j )}(h void *objph](j)}(hvoidh]hvoid}(hjW.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS.ubj)}(h h]h }(hje.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS.ubjF )}(hjI h]h*}(hjs.hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjS.ubj)}(hobjph]hobjp}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS.ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjO.ubj )}(hgfp_t gfpflagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj.modnameN classnameNjpjs)}jv]jy)}jlj=.sbc.kmem_cache_chargeasbuh1hhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hgfpflagsh]hgfpflags}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjO.ubeh}(h]h ]h"]h$]h&]jjuh1j hj.hhhj(.hMIubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj.hhhj(.hMIubah}(h]j .ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj(.hMIhj.hhubj4)}(hhh]jM)}(h-memcg charge an already allocated slab memoryh]h-memcg charge an already allocated slab memory}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMIhj.hhubah}(h]h ]h"]h$]h&]uh1j3hj.hhhj(.hMIubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj /jHj /jIjJjKuh1hhhhjihNhNubj)}(hX**Parameters** ``void *objp`` address of the slab object to memcg charge ``gfp_t gfpflags`` describe the allocation context **Description** kmem_cache_charge allows charging a slab object to the current memcg, primarily in cases where charging at allocation time might not be possible because the target memcg is not known (i.e. softirq context) The objp should be pointer returned by the slab allocator functions like kmalloc (with __GFP_ACCOUNT in flags) or kmem_cache_alloc. The memcg charge behavior can be controlled through gfpflags parameter, which affects how the necessary internal metadata can be allocated. Including __GFP_NOFAIL denotes that overcharging is requested instead of failure, but is not applied for the internal metadata allocation. There are several cases where it will return true even if the charging was not done: More specifically: 1. For !CONFIG_MEMCG or cgroup_disable=memory systems. 2. Already charged slab objects. 3. For slab objects from KMALLOC_NORMAL caches - allocated by kmalloc() without __GFP_ACCOUNT 4. Allocating internal metadata has failed **Return** true if charge was successful otherwise false.h](jM)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMMhj/ubj)}(hhh](j)}(h:``void *objp`` address of the slab object to memcg charge h](j)}(h``void *objp``h]jS)}(hj5/h]h void *objp}(hj7/hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3/ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMJhj//ubj)}(hhh]jM)}(h*address of the slab object to memcg chargeh]h*address of the slab object to memcg charge}(hjN/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJ/hMJhjK/ubah}(h]h ]h"]h$]h&]uh1jhj//ubeh}(h]h ]h"]h$]h&]uh1jhjJ/hMJhj,/ubj)}(h3``gfp_t gfpflags`` describe the allocation context h](j)}(h``gfp_t gfpflags``h]jS)}(hjn/h]hgfp_t gfpflags}(hjp/hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjl/ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMKhjh/ubj)}(hhh]jM)}(hdescribe the allocation contexth]hdescribe the allocation context}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hMKhj/ubah}(h]h ]h"]h$]h&]uh1jhjh/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMKhj,/ubeh}(h]h ]h"]h$]h&]uh1jhj/ubjM)}(h**Description**h]j)}(hj/h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMMhj/ubjM)}(hkmem_cache_charge allows charging a slab object to the current memcg, primarily in cases where charging at allocation time might not be possible because the target memcg is not known (i.e. softirq context)h]hkmem_cache_charge allows charging a slab object to the current memcg, primarily in cases where charging at allocation time might not be possible because the target memcg is not known (i.e. softirq context)}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMLhj/ubjM)}(hXThe objp should be pointer returned by the slab allocator functions like kmalloc (with __GFP_ACCOUNT in flags) or kmem_cache_alloc. The memcg charge behavior can be controlled through gfpflags parameter, which affects how the necessary internal metadata can be allocated. Including __GFP_NOFAIL denotes that overcharging is requested instead of failure, but is not applied for the internal metadata allocation.h]hXThe objp should be pointer returned by the slab allocator functions like kmalloc (with __GFP_ACCOUNT in flags) or kmem_cache_alloc. The memcg charge behavior can be controlled through gfpflags parameter, which affects how the necessary internal metadata can be allocated. Including __GFP_NOFAIL denotes that overcharging is requested instead of failure, but is not applied for the internal metadata allocation.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMPhj/ubjM)}(hgThere are several cases where it will return true even if the charging was not done: More specifically:h]hgThere are several cases where it will return true even if the charging was not done: More specifically:}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMWhj/ubhenumerated_list)}(hhh](h list_item)}(h3For !CONFIG_MEMCG or cgroup_disable=memory systems.h]jM)}(hj/h]h3For !CONFIG_MEMCG or cgroup_disable=memory systems.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM[hj/ubah}(h]h ]h"]h$]h&]uh1j/hj/ubj/)}(hAlready charged slab objects.h]jM)}(hj 0h]hAlready charged slab objects.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM\hj 0ubah}(h]h ]h"]h$]h&]uh1j/hj/ubj/)}(hZFor slab objects from KMALLOC_NORMAL caches - allocated by kmalloc() without __GFP_ACCOUNTh]jM)}(hZFor slab objects from KMALLOC_NORMAL caches - allocated by kmalloc() without __GFP_ACCOUNTh]hZFor slab objects from KMALLOC_NORMAL caches - allocated by kmalloc() without __GFP_ACCOUNT}(hj'0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM]hj#0ubah}(h]h ]h"]h$]h&]uh1j/hj/ubj/)}(h(Allocating internal metadata has failed h]jM)}(h'Allocating internal metadata has failedh]h'Allocating internal metadata has failed}(hj@0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM_hj<0ubah}(h]h ]h"]h$]h&]uh1j/hj/ubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1j/hj/ubjM)}(h **Return**h]j)}(hjb0h]hReturn}(hjd0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`0ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMahj/ubjM)}(h.true if charge was successful otherwise false.h]h.true if charge was successful otherwise false.}(hjx0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMbhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmalloc (C function) c.kmallochNtauh1hhjihhhNhNubh)}(hhh](h)}(h)void * kmalloc (size_t size, gfp_t flags)h]h)}(h'void *kmalloc(size_t size, gfp_t flags)h](j)}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj0hMubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj0hhhj0hMubh)}(hkmalloch]j)}(hkmalloch]hkmalloc}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj0hhhj0hMubj )}(h(size_t size, gfp_t flags)h](j )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj0modnameN classnameNjpjs)}jv]jy)}jlj0sb c.kmallocasbuh1hhj0ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hsizeh]hsize}(hj"1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubj )}(h gfp_t flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj>1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj@1modnameN classnameNjpjs)}jv]j1 c.kmallocasbuh1hhj71ubj)}(h h]h }(hj\1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj71ubj)}(hflagsh]hflags}(hjj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj71ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubeh}(h]h ]h"]h$]h&]jjuh1j hj0hhhj0hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj0hhhj0hMubah}(h]j0ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj0hMhj0hhubj4)}(hhh]jM)}(hallocate kernel memoryh]hallocate kernel memory}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj1hhubah}(h]h ]h"]h$]h&]uh1j3hj0hhhj0hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj1jHj1jIjJjKuh1hhhhjihNhNubj)}(hX**Parameters** ``size_t size`` how many bytes of memory are required. ``gfp_t flags`` describe the allocation context **Description** kmalloc is the normal method of allocating memory for objects smaller than page size in the kernel. The allocated object address is aligned to at least ARCH_KMALLOC_MINALIGN bytes. For **size** of power of two bytes, the alignment is also guaranteed to be at least to the size. For other sizes, the alignment is guaranteed to be at least the largest power-of-two divisor of **size**. The **flags** argument may be one of the GFP flags defined at include/linux/gfp_types.h and described at :ref:`Documentation/core-api/mm-api.rst ` The recommended usage of the **flags** is described at :ref:`Documentation/core-api/memory-allocation.rst ` Below is a brief outline of the most useful GFP flags ``GFP_KERNEL`` Allocate normal kernel ram. May sleep. ``GFP_NOWAIT`` Allocation will not sleep. ``GFP_ATOMIC`` Allocation will not sleep. May use emergency pools. Also it is possible to set different flags by OR'ing in one or more of the following additional **flags**: ``__GFP_ZERO`` Zero the allocated memory before returning. Also see kzalloc(). ``__GFP_HIGH`` This allocation has high priority and may use emergency pools. ``__GFP_NOFAIL`` Indicate that this allocation is in no way allowed to fail (think twice before using). ``__GFP_NORETRY`` If memory is not immediately available, then give up at once. ``__GFP_NOWARN`` If allocation fails, don't issue any warnings. ``__GFP_RETRY_MAYFAIL`` Try really hard to succeed the allocation but fail eventually.h](jM)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj1ubj)}(hhh](j)}(h7``size_t size`` how many bytes of memory are required. h](j)}(h``size_t size``h]jS)}(hj1h]h size_t size}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj1ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj1ubj)}(hhh]jM)}(h&how many bytes of memory are required.h]h&how many bytes of memory are required.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj1ubj)}(h0``gfp_t flags`` describe the allocation context h](j)}(h``gfp_t flags``h]jS)}(hj2h]h gfp_t flags}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj 2ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj2ubj)}(hhh]jM)}(hdescribe the allocation contexth]hdescribe the allocation context}(hj'2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#2hMhj$2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj#2hMhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1ubjM)}(h**Description**h]j)}(hjI2h]h Description}(hjK2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG2ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj1ubjM)}(hckmalloc is the normal method of allocating memory for objects smaller than page size in the kernel.h]hckmalloc is the normal method of allocating memory for objects smaller than page size in the kernel.}(hj_2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj1ubjM)}(hXThe allocated object address is aligned to at least ARCH_KMALLOC_MINALIGN bytes. For **size** of power of two bytes, the alignment is also guaranteed to be at least to the size. For other sizes, the alignment is guaranteed to be at least the largest power-of-two divisor of **size**.h](hUThe allocated object address is aligned to at least ARCH_KMALLOC_MINALIGN bytes. For }(hjn2hhhNhNubj)}(h**size**h]hsize}(hjv2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn2ubh of power of two bytes, the alignment is also guaranteed to be at least to the size. For other sizes, the alignment is guaranteed to be at least the largest power-of-two divisor of }(hjn2hhhNhNubj)}(h**size**h]hsize}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn2ubh.}(hjn2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj1ubjM)}(hThe **flags** argument may be one of the GFP flags defined at include/linux/gfp_types.h and described at :ref:`Documentation/core-api/mm-api.rst `h](hThe }(hj2hhhNhNubj)}(h **flags**h]hflags}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh\ argument may be one of the GFP flags defined at include/linux/gfp_types.h and described at }(hj2hhhNhNubh)}(h;:ref:`Documentation/core-api/mm-api.rst `h]hinline)}(hj2h]h!Documentation/core-api/mm-api.rst}(hj2hhhNhNubah}(h]h ](j9stdstd-refeh"]h$]h&]uh1j2hj2ubah}(h]h ]h"]h$]h&]refdocjE refdomainj2reftyperef refexplicitrefwarnjNmm-api-gfp-flagsuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj2ubeh}(h]h ]h"]h$]h&]uh1jLhj2hMhj1ubjM)}(h~The recommended usage of the **flags** is described at :ref:`Documentation/core-api/memory-allocation.rst `h](hThe recommended usage of the }(hj2hhhNhNubj)}(h **flags**h]hflags}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh is described at }(hj2hhhNhNubh)}(hG:ref:`Documentation/core-api/memory-allocation.rst `h]j2)}(hj3h]h,Documentation/core-api/memory-allocation.rst}(hj3hhhNhNubah}(h]h ](j9stdstd-refeh"]h$]h&]uh1j2hj2ubah}(h]h ]h"]h$]h&]refdocjE refdomainj 3reftyperef refexplicitrefwarnjNmemory_allocationuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj2ubeh}(h]h ]h"]h$]h&]uh1jLhj3hMhj1ubjM)}(h5Below is a brief outline of the most useful GFP flagsh]h5Below is a brief outline of the most useful GFP flags}(hj%3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj1ubj)}(hhh](j)}(h6``GFP_KERNEL`` Allocate normal kernel ram. May sleep. h](j)}(h``GFP_KERNEL``h]jS)}(hj=3h]h GFP_KERNEL}(hj?3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;3ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj73ubj)}(hhh]jM)}(h&Allocate normal kernel ram. May sleep.h]h&Allocate normal kernel ram. May sleep.}(hjV3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjR3hMhjS3ubah}(h]h ]h"]h$]h&]uh1jhj73ubeh}(h]h ]h"]h$]h&]uh1jhjR3hMhj43ubj)}(h*``GFP_NOWAIT`` Allocation will not sleep. h](j)}(h``GFP_NOWAIT``h]jS)}(hjv3h]h GFP_NOWAIT}(hjx3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjt3ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjp3ubj)}(hhh]jM)}(hAllocation will not sleep.h]hAllocation will not sleep.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjp3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj43ubj)}(hD``GFP_ATOMIC`` Allocation will not sleep. May use emergency pools. h](j)}(h``GFP_ATOMIC``h]jS)}(hj3h]h GFP_ATOMIC}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj3ubj)}(hhh]jM)}(h4Allocation will not sleep. May use emergency pools.h]h4Allocation will not sleep. May use emergency pools.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj43ubeh}(h]h ]h"]h$]h&]uh1jhj1ubjM)}(hjAlso it is possible to set different flags by OR'ing in one or more of the following additional **flags**:h](hbAlso it is possible to set different flags by OR’ing in one or more of the following additional }(hj3hhhNhNubj)}(h **flags**h]hflags}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh:}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj1ubj)}(hhh](j)}(hO``__GFP_ZERO`` Zero the allocated memory before returning. Also see kzalloc(). h](j)}(h``__GFP_ZERO``h]jS)}(hj4h]h __GFP_ZERO}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj 4ubj)}(hhh]jM)}(h?Zero the allocated memory before returning. Also see kzalloc().h]h?Zero the allocated memory before returning. Also see kzalloc().}(hj+4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'4hMhj(4ubah}(h]h ]h"]h$]h&]uh1jhj 4ubeh}(h]h ]h"]h$]h&]uh1jhj'4hMhj 4ubj)}(hN``__GFP_HIGH`` This allocation has high priority and may use emergency pools. h](j)}(h``__GFP_HIGH``h]jS)}(hjK4h]h __GFP_HIGH}(hjM4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjI4ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjE4ubj)}(hhh]jM)}(h>This allocation has high priority and may use emergency pools.h]h>This allocation has high priority and may use emergency pools.}(hjd4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`4hMhja4ubah}(h]h ]h"]h$]h&]uh1jhjE4ubeh}(h]h ]h"]h$]h&]uh1jhj`4hMhj 4ubj)}(hh``__GFP_NOFAIL`` Indicate that this allocation is in no way allowed to fail (think twice before using). h](j)}(h``__GFP_NOFAIL``h]jS)}(hj4h]h __GFP_NOFAIL}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj~4ubj)}(hhh]jM)}(hVIndicate that this allocation is in no way allowed to fail (think twice before using).h]hVIndicate that this allocation is in no way allowed to fail (think twice before using).}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj4ubah}(h]h ]h"]h$]h&]uh1jhj~4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj 4ubj)}(hP``__GFP_NORETRY`` If memory is not immediately available, then give up at once. h](j)}(h``__GFP_NORETRY``h]jS)}(hj4h]h __GFP_NORETRY}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj4ubj)}(hhh]jM)}(h=If memory is not immediately available, then give up at once.h]h=If memory is not immediately available, then give up at once.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj 4ubj)}(h@``__GFP_NOWARN`` If allocation fails, don't issue any warnings. h](j)}(h``__GFP_NOWARN``h]jS)}(hj4h]h __GFP_NOWARN}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj4ubj)}(hhh]jM)}(h.If allocation fails, don't issue any warnings.h]h0If allocation fails, don’t issue any warnings.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj 5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj 5hMhj 4ubj)}(hV``__GFP_RETRY_MAYFAIL`` Try really hard to succeed the allocation but fail eventually.h](j)}(h``__GFP_RETRY_MAYFAIL``h]jS)}(hj15h]h__GFP_RETRY_MAYFAIL}(hj35hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj/5ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj+5ubj)}(hhh]jM)}(h>Try really hard to succeed the allocation but fail eventually.h]h>Try really hard to succeed the allocation but fail eventually.}(hjJ5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjF5hMhjG5ubah}(h]h ]h"]h$]h&]uh1jhj+5ubeh}(h]h ]h"]h$]h&]uh1jhjF5hMhj 4ubeh}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmalloc_nolock (C function)c.kmalloc_nolockhNtauh1hhjihhhNhNubh)}(hhh](h)}(h>void * kmalloc_nolock (size_t size, gfp_t gfp_flags, int node)h]h)}(h8hM hjihhubj)}(hXP**Parameters** ``KMALLOC`` which size-based kmalloc wrapper to allocate with. ``GFP`` GFP flags for the allocation. ``TYPE`` type to allocate space for. ``COUNT`` how many **TYPE** objects to allocate. **Return** Newly allocated pointer to (first) **TYPE** of **COUNT**-many allocated **TYPE** objects, or NULL on failure.h](jM)}(h**Parameters**h]j)}(hjK8h]h Parameters}(hjM8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI8ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM$hjE8ubj)}(hhh](j)}(h?``KMALLOC`` which size-based kmalloc wrapper to allocate with. h](j)}(h ``KMALLOC``h]jS)}(hjj8h]hKMALLOC}(hjl8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjh8ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM!hjd8ubj)}(hhh]jM)}(h2which size-based kmalloc wrapper to allocate with.h]h2which size-based kmalloc wrapper to allocate with.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hM!hj8ubah}(h]h ]h"]h$]h&]uh1jhjd8ubeh}(h]h ]h"]h$]h&]uh1jhj8hM!hja8ubj)}(h&``GFP`` GFP flags for the allocation. h](j)}(h``GFP``h]jS)}(hj8h]hGFP}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM"hj8ubj)}(hhh]jM)}(hGFP flags for the allocation.h]hGFP flags for the allocation.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hM"hj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hM"hja8ubj)}(h%``TYPE`` type to allocate space for. h](j)}(h``TYPE``h]jS)}(hj8h]hTYPE}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM#hj8ubj)}(hhh]jM)}(htype to allocate space for.h]htype to allocate space for.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hM#hj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hM#hja8ubj)}(h1``COUNT`` how many **TYPE** objects to allocate. h](j)}(h ``COUNT``h]jS)}(hj9h]hCOUNT}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM$hj9ubj)}(hhh]jM)}(h&how many **TYPE** objects to allocate.h](h how many }(hj.9hhhNhNubj)}(h**TYPE**h]hTYPE}(hj69hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.9ubh objects to allocate.}(hj.9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj*9hM$hj+9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj*9hM$hja8ubeh}(h]h ]h"]h$]h&]uh1jhjE8ubjM)}(h **Return**h]j)}(hjb9h]hReturn}(hjd9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`9ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM&hjE8ubjM)}(hmNewly allocated pointer to (first) **TYPE** of **COUNT**-many allocated **TYPE** objects, or NULL on failure.h](h#Newly allocated pointer to (first) }(hjx9hhhNhNubj)}(h**TYPE**h]hTYPE}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx9ubh of }(hjx9hhhNhNubj)}(h **COUNT**h]hCOUNT}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx9ubh-many allocated }(hjx9hhhNhNubj)}(h**TYPE**h]hTYPE}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx9ubh objects, or NULL on failure.}(hjx9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM&hjE8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__alloc_flex (C macro)c.__alloc_flexhNtauh1hhjihhhNhNubh)}(hhh](h)}(h __alloc_flexh]h)}(h __alloc_flexh]h)}(h __alloc_flexh]j)}(hj9h]h __alloc_flex}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj9hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM0ubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj9hhhj9hM0ubah}(h]j9ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj9hM0hj9hhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hj9hhhj9hM0ubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGj :jHj :jIjJjKuh1hhhhjihNhNubjM)}(h1``__alloc_flex (KMALLOC, GFP, TYPE, FAM, COUNT)``h]jS)}(hj:h]h-__alloc_flex (KMALLOC, GFP, TYPE, FAM, COUNT)}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM2hjihhubji)}(h6Allocate an object that has a trailing flexible array h]jM)}(h5Allocate an object that has a trailing flexible arrayh]h5Allocate an object that has a trailing flexible array}(hj-:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM0hj):ubah}(h]h ]h"]h$]h&]uh1jhhj;:hM0hjihhubj)}(hX%**Parameters** ``KMALLOC`` kmalloc wrapper function to use for allocation. ``GFP`` GFP flags for the allocation. ``TYPE`` type of structure to allocate space for. ``FAM`` The name of the flexible array member of **TYPE** structure. ``COUNT`` how many **FAM** elements to allocate space for. **Return** Newly allocated pointer to **TYPE** with **COUNT**-many trailing **FAM** elements, or NULL on failure or if **COUNT** cannot be represented by the member of **TYPE** that counts the **FAM** elements (annotated via __counted_by()).h](jM)}(h**Parameters**h]j)}(hjH:h]h Parameters}(hjJ:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF:ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM4hjB:ubj)}(hhh](j)}(h<``KMALLOC`` kmalloc wrapper function to use for allocation. h](j)}(h ``KMALLOC``h]jS)}(hjg:h]hKMALLOC}(hji:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje:ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM1hja:ubj)}(hhh]jM)}(h/kmalloc wrapper function to use for allocation.h]h/kmalloc wrapper function to use for allocation.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|:hM1hj}:ubah}(h]h ]h"]h$]h&]uh1jhja:ubeh}(h]h ]h"]h$]h&]uh1jhj|:hM1hj^:ubj)}(h&``GFP`` GFP flags for the allocation. h](j)}(h``GFP``h]jS)}(hj:h]hGFP}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM2hj:ubj)}(hhh]jM)}(hGFP flags for the allocation.h]hGFP flags for the allocation.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hM2hj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hM2hj^:ubj)}(h2``TYPE`` type of structure to allocate space for. h](j)}(h``TYPE``h]jS)}(hj:h]hTYPE}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM3hj:ubj)}(hhh]jM)}(h(type of structure to allocate space for.h]h(type of structure to allocate space for.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hM3hj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hM3hj^:ubj)}(hE``FAM`` The name of the flexible array member of **TYPE** structure. h](j)}(h``FAM``h]jS)}(hj;h]hFAM}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM4hj ;ubj)}(hhh]jM)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMRhj=ubah}(h]h ]h"]h$]h&]uh1jhhj>hMRhjihhubj)}(hX+**Parameters** ``VAR_OR_TYPE`` Variable or type to allocate an array of. ``COUNT`` How many elements in the array. ``...`` optional GFP flags for the allocation (GFP_KERNEL when not specified). **Return** newly allocated pointer to array of **VAR_OR_TYPE** on success, or NULL on failure.h](jM)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMVhj>ubj)}(hhh](j)}(h:``VAR_OR_TYPE`` Variable or type to allocate an array of. h](j)}(h``VAR_OR_TYPE``h]jS)}(hj:>h]h VAR_OR_TYPE}(hj<>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8>ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMShj4>ubj)}(hhh]jM)}(h)Variable or type to allocate an array of.h]h)Variable or type to allocate an array of.}(hjS>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjO>hMShjP>ubah}(h]h ]h"]h$]h&]uh1jhj4>ubeh}(h]h ]h"]h$]h&]uh1jhjO>hMShj1>ubj)}(h*``COUNT`` How many elements in the array. h](j)}(h ``COUNT``h]jS)}(hjs>h]hCOUNT}(hju>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjq>ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMThjm>ubj)}(hhh]jM)}(hHow many elements in the array.h]hHow many elements in the array.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hMThj>ubah}(h]h ]h"]h$]h&]uh1jhjm>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMThj1>ubj)}(hO``...`` optional GFP flags for the allocation (GFP_KERNEL when not specified). h](j)}(h``...``h]jS)}(hj>h]h...}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMUhj>ubj)}(hhh]jM)}(hFoptional GFP flags for the allocation (GFP_KERNEL when not specified).h]hFoptional GFP flags for the allocation (GFP_KERNEL when not specified).}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hMUhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMUhj1>ubeh}(h]h ]h"]h$]h&]uh1jhj>ubjM)}(h **Return**h]j)}(hj>h]hReturn}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMWhj>ubjM)}(hSnewly allocated pointer to array of **VAR_OR_TYPE** on success, or NULL on failure.h](h$newly allocated pointer to array of }(hj>hhhNhNubj)}(h**VAR_OR_TYPE**h]h VAR_OR_TYPE}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh on success, or NULL on failure.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMWhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmalloc_flex (C macro)c.kmalloc_flexhNtauh1hhjihhhNhNubh)}(hhh](h)}(h kmalloc_flexh]h)}(h kmalloc_flexh]h)}(h kmalloc_flexh]j)}(hj8?h]h kmalloc_flex}(hjB?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>?ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:?hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM^ubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6?hhhjU?hM^ubah}(h]j1?ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjU?hM^hj3?hhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hj3?hhhjU?hM^ubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjn?jHjn?jIjJjKuh1hhhhjihNhNubjM)}(h/``kmalloc_flex (VAR_OR_TYPE, FAM, COUNT, ...)``h]jS)}(hjt?h]h+kmalloc_flex (VAR_OR_TYPE, FAM, COUNT, ...)}(hjv?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjr?ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM`hjihhubji)}(h;Allocate a single instance of the given flexible structure h]jM)}(h:Allocate a single instance of the given flexible structureh]h:Allocate a single instance of the given flexible structure}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM^hj?ubah}(h]h ]h"]h$]h&]uh1jhhj?hM^hjihhubj)}(hX3**Parameters** ``VAR_OR_TYPE`` Variable or type to allocate (with its flex array). ``FAM`` The name of the flexible array member of the structure. ``COUNT`` How many flexible array member elements are desired. ``...`` optional GFP flags for the allocation (GFP_KERNEL when not specified). **Return** newly allocated pointer to **VAR_OR_TYPE** on success, NULL on failure. If **FAM** has been annotated with __counted_by(), the allocation will immediately fail if **COUNT** is larger than what the type of the struct's counter variable can represent.h](jM)}(h**Parameters**h]j)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMbhj?ubj)}(hhh](j)}(hD``VAR_OR_TYPE`` Variable or type to allocate (with its flex array). h](j)}(h``VAR_OR_TYPE``h]jS)}(hj?h]h VAR_OR_TYPE}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj?ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM_hj?ubj)}(hhh]jM)}(h3Variable or type to allocate (with its flex array).h]h3Variable or type to allocate (with its flex array).}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj?hM_hj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hM_hj?ubj)}(h@``FAM`` The name of the flexible array member of the structure. h](j)}(h``FAM``h]jS)}(hj@h]hFAM}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj?ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM`hj?ubj)}(hhh]jM)}(h7The name of the flexible array member of the structure.h]h7The name of the flexible array member of the structure.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@hM`hj@ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj@hM`hj?ubj)}(h?``COUNT`` How many flexible array member elements are desired. h](j)}(h ``COUNT``h]jS)}(hj:@h]hCOUNT}(hj<@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8@ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMahj4@ubj)}(hhh]jM)}(h4How many flexible array member elements are desired.h]h4How many flexible array member elements are desired.}(hjS@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjO@hMahjP@ubah}(h]h ]h"]h$]h&]uh1jhj4@ubeh}(h]h ]h"]h$]h&]uh1jhjO@hMahj?ubj)}(hO``...`` optional GFP flags for the allocation (GFP_KERNEL when not specified). h](j)}(h``...``h]jS)}(hjs@h]h...}(hju@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjq@ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMbhjm@ubj)}(hhh]jM)}(hFoptional GFP flags for the allocation (GFP_KERNEL when not specified).h]hFoptional GFP flags for the allocation (GFP_KERNEL when not specified).}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@hMbhj@ubah}(h]h ]h"]h$]h&]uh1jhjm@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMbhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?ubjM)}(h **Return**h]j)}(hj@h]hReturn}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMdhj?ubjM)}(hnewly allocated pointer to **VAR_OR_TYPE** on success, NULL on failure. If **FAM** has been annotated with __counted_by(), the allocation will immediately fail if **COUNT** is larger than what the type of the struct's counter variable can represent.h](hnewly allocated pointer to }(hj@hhhNhNubj)}(h**VAR_OR_TYPE**h]h VAR_OR_TYPE}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh! on success, NULL on failure. If }(hj@hhhNhNubj)}(h**FAM**h]hFAM}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubhQ has been annotated with __counted_by(), the allocation will immediately fail if }(hj@hhhNhNubj)}(h **COUNT**h]hCOUNT}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubhO is larger than what the type of the struct’s counter variable can represent.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMdhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmalloc_array (C function)c.kmalloc_arrayhNtauh1hhjihhhNhNubh)}(hhh](h)}(h9void * kmalloc_array (size_t n, size_t size, gfp_t flags)h]h)}(h7void *kmalloc_array(size_t n, size_t size, gfp_t flags)h](j)}(hvoidh]hvoid}(hj)AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%AhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hj8AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Ahhhj7AhMubjF )}(hjI h]h*}(hjFAhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj%Ahhhj7AhMubh)}(h kmalloc_arrayh]j)}(h kmalloc_arrayh]h kmalloc_array}(hjWAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSAubah}(h]h ](jjeh"]h$]h&]jjuh1hhj%Ahhhj7AhMubj )}(h$(size_t n, size_t size, gfp_t flags)h](j )}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjvAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsAubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjxAmodnameN classnameNjpjs)}jv]jy)}jljYAsbc.kmalloc_arrayasbuh1hhjoAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoAubj)}(hjh]hn}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkAubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjAmodnameN classnameNjpjs)}jv]jAc.kmalloc_arrayasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hsizeh]hsize}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkAubj )}(h gfp_t flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj BmodnameN classnameNjpjs)}jv]jAc.kmalloc_arrayasbuh1hhjBubj)}(h h]h }(hj%BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hflagsh]hflags}(hj3BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkAubeh}(h]h ]h"]h$]h&]jjuh1j hj%Ahhhj7AhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj!Ahhhj7AhMubah}(h]jAah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj7AhMhjAhhubj4)}(hhh]jM)}(hallocate memory for an array.h]hallocate memory for an array.}(hj]BhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjZBhhubah}(h]h ]h"]h$]h&]uh1j3hjAhhhj7AhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjuBjHjuBjIjJjKuh1hhhhjihNhNubj)}(h**Parameters** ``size_t n`` number of elements. ``size_t size`` element size. ``gfp_t flags`` the type of memory to allocate (see kmalloc).h](jM)}(h**Parameters**h]j)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Bubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjyBubj)}(hhh](j)}(h!``size_t n`` number of elements. h](j)}(h ``size_t n``h]jS)}(hjBh]hsize_t n}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjBubj)}(hhh]jM)}(hnumber of elements.h]hnumber of elements.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjBubj)}(h``size_t size`` element size. h](j)}(h``size_t size``h]jS)}(hjBh]h size_t size}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjBubj)}(hhh]jM)}(h element size.h]h element size.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjBubj)}(h=``gfp_t flags`` the type of memory to allocate (see kmalloc).h](j)}(h``gfp_t flags``h]jS)}(hjCh]h gfp_t flags}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj Cubj)}(hhh]jM)}(h-the type of memory to allocate (see kmalloc).h]h-the type of memory to allocate (see kmalloc).}(hj)ChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj&Cubah}(h]h ]h"]h$]h&]uh1jhj Cubeh}(h]h ]h"]h$]h&]uh1jhj%ChMhjBubeh}(h]h ]h"]h$]h&]uh1jhjyBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkrealloc_array (C function)c.krealloc_arrayhNtauh1hhjihhhNhNubh)}(hhh](h)}(hKvoid * krealloc_array (void *p, size_t new_n, size_t new_size, gfp_t flags)h]h)}(hIvoid *krealloc_array(void *p, size_t new_n, size_t new_size, gfp_t flags)h](j)}(hvoidh]hvoid}(hjjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfChhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hjyChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfChhhjxChMubjF )}(hjI h]h*}(hjChhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjfChhhjxChMubh)}(hkrealloc_arrayh]j)}(hkrealloc_arrayh]hkrealloc_array}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1hhjfChhhjxChMubj )}(h5(void *p, size_t new_n, size_t new_size, gfp_t flags)h](j )}(hvoid *ph](j)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjF )}(hjI h]h*}(hjChhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjCubj)}(hjR h]hp}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCubj )}(h size_t new_nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjCmodnameN classnameNjpjs)}jv]jy)}jljCsbc.krealloc_arrayasbuh1hhjCubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hnew_nh]hnew_n}(hj&DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCubj )}(hsize_t new_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjBDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Dubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDDmodnameN classnameNjpjs)}jv]jDc.krealloc_arrayasbuh1hhj;Dubj)}(h h]h }(hj`DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Dubj)}(hnew_sizeh]hnew_size}(hjnDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Dubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCubj )}(h gfp_t flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDmodnameN classnameNjpjs)}jv]jDc.krealloc_arrayasbuh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hflagsh]hflags}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCubeh}(h]h ]h"]h$]h&]jjuh1j hjfChhhjxChMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjbChhhjxChMubah}(h]j]Cah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjxChMhj_Chhubj4)}(hhh]jM)}(hreallocate memory for an array.h]hreallocate memory for an array.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjDhhubah}(h]h ]h"]h$]h&]uh1j3hj_ChhhjxChMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjDjHjDjIjJjKuh1hhhhjihNhNubj)}(hX**Parameters** ``void *p`` pointer to the memory chunk to reallocate ``size_t new_n`` new number of elements to alloc ``size_t new_size`` new size of a single member of the array ``gfp_t flags`` the type of memory to allocate (see kmalloc) **Description** If __GFP_ZERO logic is requested, callers must ensure that, starting with the initial memory allocation, every subsequent call to this API for the same memory allocation is flagged with __GFP_ZERO. Otherwise, it is possible that __GFP_ZERO is not fully honored by this API. See krealloc_noprof() for further details. In any case, the contents of the object pointed to are preserved up to the lesser of the new and old sizes.h](jM)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjDubj)}(hhh](j)}(h6``void *p`` pointer to the memory chunk to reallocate h](j)}(h ``void *p``h]jS)}(hj!Eh]hvoid *p}(hj#EhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjEubj)}(hhh]jM)}(h)pointer to the memory chunk to reallocateh]h)pointer to the memory chunk to reallocate}(hj:EhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6EhMhj7Eubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj6EhMhjEubj)}(h1``size_t new_n`` new number of elements to alloc h](j)}(h``size_t new_n``h]jS)}(hjZEh]h size_t new_n}(hj\EhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjXEubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjTEubj)}(hhh]jM)}(hnew number of elements to alloch]hnew number of elements to alloc}(hjsEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjoEhMhjpEubah}(h]h ]h"]h$]h&]uh1jhjTEubeh}(h]h ]h"]h$]h&]uh1jhjoEhMhjEubj)}(h=``size_t new_size`` new size of a single member of the array h](j)}(h``size_t new_size``h]jS)}(hjEh]hsize_t new_size}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjEubj)}(hhh]jM)}(h(new size of a single member of the arrayh]h(new size of a single member of the array}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjEubj)}(h=``gfp_t flags`` the type of memory to allocate (see kmalloc) h](j)}(h``gfp_t flags``h]jS)}(hjEh]h gfp_t flags}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjEubj)}(hhh]jM)}(h,the type of memory to allocate (see kmalloc)h]h,the type of memory to allocate (see kmalloc)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjEubeh}(h]h ]h"]h$]h&]uh1jhjDubjM)}(h**Description**h]j)}(hjFh]h Description}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjDubjM)}(hXIf __GFP_ZERO logic is requested, callers must ensure that, starting with the initial memory allocation, every subsequent call to this API for the same memory allocation is flagged with __GFP_ZERO. Otherwise, it is possible that __GFP_ZERO is not fully honored by this API.h]hXIf __GFP_ZERO logic is requested, callers must ensure that, starting with the initial memory allocation, every subsequent call to this API for the same memory allocation is flagged with __GFP_ZERO. Otherwise, it is possible that __GFP_ZERO is not fully honored by this API.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjDubjM)}(h*See krealloc_noprof() for further details.h]h*See krealloc_noprof() for further details.}(hj,FhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjDubjM)}(hkIn any case, the contents of the object pointed to are preserved up to the lesser of the new and old sizes.h]hkIn any case, the contents of the object pointed to are preserved up to the lesser of the new and old sizes.}(hj;FhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkcalloc (C macro) c.kcallochNtauh1hܕhjihhhNhNubh)}(hhh](h)}(hkcalloch]h)}(hkcalloch]h)}(hkcalloch]j)}(hjdFh]hkcalloc}(hjnFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjFubah}(h]h ](jjeh"]h$]h&]jjuh1hhjfFhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjbFhhhjFhMubah}(h]j]Fah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjFhMhj_Fhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hj_FhhhjFhMubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjFjHjFjIjJjKuh1hhhhjihNhNubjM)}(h``kcalloc (n, size, flags)``h]jS)}(hjFh]hkcalloc (n, size, flags)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjihhubji)}(h9allocate memory for an array. The memory is set to zero. h]jM)}(h8allocate memory for an array. The memory is set to zero.h]h8allocate memory for an array. The memory is set to zero.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjFubah}(h]h ]h"]h$]h&]uh1jhhjFhMhjihhubj)}(h**Parameters** ``n`` number of elements. ``size`` element size. ``flags`` the type of memory to allocate (see kmalloc).h](jM)}(h**Parameters**h]j)}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjFubj)}(hhh](j)}(h``n`` number of elements. h](j)}(h``n``h]jS)}(hjFh]hn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjFubj)}(hhh]jM)}(hnumber of elements.h]hnumber of elements.}(hj GhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj GhMhj Gubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhj GhMhjFubj)}(h``size`` element size. h](j)}(h``size``h]jS)}(hj-Gh]hsize}(hj/GhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj+Gubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj'Gubj)}(hhh]jM)}(h element size.h]h element size.}(hjFGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBGhMhjCGubah}(h]h ]h"]h$]h&]uh1jhj'Gubeh}(h]h ]h"]h$]h&]uh1jhjBGhMhjFubj)}(h7``flags`` the type of memory to allocate (see kmalloc).h](j)}(h ``flags``h]jS)}(hjfGh]hflags}(hjhGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdGubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj`Gubj)}(hhh]jM)}(h-the type of memory to allocate (see kmalloc).h]h-the type of memory to allocate (see kmalloc).}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj|Gubah}(h]h ]h"]h$]h&]uh1jhj`Gubeh}(h]h ]h"]h$]h&]uh1jhj{GhMhjFubeh}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkzalloc (C function) c.kzallochNtauh1hhjihhhNhNubh)}(hhh](h)}(h)void * kzalloc (size_t size, gfp_t flags)h]h)}(h'void *kzalloc(size_t size, gfp_t flags)h](j)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjGhMubjF )}(hjI h]h*}(hjGhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjGhhhjGhMubh)}(hkzalloch]j)}(hkzalloch]hkzalloc}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1hhjGhhhjGhMubj )}(h(size_t size, gfp_t flags)h](j )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Hubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjHmodnameN classnameNjpjs)}jv]jy)}jljGsb c.kzallocasbuh1hhjHubj)}(h h]h }(hj-HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hsizeh]hsize}(hj;HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubj )}(h gfp_t flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjWHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTHubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYHmodnameN classnameNjpjs)}jv]j)H c.kzallocasbuh1hhjPHubj)}(h h]h }(hjuHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPHubj)}(hflagsh]hflags}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubeh}(h]h ]h"]h$]h&]jjuh1j hjGhhhjGhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjGhhhjGhMubah}(h]jGah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjGhMhjGhhubj4)}(hhh]jM)}(h+allocate memory. The memory is set to zero.h]h+allocate memory. The memory is set to zero.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjHhhubah}(h]h ]h"]h$]h&]uh1j3hjGhhhjGhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjHjHjHjIjJjKuh1hhhhjihNhNubj)}(h**Parameters** ``size_t size`` how many bytes of memory are required. ``gfp_t flags`` the type of memory to allocate (see kmalloc).h](jM)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjHubj)}(hhh](j)}(h7``size_t size`` how many bytes of memory are required. h](j)}(h``size_t size``h]jS)}(hjHh]h size_t size}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjHubj)}(hhh]jM)}(h&how many bytes of memory are required.h]h&how many bytes of memory are required.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjHubj)}(h=``gfp_t flags`` the type of memory to allocate (see kmalloc).h](j)}(h``gfp_t flags``h]jS)}(hj'Ih]h gfp_t flags}(hj)IhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%Iubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj!Iubj)}(hhh]jM)}(h-the type of memory to allocate (see kmalloc).h]h-the type of memory to allocate (see kmalloc).}(hj@IhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj=Iubah}(h]h ]h"]h$]h&]uh1jhj!Iubeh}(h]h ]h"]h$]h&]uh1jhjpointer to the allocated memory of ``NULL`` in case of failureh](h#pointer to the allocated memory of }(hjKhhhNhNubjS)}(h``NULL``h]hNULL}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubh in case of failure}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM0hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!kvrealloc_node_align (C function)c.kvrealloc_node_alignhNtauh1hhjihhhNhNubh)}(hhh](h)}(hcvoid * kvrealloc_node_align (const void *p, size_t size, unsigned long align, gfp_t flags, int nid)h]h)}(havoid *kvrealloc_node_align(const void *p, size_t size, unsigned long align, gfp_t flags, int nid)h](j)}(hvoidh]hvoid}(hj-LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)LhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMWubj)}(h h]h }(hjFree an object which was previously allocated from this cache.h]h>Free an object which was previously allocated from this cache.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMlhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hksize (C function)c.ksizehNtauh1hhjihhhNhNubh)}(hhh](h)}(hsize_t ksize (const void *objp)h]h)}(hsize_t ksize(const void *objp)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjVmodnameN classnameNjpjs)}jv]jy)}jlksizesbc.ksizeasbuh1hhjVhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhMubh)}(hksizeh]j)}(hjVh]hksize}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1hhjVhhhjVhMubj )}(h(const void *objp)h]j )}(hconst void *objph](j5)}(hjh]hconst}(hjWhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj Wubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Wubj)}(hvoidh]hvoid}(hj*WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Wubj)}(h h]h }(hj8WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj WubjF )}(hjI h]h*}(hjFWhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj Wubj)}(hobjph]hobjp}(hjSWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Wubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubah}(h]h ]h"]h$]h&]jjuh1j hjVhhhjVhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjVhhhjVhMubah}(h]jVah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjVhMhjVhhubj4)}(hhh]h bullet_list)}(hhh]j/)}(h)Report full size of underlying allocationh]jM)}(hjWh]h)Report full size of underlying allocation}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjWubah}(h]h ]h"]h$]h&]uh1j/hjWhhhjWhNubah}(h]h ]h"]h$]h&]bullet-uh1j}WhjWhMhjzWhhubah}(h]h ]h"]h$]h&]uh1j3hjVhhhjVhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjWjHjWjIjJjKuh1hhhhjihNhNubj)}(hX**Parameters** ``const void *objp`` pointer to the object **Description** This should only be used internally to query the true size of allocations. It is not meant to be a way to discover the usable size of an allocation after the fact. Instead, use kmalloc_size_roundup(). Using memory beyond the originally requested allocation size may trigger KASAN, UBSAN_BOUNDS, and/or FORTIFY_SOURCE. **Return** size of the actual memory used by **objp** in bytesh](jM)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjWubj)}(hhh]j)}(h+``const void *objp`` pointer to the object h](j)}(h``const void *objp``h]jS)}(hjWh]hconst void *objp}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjWubj)}(hhh]jM)}(hpointer to the objecth]hpointer to the object}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubjM)}(h**Description**h]j)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Xubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjWubjM)}(hX=This should only be used internally to query the true size of allocations. It is not meant to be a way to discover the usable size of an allocation after the fact. Instead, use kmalloc_size_roundup(). Using memory beyond the originally requested allocation size may trigger KASAN, UBSAN_BOUNDS, and/or FORTIFY_SOURCE.h]hX=This should only be used internally to query the true size of allocations. It is not meant to be a way to discover the usable size of an allocation after the fact. Instead, use kmalloc_size_roundup(). Using memory beyond the originally requested allocation size may trigger KASAN, UBSAN_BOUNDS, and/or FORTIFY_SOURCE.}(hj%XhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjWubjM)}(h **Return**h]j)}(hj6Xh]hReturn}(hj8XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4Xubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjWubjM)}(h3size of the actual memory used by **objp** in bytesh](h"size of the actual memory used by }(hjLXhhhNhNubj)}(h**objp**h]hobjp}(hjTXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLXubh in bytes}(hjLXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfree (C function)c.kfreehNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid kfree (const void *object)h]h)}(hvoid kfree(const void *object)h](j)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM&ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjXhM&ubh)}(hkfreeh]j)}(hkfreeh]hkfree}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1hhjXhhhjXhM&ubj )}(h(const void *object)h]j )}(hconst void *objecth](j5)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjF )}(hjI h]h*}(hjYhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjXubj)}(hobjecth]hobject}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjXubah}(h]h ]h"]h$]h&]jjuh1j hjXhhhjXhM&ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjXhhhjXhM&ubah}(h]jXah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjXhM&hjXhhubj4)}(hhh]jM)}(h free previously allocated memoryh]h free previously allocated memory}(hj8YhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM&hj5Yhhubah}(h]h ]h"]h$]h&]uh1j3hjXhhhjXhM&ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjPYjHjPYjIjJjKuh1hhhhjihNhNubj)}(h**Parameters** ``const void *object`` pointer returned by kmalloc(), kmalloc_nolock(), or kmem_cache_alloc() **Description** If **object** is NULL, no operation is performed.h](jM)}(h**Parameters**h]j)}(hjZYh]h Parameters}(hj\YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXYubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM*hjTYubj)}(hhh]j)}(h^``const void *object`` pointer returned by kmalloc(), kmalloc_nolock(), or kmem_cache_alloc() h](j)}(h``const void *object``h]jS)}(hjyYh]hconst void *object}(hj{YhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwYubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM'hjsYubj)}(hhh]jM)}(hFpointer returned by kmalloc(), kmalloc_nolock(), or kmem_cache_alloc()h]hFpointer returned by kmalloc(), kmalloc_nolock(), or kmem_cache_alloc()}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYhM'hjYubah}(h]h ]h"]h$]h&]uh1jhjsYubeh}(h]h ]h"]h$]h&]uh1jhjYhM'hjpYubah}(h]h ]h"]h$]h&]uh1jhjTYubjM)}(h**Description**h]j)}(hjYh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM)hjTYubjM)}(h1If **object** is NULL, no operation is performed.h](hIf }(hjYhhhNhNubj)}(h **object**h]hobject}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh$ is NULL, no operation is performed.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM(hjTYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkvfree (C function)c.kvfreehNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid kvfree (const void *addr)h]h)}(hvoid kvfree(const void *addr)h](j)}(hvoidh]hvoid}(hj ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM8ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjZhM8ubh)}(hkvfreeh]j)}(hkvfreeh]hkvfree}(hj,ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Zubah}(h]h ](jjeh"]h$]h&]jjuh1hhjZhhhjZhM8ubj )}(h(const void *addr)h]j )}(hconst void *addrh](j5)}(hjh]hconst}(hjHZhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDZubj)}(h h]h }(hjUZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDZubj)}(hvoidh]hvoid}(hjcZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDZubj)}(h h]h }(hjqZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDZubjF )}(hjI h]h*}(hjZhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDZubj)}(haddrh]haddr}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDZubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@Zubah}(h]h ]h"]h$]h&]jjuh1j hjZhhhjZhM8ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjZhhhjZhM8ubah}(h]jYah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjZhM8hjZhhubj4)}(hhh]jM)}(h Free memory.h]h Free memory.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM8hjZhhubah}(h]h ]h"]h$]h&]uh1j3hjZhhhjZhM8ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjZjHjZjIjJjKuh1hhhhjihNhNubj)}(hXP**Parameters** ``const void *addr`` Pointer to allocated memory. **Description** kvfree frees memory allocated by any of vmalloc(), kmalloc() or kvmalloc(). It is slightly more efficient to use kfree() or vfree() if you are certain that you know which one to use. **Context** Either preemptible task context or not-NMI interrupt.h](jM)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM<hjZubj)}(hhh]j)}(h2``const void *addr`` Pointer to allocated memory. h](j)}(h``const void *addr``h]jS)}(hjZh]hconst void *addr}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM9hjZubj)}(hhh]jM)}(hPointer to allocated memory.h]hPointer to allocated memory.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj [hM9hj [ubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhj [hM9hjZubah}(h]h ]h"]h$]h&]uh1jhjZubjM)}(h**Description**h]j)}(hj2[h]h Description}(hj4[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0[ubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM;hjZubjM)}(hkvfree frees memory allocated by any of vmalloc(), kmalloc() or kvmalloc(). It is slightly more efficient to use kfree() or vfree() if you are certain that you know which one to use.h]hkvfree frees memory allocated by any of vmalloc(), kmalloc() or kvmalloc(). It is slightly more efficient to use kfree() or vfree() if you are certain that you know which one to use.}(hjH[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM:hjZubjM)}(h **Context**h]j)}(hjY[h]hContext}(hj[[hhhNhNubah}(h]h ]h"]h$]h&>]uh1jhjW[ubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM>hjZubjM)}(h5Either preemptible task context or not-NMI interrupt.h]h5Either preemptible task context or not-NMI interrupt.}(hjo[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM?hjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkvfree_atomic (C function)c.kvfree_atomichNtauh1hhjihhhNhNubh)}(hhh](h)}(h%void kvfree_atomic (const void *addr)h]h)}(h$void kvfree_atomic(const void *addr)h](j)}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMKubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhj[hMKubh)}(h kvfree_atomich]j)}(h kvfree_atomich]h kvfree_atomic}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj[hhhj[hMKubj )}(h(const void *addr)h]j )}(hconst void *addrh](j5)}(hjh]hconst}(hj[hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjF )}(hjI h]h*}(hj\hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj[ubj)}(haddrh]haddr}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj[ubah}(h]h ]h"]h$]h&]jjuh1j hj[hhhj[hMKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj[hhhj[hMKubah}(h]j[ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj[hMKhj[hhubj4)}(hhh]jM)}(h Free memory.h]h Free memory.}(hjI\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMKhjF\hhubah}(h]h ]h"]h$]h&]uh1j3hj[hhhj[hMKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGja\jHja\jIjJjKuh1hhhhjihNhNubj)}(h**Parameters** ``const void *addr`` Pointer to allocated memory. **Description** Same as kvfree(), but uses vfree_atomic() for vmalloc backed memory. Must not be called from NMI context.h](jM)}(h**Parameters**h]j)}(hjk\h]h Parameters}(hjm\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji\ubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMOhje\ubj)}(hhh]j)}(h2``const void *addr`` Pointer to allocated memory. h](j)}(h``const void *addr``h]jS)}(hj\h]hconst void *addr}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\ubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMLhj\ubj)}(hhh]jM)}(hPointer to allocated memory.h]hPointer to allocated memory.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\hMLhj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMLhj\ubah}(h]h ]h"]h$]h&]uh1jhje\ubjM)}(h**Description**h]j)}(hj\h]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMNhje\ubjM)}(hiSame as kvfree(), but uses vfree_atomic() for vmalloc backed memory. Must not be called from NMI context.h]hiSame as kvfree(), but uses vfree_atomic() for vmalloc backed memory. Must not be called from NMI context.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMMhje\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkvfree_sensitive (C function)c.kvfree_sensitivehNtauh1hhjihhhNhNubh)}(hhh](h)}(h4void kvfree_sensitive (const void *addr, size_t len)h]h)}(h3void kvfree_sensitive(const void *addr, size_t len)h](j)}(hvoidh]hvoid}(hj ]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM[ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj]hM[ubh)}(hkvfree_sensitiveh]j)}(hkvfree_sensitiveh]hkvfree_sensitive}(hj+]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj']ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj]hhhj]hM[ubj )}(h(const void *addr, size_t len)h](j )}(hconst void *addrh](j5)}(hjh]hconst}(hjG]hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjC]ubj)}(h h]h }(hjT]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC]ubj)}(hvoidh]hvoid}(hjb]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC]ubj)}(h h]h }(hjp]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC]ubjF )}(hjI h]h*}(hj~]hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjC]ubj)}(haddrh]haddr}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj?]ubj )}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj]modnameN classnameNjpjs)}jv]jy)}jlj-]sbc.kvfree_sensitiveasbuh1hhj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hlenh]hlen}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj?]ubeh}(h]h ]h"]h$]h&]jjuh1j hj]hhhj]hM[ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj]hhhj]hM[ubah}(h]j\ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj]hM[hj\hhubj4)}(hhh]jM)}(h4Free a data object containing sensitive information.h]h4Free a data object containing sensitive information.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM[hj]hhubah}(h]h ]h"]h$]h&]uh1j3hj\hhhj]hM[ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj^jHj^jIjJjKuh1hhhhjihNhNubj)}(hXE**Parameters** ``const void *addr`` address of the data object to be freed. ``size_t len`` length of the data object. **Description** Use the special memzero_explicit() function to clear the content of a kvmalloc'ed object containing sensitive data to make sure that the compiler won't optimize out the data clearing.h](jM)}(h**Parameters**h]j)}(hj!^h]h Parameters}(hj#^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM_hj^ubj)}(hhh](j)}(h=``const void *addr`` address of the data object to be freed. h](j)}(h``const void *addr``h]jS)}(hj@^h]hconst void *addr}(hjB^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>^ubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM\hj:^ubj)}(hhh]jM)}(h'address of the data object to be freed.h]h'address of the data object to be freed.}(hjY^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjU^hM\hjV^ubah}(h]h ]h"]h$]h&]uh1jhj:^ubeh}(h]h ]h"]h$]h&]uh1jhjU^hM\hj7^ubj)}(h*``size_t len`` length of the data object. h](j)}(h``size_t len``h]jS)}(hjy^h]h size_t len}(hj{^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjw^ubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM]hjs^ubj)}(hhh]jM)}(hlength of the data object.h]hlength of the data object.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hM]hj^ubah}(h]h ]h"]h$]h&]uh1jhjs^ubeh}(h]h ]h"]h$]h&]uh1jhj^hM]hj7^ubeh}(h]h ]h"]h$]h&]uh1jhj^ubjM)}(h**Description**h]j)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM_hj^ubjM)}(hUse the special memzero_explicit() function to clear the content of a kvmalloc'ed object containing sensitive data to make sure that the compiler won't optimize out the data clearing.h]hUse the special memzero_explicit() function to clear the content of a kvmalloc’ed object containing sensitive data to make sure that the compiler won’t optimize out the data clearing.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM^hj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"kmem_cache_alloc_bulk (C function)c.kmem_cache_alloc_bulkhNtauh1hhjihhhNhNubh)}(hhh](h)}(hUbool kmem_cache_alloc_bulk (struct kmem_cache *s, gfp_t flags, size_t size, void **p)h]h)}(hTbool kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p)h](j)}(hj.h]hbool}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj_hMubh)}(hkmem_cache_alloc_bulkh]j)}(hkmem_cache_alloc_bulkh]hkmem_cache_alloc_bulk}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj^hhhj_hMubj )}(h:(struct kmem_cache *s, gfp_t flags, size_t size, void **p)h](j )}(hstruct kmem_cache *sh](j5)}(hj8h]hstruct}(hj5_hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj1_ubj)}(h h]h }(hjB_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1_ubh)}(hhh]j)}(h kmem_cacheh]h kmem_cache}(hjS_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjU_modnameN classnameNjpjs)}jv]jy)}jlj_sbc.kmem_cache_alloc_bulkasbuh1hhj1_ubj)}(h h]h }(hjs_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1_ubjF )}(hjI h]h*}(hj_hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1_ubj)}(hjRh]hs}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1_ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-_ubj )}(h gfp_t flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]jo_c.kmem_cache_alloc_bulkasbuh1hhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hflagsh]hflags}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-_ubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]jo_c.kmem_cache_alloc_bulkasbuh1hhj_ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hsizeh]hsize}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-_ubj )}(hvoid **ph](j)}(hvoidh]hvoid}(hj6`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2`ubj)}(h h]h }(hjD`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2`ubjF )}(hjI h]h*}(hjR`hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2`ubjF )}(hjI h]h*}(hj_`hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2`ubj)}(hjR h]hp}(hjl`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-_ubeh}(h]h ]h"]h$]h&]jjuh1j hj^hhhj_hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj^hhhj_hMubah}(h]j^ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj_hMhj^hhubj4)}(hhh]jM)}(hAllocate multiple objectsh]hAllocate multiple objects}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj`hhubah}(h]h ]h"]h$]h&]uh1j3hj^hhhj_hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj`jHj`jIjJjKuh1hhhhjihNhNubj)}(hXY**Parameters** ``struct kmem_cache *s`` The cache to allocate from ``gfp_t flags`` GFP_* flags. See kmalloc(). ``size_t size`` Number of objects to allocate ``void **p`` Array of allocated objects **Description** Allocate **size** objects from **s** and places them into **p**. **size** must be larger than 0. Interrupts must be enabled when calling this function. Unlike alloc_pages_bulk(), this function does not check for already allocated objects in **p**, and thus the caller does not need to zero it. **Return** ``true`` if the allocation succeeded, or ``false`` if it failed.h](jM)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj`ubj)}(hhh](j)}(h4``struct kmem_cache *s`` The cache to allocate from h](j)}(h``struct kmem_cache *s``h]jS)}(hj`h]hstruct kmem_cache *s}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`ubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj`ubj)}(hhh]jM)}(hThe cache to allocate fromh]hThe cache to allocate from}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj`ubj)}(h,``gfp_t flags`` GFP_* flags. See kmalloc(). h](j)}(h``gfp_t flags``h]jS)}(hjah]h gfp_t flags}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj aubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj aubj)}(hhh]jM)}(hGFP_* flags. See kmalloc().h]hGFP_* flags. See kmalloc().}(hj(ahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$ahMhj%aubah}(h]h ]h"]h$]h&]uh1jhj aubeh}(h]h ]h"]h$]h&]uh1jhj$ahMhj`ubj)}(h.``size_t size`` Number of objects to allocate h](j)}(h``size_t size``h]jS)}(hjHah]h size_t size}(hjJahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFaubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjBaubj)}(hhh]jM)}(hNumber of objects to allocateh]hNumber of objects to allocate}(hjaahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]ahMhj^aubah}(h]h ]h"]h$]h&]uh1jhjBaubeh}(h]h ]h"]h$]h&]uh1jhj]ahMhj`ubj)}(h(``void **p`` Array of allocated objects h](j)}(h ``void **p``h]jS)}(hjah]hvoid **p}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj{aubj)}(hhh]jM)}(hArray of allocated objectsh]hArray of allocated objects}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahMhjaubah}(h]h ]h"]h$]h&]uh1jhj{aubeh}(h]h ]h"]h$]h&]uh1jhjahMhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubjM)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj`ubjM)}(haAllocate **size** objects from **s** and places them into **p**. **size** must be larger than 0.h](h Allocate }(hjahhhNhNubj)}(h**size**h]hsize}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh objects from }(hjahhhNhNubj)}(h**s**h]hs}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh and places them into }(hjahhhNhNubj)}(h**p**h]hp}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh. }(hjahhhNhNubj)}(h**size**h]hsize}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh must be larger than 0.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj`ubjM)}(h6Interrupts must be enabled when calling this function.h]h6Interrupts must be enabled when calling this function.}(hj)bhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj`ubjM)}(hUnlike alloc_pages_bulk(), this function does not check for already allocated objects in **p**, and thus the caller does not need to zero it.h](hYUnlike alloc_pages_bulk(), this function does not check for already allocated objects in }(hj8bhhhNhNubj)}(h**p**h]hp}(hj@bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8bubh/, and thus the caller does not need to zero it.}(hj8bhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj`ubjM)}(h **Return**h]j)}(hj[bh]hReturn}(hj]bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYbubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj`ubjM)}(h@``true`` if the allocation succeeded, or ``false`` if it failed.h](jS)}(h``true``h]htrue}(hjubhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjqbubh! if the allocation succeeded, or }(hjqbhhhNhNubjS)}(h ``false``h]hfalse}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjqbubh if it failed.}(hjqbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%__kmem_cache_create_args (C function)c.__kmem_cache_create_argshNtauh1hhjihhhNhNubh)}(hhh](h)}(hstruct kmem_cache * __kmem_cache_create_args (const char *name, unsigned int object_size, struct kmem_cache_args *args, slab_flags_t flags)h]h)}(hstruct kmem_cache *__kmem_cache_create_args(const char *name, unsigned int object_size, struct kmem_cache_args *args, slab_flags_t flags)h](j5)}(hj8h]hstruct}(hjbhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjbhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM$ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhM$ubh)}(hhh]j)}(h kmem_cacheh]h kmem_cache}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbmodnameN classnameNjpjs)}jv]jy)}jl__kmem_cache_create_argssbc.__kmem_cache_create_argsasbuh1hhjbhhhjbhM$ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhM$ubjF )}(hjI h]h*}(hjchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjbhhhjbhM$ubh)}(h__kmem_cache_create_argsh]j)}(hjbh]h__kmem_cache_create_args}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1hhjbhhhjbhM$ubj )}(h^(const char *name, unsigned int object_size, struct kmem_cache_args *args, slab_flags_t flags)h](j )}(hconst char *nameh](j5)}(hjh]hconst}(hj:chhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj6cubj)}(h h]h }(hjGchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6cubj)}(hcharh]hchar}(hjUchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6cubj)}(h h]h }(hjcchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6cubjF )}(hjI h]h*}(hjqchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj6cubj)}(hnameh]hname}(hj~chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6cubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2cubj )}(hunsigned int object_sizeh](j)}(hunsignedh]hunsigned}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hinth]hint}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h object_sizeh]h object_size}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2cubj )}(hstruct kmem_cache_args *argsh](j5)}(hj8h]hstruct}(hjchhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hhh]j)}(hkmem_cache_argsh]hkmem_cache_args}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]jbc.__kmem_cache_create_argsasbuh1hhjcubj)}(h h]h }(hj$dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjF )}(hjI h]h*}(hj2dhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjcubj)}(hargsh]hargs}(hj?dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2cubj )}(hslab_flags_t flagsh](h)}(hhh]j)}(h slab_flags_th]h slab_flags_t}(hj[dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj]dmodnameN classnameNjpjs)}jv]jbc.__kmem_cache_create_argsasbuh1hhjTdubj)}(h h]h }(hjydhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTdubj)}(hflagsh]hflags}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2cubeh}(h]h ]h"]h$]h&]jjuh1j hjbhhhjbhM$ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjbhhhjbhM$ubah}(h]jbah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjbhM$hjbhhubj4)}(hhh]jM)}(hCreate a kmem cache.h]hCreate a kmem cache.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM$hjdhhubah}(h]h ]h"]h$]h&]uh1j3hjbhhhjbhM$ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjdjHjdjIjJjKuh1hhhhjihNhNubj)}(hX**Parameters** ``const char *name`` A string which is used in /proc/slabinfo to identify this cache. ``unsigned int object_size`` The size of objects to be created in this cache. ``struct kmem_cache_args *args`` Additional arguments for the cache creation (see :c:type:`struct kmem_cache_args `). ``slab_flags_t flags`` See the descriptions of individual flags. The common ones are listed in the description below. **Description** Not to be called directly, use the kmem_cache_create() wrapper with the same parameters. Commonly used **flags**: :c:type:`SLAB_ACCOUNT` - Account allocations to memcg. :c:type:`SLAB_HWCACHE_ALIGN` - Align objects on cache line boundaries. :c:type:`SLAB_RECLAIM_ACCOUNT` - Objects are reclaimable. :c:type:`SLAB_TYPESAFE_BY_RCU` - Slab page (not individual objects) freeing delayed by a grace period - see the full description before using. **Context** Cannot be called within a interrupt, but can be interrupted. **Return** a pointer to the cache on success, NULL on failure.h](jM)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM(hjdubj)}(hhh](j)}(hV``const char *name`` A string which is used in /proc/slabinfo to identify this cache. h](j)}(h``const char *name``h]jS)}(hjdh]hconst char *name}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM%hjdubj)}(hhh]jM)}(h@A string which is used in /proc/slabinfo to identify this cache.h]h@A string which is used in /proc/slabinfo to identify this cache.}(hj ehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehM%hjeubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjehM%hjdubj)}(hN``unsigned int object_size`` The size of objects to be created in this cache. h](j)}(h``unsigned int object_size``h]jS)}(hj+eh]hunsigned int object_size}(hj-ehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)eubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM&hj%eubj)}(hhh]jM)}(h0The size of objects to be created in this cache.h]h0The size of objects to be created in this cache.}(hjDehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@ehM&hjAeubah}(h]h ]h"]h$]h&]uh1jhj%eubeh}(h]h ]h"]h$]h&]uh1jhj@ehM&hjdubj)}(h``struct kmem_cache_args *args`` Additional arguments for the cache creation (see :c:type:`struct kmem_cache_args `). h](j)}(h ``struct kmem_cache_args *args``h]jS)}(hjdeh]hstruct kmem_cache_args *args}(hjfehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbeubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM(hj^eubj)}(hhh]jM)}(heAdditional arguments for the cache creation (see :c:type:`struct kmem_cache_args `).h](h1Additional arguments for the cache creation (see }(hj}ehhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]jS)}(hjeh]hstruct kmem_cache_args}(hjehhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNkmem_cache_argsuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM'hj}eubh).}(hj}ehhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjehM'hjzeubah}(h]h ]h"]h$]h&]uh1jhj^eubeh}(h]h ]h"]h$]h&]uh1jhjyehM(hjdubj)}(hv``slab_flags_t flags`` See the descriptions of individual flags. The common ones are listed in the description below. h](j)}(h``slab_flags_t flags``h]jS)}(hjeh]hslab_flags_t flags}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM*hjeubj)}(hhh]jM)}(h^See the descriptions of individual flags. The common ones are listed in the description below.h]h^See the descriptions of individual flags. The common ones are listed in the description below.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM)hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehM*hjdubeh}(h]h ]h"]h$]h&]uh1jhjdubjM)}(h**Description**h]j)}(hjeh]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM,hjdubjM)}(hXNot to be called directly, use the kmem_cache_create() wrapper with the same parameters.h]hXNot to be called directly, use the kmem_cache_create() wrapper with the same parameters.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM+hjdubjM)}(hCommonly used **flags**:h](hCommonly used }(hj"fhhhNhNubj)}(h **flags**h]hflags}(hj*fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"fubh:}(hj"fhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM.hjdubjM)}(h6:c:type:`SLAB_ACCOUNT` - Account allocations to memcg.h](h)}(h:c:type:`SLAB_ACCOUNT`h]jS)}(hjIfh]h SLAB_ACCOUNT}(hjKfhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjGfubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjN SLAB_ACCOUNTuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM0hjCfubh - Account allocations to memcg.}(hjCfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjffhM0hjdubjM)}(hF:c:type:`SLAB_HWCACHE_ALIGN` - Align objects on cache line boundaries.h](h)}(h:c:type:`SLAB_HWCACHE_ALIGN`h]jS)}(hjwfh]hSLAB_HWCACHE_ALIGN}(hjyfhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjufubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNSLAB_HWCACHE_ALIGNuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM2hjqfubh* - Align objects on cache line boundaries.}(hjqfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjfhM2hjdubjM)}(h9:c:type:`SLAB_RECLAIM_ACCOUNT` - Objects are reclaimable.h](h)}(h:c:type:`SLAB_RECLAIM_ACCOUNT`h]jS)}(hjfh]hSLAB_RECLAIM_ACCOUNT}(hjfhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNSLAB_RECLAIM_ACCOUNTuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM4hjfubh - Objects are reclaimable.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjfhM4hjdubjM)}(h:c:type:`SLAB_TYPESAFE_BY_RCU` - Slab page (not individual objects) freeing delayed by a grace period - see the full description before using.h](h)}(h:c:type:`SLAB_TYPESAFE_BY_RCU`h]jS)}(hjfh]hSLAB_TYPESAFE_BY_RCU}(hjfhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNSLAB_TYPESAFE_BY_RCUuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM6hjfubhp - Slab page (not individual objects) freeing delayed by a grace period - see the full description before using.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjfhM6hjdubjM)}(h **Context**h]j)}(hjfh]hContext}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM9hjdubjM)}(huubah}(h]h ]h"]h$]h&]jjuh1j hjuhhhjuhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjuhhhjuhM ubah}(h]jtah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjuhM hjthhubj4)}(hhh]jM)}(h0unmap outstanding lazy aliases in the vmap layerh]h0unmap outstanding lazy aliases in the vmap layer}(hjpuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjmuhhubah}(h]h ]h"]h$]h&]uh1j3hjthhhjuhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjujHjujIjJjKuh1hhhhjthNhNubj)}(hXQ**Parameters** ``void`` no arguments **Description** The vmap/vmalloc layer lazily flushes kernel virtual mappings primarily to amortize TLB flushing overheads. What this means is that any page you have now, may, in a former life, have been mapped into kernel virtual address by the vmap layer and so there might be some CPUs with TLB entries still referencing that page (additional to the regular 1:1 kernel mapping). vm_unmap_aliases flushes all such lazy mappings. After it returns, we can be sure that none of the pages we have control over will have any aliases from the vmap layer.h](jM)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjuubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]jS)}(hjuh]hvoid}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chKhjuubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuhKhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjuubah}(h]h ]h"]h$]h&]uh1jhjuubjM)}(h**Description**h]j)}(hjuh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chKhjuubjM)}(hXmThe vmap/vmalloc layer lazily flushes kernel virtual mappings primarily to amortize TLB flushing overheads. What this means is that any page you have now, may, in a former life, have been mapped into kernel virtual address by the vmap layer and so there might be some CPUs with TLB entries still referencing that page (additional to the regular 1:1 kernel mapping).h]hXmThe vmap/vmalloc layer lazily flushes kernel virtual mappings primarily to amortize TLB flushing overheads. What this means is that any page you have now, may, in a former life, have been mapped into kernel virtual address by the vmap layer and so there might be some CPUs with TLB entries still referencing that page (additional to the regular 1:1 kernel mapping).}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjuubjM)}(hvm_unmap_aliases flushes all such lazy mappings. After it returns, we can be sure that none of the pages we have control over will have any aliases from the vmap layer.h]hvm_unmap_aliases flushes all such lazy mappings. After it returns, we can be sure that none of the pages we have control over will have any aliases from the vmap layer.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_unmap_ram (C function)c.vm_unmap_ramhNtauh1hhjthhhNhNubh)}(hhh](h)}(h7void vm_unmap_ram (const void *mem, unsigned int count)h]h)}(h6void vm_unmap_ram(const void *mem, unsigned int count)h](j)}(hvoidh]hvoid}(hj@vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:xubah}(h]h ](jjeh"]h$]h&]jjuh1hhj xhhhjxhM ubj )}(h3(struct page **pages, unsigned int count, int node)h](j )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hjZxhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjVxubj)}(h h]h }(hjgxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVxubh)}(hhh]j)}(hpageh]hpage}(hjxxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuxubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjzxmodnameN classnameNjpjs)}jv]jy)}jlj@xsb c.vm_map_ramasbuh1hhjVxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVxubjF )}(hjI h]h*}(hjxhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVxubjF )}(hjI h]h*}(hjxhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVxubj)}(hpagesh]hpages}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRxubj )}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hcounth]hcount}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRxubj )}(hint nodeh](j)}(hinth]hint}(hj*yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&yubj)}(h h]h }(hj8yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&yubj)}(hnodeh]hnode}(hjFyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&yubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRxubeh}(h]h ]h"]h$]h&]jjuh1j hj xhhhjxhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjxhhhjxhM ubah}(h]jxah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjxhM hjxhhubj4)}(hhh]jM)}(h>map pages linearly into kernel virtual address (vmalloc space)h]h>map pages linearly into kernel virtual address (vmalloc space)}(hjpyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjmyhhubah}(h]h ]h"]h$]h&]uh1j3hjxhhhjxhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjyjHjyjIjJjKuh1hhhhjthNhNubj)}(hX**Parameters** ``struct page **pages`` an array of pointers to the pages to be mapped ``unsigned int count`` number of pages ``int node`` prefer to allocate data structures on this node **Description** If you use this function for less than VMAP_MAX_ALLOC pages, it could be faster than vmap so it's good. But if you mix long-life and short-life objects with vm_map_ram(), it could consume lots of address space through fragmentation (especially on a 32bit machine). You could see failures in the end. Please use this function for short-lived objects. **Return** a pointer to the address that has been mapped, or ``NULL`` on failureh](jM)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyubj)}(hhh](j)}(hG``struct page **pages`` an array of pointers to the pages to be mapped h](j)}(h``struct page **pages``h]jS)}(hjyh]hstruct page **pages}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyubj)}(hhh]jM)}(h.an array of pointers to the pages to be mappedh]h.an array of pointers to the pages to be mapped}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjyhM hjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhM hjyubj)}(h'``unsigned int count`` number of pages h](j)}(h``unsigned int count``h]jS)}(hjyh]hunsigned int count}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyubj)}(hhh]jM)}(hnumber of pagesh]hnumber of pages}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjyhM hjzubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhM hjyubj)}(h=``int node`` prefer to allocate data structures on this node h](j)}(h ``int node``h]jS)}(hj#zh]hint node}(hj%zhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!zubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjzubj)}(hhh]jM)}(h/prefer to allocate data structures on this nodeh]h/prefer to allocate data structures on this node}(hjflags ``pgprot_t prot`` page protection for the mapping **Description** Maps **count** pages from **pages** into contiguous kernel virtual space. If **flags** contains ``VM_MAP_PUT_PAGES`` the ownership of the pages array itself (which must be kmalloc or vmalloc memory) and one reference per pages in it are transferred from the caller to vmap(), and will be freed / dropped when vfree() is called on the return value. **Return** the address of the area or ``NULL`` on failureh](jM)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj!ubj)}(hhh](j)}(h/``struct page **pages`` array of page pointers h](j)}(h``struct page **pages``h]jS)}(hjFh]hstruct page **pages}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj@ubj)}(hhh]jM)}(harray of page pointersh]harray of page pointers}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hM hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hM hj=ubj)}(h.``unsigned int count`` number of pages to map h](j)}(h``unsigned int count``h]jS)}(hjh]hunsigned int count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj}ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyubj)}(hhh]jM)}(hnumber of pages to maph]hnumber of pages to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhM hj=ubj)}(h'``unsigned long flags`` vm_area->flags h](j)}(h``unsigned long flags``h]jS)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjubj)}(hhh]jM)}(hvm_area->flagsh]hvm_area->flags}(hjрhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj̀hM hj΀ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̀hM hj=ubj)}(h2``pgprot_t prot`` page protection for the mapping h](j)}(h``pgprot_t prot``h]jS)}(hjh]h pgprot_t prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjubj)}(hhh]jM)}(hpage protection for the mappingh]hpage protection for the mapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj=ubeh}(h]h ]h"]h$]h&]uh1jhj!ubjM)}(h**Description**h]j)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj!ubjM)}(hX[Maps **count** pages from **pages** into contiguous kernel virtual space. If **flags** contains ``VM_MAP_PUT_PAGES`` the ownership of the pages array itself (which must be kmalloc or vmalloc memory) and one reference per pages in it are transferred from the caller to vmap(), and will be freed / dropped when vfree() is called on the return value.h](hMaps }(hjBhhhNhNubj)}(h **count**h]hcount}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh pages from }(hjBhhhNhNubj)}(h **pages**h]hpages}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh* into contiguous kernel virtual space. If }(hjBhhhNhNubj)}(h **flags**h]hflags}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh contains }(hjBhhhNhNubjS)}(h``VM_MAP_PUT_PAGES``h]hVM_MAP_PUT_PAGES}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubh the ownership of the pages array itself (which must be kmalloc or vmalloc memory) and one reference per pages in it are transferred from the caller to vmap(), and will be freed / dropped when vfree() is called on the return value.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj!ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj!ubjM)}(h.the address of the area or ``NULL`` on failureh](hthe address of the area or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh on failure}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmap_pfn (C function) c.vmap_pfnhNtauh1hhjthhhNhNubh)}(hhh](h)}(hHvoid * vmap_pfn (unsigned long *pfns, unsigned int count, pgprot_t prot)h]h)}(hFvoid *vmap_pfn(unsigned long *pfns, unsigned int count, pgprot_t prot)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hvmap_pfnh]j)}(hvmap_pfnh]hvmap_pfn}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h8(unsigned long *pfns, unsigned int count, pgprot_t prot)h](j )}(hunsigned long *pfnsh](j)}(hunsignedh]hunsigned}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hlongh]hlong}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjF )}(hjI h]h*}(hjthhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj8ubj)}(hpfnsh]hpfns}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj4ubj )}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjĂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcounth]hcount}(hj҂hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj4ubj )}(h pgprot_t proth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj"sb c.vmap_pfnasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hproth]hprot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj4ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h4map an array of PFNs into virtually contiguous spaceh]h4map an array of PFNs into virtually contiguous space}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjChhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj^jHj^jIjJjKuh1hhhhjthNhNubj)}(hX$**Parameters** ``unsigned long *pfns`` array of PFNs ``unsigned int count`` number of pages to map ``pgprot_t prot`` page protection for the mapping **Description** Maps **count** PFNs from **pfns** into contiguous kernel virtual space and returns the start address of the mapping.h](jM)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjbubj)}(hhh](j)}(h&``unsigned long *pfns`` array of PFNs h](j)}(h``unsigned long *pfns``h]jS)}(hjh]hunsigned long *pfns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(h array of PFNsh]h array of PFNs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubj)}(h.``unsigned int count`` number of pages to map h](j)}(h``unsigned int count``h]jS)}(hjh]hunsigned int count}(hjƒhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(hnumber of pages to maph]hnumber of pages to map}(hjكhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjՃhMhjփubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjՃhMhj~ubj)}(h2``pgprot_t prot`` page protection for the mapping h](j)}(h``pgprot_t prot``h]jS)}(hjh]h pgprot_t prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(hpage protection for the mappingh]hpage protection for the mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubeh}(h]h ]h"]h$]h&]uh1jhjbubjM)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjbubjM)}(htMaps **count** PFNs from **pfns** into contiguous kernel virtual space and returns the start address of the mapping.h](hMaps }(hjJhhhNhNubj)}(h **count**h]hcount}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh PFNs from }(hjJhhhNhNubj)}(h**pfns**h]hpfns}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubhS into contiguous kernel virtual space and returns the start address of the mapping.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__vmalloc_node (C function)c.__vmalloc_nodehNtauh1hhjthhhNhNubh)}(hhh](h)}(hmvoid * __vmalloc_node (unsigned long size, unsigned long align, gfp_t gfp_mask, int node, const void *caller)h]h)}(hkvoid *__vmalloc_node(unsigned long size, unsigned long align, gfp_t gfp_mask, int node, const void *caller)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(h__vmalloc_nodeh]j)}(h__vmalloc_nodeh]h__vmalloc_node}(hj˄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDŽubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hW(unsigned long size, unsigned long align, gfp_t gfp_mask, int node, const void *caller)h](j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj߄ubj )}(hunsigned long alignh](j)}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hlongh]hlong}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(halignh]halign}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj߄ubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj̈́sbc.__vmalloc_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj߄ubj )}(hint nodeh](j)}(hinth]hint}(hjӅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjυubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjυubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjυubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj߄ubj )}(hconst void *callerh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj?hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hcallerh]hcaller}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj߄ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h$allocate virtually contiguous memoryh]h$allocate virtually contiguous memory}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjshhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjthNhNubj)}(hXt**Parameters** ``unsigned long size`` allocation size ``unsigned long align`` desired alignment ``gfp_t gfp_mask`` flags for the page level allocator ``int node`` node to use for allocation or NUMA_NO_NODE ``const void *caller`` caller's return address **Description** Allocate enough pages to cover **size** from the page level allocator with **gfp_mask** flags. Map them into contiguous kernel virtual space. Semantics of **gfp_mask** (including reclaim/retry modifiers such as __GFP_NOFAIL) are the same as in __vmalloc_node_range_noprof(). **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM!hjubj)}(hhh](j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjІhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj̆hMhj͆ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̆hMhjubj)}(h*``unsigned long align`` desired alignment h](j)}(h``unsigned long align``h]jS)}(hjh]hunsigned long align}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(hdesired alignmenth]hdesired alignment}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h6``gfp_t gfp_mask`` flags for the page level allocator h](j)}(h``gfp_t gfp_mask``h]jS)}(hj)h]hgfp_t gfp_mask}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj#ubj)}(hhh]jM)}(h"flags for the page level allocatorh]h"flags for the page level allocator}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hM hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hM hjubj)}(h8``int node`` node to use for allocation or NUMA_NO_NODE h](j)}(h ``int node``h]jS)}(hjbh]hint node}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM!hj\ubj)}(hhh]jM)}(h*node to use for allocation or NUMA_NO_NODEh]h*node to use for allocation or NUMA_NO_NODE}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwhM!hjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhM!hjubj)}(h/``const void *caller`` caller's return address h](j)}(h``const void *caller``h]jS)}(hjh]hconst void *caller}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM"hjubj)}(hhh]jM)}(hcaller's return addressh]hcaller’s return address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjևh]h Description}(hj؇hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԇubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM$hjubjM)}(hAllocate enough pages to cover **size** from the page level allocator with **gfp_mask** flags. Map them into contiguous kernel virtual space.h](hAllocate enough pages to cover }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ from the page level allocator with }(hjhhhNhNubj)}(h **gfp_mask**h]hgfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh7 flags. Map them into contiguous kernel virtual space.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM#hjubjM)}(hSemantics of **gfp_mask** (including reclaim/retry modifiers such as __GFP_NOFAIL) are the same as in __vmalloc_node_range_noprof().h](h Semantics of }(hjhhhNhNubj)}(h **gfp_mask**h]hgfp_mask}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhk (including reclaim/retry modifiers such as __GFP_NOFAIL) are the same as in __vmalloc_node_range_noprof().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM&hjubjM)}(h **Return**h]j)}(hjBh]hReturn}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM)hjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjXhhhNhNubjS)}(h``NULL``h]hNULL}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjXubh on error}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM*hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc (C function) c.vmallochNtauh1hhjthhhNhNubh)}(hhh](h)}(h#void * vmalloc (unsigned long size)h]h)}(h!void *vmalloc(unsigned long size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMEubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMEubh)}(hvmalloch]j)}(hvmalloch]hvmalloc}(hjLjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÈubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMEubj )}(h(unsigned long size)h]j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߈ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߈ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߈ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߈ubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߈ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjۈubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMEubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMEubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMEhjhhubj4)}(hhh]jM)}(h$allocate virtually contiguous memoryh]h$allocate virtually contiguous memory}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMEhjBhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMEubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj]jHj]jIjJjKuh1hhhhjthNhNubj)}(hX`**Parameters** ``unsigned long size`` allocation size **Description** Allocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. For tight control over page level allocator and protection flags use __vmalloc() instead. **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMIhjaubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMFhjubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMFhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubjM)}(h**Description**h]j)}(hjh]h Description}(hjÉhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMHhjaubjM)}(hxAllocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space.h](hAllocate enough pages to cover }(hj׉hhhNhNubj)}(h**size**h]hsize}(hj߉hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj׉ubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hj׉hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMGhjaubjM)}(hYFor tight control over page level allocator and protection flags use __vmalloc() instead.h]hYFor tight control over page level allocator and protection flags use __vmalloc() instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMJhjaubjM)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMMhjaubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh on error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMNhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_huge_node (C function)c.vmalloc_huge_nodehNtauh1hhjthhhNhNubh)}(hhh](h)}(hGvoid * vmalloc_huge_node (unsigned long size, gfp_t gfp_mask, int node)h]h)}(hEvoid *vmalloc_huge_node(unsigned long size, gfp_t gfp_mask, int node)h](j)}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMXubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhjnhMXubjF )}(hjI h]h*}(hj}hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj\hhhjnhMXubh)}(hvmalloc_huge_nodeh]j)}(hvmalloc_huge_nodeh]hvmalloc_huge_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj\hhhjnhMXubj )}(h.(unsigned long size, gfp_t gfp_mask, int node)h](j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjƊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjԊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.vmalloc_huge_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint nodeh](j)}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hnodeh]hnode}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj\hhhjnhMXubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjXhhhjnhMXubah}(h]jSah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjnhMXhjUhhubj4)}(hhh]jM)}(h6allocate virtually contiguous memory, allow huge pagesh]h6allocate virtually contiguous memory, allow huge pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMXhjhhubah}(h]h ]h"]h$]h&]uh1j3hjUhhhjnhMXubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjthNhNubj)}(hX**Parameters** ``unsigned long size`` allocation size ``gfp_t gfp_mask`` flags for the page level allocator ``int node`` node to use for allocation or NUMA_NO_NODE **Description** Allocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. If **size** is greater than or equal to PMD_SIZE, allow using huge pages for the memory **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM\hjubj)}(hhh](j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hj̋h]hunsigned long size}(hj΋hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjʋubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMYhjƋubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjƋubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjËubj)}(h6``gfp_t gfp_mask`` flags for the page level allocator h](j)}(h``gfp_t gfp_mask``h]jS)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMZhjubj)}(hhh]jM)}(h"flags for the page level allocatorh]h"flags for the page level allocator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjËubj)}(h8``int node`` node to use for allocation or NUMA_NO_NODE h](j)}(h ``int node``h]jS)}(hj>h]hint node}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj<ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM[hj8ubj)}(hhh]jM)}(h*node to use for allocation or NUMA_NO_NODEh]h*node to use for allocation or NUMA_NO_NODE}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjShM[hjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShM[hjËubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjyh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM]hjubjM)}(hAllocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. If **size** is greater than or equal to PMD_SIZE, allow using huge pages for the memoryh](hAllocate enough pages to cover }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhU from the page level allocator and map them into contiguous kernel virtual space. If }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhL is greater than or equal to PMD_SIZE, allow using huge pages for the memory}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM\hjubjM)}(h **Return**h]j)}(hjČh]hReturn}(hjƌhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŒubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMahjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjڌhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjڌubh on error}(hjڌhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMbhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvzalloc (C function) c.vzallochNtauh1hhjthhhNhNubh)}(hhh](h)}(h#void * vzalloc (unsigned long size)h]h)}(h!void *vzalloc(unsigned long size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMoubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hMoubjF )}(hjI h]h*}(hj8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj)hMoubh)}(hvzalloch]j)}(hvzalloch]hvzalloc}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj)hMoubj )}(h(unsigned long size)h]j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj)hMoubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj)hMoubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj)hMohjhhubj4)}(hhh]jM)}(h3allocate virtually contiguous memory with zero fillh]h3allocate virtually contiguous memory with zero fill}(hjǍhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMohjčhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj)hMoubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjߍjHjߍjIjJjKuh1hhhhjthNhNubj)}(hX**Parameters** ``unsigned long size`` allocation size **Description** Allocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero. For tight control over page level allocator and protection flags use __vmalloc() instead. **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMshjubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjh]hunsigned long size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMphjubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMphjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMphjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMrhjubjM)}(hAllocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.h](hAllocate enough pages to cover }(hjYhhhNhNubj)}(h**size**h]hsize}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubhv from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMqhjubjM)}(hYFor tight control over page level allocator and protection flags use __vmalloc() instead.h]hYFor tight control over page level allocator and protection flags use __vmalloc() instead.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMuhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMxhjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh on error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMyhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_user (C function)c.vmalloc_userhNtauh1hhjthhhNhNubh)}(hhh](h)}(h(void * vmalloc_user (unsigned long size)h]h)}(h&void *vmalloc_user(unsigned long size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjގhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjގhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjގhhhjhMubh)}(h vmalloc_userh]j)}(h vmalloc_userh]h vmalloc_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjގhhhjhMubj )}(h(unsigned long size)h]j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hlongh]hlong}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hsizeh]hsize}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$ubah}(h]h ]h"]h$]h&]jjuh1j hjގhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjڎhhhjhMubah}(h]jՎah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhj׎hhubj4)}(hhh]jM)}(h9allocate zeroed virtually contiguous memory for userspaceh]h9allocate zeroed virtually contiguous memory for userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj׎hhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjthNhNubj)}(h**Parameters** ``unsigned long size`` allocation size **Description** The resulting memory area is zeroed so it can be mapped to userspace without leaking data. **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjϏh]hunsigned long size}(hjяhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj͏ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjɏubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjɏubeh}(h]h ]h"]h$]h&]uh1jhjhMhjƏubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(hZThe resulting memory area is zeroed so it can be mapped to userspace without leaking data.h]hZThe resulting memory area is zeroed so it can be mapped to userspace without leaking data.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(h **Return**h]j)}(hj1h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjGhhhNhNubjS)}(h``NULL``h]hNULL}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGubh on error}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_node (C function)c.vmalloc_nodehNtauh1hhjthhhNhNubh)}(hhh](h)}(h2void * vmalloc_node (unsigned long size, int node)h]h)}(h0void *vmalloc_node(unsigned long size, int node)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(h vmalloc_nodeh]j)}(h vmalloc_nodeh]h vmalloc_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(unsigned long size, int node)h](j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjҐhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΐubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΐubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΐubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΐubj)}(hsizeh]hsize}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΐubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjʐubj )}(hint nodeh](j)}(hinth]hint}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjʐubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]j{ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhj}hhubj4)}(hhh]jM)}(h"allocate memory on a specific nodeh]h"allocate memory on a specific node}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjfhhubah}(h]h ]h"]h$]h&]uh1j3hj}hhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjthNhNubj)}(hXz**Parameters** ``unsigned long size`` allocation size ``int node`` numa node **Description** Allocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. For tight control over page level allocator and protection flags use __vmalloc() instead. **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh](j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjÑhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int node`` numa node h](j)}(h ``int node``h]jS)}(hjh]hint node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjݑubj)}(hhh]jM)}(h numa nodeh]h numa node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjݑubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(hxAllocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space.h](hAllocate enough pages to cover }(hj4hhhNhNubj)}(h**size**h]hsize}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(hYFor tight control over page level allocator and protection flags use __vmalloc() instead.h]hYFor tight control over page level allocator and protection flags use __vmalloc() instead.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(h **Return**h]j)}(hjfh]hReturn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hj|hhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj|ubh on error}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvzalloc_node (C function)c.vzalloc_nodehNtauh1hhjthhhNhNubh)}(hhh](h)}(h2void * vzalloc_node (unsigned long size, int node)h]h)}(h0void *vzalloc_node(unsigned long size, int node)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hj̒hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj˒hMubjF )}(hjI h]h*}(hjڒhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj˒hMubh)}(h vzalloc_nodeh]j)}(h vzalloc_nodeh]h vzalloc_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj˒hMubj )}(h(unsigned long size, int node)h](j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint nodeh](j)}(hinth]hint}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hnodeh]hnode}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj˒hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj˒hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj˒hMhjhhubj4)}(hhh]jM)}(h1allocate memory on a specific node with zero fillh]h1allocate memory on a specific node with zero fill}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj˒hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjthNhNubj)}(hXD**Parameters** ``unsigned long size`` allocation size ``int node`` numa node **Description** Allocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero. **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hj“hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh](j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjߓh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjݓubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjٓubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjٓubeh}(h]h ]h"]h$]h&]uh1jhjhMhj֓ubj)}(h``int node`` numa node h](j)}(h ``int node``h]jS)}(hjh]hint node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(h numa nodeh]h numa node}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhj֓ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(hAllocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.h](hAllocate enough pages to cover }(hjihhhNhNubj)}(h**size**h]hsize}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubhv from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh on error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h vrealloc_node_align (C function)c.vrealloc_node_alignhNtauh1hhjthhhNhNubh)}(hhh](h)}(hbvoid * vrealloc_node_align (const void *p, size_t size, unsigned long align, gfp_t flags, int nid)h]h)}(h`void *vrealloc_node_align(const void *p, size_t size, unsigned long align, gfp_t flags, int nid)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߔhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߔhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjߔhhhjhMubh)}(hvrealloc_node_alignh]j)}(hvrealloc_node_alignh]hvrealloc_node_align}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjߔhhhjhMubj )}(hG(const void *p, size_t size, unsigned long align, gfp_t flags, int nid)h](j )}(h const void *ph](j5)}(hjh]hconst}(hj-hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj)ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjF )}(hjI h]h*}(hjdhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj)ubj)}(hjR h]hp}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj%ubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.vrealloc_node_alignasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj%ubj )}(hunsigned long alignh](j)}(hunsignedh]hunsigned}(hjӕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϕubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϕubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϕubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϕubj)}(halignh]halign}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϕubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj%ubj )}(h gfp_t flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj)modnameN classnameNjpjs)}jv]jc.vrealloc_node_alignasbuh1hhj ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hflagsh]hflags}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj%ubj )}(hint nidh](j)}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hnidh]hnid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj%ubeh}(h]h ]h"]h$]h&]jjuh1j hjߔhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj۔hhhjhMubah}(h]j֔ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjؔhhubj4)}(hhh]jM)}(hAreallocate virtually contiguous memory; contents remain unchangedh]hAreallocate virtually contiguous memory; contents remain unchanged}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjؔhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjʖjHjʖjIjJjKuh1hhhhjthNhNubj)}(hX'**Parameters** ``const void *p`` object to reallocate memory for ``size_t size`` the size to reallocate ``unsigned long align`` requested alignment ``gfp_t flags`` the flags for the page level allocator ``int nid`` node number of the target node **Description** If **p** is ``NULL``, vrealloc_XXX() behaves exactly like vmalloc_XXX(). If **size** is 0 and **p** is not a ``NULL`` pointer, the object pointed to is freed. If the caller wants the new memory to be on specific node *only*, __GFP_THISNODE flag should be set, otherwise the function will try to avoid reallocation and possibly disregard the specified **nid**. If __GFP_ZERO logic is requested, callers must ensure that, starting with the initial memory allocation, every subsequent call to this API for the same memory allocation is flagged with __GFP_ZERO. Otherwise, it is possible that __GFP_ZERO is not fully honored by this API. Requesting an alignment that is bigger than the alignment of the existing allocation will fail. In any case, the contents of the object pointed to are preserved up to the lesser of the new and old sizes. This function must not be called concurrently with itself or vfree() for the same memory allocation. **Return** pointer to the allocated memory; ``NULL`` if **size** is zero or in case of failureh](jM)}(h**Parameters**h]j)}(hjԖh]h Parameters}(hj֖hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҖubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjΖubj)}(hhh](j)}(h2``const void *p`` object to reallocate memory for h](j)}(h``const void *p``h]jS)}(hjh]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(hobject to reallocate memory forh]hobject to reallocate memory for}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``size_t size`` the size to reallocate h](j)}(h``size_t size``h]jS)}(hj,h]h size_t size}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj&ubj)}(hhh]jM)}(hthe size to reallocateh]hthe size to reallocate}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjubj)}(h,``unsigned long align`` requested alignment h](j)}(h``unsigned long align``h]jS)}(hjeh]hunsigned long align}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj_ubj)}(hhh]jM)}(hrequested alignmenth]hrequested alignment}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjubj)}(h7``gfp_t flags`` the flags for the page level allocator h](j)}(h``gfp_t flags``h]jS)}(hjh]h gfp_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(h&the flags for the page level allocatorh]h&the flags for the page level allocator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``int nid`` node number of the target node h](j)}(h ``int nid``h]jS)}(hjחh]hint nid}(hjٗhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj՗ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjїubj)}(hhh]jM)}(hnode number of the target nodeh]hnode number of the target node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjїubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjΖubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjΖubjM)}(hIf **p** is ``NULL``, vrealloc_XXX() behaves exactly like vmalloc_XXX(). If **size** is 0 and **p** is not a ``NULL`` pointer, the object pointed to is freed.h](hIf }(hj(hhhNhNubj)}(h**p**h]hp}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh is }(hj(hhhNhNubjS)}(h``NULL``h]hNULL}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubh8, vrealloc_XXX() behaves exactly like vmalloc_XXX(). If }(hj(hhhNhNubj)}(h**size**h]hsize}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh is 0 and }(hj(hhhNhNubj)}(h**p**h]hp}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh is not a }(hj(hhhNhNubjS)}(h``NULL``h]hNULL}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubh) pointer, the object pointed to is freed.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjΖubjM)}(hIf the caller wants the new memory to be on specific node *only*, __GFP_THISNODE flag should be set, otherwise the function will try to avoid reallocation and possibly disregard the specified **nid**.h](h:If the caller wants the new memory to be on specific node }(hjhhhNhNubj_)}(h*only*h]honly}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjubh, __GFP_THISNODE flag should be set, otherwise the function will try to avoid reallocation and possibly disregard the specified }(hjhhhNhNubj)}(h**nid**h]hnid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjΖubjM)}(hXIf __GFP_ZERO logic is requested, callers must ensure that, starting with the initial memory allocation, every subsequent call to this API for the same memory allocation is flagged with __GFP_ZERO. Otherwise, it is possible that __GFP_ZERO is not fully honored by this API.h]hXIf __GFP_ZERO logic is requested, callers must ensure that, starting with the initial memory allocation, every subsequent call to this API for the same memory allocation is flagged with __GFP_ZERO. Otherwise, it is possible that __GFP_ZERO is not fully honored by this API.}(hjĘhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjΖubjM)}(h_Requesting an alignment that is bigger than the alignment of the existing allocation will fail.h]h_Requesting an alignment that is bigger than the alignment of the existing allocation will fail.}(hjӘhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjΖubjM)}(hkIn any case, the contents of the object pointed to are preserved up to the lesser of the new and old sizes.h]hkIn any case, the contents of the object pointed to are preserved up to the lesser of the new and old sizes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjΖubjM)}(hdThis function must not be called concurrently with itself or vfree() for the same memory allocation.h]hdThis function must not be called concurrently with itself or vfree() for the same memory allocation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjΖubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjΖubjM)}(hSpointer to the allocated memory; ``NULL`` if **size** is zero or in case of failureh](h!pointer to the allocated memory; }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if }(hjhhhNhNubj)}(h**size**h]hsize}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is zero or in case of failure}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjΖubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_32 (C function) c.vmalloc_32hNtauh1hhjthhhNhNubh)}(hhh](h)}(h&void * vmalloc_32 (unsigned long size)h]h)}(h$void *vmalloc_32(unsigned long size)h](j)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMjubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjyhMjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjghhhjyhMjubh)}(h vmalloc_32h]j)}(h vmalloc_32h]h vmalloc_32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjghhhjyhMjubj )}(h(unsigned long size)h]j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjÙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjљhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjߙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjghhhjyhMjubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjchhhjyhMjubah}(h]j^ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjyhMjhj`hhubj4)}(hhh]jM)}(h8allocate virtually contiguous memory (32bit addressable)h]h8allocate virtually contiguous memory (32bit addressable)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMjhjhhubah}(h]h ]h"]h$]h&]uh1j3hj`hhhjyhMjubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj/jHj/jIjJjKuh1hhhhjthNhNubj)}(hX**Parameters** ``unsigned long size`` allocation size **Description** Allocate enough 32bit PA addressable pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMnhj3ubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjXh]hunsigned long size}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMkhjRubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmhMkhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMkhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMmhj3ubjM)}(hAllocate enough 32bit PA addressable pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space.h](h4Allocate enough 32bit PA addressable pages to cover }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMlhj3ubjM)}(h **Return**h]j)}(hj̚h]hReturn}(hjΚhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʚubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMohj3ubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh on error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMphj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_32_user (C function)c.vmalloc_32_userhNtauh1hhjthhhNhNubh)}(hhh](h)}(h+void * vmalloc_32_user (unsigned long size)h]h)}(h)void *vmalloc_32_user(unsigned long size)h](j)}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMzubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj1hMzubjF )}(hjI h]h*}(hj@hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj1hMzubh)}(hvmalloc_32_userh]j)}(hvmalloc_32_userh]hvmalloc_32_user}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj1hMzubj )}(h(unsigned long size)h]j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj1hMzubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj1hMzubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj1hMzhjhhubj4)}(hhh]jM)}(h1allocate zeroed virtually contiguous 32bit memoryh]h1allocate zeroed virtually contiguous 32bit memory}(hjϛhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMzhj̛hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj1hMzubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjthNhNubj)}(h**Parameters** ``unsigned long size`` allocation size **Description** The resulting memory area is 32bit addressable and zeroed so it can be mapped to userspace without leaking data. **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM~hjubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM{hj ubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%hM{hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hM{hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM}hjubjM)}(hpThe resulting memory area is 32bit addressable and zeroed so it can be mapped to userspace without leaking data.h]hpThe resulting memory area is 32bit addressable and zeroed so it can be mapped to userspace without leaking data.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM|hjubjM)}(h **Return**h]j)}(hjrh]hReturn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh on error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h remap_vmalloc_range (C function)c.remap_vmalloc_rangehNtauh1hhjthhhNhNubh)}(hhh](h)}(hUint remap_vmalloc_range (struct vm_area_struct *vma, void *addr, unsigned long pgoff)h]h)}(hTint remap_vmalloc_range(struct vm_area_struct *vma, void *addr, unsigned long pgoff)h](j)}(hinth]hint}(hjɜhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŜhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hj؜hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŜhhhjלhMubh)}(hremap_vmalloc_rangeh]j)}(hremap_vmalloc_rangeh]hremap_vmalloc_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjŜhhhjלhMubj )}(h=(struct vm_area_struct *vma, void *addr, unsigned long pgoff)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj&modnameN classnameNjpjs)}jv]jy)}jljsbc.remap_vmalloc_rangeasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjRhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h void *addrh](j)}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjtubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjȝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj֝hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpgoffh]hpgoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjŜhhhjלhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjלhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjלhMhjhhubj4)}(hhh]jM)}(hmap vmalloc pages to userspaceh]hmap vmalloc pages to userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjלhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj4jHj4jIjJjKuh1hhhhjthNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` vma to cover (map full range of vma) ``void *addr`` vmalloc memory ``unsigned long pgoff`` number of pages into addr before first page to map **Return** 0 for success, -Exxx on failure **Description** This function checks that addr is a valid vmalloc'ed area, and that it is big enough to cover the vma. Will return failure if that criteria isn't met. Similar to remap_pfn_range() (see mm/memory.c)h](jM)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj8ubj)}(hhh](j)}(hD``struct vm_area_struct *vma`` vma to cover (map full range of vma) h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj]h]hstruct vm_area_struct *vma}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjWubj)}(hhh]jM)}(h$vma to cover (map full range of vma)h]h$vma to cover (map full range of vma)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubj)}(h``void *addr`` vmalloc memory h](j)}(h``void *addr``h]jS)}(hjh]h void *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(hvmalloc memoryh]hvmalloc memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubj)}(hK``unsigned long pgoff`` number of pages into addr before first page to map h](j)}(h``unsigned long pgoff``h]jS)}(hjϞh]hunsigned long pgoff}(hjўhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj͞ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjɞubj)}(hhh]jM)}(h2number of pages into addr before first page to maph]h2number of pages into addr before first page to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjɞubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubjM)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj8ubjM)}(h0 for success, -Exxx on failureh]h0 for success, -Exxx on failure}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj8ubjM)}(h**Description**h]j)}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj8ubjM)}(hThis function checks that addr is a valid vmalloc'ed area, and that it is big enough to cover the vma. Will return failure if that criteria isn't met.h]hThis function checks that addr is a valid vmalloc’ed area, and that it is big enough to cover the vma. Will return failure if that criteria isn’t met.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj8ubjM)}(h.Similar to remap_pfn_range() (see mm/memory.c)h]h.Similar to remap_pfn_range() (see mm/memory.c)}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubeh}(h]virtually-contiguous-mappingsah ]h"]virtually contiguous mappingsah$]h&]uh1hhhhhhhhK2ubh)}(hhh](h)}(hFile Mapping and Page Cacheh]hFile Mapping and Page Cache}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthhhhhK8ubh)}(hhh](h)}(hFilemaph]hFilemap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK;ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%filemap_fdatawrite_range (C function)c.filemap_fdatawrite_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hVint filemap_fdatawrite_range (struct address_space *mapping, loff_t start, loff_t end)h]h)}(hUint filemap_fdatawrite_range(struct address_space *mapping, loff_t start, loff_t end)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfilemap_fdatawrite_rangeh]j)}(hfilemap_fdatawrite_rangeh]hfilemap_fdatawrite_range}(hjПhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̟ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h9(struct address_space *mapping, loff_t start, loff_t end)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljҟsbc.filemap_fdatawrite_rangeasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t starth](h)}(hhh]j)}(hloff_th]hloff_t}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjcmodnameN classnameNjpjs)}jv]j&c.filemap_fdatawrite_rangeasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t endh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j&c.filemap_fdatawrite_rangeasbuh1hhjubj)}(h h]h }(hjǠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendh]hend}(hjՠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h/start writeback on mapping dirty pages in rangeh]h/start writeback on mapping dirty pages in range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` address space structure to write ``loff_t start`` offset in bytes where the range starts ``loff_t end`` offset in bytes where the range ends (inclusive) **Description** Start writeback against all of a mapping's dirty pages that lie within the byte offsets inclusive. This is a data integrity operation that waits upon dirty or in writeback pages. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(hC``struct address_space *mapping`` address space structure to write h](j)}(h!``struct address_space *mapping``h]jS)}(hj@h]hstruct address_space *mapping}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj:ubj)}(hhh]jM)}(h address space structure to writeh]h address space structure to write}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubj)}(h8``loff_t start`` offset in bytes where the range starts h](j)}(h``loff_t start``h]jS)}(hjyh]h loff_t start}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjsubj)}(hhh]jM)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubj)}(h@``loff_t end`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end``h]jS)}(hjh]h loff_t end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjˡhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjǡhMhjȡubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjǡhMhj7ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hoStart writeback against all of a mapping's dirty pages that lie within the byte offsets inclusive.h]hqStart writeback against all of a mapping’s dirty pages that lie within the byte offsets inclusive.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hOThis is a data integrity operation that waits upon dirty or in writeback pages.h]hOThis is a data integrity operation that waits upon dirty or in writeback pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hj#h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubh+ on success, negative error code otherwise.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h filemap_flush_range (C function)c.filemap_flush_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hQint filemap_flush_range (struct address_space *mapping, loff_t start, loff_t end)h]h)}(hPint filemap_flush_range(struct address_space *mapping, loff_t start, loff_t end)h](j)}(hinth]hint}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhMubh)}(hfilemap_flush_rangeh]j)}(hfilemap_flush_rangeh]hfilemap_flush_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjrhhhjhMubj )}(h9(struct address_space *mapping, loff_t start, loff_t end)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjѢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj΢ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjӢmodnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_flush_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t starth](h)}(hhh]j)}(hloff_th]hloff_t}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj*modnameN classnameNjpjs)}jv]jc.filemap_flush_rangeasbuh1hhj!ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hstarth]hstart}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t endh](h)}(hhh]j)}(hloff_th]hloff_t}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrmodnameN classnameNjpjs)}jv]jc.filemap_flush_rangeasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjrhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjnhhhjhMubah}(h]jiah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjkhhubj4)}(hhh]jM)}(hstart writeback on a rangeh]hstart writeback on a range}(hjƣhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjãhhubah}(h]h ]h"]h$]h&]uh1j3hjkhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjޣjHjޣjIjJjKuh1hhhhjhNhNubj)}(hX_**Parameters** ``struct address_space *mapping`` target address_space ``loff_t start`` index to start writeback on ``loff_t end`` last (inclusive) index for writeback **Description** This is a non-integrity writeback helper, to start writing back folios for the indicated range. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h7``struct address_space *mapping`` target address_space h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(htarget address_spaceh]htarget address_space}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h-``loff_t start`` index to start writeback on h](j)}(h``loff_t start``h]jS)}(hj@h]h loff_t start}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj:ubj)}(hhh]jM)}(hindex to start writeback onh]hindex to start writeback on}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjubj)}(h4``loff_t end`` last (inclusive) index for writeback h](j)}(h``loff_t end``h]jS)}(hjyh]h loff_t end}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjsubj)}(hhh]jM)}(h$last (inclusive) index for writebackh]h$last (inclusive) index for writeback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h_This is a non-integrity writeback helper, to start writing back folios for the indicated range.h]h_This is a non-integrity writeback helper, to start writing back folios for the indicated range.}(hjʤhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hjۤh]hReturn}(hjݤhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٤ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_flush (C function)c.filemap_flushhNtauh1hhjhhhNhNubh)}(hhh](h)}(h1int filemap_flush (struct address_space *mapping)h]h)}(h0int filemap_flush(struct address_space *mapping)h](j)}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hMubh)}(h filemap_flushh]j)}(h filemap_flushh]h filemap_flush}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1hhj*hhhj<hMubj )}(h(struct address_space *mapping)h]j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjkhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljQsbc.filemap_flushasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjgubj)}(hmappingh]hmapping}(hjĥhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubah}(h]h ]h"]h$]h&]jjuh1j hj*hhhj<hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj&hhhj<hMubah}(h]j!ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj<hMhj#hhubj4)}(hhh]jM)}(hmostly a non-blocking flushh]hmostly a non-blocking flush}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj#hhhj<hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` target address_space **Description** This is a mostly non-blocking flush. Not suitable for data-integrity purposes - I/O may not be started against all dirty pages. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubj)}(hhh]j)}(h7``struct address_space *mapping`` target address_space h](j)}(h!``struct address_space *mapping``h]jS)}(hj/h]hstruct address_space *mapping}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj)ubj)}(hhh]jM)}(htarget address_spaceh]htarget address_space}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubjM)}(hThis is a mostly non-blocking flush. Not suitable for data-integrity purposes - I/O may not be started against all dirty pages.h]hThis is a mostly non-blocking flush. Not suitable for data-integrity purposes - I/O may not be started against all dirty pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#filemap_range_has_page (C function)c.filemap_range_has_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h_bool filemap_range_has_page (struct address_space *mapping, loff_t start_byte, loff_t end_byte)h]h)}(h^bool filemap_range_has_page(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfilemap_range_has_pageh]j)}(hfilemap_range_has_pageh]hfilemap_range_has_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj@modnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_range_has_pageasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t start_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jZc.filemap_range_has_pageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h start_byteh]h start_byte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t end_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjݧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڧubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjߧmodnameN classnameNjpjs)}jv]jZc.filemap_range_has_pageasbuh1hhj֧ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֧ubj)}(hend_byteh]hend_byte}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֧ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjܦhhhjhMubah}(h]jצah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhj٦hhubj4)}(hhh]jM)}(h check if a page exists in range.h]h check if a page exists in range.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj0hhubah}(h]h ]h"]h$]h&]uh1j3hj٦hhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjKjHjKjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` address space within which to check ``loff_t start_byte`` offset in bytes where the range starts ``loff_t end_byte`` offset in bytes where the range ends (inclusive) **Description** Find at least one page in the range supplied, usually used to check if direct writing in this range will trigger a writeback. **Return** ``true`` if at least one page exists in the specified range, ``false`` otherwise.h](jM)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjOubj)}(hhh](j)}(hF``struct address_space *mapping`` address space within which to check h](j)}(h!``struct address_space *mapping``h]jS)}(hjth]hstruct address_space *mapping}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjrubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjnubj)}(hhh]jM)}(h#address space within which to checkh]h#address space within which to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjkubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]jS)}(hjh]hloff_t start_byte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjƨhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj¨hMhjèubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj¨hMhjkubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]jS)}(hjh]hloff_t end_byte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjkubeh}(h]h ]h"]h$]h&]uh1jhjOubjM)}(h**Description**h]j)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjOubjM)}(h}Find at least one page in the range supplied, usually used to check if direct writing in this range will trigger a writeback.h]h}Find at least one page in the range supplied, usually used to check if direct writing in this range will trigger a writeback.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjOubjM)}(h **Return**h]j)}(hjHh]hReturn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjOubjM)}(hQ``true`` if at least one page exists in the specified range, ``false`` otherwise.h](jS)}(h``true``h]htrue}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ubh5 if at least one page exists in the specified range, }(hj^hhhNhNubjS)}(h ``false``h]hfalse}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ubh otherwise.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$filemap_fdatawait_range (C function)c.filemap_fdatawait_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(h_int filemap_fdatawait_range (struct address_space *mapping, loff_t start_byte, loff_t end_byte)h]h)}(h^int filemap_fdatawait_range(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfilemap_fdatawait_rangeh]j)}(hfilemap_fdatawait_rangeh]hfilemap_fdatawait_range}(hjΩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʩubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljЩsbc.filemap_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj6hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t start_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjamodnameN classnameNjpjs)}jv]j$c.filemap_fdatawait_rangeasbuh1hhjXubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h start_byteh]h start_byte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t end_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j$c.filemap_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hjŪhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hend_byteh]hend_byte}(hjӪhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hwait for writeback to completeh]hwait for writeback to complete}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXq**Parameters** ``struct address_space *mapping`` address space structure to wait for ``loff_t start_byte`` offset in bytes where the range starts ``loff_t end_byte`` offset in bytes where the range ends (inclusive) **Description** Walk the list of under-writeback pages of the given address space in the given range and wait for all of them. Check error status of the address space and return it. Since the error status of the address space is cleared by this function, callers are responsible for checking the return value and handling and/or reporting the error. **Return** error status of the address space.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh](j)}(hF``struct address_space *mapping`` address space structure to wait for h](j)}(h!``struct address_space *mapping``h]jS)}(hj>h]hstruct address_space *mapping}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj<ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj8ubj)}(hhh]jM)}(h#address space structure to wait forh]h#address space structure to wait for}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhj5ubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]jS)}(hjwh]hloff_t start_byte}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjqubj)}(hhh]jM)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhj5ubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]jS)}(hjh]hloff_t end_byte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjɫhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjūhMhjƫubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjūhMhj5ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM!hjubjM)}(hWalk the list of under-writeback pages of the given address space in the given range and wait for all of them. Check error status of the address space and return it.h]hWalk the list of under-writeback pages of the given address space in the given range and wait for all of them. Check error status of the address space and return it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hSince the error status of the address space is cleared by this function, callers are responsible for checking the return value and handling and/or reporting the error.h]hSince the error status of the address space is cleared by this function, callers are responsible for checking the return value and handling and/or reporting the error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM$hjubjM)}(h **Return**h]j)}(hj!h]hReturn}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM(hjubjM)}(h"error status of the address space.h]h"error status of the address space.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM)hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h0filemap_fdatawait_range_keep_errors (C function)%c.filemap_fdatawait_range_keep_errorshNtauh1hhjhhhNhNubh)}(hhh](h)}(hkint filemap_fdatawait_range_keep_errors (struct address_space *mapping, loff_t start_byte, loff_t end_byte)h]h)}(hjint filemap_fdatawait_range_keep_errors(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hinth]hint}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM4ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjthM4ubh)}(h#filemap_fdatawait_range_keep_errorsh]j)}(h#filemap_fdatawait_range_keep_errorsh]h#filemap_fdatawait_range_keep_errors}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjbhhhjthM4ubj )}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjìmodnameN classnameNjpjs)}jv]jy)}jljsb%c.filemap_fdatawait_range_keep_errorsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t start_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jݬ%c.filemap_fdatawait_range_keep_errorsasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h start_byteh]h start_byte}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t end_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbmodnameN classnameNjpjs)}jv]jݬ%c.filemap_fdatawait_range_keep_errorsasbuh1hhjYubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hend_byteh]hend_byte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjbhhhjthM4ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj^hhhjthM4ubah}(h]jYah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjthM4hj[hhubj4)}(hhh]jM)}(hwait for writeback to completeh]hwait for writeback to complete}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM4hjhhubah}(h]h ]h"]h$]h&]uh1j3hj[hhhjthM4ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjέjHjέjIjJjKuh1hhhhjhNhNubj)}(hXa**Parameters** ``struct address_space *mapping`` address space structure to wait for ``loff_t start_byte`` offset in bytes where the range starts ``loff_t end_byte`` offset in bytes where the range ends (inclusive) **Description** Walk the list of under-writeback pages of the given address space in the given range and wait for all of them. Unlike filemap_fdatawait_range(), this function does not clear error status of the address space. Use this function if callers don't handle errors themselves. Expected call sites are system-wide / filesystem-wide data flushers: e.g. sync(2), fsfreeze(8)h](jM)}(h**Parameters**h]j)}(hjحh]h Parameters}(hjڭhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֭ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM8hjҭubj)}(hhh](j)}(hF``struct address_space *mapping`` address space structure to wait for h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM5hjubj)}(hhh]jM)}(h#address space structure to wait forh]h#address space structure to wait for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM5hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM5hjubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]jS)}(hj0h]hloff_t start_byte}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM6hj*ubj)}(hhh]jM)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhM6hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM6hjubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]jS)}(hjih]hloff_t end_byte}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM7hjcubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hM7hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM7hjubeh}(h]h ]h"]h$]h&]uh1jhjҭubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM9hjҭubjM)}(hWalk the list of under-writeback pages of the given address space in the given range and wait for all of them. Unlike filemap_fdatawait_range(), this function does not clear error status of the address space.h]hWalk the list of under-writeback pages of the given address space in the given range and wait for all of them. Unlike filemap_fdatawait_range(), this function does not clear error status of the address space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM8hjҭubjM)}(hUse this function if callers don't handle errors themselves. Expected call sites are system-wide / filesystem-wide data flushers: e.g. sync(2), fsfreeze(8)h]hUse this function if callers don’t handle errors themselves. Expected call sites are system-wide / filesystem-wide data flushers: e.g. sync(2), fsfreeze(8)}(hjɮhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM<hjҭubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!file_fdatawait_range (C function)c.file_fdatawait_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hPint file_fdatawait_range (struct file *file, loff_t start_byte, loff_t end_byte)h]h)}(hOint file_fdatawait_range(struct file *file, loff_t start_byte, loff_t end_byte)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMJubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMJubh)}(hfile_fdatawait_rangeh]j)}(hfile_fdatawait_rangeh]hfile_fdatawait_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMJubj )}(h7(struct file *file, loff_t start_byte, loff_t end_byte)h](j )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hj5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(hfileh]hfile}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jy)}jljsbc.file_fdatawait_rangeasbuh1hhj1ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1ubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-ubj )}(hloff_t start_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]joc.file_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hjȯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h start_byteh]h start_byte}(hj֯hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-ubj )}(hloff_t end_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]joc.file_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hend_byteh]hend_byte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMJubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMJubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMJhjhhubj4)}(hhh]jM)}(hwait for writeback to completeh]hwait for writeback to complete}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMJhjEhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMJubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj`jHj`jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct file *file`` file pointing to address space structure to wait for ``loff_t start_byte`` offset in bytes where the range starts ``loff_t end_byte`` offset in bytes where the range ends (inclusive) **Description** Walk the list of under-writeback pages of the address space that file refers to, in the given range and wait for all of them. Check error status of the address space vs. the file->f_wb_err cursor and return it. Since the error status of the file is advanced by this function, callers are responsible for checking the return value and handling and/or reporting the error. **Return** error status of the address space vs. the file->f_wb_err cursor.h](jM)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMNhjdubj)}(hhh](j)}(hK``struct file *file`` file pointing to address space structure to wait for h](j) }(h``struct file *file``h]jS)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMKhjubj)}(hhh]jM)}(h4file pointing to address space structure to wait forh]h4file pointing to address space structure to wait for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]jS)}(hj°h]hloff_t start_byte}(hjİhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMLhjubj)}(hhh]jM)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hj۰hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjװhMLhjذubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjװhMLhjubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]jS)}(hjh]hloff_t end_byte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMMhjubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubeh}(h]h ]h"]h$]h&]uh1jhjdubjM)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMOhjdubjM)}(hWalk the list of under-writeback pages of the address space that file refers to, in the given range and wait for all of them. Check error status of the address space vs. the file->f_wb_err cursor and return it.h]hWalk the list of under-writeback pages of the address space that file refers to, in the given range and wait for all of them. Check error status of the address space vs. the file->f_wb_err cursor and return it.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMNhjdubjM)}(hSince the error status of the file is advanced by this function, callers are responsible for checking the return value and handling and/or reporting the error.h]hSince the error status of the file is advanced by this function, callers are responsible for checking the return value and handling and/or reporting the error.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMRhjdubjM)}(h **Return**h]j)}(hjlh]hReturn}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMVhjdubjM)}(h@error status of the address space vs. the file->f_wb_err cursor.h]h@error status of the address space vs. the file->f_wb_err cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMWhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*filemap_fdatawait_keep_errors (C function)c.filemap_fdatawait_keep_errorshNtauh1hhjhhhNhNubh)}(hhh](h)}(hAint filemap_fdatawait_keep_errors (struct address_space *mapping)h]h)}(h@int filemap_fdatawait_keep_errors(struct address_space *mapping)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMcubh)}(hfilemap_fdatawait_keep_errorsh]j)}(hfilemap_fdatawait_keep_errorsh]hfilemap_fdatawait_keep_errors}(hjұhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjαubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMcubj )}(h(struct address_space *mapping)h]j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljԱsbc.filemap_fdatawait_keep_errorsasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj:hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMcubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMcubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMchjhhubj4)}(hhh]jM)}(h*wait for writeback without clearing errorsh]h*wait for writeback without clearing errors}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMchjnhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMcubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` address space structure to wait for **Description** Walk the list of under-writeback pages of the given address space and wait for all of them. Unlike filemap_fdatawait(), this function does not clear error status of the address space. Use this function if callers don't handle errors themselves. Expected call sites are system-wide / filesystem-wide data flushers: e.g. sync(2), fsfreeze(8) **Return** error status of the address space.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMghjubj)}(hhh]j)}(hF``struct address_space *mapping`` address space structure to wait for h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMdhjubj)}(hhh]jM)}(h#address space structure to wait forh]h#address space structure to wait for}(hj˲hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDzhMdhjȲubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjDzhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMfhjubjM)}(hWalk the list of under-writeback pages of the given address space and wait for all of them. Unlike filemap_fdatawait(), this function does not clear error status of the address space.h]hWalk the list of under-writeback pages of the given address space and wait for all of them. Unlike filemap_fdatawait(), this function does not clear error status of the address space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMehjubjM)}(hUse this function if callers don't handle errors themselves. Expected call sites are system-wide / filesystem-wide data flushers: e.g. sync(2), fsfreeze(8)h]hUse this function if callers don’t handle errors themselves. Expected call sites are system-wide / filesystem-wide data flushers: e.g. sync(2), fsfreeze(8)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMihjubjM)}(h **Return**h]j)}(hj#h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMmhjubjM)}(h"error status of the address space.h]h"error status of the address space.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMnhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)filemap_write_and_wait_range (C function)c.filemap_write_and_wait_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(h\int filemap_write_and_wait_range (struct address_space *mapping, loff_t lstart, loff_t lend)h]h)}(h[int filemap_write_and_wait_range(struct address_space *mapping, loff_t lstart, loff_t lend)h](j)}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjvhMubh)}(hfilemap_write_and_wait_rangeh]j)}(hfilemap_write_and_wait_rangeh]hfilemap_write_and_wait_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjdhhhjvhMubj )}(h;(struct address_space *mapping, loff_t lstart, loff_t lend)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjóhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjųmodnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t lstarth](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j߳c.filemap_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlstarth]hlstart}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t lendh](h)}(hhh]j)}(hloff_th]hloff_t}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]j߳c.filemap_write_and_wait_rangeasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hlendh]hlend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjdhhhjvhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj`hhhjvhMubah}(h]j[ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjvhMhj]hhubj4)}(hhh]jM)}(h write out & wait on a file rangeh]h write out & wait on a file range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj]hhhjvhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjдjHjдjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` the address_space for the pages ``loff_t lstart`` offset in bytes where the range starts ``loff_t lend`` offset in bytes where the range ends (inclusive) **Description** Write out and wait upon file offsets lstart->lend, inclusive. Note that **lend** is inclusive (describes the last byte to be written) so that this function can be used to write to the very end-of-file (end = -1). **Return** error status of the address space.h](jM)}(h**Parameters**h]j)}(hjڴh]h Parameters}(hjܴhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjشubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjԴubj)}(hhh](j)}(hB``struct address_space *mapping`` the address_space for the pages h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hthe address_space for the pagesh]hthe address_space for the pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``loff_t lstart`` offset in bytes where the range starts h](j)}(h``loff_t lstart``h]jS)}(hj2h]h loff_t lstart}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj,ubj)}(hhh]jM)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjubj)}(hA``loff_t lend`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t lend``h]jS)}(hjkh]h loff_t lend}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjeubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjԴubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjԴubjM)}(h=Write out and wait upon file offsets lstart->lend, inclusive.h]h=Write out and wait upon file offsets lstart->lend, inclusive.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjԴubjM)}(hNote that **lend** is inclusive (describes the last byte to be written) so that this function can be used to write to the very end-of-file (end = -1).h](h Note that }(hj˵hhhNhNubj)}(h**lend**h]hlend}(hjӵhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˵ubh is inclusive (describes the last byte to be written) so that this function can be used to write to the very end-of-file (end = -1).}(hj˵hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjԴubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjԴubjM)}(h"error status of the address space.h]h"error status of the address space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjԴubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*file_check_and_advance_wb_err (C function)c.file_check_and_advance_wb_errhNtauh1hhjhhhNhNubh)}(hhh](h)}(h5int file_check_and_advance_wb_err (struct file *file)h]h)}(h4int file_check_and_advance_wb_err(struct file *file)h](j)}(hinth]hint}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhjAhMubh)}(hfile_check_and_advance_wb_errh]j)}(hfile_check_and_advance_wb_errh]hfile_check_and_advance_wb_err}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/hhhjAhMubj )}(h(struct file *file)h]j )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hjphhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljVsbc.file_check_and_advance_wb_errasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjlubj)}(hfileh]hfile}(hjɶhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjhubah}(h]h ]h"]h$]h&]jjuh1j hj/hhhjAhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj+hhhjAhMubah}(h]j&ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjAhMhj(hhubj4)}(hhh]jM)}(hNreport wb error (if any) that was previously and advance wb_err to current oneh]hNreport wb error (if any) that was previously and advance wb_err to current one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj(hhhjAhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct file *file`` struct file on which the error is being reported **Description** When userland calls fsync (or something like nfsd does the equivalent), we want to report any writeback errors that occurred since the last fsync (or since the file was opened if there haven't been any). Grab the wb_err from the mapping. If it matches what we have in the file, then just quickly return 0. The file is all caught up. If it doesn't match, then take the mapping value, set the "seen" flag in it and try to swap it into place. If it works, or another task beat us to it with the new value, then update the f_wb_err and return the error portion. The error at this point must be reported via proper channels (a'la fsync, or NFS COMMIT operation, etc.). While we handle mapping->wb_err with atomic operations, the f_wb_err value is protected by the f_lock since we must ensure that it reflects the latest value swapped in for this file descriptor. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j)}(hG``struct file *file`` struct file on which the error is being reported h](j)}(h``struct file *file``h]jS)}(hj4h]hstruct file *file}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj.ubj)}(hhh]jM)}(h0struct file on which the error is being reportedh]h0struct file on which the error is being reported}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hWhen userland calls fsync (or something like nfsd does the equivalent), we want to report any writeback errors that occurred since the last fsync (or since the file was opened if there haven't been any).h]hWhen userland calls fsync (or something like nfsd does the equivalent), we want to report any writeback errors that occurred since the last fsync (or since the file was opened if there haven’t been any).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hGrab the wb_err from the mapping. If it matches what we have in the file, then just quickly return 0. The file is all caught up.h]hGrab the wb_err from the mapping. If it matches what we have in the file, then just quickly return 0. The file is all caught up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hXJIf it doesn't match, then take the mapping value, set the "seen" flag in it and try to swap it into place. If it works, or another task beat us to it with the new value, then update the f_wb_err and return the error portion. The error at this point must be reported via proper channels (a'la fsync, or NFS COMMIT operation, etc.).h]hXRIf it doesn’t match, then take the mapping value, set the “seen” flag in it and try to swap it into place. If it works, or another task beat us to it with the new value, then update the f_wb_err and return the error portion. The error at this point must be reported via proper channels (a’la fsync, or NFS COMMIT operation, etc.).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hWhile we handle mapping->wb_err with atomic operations, the f_wb_err value is protected by the f_lock since we must ensure that it reflects the latest value swapped in for this file descriptor.h]hWhile we handle mapping->wb_err with atomic operations, the f_wb_err value is protected by the f_lock since we must ensure that it reflects the latest value swapped in for this file descriptor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hj÷h]hReturn}(hjŷhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjݷhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjٷubh+ on success, negative error code otherwise.}(hjٷhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&file_write_and_wait_range (C function)c.file_write_and_wait_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hMint file_write_and_wait_range (struct file *file, loff_t lstart, loff_t lend)h]h)}(hLint file_write_and_wait_range(struct file *file, loff_t lstart, loff_t lend)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj$hMubh)}(hfile_write_and_wait_rangeh]j)}(hfile_write_and_wait_rangeh]hfile_write_and_wait_range}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj$hMubj )}(h/(struct file *file, loff_t lstart, loff_t lend)h](j )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hjShhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(hfileh]hfile}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjsmodnameN classnameNjpjs)}jv]jy)}jlj9sbc.file_write_and_wait_rangeasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjOubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubj )}(h loff_t lstarth](h)}(hhh]j)}(hloff_th]hloff_t}(hjȸhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŸubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjʸmodnameN classnameNjpjs)}jv]jc.file_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlstarth]hlstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubj )}(h loff_t lendh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.file_write_and_wait_rangeasbuh1hhj ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlendh]hlend}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj$hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj$hMubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj$hMhj hhubj4)}(hhh]jM)}(h write out & wait on a file rangeh]h write out & wait on a file range}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjchhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj$hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj~jHj~jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct file *file`` file pointing to address_space with pages ``loff_t lstart`` offset in bytes where the range starts ``loff_t lend`` offset in bytes where the range ends (inclusive) **Description** Write out and wait upon file offsets lstart->lend, inclusive. Note that **lend** is inclusive (describes the last byte to be written) so that this function can be used to write to the very end-of-file (end = -1). After writing out and waiting on the data, we check and advance the f_wb_err cursor to the latest value, and return any errors detected there. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h@``struct file *file`` file pointing to address_space with pages h](j)}(h``struct file *file``h]jS)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h)file pointing to address_space with pagesh]h)file pointing to address_space with pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``loff_t lstart`` offset in bytes where the range starts h](j)}(h``loff_t lstart``h]jS)}(hjh]h loff_t lstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj޹ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjڹubj)}(hhh]jM)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjڹubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``loff_t lend`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t lend``h]jS)}(hjh]h loff_t lend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h=Write out and wait upon file offsets lstart->lend, inclusive.h]h=Write out and wait upon file offsets lstart->lend, inclusive.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hNote that **lend** is inclusive (describes the last byte to be written) so that this function can be used to write to the very end-of-file (end = -1).h](h Note that }(hjyhhhNhNubj)}(h**lend**h]hlend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh is inclusive (describes the last byte to be written) so that this function can be used to write to the very end-of-file (end = -1).}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hAfter writing out and waiting on the data, we check and advance the f_wb_err cursor to the latest value, and return any errors detected there.h]hAfter writing out and waiting on the data, we check and advance the f_wb_err cursor to the latest value, and return any errors detected there.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjźhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%replace_page_cache_folio (C function)c.replace_page_cache_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hDvoid replace_page_cache_folio (struct folio *old, struct folio *new)h]h)}(hCvoid replace_page_cache_folio(struct folio *old, struct folio *new)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubh)}(hreplace_page_cache_folioh]j)}(hreplace_page_cache_folioh]hreplace_page_cache_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hMubj )}(h&(struct folio *old, struct folio *new)h](j )}(hstruct folio *oldh](j5)}(hj8h]hstruct}(hj;hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(hfolioh]hfolio}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj[modnameN classnameNjpjs)}jv]jy)}jlj!sbc.replace_page_cache_folioasbuh1hhj7ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj7ubj)}(holdh]hold}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubj )}(hstruct folio *newh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hj˻hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȻubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjͻmodnameN classnameNjpjs)}jv]juc.replace_page_cache_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hMhjhhubj4)}(hhh]jM)}(h(replace a pagecache folio with a new oneh]h(replace a pagecache folio with a new one}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj+hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjFjHjFjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *old`` folio to be replaced ``struct folio *new`` folio to replace with **Description** This function replaces a folio in the pagecache with a new one. On success it acquires the pagecache reference for the new folio and drops it for the old folio. Both the old and new folios must be locked. This function does not add the new folio to the LRU, the caller must do that. The remove + add is atomic. This function cannot fail.h](jM)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM#hjJubj)}(hhh](j)}(h+``struct folio *old`` folio to be replaced h](j)}(h``struct folio *old``h]jS)}(hjoh]hstruct folio *old}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjmubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjiubj)}(hhh]jM)}(hfolio to be replacedh]hfolio to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhM hjfubj)}(h,``struct folio *new`` folio to replace with h](j)}(h``struct folio *new``h]jS)}(hjh]hstruct folio *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM!hjubj)}(hhh]jM)}(hfolio to replace withh]hfolio to replace with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjfubeh}(h]h ]h"]h$]h&]uh1jhjJubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM#hjJubjM)}(hXThis function replaces a folio in the pagecache with a new one. On success it acquires the pagecache reference for the new folio and drops it for the old folio. Both the old and new folios must be locked. This function does not add the new folio to the LRU, the caller must do that.h]hXThis function replaces a folio in the pagecache with a new one. On success it acquires the pagecache reference for the new folio and drops it for the old folio. Both the old and new folios must be locked. This function does not add the new folio to the LRU, the caller must do that.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM"hjJubjM)}(h7The remove + add is atomic. This function cannot fail.h]h7The remove + add is atomic. This function cannot fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM(hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_unlock (C function)c.folio_unlockhNtauh1hhjhhhNhNubh)}(hhh](h)}(h'void folio_unlock (struct folio *folio)h]h)}(h&void folio_unlock(struct folio *folio)h](j)}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhjEhMubh)}(h folio_unlockh]j)}(h folio_unlockh]h folio_unlock}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1hhj3hhhjEhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjthhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljZsbc.folio_unlockasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjpubj)}(hfolioh]hfolio}(hjͽhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubah}(h]h ]h"]h$]h&]jjuh1j hj3hhhjEhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj/hhhjEhMubah}(h]j*ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjEhMhj,hhubj4)}(hhh]jM)}(hUnlock a locked folio.h]hUnlock a locked folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj,hhhjEhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` The folio. **Description** Unlocks the folio and wakes up any thread sleeping on the page lock. **Context** May be called from interrupt or process context. May not be called from NMI context.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hj8h]hstruct folio *folio}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj2ubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hDUnlocks the folio and wakes up any thread sleeping on the page lock.h]hDUnlocks the folio and wakes up any thread sleeping on the page lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hUMay be called from interrupt or process context. May not be called from NMI context.h]hUMay be called from interrupt or process context. May not be called from NMI context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_end_read (C function)c.folio_end_readhNtauh1hhjhhhNhNubh)}(hhh](h)}(h7void folio_end_read (struct folio *folio, bool success)h]h)}(h6void folio_end_read(struct folio *folio, bool success)h](j)}(hvoidh]hvoid}(hj߾hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۾hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۾hhhjhMubh)}(hfolio_end_readh]j)}(hfolio_end_readh]hfolio_end_read}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj۾hhhjhMubj )}(h#(struct folio *folio, bool success)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj<modnameN classnameNjpjs)}jv]jy)}jljsbc.folio_end_readasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h bool successh](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsuccessh]hsuccess}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj۾hhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj׾hhhjhMubah}(h]jҾah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjԾhhubj4)}(hhh]jM)}(hEnd read on a folio.h]hEnd read on a folio.}(hjӿhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjпhhubah}(h]h ]h"]h$]h&]uh1j3hjԾhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio. ``bool success`` True if all reads completed successfully. **Description** When all reads against a folio have completed, filesystems should call this function to let the pagecache know that no more reads are outstanding. This will unlock the folio and wake up any thread sleeping on the lock. The folio will also be marked uptodate if all reads succeeded. **Context** May be called from interrupt or process context. May not be called from NMI context.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj ubj)}(h;``bool success`` True if all reads completed successfully. h](j)}(h``bool success``h]jS)}(hjMh]h bool success}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjGubj)}(hhh]jM)}(h)True if all reads completed successfully.h]h)True if all reads completed successfully.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hXWhen all reads against a folio have completed, filesystems should call this function to let the pagecache know that no more reads are outstanding. This will unlock the folio and wake up any thread sleeping on the lock. The folio will also be marked uptodate if all reads succeeded.h]hXWhen all reads against a folio have completed, filesystems should call this function to let the pagecache know that no more reads are outstanding. This will unlock the folio and wake up any thread sleeping on the lock. The folio will also be marked uptodate if all reads succeeded.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hUMay be called from interrupt or process context. May not be called from NMI context.h]hUMay be called from interrupt or process context. May not be called from NMI context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_end_private_2 (C function)c.folio_end_private_2hNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void folio_end_private_2 (struct folio *folio)h]h)}(h-void folio_end_private_2(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_end_private_2h]j)}(hfolio_end_private_2h]hfolio_end_private_2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(hfolioh]hfolio}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjQmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_end_private_2asbuh1hhj-ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjF )}(hjI h]h*}(hj}hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjhhubj4)}(hhh]jM)}(h(Clear PG_private_2 and wake any waiters.h]h(Clear PG_private_2 and wake any waiters.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXx**Parameters** ``struct folio *folio`` The folio. **Description** Clear the PG_private_2 bit on a folio and wake up any sleepers waiting for it. The folio reference held for PG_private_2 being set is released. This is, for example, used when a netfs folio is being written to a local disk cache, thereby allowing writes to the cache for the same folio to be serialised.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hClear the PG_private_2 bit on a folio and wake up any sleepers waiting for it. The folio reference held for PG_private_2 being set is released.h]hClear the PG_private_2 bit on a folio and wake up any sleepers waiting for it. The folio reference held for PG_private_2 being set is released.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hThis is, for example, used when a netfs folio is being written to a local disk cache, thereby allowing writes to the cache for the same folio to be serialised.h]hThis is, for example, used when a netfs folio is being written to a local disk cache, thereby allowing writes to the cache for the same folio to be serialised.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_wait_private_2 (C function)c.folio_wait_private_2hNtauh1hhjhhhNhNubh)}(hhh](h)}(h/void folio_wait_private_2 (struct folio *folio)h]h)}(h.void folio_wait_private_2(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_wait_private_2h]j)}(hfolio_wait_private_2h]hfolio_wait_private_2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_wait_private_2asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj|hhhjhMubah}(h]jwah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjyhhubj4)}(hhh]jM)}(h/Wait for PG_private_2 to be cleared on a folio.h]h/Wait for PG_private_2 to be cleared on a folio.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjAhhubah}(h]h ]h"]h$]h&]uh1j3hjyhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj\jHj\jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` The folio to wait on. **Description** Wait for PG_private_2 to be cleared on a folio.h](jM)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM"hj`ubj)}(hhh]j)}(h.``struct folio *folio`` The folio to wait on. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hThe folio to wait on.h]hThe folio to wait on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM!hj`ubjM)}(h/Wait for PG_private_2 to be cleared on a folio.h]h/Wait for PG_private_2 to be cleared on a folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*folio_wait_private_2_killable (C function)c.folio_wait_private_2_killablehNtauh1hhjhhhNhNubh)}(hhh](h)}(h7int folio_wait_private_2_killable (struct folio *folio)h]h)}(h6int folio_wait_private_2_killable(struct folio *folio)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM+ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM+ubh)}(hfolio_wait_private_2_killableh]j)}(hfolio_wait_private_2_killableh]hfolio_wait_private_2_killable}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM+ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjBhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]j)}(hfolioh]hfolio}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbmodnameN classnameNjpjs)}jv]jy)}jlj(sbc.folio_wait_private_2_killableasbuh1hhj>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj>ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj:ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM+ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM+ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM+hjhhubj4)}(hhh]jM)}(h/Wait for PG_private_2 to be cleared on a folio.h]h/Wait for PG_private_2 to be cleared on a folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM+hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM+ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to wait on. **Description** Wait for PG_private_2 to be cleared on a folio or until a fatal signal is received by the calling task. **Return** - 0 if successful. - -EINTR if a fatal signal was encountered.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM/hjubj)}(hhh]j)}(h.``struct folio *folio`` The folio to wait on. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM,hjubj)}(hhh]jM)}(hThe folio to wait on.h]hThe folio to wait on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM.hjubjM)}(hgWait for PG_private_2 to be cleared on a folio or until a fatal signal is received by the calling task.h]hgWait for PG_private_2 to be cleared on a folio or until a fatal signal is received by the calling task.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM-hjubjM)}(h **Return**h]j)}(hjhh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM0hjubj~W)}(hhh](j/)}(h0 if successful.h]jM)}(hjh]h0 if successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM1hjubah}(h]h ]h"]h$]h&]uh1j/hj~ubj/)}(h)-EINTR if a fatal signal was encountered.h]jM)}(hjh]h)-EINTR if a fatal signal was encountered.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM2hjubah}(h]h ]h"]h$]h&]uh1j/hj~ubeh}(h]h ]h"]h$]h&]jWjWuh1j}WhjhM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.folio_end_writeback_no_dropbehind (C function)#c.folio_end_writeback_no_dropbehindhNtauh1hhjhhhNhNubh)}(hhh](h)}(hubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!page_cache_next_miss (C function)c.page_cache_next_misshNtauh1hhjhhhNhNubh)}(hhh](h)}(hcpgoff_t page_cache_next_miss (struct address_space *mapping, pgoff_t index, unsigned long max_scan)h]h)}(hbpgoff_t page_cache_next_miss(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlpage_cache_next_misssbc.page_cache_next_missasbuh1hhj~hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhMubh)}(hpage_cache_next_missh]j)}(hjh]hpage_cache_next_miss}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj~hhhjhMubj )}(hF(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.page_cache_next_missasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjImodnameN classnameNjpjs)}jv]jc.page_cache_next_missasbuh1hhj@ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hindexh]hindex}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long max_scanh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmax_scanh]hmax_scan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj~hhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjzhhhjhMubah}(h]juah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjwhhubj4)}(hhh]jM)}(h$Find the next gap in the page cache.h]h$Find the next gap in the page cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjwhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX **Parameters** ``struct address_space *mapping`` Mapping. ``pgoff_t index`` Index. ``unsigned long max_scan`` Maximum range to search. **Description** Search the range [index, min(index + max_scan - 1, ULONG_MAX)] for the gap with the lowest index. This function may be called under the rcu_read_lock. However, this will not atomically search a snapshot of the cache at a single point in time. For example, if a gap is created at index 5, then subsequently a gap is created at index 10, page_cache_next_miss covering both indices may return 10 if called under the rcu_read_lock. **Return** The index of the gap if found, otherwise an index outside the range specified (in which case 'return - index >= max_scan' will be true). In the rare case of index wrap-around, 0 will be returned.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubj)}(hhh](j)}(h+``struct address_space *mapping`` Mapping. h](j)}(h!``struct address_space *mapping``h]jS)}(hj/h]hstruct address_space *mapping}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj)ubj)}(hhh]jM)}(hMapping.h]hMapping.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhj&ubj)}(h``pgoff_t index`` Index. h](j)}(h``pgoff_t index``h]jS)}(hjhh]h pgoff_t index}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjbubj)}(hhh]jM)}(hIndex.h]hIndex.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj&ubj)}(h4``unsigned long max_scan`` Maximum range to search. h](j)}(h``unsigned long max_scan``h]jS)}(hjh]hunsigned long max_scan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hMaximum range to search.h]hMaximum range to search.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj&ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubjM)}(haSearch the range [index, min(index + max_scan - 1, ULONG_MAX)] for the gap with the lowest index.h]haSearch the range [index, min(index + max_scan - 1, ULONG_MAX)] for the gap with the lowest index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubjM)}(hXJThis function may be called under the rcu_read_lock. However, this will not atomically search a snapshot of the cache at a single point in time. For example, if a gap is created at index 5, then subsequently a gap is created at index 10, page_cache_next_miss covering both indices may return 10 if called under the rcu_read_lock.h]hXJThis function may be called under the rcu_read_lock. However, this will not atomically search a snapshot of the cache at a single point in time. For example, if a gap is created at index 5, then subsequently a gap is created at index 10, page_cache_next_miss covering both indices may return 10 if called under the rcu_read_lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj ubjM)}(hThe index of the gap if found, otherwise an index outside the range specified (in which case 'return - index >= max_scan' will be true). In the rare case of index wrap-around, 0 will be returned.h]hThe index of the gap if found, otherwise an index outside the range specified (in which case ‘return - index >= max_scan’ will be true). In the rare case of index wrap-around, 0 will be returned.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!page_cache_prev_miss (C function)c.page_cache_prev_misshNtauh1hhjhhhNhNubh)}(hhh](h)}(hcpgoff_t page_cache_prev_miss (struct address_space *mapping, pgoff_t index, unsigned long max_scan)h]h)}(hbpgoff_t page_cache_prev_miss(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj\modnameN classnameNjpjs)}jv]jy)}jlpage_cache_prev_misssbc.page_cache_prev_missasbuh1hhjShhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM!ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhj{hM!ubh)}(hpage_cache_prev_missh]j)}(hjxh]hpage_cache_prev_miss}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjShhhj{hM!ubj )}(hF(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jvc.page_cache_prev_missasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jvc.page_cache_prev_missasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexh]hindex}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long max_scanh](j)}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hlongh]hlong}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hmax_scanh]hmax_scan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjShhhj{hM!ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjOhhhj{hM!ubah}(h]jJah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj{hM!hjLhhubj4)}(hhh]jM)}(h(Find the previous gap in the page cache.h]h(Find the previous gap in the page cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM!hjhhubah}(h]h ]h"]h$]h&]uh1j3hjLhhhj{hM!ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` Mapping. ``pgoff_t index`` Index. ``unsigned long max_scan`` Maximum range to search. **Description** Search the range [max(index - max_scan + 1, 0), index] for the gap with the highest index. This function may be called under the rcu_read_lock. However, this will not atomically search a snapshot of the cache at a single point in time. For example, if a gap is created at index 10, then subsequently a gap is created at index 5, page_cache_prev_miss() covering both indices may return 5 if called under the rcu_read_lock. **Return** The index of the gap if found, otherwise an index outside the range specified (in which case 'index - return >= max_scan' will be true). In the rare case of wrap-around, ULONG_MAX will be returned.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM%hjubj)}(hhh](j)}(h+``struct address_space *mapping`` Mapping. h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM"hjubj)}(hhh]jM)}(hMapping.h]hMapping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjubj)}(h``pgoff_t index`` Index. h](j)}(h``pgoff_t index``h]jS)}(hj=h]h pgoff_t index}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM#hj7ubj)}(hhh]jM)}(hIndex.h]hIndex.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjRhM#hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhM#hjubj)}(h4``unsigned long max_scan`` Maximum range to search. h](j)}(h``unsigned long max_scan``h]jS)}(hjvh]hunsigned long max_scan}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM$hjpubj)}(hhh]jM)}(hMaximum range to search.h]hMaximum range to search.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM&hjubjM)}(hZSearch the range [max(index - max_scan + 1, 0), index] for the gap with the highest index.h]hZSearch the range [max(index - max_scan + 1, 0), index] for the gap with the highest index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM%hjubjM)}(hXKThis function may be called under the rcu_read_lock. However, this will not atomically search a snapshot of the cache at a single point in time. For example, if a gap is created at index 10, then subsequently a gap is created at index 5, page_cache_prev_miss() covering both indices may return 5 if called under the rcu_read_lock.h]hXKThis function may be called under the rcu_read_lock. However, this will not atomically search a snapshot of the cache at a single point in time. For example, if a gap is created at index 10, then subsequently a gap is created at index 5, page_cache_prev_miss() covering both indices may return 5 if called under the rcu_read_lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM(hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM.hjubjM)}(hThe index of the gap if found, otherwise an index outside the range specified (in which case 'index - return >= max_scan' will be true). In the rare case of wrap-around, ULONG_MAX will be returned.h]hThe index of the gap if found, otherwise an index outside the range specified (in which case ‘index - return >= max_scan’ will be true). In the rare case of wrap-around, ULONG_MAX will be returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%__filemap_get_folio_mpol (C function)c.__filemap_get_folio_mpolhNtauh1hhjhhhNhNubh)}(hhh](h)}(hstruct folio * __filemap_get_folio_mpol (struct address_space *mapping, pgoff_t index, fgf_t fgp_flags, gfp_t gfp, struct mempolicy *policy)h]h)}(hstruct folio *__filemap_get_folio_mpol(struct address_space *mapping, pgoff_t index, fgf_t fgp_flags, gfp_t gfp, struct mempolicy *policy)h](j5)}(hj8h]hstruct}(hj,hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj(hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj9hMubh)}(hhh]j)}(hfolioh]hfolio}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjMmodnameN classnameNjpjs)}jv]jy)}jl__filemap_get_folio_mpolsbc.__filemap_get_folio_mpolasbuh1hhj(hhhj9hMubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj9hMubjF )}(hjI h]h*}(hjzhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj(hhhj9hMubh)}(h__filemap_get_folio_mpolh]j)}(hjih]h__filemap_get_folio_mpol}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj(hhhj9hMubj )}(hd(struct address_space *mapping, pgoff_t index, fgf_t fgp_flags, gfp_t gfp, struct mempolicy *policy)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jgc.__filemap_get_folio_mpolasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jgc.__filemap_get_folio_mpolasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexh]hindex}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hfgf_t fgp_flagsh](h)}(hhh]j)}(hfgf_th]hfgf_t}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjcmodnameN classnameNjpjs)}jv]jgc.__filemap_get_folio_mpolasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h fgp_flagsh]h fgp_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jgc.__filemap_get_folio_mpolasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mempolicy *policyh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mempolicyh]h mempolicy}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jgc.__filemap_get_folio_mpolasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpolicyh]hpolicy}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj(hhhj9hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj$hhhj9hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj9hMhj!hhubj4)}(hhh]jM)}(h$Find and get a reference to a folio.h]h$Find and get a reference to a folio.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjlhhubah}(h]h ]h"]h$]h&]uh1j3hj!hhhj9hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The address_space to search. ``pgoff_t index`` The page index. ``fgf_t fgp_flags`` ``FGP`` flags modify how the folio is returned. ``gfp_t gfp`` Memory allocation flags to use if ``FGP_CREAT`` is specified. ``struct mempolicy *policy`` NUMA memory allocation policy to follow. **Description** Looks up the page cache entry at **mapping** & **index**. If ``FGP_LOCK`` or ``FGP_CREAT`` are specified then the function may sleep even if the ``GFP`` flags specified for ``FGP_CREAT`` are atomic. If this function returns a folio, it is returned with an increased refcount. **Return** The found folio or an ERR_PTR() otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h?``struct address_space *mapping`` The address_space to search. h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hThe address_space to search.h]hThe address_space to search.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]jS)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hThe page index.h]hThe page index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hD``fgf_t fgp_flags`` ``FGP`` flags modify how the folio is returned. h](j)}(h``fgf_t fgp_flags``h]jS)}(hj"h]hfgf_t fgp_flags}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h/``FGP`` flags modify how the folio is returned.h](jS)}(h``FGP``h]hFGP}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubh( flags modify how the folio is returned.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(hL``gfp_t gfp`` Memory allocation flags to use if ``FGP_CREAT`` is specified. h](j)}(h ``gfp_t gfp``h]jS)}(hjih]h gfp_t gfp}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjcubj)}(hhh]jM)}(h=Memory allocation flags to use if ``FGP_CREAT`` is specified.h](h"Memory allocation flags to use if }(hjhhhNhNubjS)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh is specified.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhjubj)}(hF``struct mempolicy *policy`` NUMA memory allocation policy to follow. h](j)}(h``struct mempolicy *policy``h]jS)}(hjh]hstruct mempolicy *policy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h(NUMA memory allocation policy to follow.h]h(NUMA memory allocation policy to follow.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h9Looks up the page cache entry at **mapping** & **index**.h](h!Looks up the page cache entry at }(hjhhhNhNubj)}(h **mapping**h]hmapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh & }(hjhhhNhNubj)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hIf ``FGP_LOCK`` or ``FGP_CREAT`` are specified then the function may sleep even if the ``GFP`` flags specified for ``FGP_CREAT`` are atomic.h](hIf }(hj8hhhNhNubjS)}(h ``FGP_LOCK``h]hFGP_LOCK}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubh or }(hj8hhhNhNubjS)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubh7 are specified then the function may sleep even if the }(hj8hhhNhNubjS)}(h``GFP``h]hGFP}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubh flags specified for }(hj8hhhNhNubjS)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubh are atomic.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hLIf this function returns a folio, it is returned with an increased refcount.h]hLIf this function returns a folio, it is returned with an increased refcount.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h*The found folio or an ERR_PTR() otherwise.h]h*The found folio or an ERR_PTR() otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_get_folios (C function)c.filemap_get_folioshNtauh1hhjhhhNhNubh)}(hhh](h)}(htunsigned filemap_get_folios (struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h]h)}(hsunsigned filemap_get_folios(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfilemap_get_foliosh]j)}(hfilemap_get_foliosh]hfilemap_get_folios}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hX(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj"hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_get_foliosasbuh1hhjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjnhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hpgoff_t *starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j\c.filemap_get_foliosasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j\c.filemap_get_foliosasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio_batch *fbatchh](j5)}(hj8h]hstruct}(hj1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjQmodnameN classnameNjpjs)}jv]j\c.filemap_get_foliosasbuh1hhj-ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjF )}(hjI h]h*}(hj{hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-ubj)}(hfbatchh]hfbatch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hGet a batch of foliosh]hGet a batch of folios}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX1**Parameters** ``struct address_space *mapping`` The address_space to search ``pgoff_t *start`` The starting page index ``pgoff_t end`` The final page index (inclusive) ``struct folio_batch *fbatch`` The batch to fill. **Description** Search for and return a batch of folios in the mapping starting at index **start** and up to index **end** (inclusive). The folios are returned in **fbatch** with an elevated reference count. **Return** The number of folios which were found. We also update **start** to index the next folio for the traversal.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h>``struct address_space *mapping`` The address_space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hThe address_space to searchh]hThe address_space to search}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``pgoff_t *start`` The starting page index h](j)}(h``pgoff_t *start``h]jS)}(hj,h]hpgoff_t *start}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj&ubj)}(hhh]jM)}(hThe starting page indexh]hThe starting page index}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjubj)}(h1``pgoff_t end`` The final page index (inclusive) h](j)}(h``pgoff_t end``h]jS)}(hjeh]h pgoff_t end}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj_ubj)}(hhh]jM)}(h The final page index (inclusive)h]h The final page index (inclusive)}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjubj)}(h2``struct folio_batch *fbatch`` The batch to fill. h](j)}(h``struct folio_batch *fbatch``h]jS)}(hjh]hstruct folio_batch *fbatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hThe batch to fill.h]hThe batch to fill.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hSearch for and return a batch of folios in the mapping starting at index **start** and up to index **end** (inclusive). The folios are returned in **fbatch** with an elevated reference count.h](hISearch for and return a batch of folios in the mapping starting at index }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and up to index }(hjhhhNhNubj)}(h**end**h]hend}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh* (inclusive). The folios are returned in }(hjhhhNhNubj)}(h **fbatch**h]hfbatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" with an elevated reference count.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hj6h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hjThe number of folios which were found. We also update **start** to index the next folio for the traversal.h](h6The number of folios which were found. We also update }(hjLhhhNhNubj)}(h **start**h]hstart}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh+ to index the next folio for the traversal.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&filemap_get_folios_contig (C function)c.filemap_get_folios_contighNtauh1hhjhhhNhNubh)}(hhh](h)}(h{unsigned filemap_get_folios_contig (struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h]h)}(hzunsigned filemap_get_folios_contig(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfilemap_get_folios_contigh]j)}(hfilemap_get_folios_contigh]hfilemap_get_folios_contig}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hX(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_get_folios_contigasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hpgoff_t *starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjAmodnameN classnameNjpjs)}jv]jc.filemap_get_folios_contigasbuh1hhj8ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjF )}(hjI h]h*}(hjkhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj8ubj)}(hstarth]hstart}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_get_folios_contigasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio_batch *fbatchh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_get_folios_contigasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj#hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfbatchh]hfbatch}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h Get a batch of contiguous foliosh]h Get a batch of contiguous folios}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjWhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjrjHjrjIjJjKuh1hhhhjhNhNubj)}(hX0**Parameters** ``struct address_space *mapping`` The address_space to search ``pgoff_t *start`` The starting page index ``pgoff_t end`` The final page index (inclusive) ``struct folio_batch *fbatch`` The batch to fill **Description** filemap_get_folios_contig() works exactly like filemap_get_folios(), except the returned folios are guaranteed to be contiguous. This may not return all contiguous folios if the batch gets filled up. **Return** The number of folios found. Also update **start** to be positioned for traversal of the next folio.h](jM)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjvubj)}(hhh](j)}(h>``struct address_space *mapping`` The address_space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hThe address_space to searchh]hThe address_space to search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``pgoff_t *start`` The starting page index h](j)}(h``pgoff_t *start``h]jS)}(hjh]hpgoff_t *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hThe starting page indexh]hThe starting page index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h1``pgoff_t end`` The final page index (inclusive) h](j)}(h``pgoff_t end``h]jS)}(hj h]h pgoff_t end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h The final page index (inclusive)h]h The final page index (inclusive)}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubj)}(h1``struct folio_batch *fbatch`` The batch to fill h](j)}(h``struct folio_batch *fbatch``h]jS)}(hjFh]hstruct folio_batch *fbatch}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj@ubj)}(hhh]jM)}(hThe batch to fillh]hThe batch to fill}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjubeh}(h]h ]h"]h$]h&]uh1jhjvubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjvubjM)}(hfilemap_get_folios_contig() works exactly like filemap_get_folios(), except the returned folios are guaranteed to be contiguous. This may not return all contiguous folios if the batch gets filled up.h]hfilemap_get_folios_contig() works exactly like filemap_get_folios(), except the returned folios are guaranteed to be contiguous. This may not return all contiguous folios if the batch gets filled up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjvubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjvubjM)}(hcThe number of folios found. Also update **start** to be positioned for traversal of the next folio.h](h(The number of folios found. Also update }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 to be positioned for traversal of the next folio.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#filemap_get_folios_tag (C function)c.filemap_get_folios_taghNtauh1hhjhhhNhNubh)}(hhh](h)}(hunsigned filemap_get_folios_tag (struct address_space *mapping, pgoff_t *start, pgoff_t end, xa_mark_t tag, struct folio_batch *fbatch)h]h)}(hunsigned filemap_get_folios_tag(struct address_space *mapping, pgoff_t *start, pgoff_t end, xa_mark_t tag, struct folio_batch *fbatch)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM ubh)}(hfilemap_get_folios_tagh]j)}(hfilemap_get_folios_tagh]hfilemap_get_folios_tag}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hM ubj )}(hg(struct address_space *mapping, pgoff_t *start, pgoff_t end, xa_mark_t tag, struct folio_batch *fbatch)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj<hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj\modnameN classnameNjpjs)}jv]jy)}jlj"sbc.filemap_get_folios_tagasbuh1hhj8ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj8ubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj4ubj )}(hpgoff_t *starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jvc.filemap_get_folios_tagasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj4ubj )}(h pgoff_t endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jvc.filemap_get_folios_tagasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendh]hend}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj4ubj )}(h xa_mark_t tagh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjPmodnameN classnameNjpjs)}jv]jvc.filemap_get_folios_tagasbuh1hhjGubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(htagh]htag}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj4ubj )}(hstruct folio_batch *fbatchh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jvc.filemap_get_folios_tagasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfbatchh]hfbatch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj4ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj hM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hM hjhhubj4)}(hhh]jM)}(h&Get a batch of folios matching **tag**h](hGet a batch of folios matching }(hjhhhNhNubj)}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj:jHj:jIjJjKuh1hhhhjhNhNubj)}(hXU**Parameters** ``struct address_space *mapping`` The address_space to search ``pgoff_t *start`` The starting page index ``pgoff_t end`` The final page index (inclusive) ``xa_mark_t tag`` The tag index ``struct folio_batch *fbatch`` The batch to fill **Description** The first folio may start before **start**; if it does, it will contain **start**. The final folio may extend beyond **end**; if it does, it will contain **end**. The folios have ascending indices. There may be gaps between the folios if there are indices which have no folio in the page cache. If folios are added to or removed from the page cache while this is running, they may or may not be found by this call. Only returns folios that are tagged with **tag**. **Return** The number of folios found. Also update **start** to index the next folio for traversal.h](jM)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj>ubj)}(hhh](j)}(h>``struct address_space *mapping`` The address_space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hjch]hstruct address_space *mapping}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj]ubj)}(hhh]jM)}(hThe address_space to searchh]hThe address_space to search}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhM hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM hjZubj)}(h+``pgoff_t *start`` The starting page index h](j)}(h``pgoff_t *start``h]jS)}(hjh]hpgoff_t *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(hThe starting page indexh]hThe starting page index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjZubj)}(h1``pgoff_t end`` The final page index (inclusive) h](j)}(h``pgoff_t end``h]jS)}(hjh]h pgoff_t end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(h The final page index (inclusive)h]h The final page index (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjZubj)}(h ``xa_mark_t tag`` The tag index h](j)}(h``xa_mark_t tag``h]jS)}(hjh]h xa_mark_t tag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(h The tag indexh]h The tag index}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#hM hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hM hjZubj)}(h1``struct folio_batch *fbatch`` The batch to fill h](j)}(h``struct folio_batch *fbatch``h]jS)}(hjGh]hstruct folio_batch *fbatch}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjAubj)}(hhh]jM)}(hThe batch to fillh]hThe batch to fill}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\hM hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM hjZubeh}(h]h ]h"]h$]h&]uh1jhj>ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj>ubjM)}(hXThe first folio may start before **start**; if it does, it will contain **start**. The final folio may extend beyond **end**; if it does, it will contain **end**. The folios have ascending indices. There may be gaps between the folios if there are indices which have no folio in the page cache. If folios are added to or removed from the page cache while this is running, they may or may not be found by this call. Only returns folios that are tagged with **tag**.h](h!The first folio may start before }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; if it does, it will contain }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh%. The final folio may extend beyond }(hjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; if it does, it will contain }(hjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX*. The folios have ascending indices. There may be gaps between the folios if there are indices which have no folio in the page cache. If folios are added to or removed from the page cache while this is running, they may or may not be found by this call. Only returns folios that are tagged with }(hjhhhNhNubj)}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj>ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM! hj>ubjM)}(hXThe number of folios found. Also update **start** to index the next folio for traversal.h](h(The number of folios found. Also update }(hjhhhNhNubj)}(h **start**h]hstart}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh' to index the next folio for traversal.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM" hj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_read (C function)c.filemap_readhNtauh1hhjhhhNhNubh)}(hhh](h)}(hVssize_t filemap_read (struct kiocb *iocb, struct iov_iter *iter, ssize_t already_read)h]h)}(hUssize_t filemap_read(struct kiocb *iocb, struct iov_iter *iter, ssize_t already_read)h](h)}(hhh]j)}(hssize_th]hssize_t}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]jy)}jl filemap_readsbc.filemap_readasbuh1hhjVhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhj~hM ubh)}(h filemap_readh]j)}(hj{h]h filemap_read}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjVhhhj~hM ubj )}(hA(struct kiocb *iocb, struct iov_iter *iter, ssize_t already_read)h](j )}(hstruct kiocb *iocbh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hkiocbh]hkiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jyc.filemap_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hiocbh]hiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct iov_iter *iterh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj<modnameN classnameNjpjs)}jv]jyc.filemap_readasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjfhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hiterh]hiter}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hssize_t already_readh](h)}(hhh]j)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jyc.filemap_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h already_readh]h already_read}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjVhhhj~hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjRhhhj~hM ubah}(h]jMah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj~hM hjOhhubj4)}(hhh]jM)}(hRead data from the page cache.h]hRead data from the page cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjOhhhj~hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct kiocb *iocb`` The iocb to read. ``struct iov_iter *iter`` Destination for the data. ``ssize_t already_read`` Number of bytes already read by the caller. **Description** Copies data from the page cache. If the data is not currently present, uses the readahead and read_folio address_space operations to fetch it. **Return** Total number of bytes copied, including those already read by the caller. If an error happens before any bytes are copied, returns a negative error number.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh](j)}(h)``struct kiocb *iocb`` The iocb to read. h](j)}(h``struct kiocb *iocb``h]jS)}(hj&h]hstruct kiocb *iocb}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj ubj)}(hhh]jM)}(hThe iocb to read.h]hThe iocb to read.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hM hj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hM hjubj)}(h4``struct iov_iter *iter`` Destination for the data. h](j)}(h``struct iov_iter *iter``h]jS)}(hj_h]hstruct iov_iter *iter}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj]ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjYubj)}(hhh]jM)}(hDestination for the data.h]hDestination for the data.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjthM hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthM hjubj)}(hE``ssize_t already_read`` Number of bytes already read by the caller. h](j)}(h``ssize_t already_read``h]jS)}(hjh]hssize_t already_read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(h+Number of bytes already read by the caller.h]h+Number of bytes already read by the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hCopies data from the page cache. If the data is not currently present, uses the readahead and read_folio address_space operations to fetch it.h]hCopies data from the page cache. If the data is not currently present, uses the readahead and read_folio address_space operations to fetch it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hTotal number of bytes copied, including those already read by the caller. If an error happens before any bytes are copied, returns a negative error number.h]hTotal number of bytes copied, including those already read by the caller. If an error happens before any bytes are copied, returns a negative error number.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#generic_file_read_iter (C function)c.generic_file_read_iterhNtauh1hhjhhhNhNubh)}(hhh](h)}(hJssize_t generic_file_read_iter (struct kiocb *iocb, struct iov_iter *iter)h]h)}(hIssize_t generic_file_read_iter(struct kiocb *iocb, struct iov_iter *iter)h](h)}(hhh]j)}(hssize_th]hssize_t}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDmodnameN classnameNjpjs)}jv]jy)}jlgeneric_file_read_itersbc.generic_file_read_iterasbuh1hhj;hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjchM ubh)}(hgeneric_file_read_iterh]j)}(hj`h]hgeneric_file_read_iter}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ](jjeh"]h$]h&]jjuh1hhj;hhhjchM ubj )}(h+(struct kiocb *iocb, struct iov_iter *iter)h](j )}(hstruct kiocb *iocbh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hkiocbh]hkiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j^c.generic_file_read_iterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hiocbh]hiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct iov_iter *iterh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj!modnameN classnameNjpjs)}jv]j^c.generic_file_read_iterasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjKhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hiterh]hiter}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj;hhhjchM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj7hhhjchM ubah}(h]j2ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjchM hj4hhubj4)}(hhh]jM)}(hgeneric filesystem read routineh]hgeneric filesystem read routine}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hj4hhhjchM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct kiocb *iocb`` kernel I/O control block ``struct iov_iter *iter`` destination for the data read **Description** This is the "read_iter()" routine for all filesystems that can use the page cache directly. The IOCB_NOWAIT flag in iocb->ki_flags indicates that -EAGAIN shall be returned when no data can be read without waiting for I/O requests to complete; it doesn't prevent readahead. The IOCB_NOIO flag in iocb->ki_flags indicates that no new I/O requests shall be made for the read or for readahead. When no data can be read, -EAGAIN shall be returned. When readahead would be triggered, a partial, possibly empty read shall be returned. **Return** * number of bytes copied, even for partial reads * negative error code (or 0 if IOCB_NOIO) if nothing was readh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh](j)}(h0``struct kiocb *iocb`` kernel I/O control block h](j)}(h``struct kiocb *iocb``h]jS)}(hjh]hstruct kiocb *iocb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(hkernel I/O control blockh]hkernel I/O control block}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h8``struct iov_iter *iter`` destination for the data read h](j)}(h``struct iov_iter *iter``h]jS)}(hjh]hstruct iov_iter *iter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(hdestination for the data readh]hdestination for the data read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(h[This is the "read_iter()" routine for all filesystems that can use the page cache directly.h]h_This is the “read_iter()” routine for all filesystems that can use the page cache directly.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hThe IOCB_NOWAIT flag in iocb->ki_flags indicates that -EAGAIN shall be returned when no data can be read without waiting for I/O requests to complete; it doesn't prevent readahead.h]hThe IOCB_NOWAIT flag in iocb->ki_flags indicates that -EAGAIN shall be returned when no data can be read without waiting for I/O requests to complete; it doesn’t prevent readahead.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hXThe IOCB_NOIO flag in iocb->ki_flags indicates that no new I/O requests shall be made for the read or for readahead. When no data can be read, -EAGAIN shall be returned. When readahead would be triggered, a partial, possibly empty read shall be returned.h]hXThe IOCB_NOIO flag in iocb->ki_flags indicates that no new I/O requests shall be made for the read or for readahead. When no data can be read, -EAGAIN shall be returned. When readahead would be triggered, a partial, possibly empty read shall be returned.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(h **Return**h]j)}(hj|h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj~W)}(hhh](j/)}(h.number of bytes copied, even for partial readsh]jM)}(hjh]h.number of bytes copied, even for partial reads}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubah}(h]h ]h"]h$]h&]uh1j/hjubj/)}(h;negative error code (or 0 if IOCB_NOIO) if nothing was readh]jM)}(hjh]h;negative error code (or 0 if IOCB_NOIO) if nothing was read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubah}(h]h ]h"]h$]h&]uh1j/hjubeh}(h]h ]h"]h$]h&]jWjI uh1j}WhjhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h filemap_splice_read (C function)c.filemap_splice_readhNtauh1hhjhhhNhNubh)}(hhh](h)}(hyssize_t filemap_splice_read (struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)h]h)}(hxssize_t filemap_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)h](h)}(hhh]j)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlfilemap_splice_readsbc.filemap_splice_readasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfilemap_splice_readh]j)}(hj h]hfilemap_splice_read}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h](struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)h](j )}(hstruct file *inh](j5)}(hj8h]hstruct}(hj=hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(hfileh]hfile}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj]modnameN classnameNjpjs)}jv]j c.filemap_splice_readasbuh1hhj9ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj9ubj)}(hinh]hin}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubj )}(h loff_t *pposh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j c.filemap_splice_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpposh]hppos}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubj )}(hstruct pipe_inode_info *pipeh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpipe_inode_infoh]hpipe_inode_info}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj"modnameN classnameNjpjs)}jv]j c.filemap_splice_readasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjLhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpipeh]hpipe}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubj )}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjwmodnameN classnameNjpjs)}jv]j c.filemap_splice_readasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubj )}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjhhubj4)}(hhh]jM)}(h/Splice data from a file's pagecache into a pipeh]h1Splice data from a file’s pagecache into a pipe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj4jHj4jIjJjKuh1hhhhjhNhNubj)}(hXV**Parameters** ``struct file *in`` The file to read from ``loff_t *ppos`` Pointer to the file position to read from ``struct pipe_inode_info *pipe`` The pipe to splice into ``size_t len`` The amount to splice ``unsigned int flags`` The SPLICE_F_* flags **Description** This function gets folios from a file's pagecache and splices them into the pipe. Readahead will be called as necessary to fill more folios. This may be used for blockdevs also. **Return** On success, the number of bytes read will be returned and ***ppos** will be updated if appropriate; 0 will be returned if there is no more data to be read; -EAGAIN will be returned if the pipe had no space, and some other negative error code will be returned on error. A short read may occur if the pipe has insufficient space, we reach the end of the data or we hit a hole.h](jM)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj8ubj)}(hhh](j)}(h*``struct file *in`` The file to read from h](j)}(h``struct file *in``h]jS)}(hj]h]hstruct file *in}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjWubj)}(hhh]jM)}(hThe file to read fromh]hThe file to read from}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhM hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM hjTubj)}(h;``loff_t *ppos`` Pointer to the file position to read from h](j)}(h``loff_t *ppos``h]jS)}(hjh]h loff_t *ppos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(h)Pointer to the file position to read fromh]h)Pointer to the file position to read from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjTubj)}(h9``struct pipe_inode_info *pipe`` The pipe to splice into h](j)}(h ``struct pipe_inode_info *pipe``h]jS)}(hjh]hstruct pipe_inode_info *pipe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(hThe pipe to splice intoh]hThe pipe to splice into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjTubj)}(h$``size_t len`` The amount to splice h](j)}(h``size_t len``h]jS)}(hjh]h size_t len}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(hThe amount to spliceh]hThe amount to splice}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjTubj)}(h,``unsigned int flags`` The SPLICE_F_* flags h](j)}(h``unsigned int flags``h]jS)}(hjAh]hunsigned int flags}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj?ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj;ubj)}(hhh]jM)}(hThe SPLICE_F_* flagsh]hThe SPLICE_F_* flags}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhM hjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhM hjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubjM)}(h**Description**h]j)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj8ubjM)}(hThis function gets folios from a file's pagecache and splices them into the pipe. Readahead will be called as necessary to fill more folios. This may be used for blockdevs also.h]hThis function gets folios from a file’s pagecache and splices them into the pipe. Readahead will be called as necessary to fill more folios. This may be used for blockdevs also.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj8ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj8ubjM)}(hXwOn success, the number of bytes read will be returned and ***ppos** will be updated if appropriate; 0 will be returned if there is no more data to be read; -EAGAIN will be returned if the pipe had no space, and some other negative error code will be returned on error. A short read may occur if the pipe has insufficient space, we reach the end of the data or we hit a hole.h](h:On success, the number of bytes read will be returned and }(hjhhhNhNubj)}(h ***ppos**h]h*ppos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX4 will be updated if appropriate; 0 will be returned if there is no more data to be read; -EAGAIN will be returned if the pipe had no space, and some other negative error code will be returned on error. A short read may occur if the pipe has insufficient space, we reach the end of the data or we hit a hole.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_fault (C function)c.filemap_faulthNtauh1hhjhhhNhNubh)}(hhh](h)}(h/vm_fault_t filemap_fault (struct vm_fault *vmf)h]h)}(h.vm_fault_t filemap_fault(struct vm_fault *vmf)h](h)}(hhh]j)}(h vm_fault_th]h vm_fault_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jl filemap_faultsbc.filemap_faultasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(h filemap_faulth]j)}(hjh]h filemap_fault}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h(struct vm_fault *vmf)h]j )}(hstruct vm_fault *vmfh](j5)}(hj8h]hstruct}(hjLhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjHubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlmodnameN classnameNjpjs)}jv]jc.filemap_faultasbuh1hhjHubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjHubj)}(hvmfh]hvmf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjhhubj4)}(hhh]jM)}(h)read in file data for page fault handlingh]h)read in file data for page fault handling}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX-**Parameters** ``struct vm_fault *vmf`` struct vm_fault containing details of the fault **Description** filemap_fault() is invoked via the vma operations vector for a mapped memory region to read in file data during a page fault. The goto's are kind of ugly, but this streamlines the normal case of having it in the page cache, and handles the special cases reasonably without having a lot of duplicated code. vma->vm_mm->mmap_lock must be held on entry. If our return value has VM_FAULT_RETRY set, it's because the mmap_lock may be dropped before doing I/O or by lock_folio_maybe_drop_mmap(). If our return value does not have VM_FAULT_RETRY set, the mmap_lock has not been released. We never return with VM_FAULT_RETRY and a bit from VM_FAULT_ERROR set. **Return** bitwise-OR of ``VM_FAULT_`` codes.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]j)}(hI``struct vm_fault *vmf`` struct vm_fault containing details of the fault h](j)}(h``struct vm_fault *vmf``h]jS)}(hjh]hstruct vm_fault *vmf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(h/struct vm_fault containing details of the faulth]h/struct vm_fault containing details of the fault}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#hM hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hM hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(h}filemap_fault() is invoked via the vma operations vector for a mapped memory region to read in file data during a page fault.h]h}filemap_fault() is invoked via the vma operations vector for a mapped memory region to read in file data during a page fault.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hThe goto's are kind of ugly, but this streamlines the normal case of having it in the page cache, and handles the special cases reasonably without having a lot of duplicated code.h]hThe goto’s are kind of ugly, but this streamlines the normal case of having it in the page cache, and handles the special cases reasonably without having a lot of duplicated code.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(h,vma->vm_mm->mmap_lock must be held on entry.h]h,vma->vm_mm->mmap_lock must be held on entry.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hIf our return value has VM_FAULT_RETRY set, it's because the mmap_lock may be dropped before doing I/O or by lock_folio_maybe_drop_mmap().h]hIf our return value has VM_FAULT_RETRY set, it’s because the mmap_lock may be dropped before doing I/O or by lock_folio_maybe_drop_mmap().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hZIf our return value does not have VM_FAULT_RETRY set, the mmap_lock has not been released.h]hZIf our return value does not have VM_FAULT_RETRY set, the mmap_lock has not been released.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hFWe never return with VM_FAULT_RETRY and a bit from VM_FAULT_ERROR set.h]hFWe never return with VM_FAULT_RETRY and a bit from VM_FAULT_ERROR set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(h"bitwise-OR of ``VM_FAULT_`` codes.h](hbitwise-OR of }(hjhhhNhNubjS)}(h ``VM_FAULT_``h]h VM_FAULT_}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh codes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hread_cache_folio (C function)c.read_cache_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hrstruct folio * read_cache_folio (struct address_space *mapping, pgoff_t index, filler_t filler, struct file *file)h]h)}(hpstruct folio *read_cache_folio(struct address_space *mapping, pgoff_t index, filler_t filler, struct file *file)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM:ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM:ubh)}(hhh]j)}(hfolioh]hfolio}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3modnameN classnameNjpjs)}jv]jy)}jlread_cache_foliosbc.read_cache_folioasbuh1hhjhhhjhM:ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM:ubjF )}(hjI h]h*}(hj`hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM:ubh)}(hread_cache_folioh]j)}(hjOh]hread_cache_folio}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM:ubj )}(hR(struct address_space *mapping, pgoff_t index, filler_t filler, struct file *file)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jMc.read_cache_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jMc.read_cache_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexh]hindex}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hfiller_t fillerh](h)}(hhh]j)}(hfiller_th]hfiller_t}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjImodnameN classnameNjpjs)}jv]jMc.read_cache_folioasbuh1hhj@ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hfillerh]hfiller}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jMc.read_cache_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM:ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhjhM:ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM:hjhhubj4)}(hhh]jM)}(h(Read into page cache, fill it if needed.h]h(Read into page cache, fill it if needed.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM:hj hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM:ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj%jHj%jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The address_space to read from. ``pgoff_t index`` The index to read. ``filler_t filler`` Function to perform the read, or NULL to use aops->read_folio(). ``struct file *file`` Passed to filler function, may be NULL if not required. **Description** Read one page into the page cache. If it succeeds, the folio returned will contain **index**, but it may not be the first page of the folio. If the filler function returns an error, it will be returned to the caller. **Context** May sleep. Expects mapping->invalidate_lock to be held. **Return** An uptodate folio on success, ERR_PTR() on failure.h](jM)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM>hj)ubj)}(hhh](j)}(hB``struct address_space *mapping`` The address_space to read from. h](j)}(h!``struct address_space *mapping``h]jS)}(hjNh]hstruct address_space *mapping}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM;hjHubj)}(hhh]jM)}(hThe address_space to read from.h]hThe address_space to read from.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjchM;hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchM;hjEubj)}(h%``pgoff_t index`` The index to read. h](j)}(h``pgoff_t index``h]jS)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM<hjubj)}(hhh]jM)}(hThe index to read.h]hThe index to read.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjEubj)}(hU``filler_t filler`` Function to perform the read, or NULL to use aops->read_folio(). h](j)}(h``filler_t filler``h]jS)}(hjh]hfiller_t filler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM=hjubj)}(hhh]jM)}(h@Function to perform the read, or NULL to use aops->read_folio().h]h@Function to perform the read, or NULL to use aops->read_folio().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjEubj)}(hN``struct file *file`` Passed to filler function, may be NULL if not required. h](j)}(h``struct file *file``h]jS)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM>hjubj)}(hhh]jM)}(h7Passed to filler function, may be NULL if not required.h]h7Passed to filler function, may be NULL if not required.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM>hjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubjM)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM@hj)ubjM)}(hRead one page into the page cache. If it succeeds, the folio returned will contain **index**, but it may not be the first page of the folio.h](hTRead one page into the page cache. If it succeeds, the folio returned will contain }(hjJhhhNhNubj)}(h **index**h]hindex}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh0, but it may not be the first page of the folio.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM?hj)ubjM)}(hKIf the filler function returns an error, it will be returned to the caller.h]hKIf the filler function returns an error, it will be returned to the caller.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMBhj)ubjM)}(h **Context**h]j)}(hj|h]hContext}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMEhj)ubjM)}(h8May sleep. Expects mapping->invalidate_lock to be held.h]h8May sleep. Expects mapping->invalidate_lock to be held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMFhj)ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMHhj)ubjM)}(h3An uptodate folio on success, ERR_PTR() on failure.h]h3An uptodate folio on success, ERR_PTR() on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMGhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#mapping_read_folio_gfp (C function)c.mapping_read_folio_gfphNtauh1hhjhhhNhNubh)}(hhh](h)}(h_struct folio * mapping_read_folio_gfp (struct address_space *mapping, pgoff_t index, gfp_t gfp)h]h)}(h]struct folio *mapping_read_folio_gfp(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMRubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jlmapping_read_folio_gfpsbc.mapping_read_folio_gfpasbuh1hhjhhhjhMRubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMRubjF )}(hjI h]h*}(hj6hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMRubh)}(hmapping_read_folio_gfph]j)}(hj%h]hmapping_read_folio_gfp}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMRubj )}(h9(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjbhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j#c.mapping_read_folio_gfpasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj^ubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjZubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j#c.mapping_read_folio_gfpasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjZubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j#c.mapping_read_folio_gfpasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfph]hgfp}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjZubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMRubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMRubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMRhjhhubj4)}(hhh]jM)}(h7Read into page cache, using specified allocation flags.h]h7Read into page cache, using specified allocation flags.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMRhjphhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMRubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The address_space for the folio. ``pgoff_t index`` The index that the allocated folio will contain. ``gfp_t gfp`` The page allocator flags to use if allocating. **Description** This is the same as "read_cache_folio(mapping, index, NULL, NULL)", but with any new memory allocations done using the specified allocation flags. The most likely error from this function is EIO, but ENOMEM is possible and so is EINTR. If ->read_folio returns another error, that will be returned to the caller. The function expects mapping->invalidate_lock to be already held. **Return** Uptodate folio on success, ERR_PTR() on failure.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMVhjubj)}(hhh](j)}(hC``struct address_space *mapping`` The address_space for the folio. h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMShjubj)}(hhh]jM)}(h The address_space for the folio.h]h The address_space for the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubj)}(hC``pgoff_t index`` The index that the allocated folio will contain. h](j)}(h``pgoff_t index``h]jS)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMThjubj)}(hhh]jM)}(h0The index that the allocated folio will contain.h]h0The index that the allocated folio will contain.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjubj)}(h=``gfp_t gfp`` The page allocator flags to use if allocating. h](j)}(h ``gfp_t gfp``h]jS)}(hj&h]h gfp_t gfp}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMUhj ubj)}(hhh]jM)}(h.The page allocator flags to use if allocating.h]h.The page allocator flags to use if allocating.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hMUhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMUhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMWhjubjM)}(hThis is the same as "read_cache_folio(mapping, index, NULL, NULL)", but with any new memory allocations done using the specified allocation flags.h]hThis is the same as “read_cache_folio(mapping, index, NULL, NULL)”, but with any new memory allocations done using the specified allocation flags.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMVhjubjM)}(hThe most likely error from this function is EIO, but ENOMEM is possible and so is EINTR. If ->read_folio returns another error, that will be returned to the caller.h]hThe most likely error from this function is EIO, but ENOMEM is possible and so is EINTR. If ->read_folio returns another error, that will be returned to the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMYhjubjM)}(hAThe function expects mapping->invalidate_lock to be already held.h]hAThe function expects mapping->invalidate_lock to be already held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM]hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM_hjubjM)}(h0Uptodate folio on success, ERR_PTR() on failure.h]h0Uptodate folio on success, ERR_PTR() on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM`hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h read_cache_page_gfp (C function)c.read_cache_page_gfphNtauh1hhjhhhNhNubh)}(hhh](h)}(h[struct page * read_cache_page_gfp (struct address_space *mapping, pgoff_t index, gfp_t gfp)h]h)}(hYstruct page *read_cache_page_gfp(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM}ubh)}(hhh]j)}(hpageh]hpage}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jlread_cache_page_gfpsbc.read_cache_page_gfpasbuh1hhjhhhjhM}ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM}ubjF )}(hjI h]h*}(hj9hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM}ubh)}(hread_cache_page_gfph]j)}(hj(h]hread_cache_page_gfp}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM}ubj )}(h9(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjehhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j&c.read_cache_page_gfpasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjaubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]ubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j&c.read_cache_page_gfpasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]ubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj"modnameN classnameNjpjs)}jv]j&c.read_cache_page_gfpasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfph]hgfp}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM}ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM}ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM}hjhhubj4)}(hhh]jM)}(hinvalidate_lock to be already held. **Return** up to date page on success, ERR_PTR() on failure.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h;``struct address_space *mapping`` the page's address_space h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM~hjubj)}(hhh]jM)}(hthe page's address_spaceh]hthe page’s address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM~hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjubj)}(h!``pgoff_t index`` the page index h](j)}(h``pgoff_t index``h]jS)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hthe page indexh]hthe page index}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``gfp_t gfp`` the page allocator flags to use if allocating h](j)}(h ``gfp_t gfp``h]jS)}(hj)h]h gfp_t gfp}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj#ubj)}(hhh]jM)}(h-the page allocator flags to use if allocatingh]h-the page allocator flags to use if allocating}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hThis is the same as "read_mapping_page(mapping, index, NULL)", but with any new page allocations done using the specified allocation flags.h]hThis is the same as “read_mapping_page(mapping, index, NULL)”, but with any new page allocations done using the specified allocation flags.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h7If the page does not get brought uptodate, return -EIO.h]h7If the page does not get brought uptodate, return -EIO.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hAThe function expects mapping->invalidate_lock to be already held.h]hAThe function expects mapping->invalidate_lock to be already held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h1up to date page on success, ERR_PTR() on failure.h]h1up to date page on success, ERR_PTR() on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&__generic_file_write_iter (C function)c.__generic_file_write_iterhNtauh1hhjhhhNhNubh)}(hhh](h)}(hMssize_t __generic_file_write_iter (struct kiocb *iocb, struct iov_iter *from)h]h)}(hLssize_t __generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)h](h)}(hhh]j)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jl__generic_file_write_itersbc.__generic_file_write_iterasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMIubh)}(h__generic_file_write_iterh]j)}(hjh]h__generic_file_write_iter}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMIubj )}(h+(struct kiocb *iocb, struct iov_iter *from)h](j )}(hstruct kiocb *iocbh](j5)}(hj8h]hstruct}(hj@hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj<ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j)}(hkiocbh]hkiocb}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj`modnameN classnameNjpjs)}jv]j c.__generic_file_write_iterasbuh1hhj<ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj<ubj)}(hiocbh]hiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj8ubj )}(hstruct iov_iter *fromh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j c.__generic_file_write_iterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj8ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMIubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMIubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMIhjhhubj4)}(hhh]jM)}(hwrite data to a fileh]hwrite data to a file}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMIhj.hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMIubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjIjHjIjIjJjKuh1hhhhjhNhNubj)}(hX@**Parameters** ``struct kiocb *iocb`` IO state structure (file, offset, etc.) ``struct iov_iter *from`` iov_iter with data to write **Description** This function does all the work needed for actually writing data to a file. It does all basic checks, removes SUID from the file, updates modification times and calls proper subroutines depending on whether we do direct IO or a standard buffered write. It expects i_rwsem to be grabbed unless we work on a block device or similar object which does not need locking at all. This function does *not* take care of syncing data in case of O_SYNC write. A caller has to handle it. This is mainly due to the fact that we want to avoid syncing under i_rwsem. **Return** * number of bytes written, even for truncated writes * negative error code if no data has been written at allh](jM)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMMhjMubj)}(hhh](j)}(h?``struct kiocb *iocb`` IO state structure (file, offset, etc.) h](j)}(h``struct kiocb *iocb``h]jS)}(hjrh]hstruct kiocb *iocb}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMJhjlubj)}(hhh]jM)}(h'IO state structure (file, offset, etc.)h]h'IO state structure (file, offset, etc.)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjiubj)}(h6``struct iov_iter *from`` iov_iter with data to write h](j)}(h``struct iov_iter *from``h]jS)}(hjh]hstruct iov_iter *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMKhjubj)}(hhh]jM)}(hiov_iter with data to writeh]hiov_iter with data to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjiubeh}(h]h ]h"]h$]h&]uh1jhjMubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMMhjMubjM)}(hThis function does all the work needed for actually writing data to a file. It does all basic checks, removes SUID from the file, updates modification times and calls proper subroutines depending on whether we do direct IO or a standard buffered write.h]hThis function does all the work needed for actually writing data to a file. It does all basic checks, removes SUID from the file, updates modification times and calls proper subroutines depending on whether we do direct IO or a standard buffered write.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMLhjMubjM)}(hwIt expects i_rwsem to be grabbed unless we work on a block device or similar object which does not need locking at all.h]hwIt expects i_rwsem to be grabbed unless we work on a block device or similar object which does not need locking at all.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMQhjMubjM)}(hThis function does *not* take care of syncing data in case of O_SYNC write. A caller has to handle it. This is mainly due to the fact that we want to avoid syncing under i_rwsem.h](hThis function does }(hjhhhNhNubj_)}(h*not*h]hnot}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjubh take care of syncing data in case of O_SYNC write. A caller has to handle it. This is mainly due to the fact that we want to avoid syncing under i_rwsem.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMThjMubjM)}(h **Return**h]j)}(hj=h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMXhjMubj~W)}(hhh](j/)}(h2number of bytes written, even for truncated writesh]jM)}(hjXh]h2number of bytes written, even for truncated writes}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMYhjVubah}(h]h ]h"]h$]h&]uh1j/hjSubj/)}(h6negative error code if no data has been written at allh]jM)}(hjph]h6negative error code if no data has been written at all}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMZhjnubah}(h]h ]h"]h$]h&]uh1j/hjSubeh}(h]h ]h"]h$]h&]jWjI uh1j}WhjghMYhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$generic_file_write_iter (C function)c.generic_file_write_iterhNtauh1hhjhhhNhNubh)}(hhh](h)}(hKssize_t generic_file_write_iter (struct kiocb *iocb, struct iov_iter *from)h]h)}(hJssize_t generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)h](h)}(hhh]j)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlgeneric_file_write_itersbc.generic_file_write_iterasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hgeneric_file_write_iterh]j)}(hjh]hgeneric_file_write_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h+(struct kiocb *iocb, struct iov_iter *from)h](j )}(hstruct kiocb *iocbh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hkiocbh]hkiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.generic_file_write_iterasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjHhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hiocbh]hiocb}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct iov_iter *fromh](j5)}(hj8h]hstruct}(hjnhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjjubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.generic_file_write_iterasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjjubj)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hwrite data to a fileh]hwrite data to a file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct kiocb *iocb`` IO state structure ``struct iov_iter *from`` iov_iter with data to write **Description** This is a wrapper around __generic_file_write_iter() to be used by most filesystems. It takes care of syncing the file in case of O_SYNC file and acquires i_rwsem as needed. **Return** * negative error code if no data has been written at all of vfs_fsync_range() failed for a synchronous write * number of bytes written, even for truncated writesh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubj)}(hhh](j)}(h*``struct kiocb *iocb`` IO state structure h](j)}(h``struct kiocb *iocb``h]jS)}(hj0h]hstruct kiocb *iocb}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj*ubj)}(hhh]jM)}(hIO state structureh]hIO state structure}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj'ubj)}(h6``struct iov_iter *from`` iov_iter with data to write h](j)}(h``struct iov_iter *from``h]jS)}(hjih]hstruct iov_iter *from}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjcubj)}(hhh]jM)}(hiov_iter with data to writeh]hiov_iter with data to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj'ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubjM)}(hThis is a wrapper around __generic_file_write_iter() to be used by most filesystems. It takes care of syncing the file in case of O_SYNC file and acquires i_rwsem as needed.h]hThis is a wrapper around __generic_file_write_iter() to be used by most filesystems. It takes care of syncing the file in case of O_SYNC file and acquires i_rwsem as needed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj ubj~W)}(hhh](j/)}(hjnegative error code if no data has been written at all of vfs_fsync_range() failed for a synchronous writeh]jM)}(hjnegative error code if no data has been written at all of vfs_fsync_range() failed for a synchronous writeh]hjnegative error code if no data has been written at all of vfs_fsync_range() failed for a synchronous write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubah}(h]h ]h"]h$]h&]uh1j/hjubj/)}(h2number of bytes written, even for truncated writesh]jM)}(hjh]h2number of bytes written, even for truncated writes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubah}(h]h ]h"]h$]h&]uh1j/hjubeh}(h]h ]h"]h$]h&]jWjI uh1j}WhjhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"filemap_release_folio (C function)c.filemap_release_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(h;bool filemap_release_folio (struct folio *folio, gfp_t gfp)h]h)}(h:bool filemap_release_folio(struct folio *folio, gfp_t gfp)h](j)}(hj.h]hbool}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhjHhMubh)}(hfilemap_release_folioh]j)}(hfilemap_release_folioh]hfilemap_release_folio}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1hhj7hhhjHhMubj )}(h (struct folio *folio, gfp_t gfp)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjwhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj]sbc.filemap_release_folioasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_release_folioasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubeh}(h]h ]h"]h$]h&]jjuh1j hj7hhhjHhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj3hhhjHhMubah}(h]j.ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjHhMhj0hhubj4)}(hhh]jM)}(h(Release fs-specific metadata on a folio.h]h(Release fs-specific metadata on a folio.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj?hhubah}(h]h ]h"]h$]h&]uh1j3hj0hhhjHhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjZjHjZjIjJjKuh1hhhhjhNhNubj)}(hXl**Parameters** ``struct folio *folio`` The folio which the kernel is trying to free. ``gfp_t gfp`` Memory allocation flags (and I/O mode). **Description** The address_space is trying to release any data attached to a folio (presumably at folio->private). This will also be called if the private_2 flag is set on a page, indicating that the folio has other metadata associated with it. The **gfp** argument specifies whether I/O may be performed to release this page (__GFP_IO), and whether the call may block (__GFP_RECLAIM & __GFP_FS). **Return** ``true`` if the release was successful, otherwise ``false``.h](jM)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj^ubj)}(hhh](j)}(hF``struct folio *folio`` The folio which the kernel is trying to free. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj}ubj)}(hhh]jM)}(h-The folio which the kernel is trying to free.h]h-The folio which the kernel is trying to free.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubj)}(h6``gfp_t gfp`` Memory allocation flags (and I/O mode). h](j)}(h ``gfp_t gfp``h]jS)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h'Memory allocation flags (and I/O mode).h]h'Memory allocation flags (and I/O mode).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubeh}(h]h ]h"]h$]h&]uh1jhj^ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj^ubjM)}(hcThe address_space is trying to release any data attached to a folio (presumably at folio->private).h]hcThe address_space is trying to release any data attached to a folio (presumably at folio->private).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj^ubjM)}(hThis will also be called if the private_2 flag is set on a page, indicating that the folio has other metadata associated with it.h]hThis will also be called if the private_2 flag is set on a page, indicating that the folio has other metadata associated with it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj^ubjM)}(hThe **gfp** argument specifies whether I/O may be performed to release this page (__GFP_IO), and whether the call may block (__GFP_RECLAIM & __GFP_FS).h](hThe }(hj+hhhNhNubj)}(h**gfp**h]hgfp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh argument specifies whether I/O may be performed to release this page (__GFP_IO), and whether the call may block (__GFP_RECLAIM & __GFP_FS).}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj^ubjM)}(h **Return**h]j)}(hjNh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj^ubjM)}(h<``true`` if the release was successful, otherwise ``false``.h](jS)}(h``true``h]htrue}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubh* if the release was successful, otherwise }(hjdhhhNhNubjS)}(h ``false``h]hfalse}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubh.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%filemap_invalidate_inode (C function)c.filemap_invalidate_inodehNtauh1hhjhhhNhNubh)}(hhh](h)}(hXint filemap_invalidate_inode (struct inode *inode, bool flush, loff_t start, loff_t end)h]h)}(hWint filemap_invalidate_inode(struct inode *inode, bool flush, loff_t start, loff_t end)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfilemap_invalidate_inodeh]j)}(hfilemap_invalidate_inodeh]hfilemap_invalidate_inode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h;(struct inode *inode, bool flush, loff_t start, loff_t end)h](j )}(hstruct inode *inodeh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_invalidate_inodeasbuh1hhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj<hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hinodeh]hinode}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h bool flushh](j)}(hj.h]hbool}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hflushh]hflush}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t starth](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j*c.filemap_invalidate_inodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t endh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j*c.filemap_invalidate_inodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendh]hend}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h>Invalidate/forcibly write back a range of an inode's pagecacheh]h@Invalidate/forcibly write back a range of an inode’s pagecache}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj4hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjOjHjOjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct inode *inode`` The inode to flush ``bool flush`` Set to write back rather than simply invalidate. ``loff_t start`` First byte to in range. ``loff_t end`` Last byte in range (inclusive), or LLONG_MAX for everything from start onwards. **Description** Invalidate all the folios on an inode that contribute to the specified range, possibly writing them back first. Whilst the operation is undertaken, the invalidate lock is held to prevent new folios from being installed.h](jM)}(h**Parameters**h]j)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjSubj)}(hhh](j)}(h+``struct inode *inode`` The inode to flush h](j)}(h``struct inode *inode``h]jS)}(hjxh]hstruct inode *inode}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjvubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjrubj)}(hhh]jM)}(hThe inode to flushh]hThe inode to flush}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubj)}(h@``bool flush`` Set to write back rather than simply invalidate. h](j)}(h``bool flush``h]jS)}(hjh]h bool flush}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h0Set to write back rather than simply invalidate.h]h0Set to write back rather than simply invalidate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubj)}(h)``loff_t start`` First byte to in range. h](j)}(h``loff_t start``h]jS)}(hjh]h loff_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hFirst byte to in range.h]hFirst byte to in range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubj)}(h_``loff_t end`` Last byte in range (inclusive), or LLONG_MAX for everything from start onwards. h](j)}(h``loff_t end``h]jS)}(hj#h]h loff_t end}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hOLast byte in range (inclusive), or LLONG_MAX for everything from start onwards.h]hOLast byte in range (inclusive), or LLONG_MAX for everything from start onwards.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjoubeh}(h]h ]h"]h$]h&]uh1jhjSubjM)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjSubjM)}(hInvalidate all the folios on an inode that contribute to the specified range, possibly writing them back first. Whilst the operation is undertaken, the invalidate lock is held to prevent new folios from being installed.h]hInvalidate all the folios on an inode that contribute to the specified range, possibly writing them back first. Whilst the operation is undertaken, the invalidate lock is held to prevent new folios from being installed.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]filemapah ]h"]filemapah$]h&]uh1hhjthhhhhK;ubh)}(hhh](h)}(h Readaheadh]h Readahead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKAubjM)}(hXBReadahead is used to read content into the page cache before it is explicitly requested by the application. Readahead only ever attempts to read folios that are not yet in the page cache. If a folio is present but not up-to-date, readahead will not try to read it. In that case a simple ->read_folio() will be requested.h]hXBReadahead is used to read content into the page cache before it is explicitly requested by the application. Readahead only ever attempts to read folios that are not yet in the page cache. If a folio is present but not up-to-date, readahead will not try to read it. In that case a simple ->read_folio() will be requested.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK hjhhubjM)}(hXsReadahead is triggered when an application read request (whether a system call or a page fault) finds that the requested folio is not in the page cache, or that it is in the page cache and has the readahead flag set. This flag indicates that the folio was read as part of a previous readahead request and now that it has been accessed, it is time for the next readahead.h]hXsReadahead is triggered when an application read request (whether a system call or a page fault) finds that the requested folio is not in the page cache, or that it is in the page cache and has the readahead flag set. This flag indicates that the folio was read as part of a previous readahead request and now that it has been accessed, it is time for the next readahead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKhjhhubjM)}(hXEach readahead request is partly synchronous read, and partly async readahead. This is reflected in the struct file_ra_state which contains ->size being the total number of pages, and ->async_size which is the number of pages in the async section. The readahead flag will be set on the first folio in this async section to trigger a subsequent readahead. Once a series of sequential reads has been established, there should be no need for a synchronous component and all readahead request will be fully asynchronous.h]hXEach readahead request is partly synchronous read, and partly async readahead. This is reflected in the struct file_ra_state which contains ->size being the total number of pages, and ->async_size which is the number of pages in the async section. The readahead flag will be set on the first folio in this async section to trigger a subsequent readahead. Once a series of sequential reads has been established, there should be no need for a synchronous component and all readahead request will be fully asynchronous.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKhjhhubjM)}(hWhen either of the triggers causes a readahead, three numbers need to be determined: the start of the region to read, the size of the region, and the size of the async tail.h]hWhen either of the triggers causes a readahead, three numbers need to be determined: the start of the region to read, the size of the region, and the size of the async tail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK"hjhhubjM)}(hThe start of the region is simply the first page address at or after the accessed address, which is not currently populated in the page cache. This is found with a simple search in the page cache.h]hThe start of the region is simply the first page address at or after the accessed address, which is not currently populated in the page cache. This is found with a simple search in the page cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK&hjhhubjM)}(hXAThe size of the async tail is determined by subtracting the size that was explicitly requested from the determined request size, unless this would be less than zero - then zero is used. NOTE THIS CALCULATION IS WRONG WHEN THE START OF THE REGION IS NOT THE ACCESSED PAGE. ALSO THIS CALCULATION IS NOT USED CONSISTENTLY.h]hXAThe size of the async tail is determined by subtracting the size that was explicitly requested from the determined request size, unless this would be less than zero - then zero is used. NOTE THIS CALCULATION IS WRONG WHEN THE START OF THE REGION IS NOT THE ACCESSED PAGE. ALSO THIS CALCULATION IS NOT USED CONSISTENTLY.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK*hjhhubjM)}(hXThe size of the region is normally determined from the size of the previous readahead which loaded the preceding pages. This may be discovered from the struct file_ra_state for simple sequential reads, or from examining the state of the page cache when multiple sequential reads are interleaved. Specifically: where the readahead was triggered by the readahead flag, the size of the previous readahead is assumed to be the number of pages from the triggering page to the start of the new readahead. In these cases, the size of the previous readahead is scaled, often doubled, for the new readahead, though see get_next_ra_size() for details.h]hXThe size of the region is normally determined from the size of the previous readahead which loaded the preceding pages. This may be discovered from the struct file_ra_state for simple sequential reads, or from examining the state of the page cache when multiple sequential reads are interleaved. Specifically: where the readahead was triggered by the readahead flag, the size of the previous readahead is assumed to be the number of pages from the triggering page to the start of the new readahead. In these cases, the size of the previous readahead is scaled, often doubled, for the new readahead, though see get_next_ra_size() for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK0hjhhubjM)}(hXgIf the size of the previous read cannot be determined, the number of preceding pages in the page cache is used to estimate the size of a previous read. This estimate could easily be misled by random reads being coincidentally adjacent, so it is ignored unless it is larger than the current request, and it is not scaled up, unless it is at the start of file.h]hXgIf the size of the previous read cannot be determined, the number of preceding pages in the page cache is used to estimate the size of a previous read. This estimate could easily be misled by random reads being coincidentally adjacent, so it is ignored unless it is larger than the current request, and it is not scaled up, unless it is at the start of file.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK;hjhhubjM)}(hIn general readahead is accelerated at the start of the file, as reads from there are often sequential. There are other minor adjustments to the readahead size in various special cases and these are best discovered by reading the code.h]hIn general readahead is accelerated at the start of the file, as reads from there are often sequential. There are other minor adjustments to the readahead size in various special cases and these are best discovered by reading the code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKBhjhhubjM)}(hThe above calculation, based on the previous readahead size, determines the size of the readahead, to which any requested read size may be added.h]hThe above calculation, based on the previous readahead size, determines the size of the readahead, to which any requested read size may be added.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKGhjhhubjM)}(hXReadahead requests are sent to the filesystem using the ->readahead() address space operation, for which mpage_readahead() is a canonical implementation. ->readahead() should normally initiate reads on all folios, but may fail to read any or all folios without causing an I/O error. The page cache reading code will issue a ->read_folio() request for any folio which ->readahead() did not read, and only an error from this will be final.h]hXReadahead requests are sent to the filesystem using the ->readahead() address space operation, for which mpage_readahead() is a canonical implementation. ->readahead() should normally initiate reads on all folios, but may fail to read any or all folios without causing an I/O error. The page cache reading code will issue a ->read_folio() request for any folio which ->readahead() did not read, and only an error from this will be final.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKKhjhhubjM)}(h->readahead() will generally call readahead_folio() repeatedly to get each folio from those prepared for readahead. It may fail to read a folio by:h]h->readahead() will generally call readahead_folio() repeatedly to get each folio from those prepared for readahead. It may fail to read a folio by:}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKShjhhubj~W)}(hhh](j/)}(hnot calling readahead_folio() sufficiently many times, effectively ignoring some folios, as might be appropriate if the path to storage is congested. h]jM)}(hnot calling readahead_folio() sufficiently many times, effectively ignoring some folios, as might be appropriate if the path to storage is congested.h]hnot calling readahead_folio() sufficiently many times, effectively ignoring some folios, as might be appropriate if the path to storage is congested.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKWhj[ubah}(h]h ]h"]h$]h&]uh1j/hjXubj/)}(hhfailing to actually submit a read request for a given folio, possibly due to insufficient resources, or h]jM)}(hgfailing to actually submit a read request for a given folio, possibly due to insufficient resources, orh]hgfailing to actually submit a read request for a given folio, possibly due to insufficient resources, or}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK[hjtubah}(h]h ]h"]h$]h&]uh1j/hjXubj/)}(hreadahead() should not fail them due to congestion or temporary resource unavailability, but should wait for necessary resources (e.g. memory or indexing information) to become available. Folios in the final ``async_size`` may be considered less urgent and failure to read them is more acceptable. In this case it is best to use filemap_remove_folio() to remove the folios from the page cache as is automatically done for folios that were not fetched with readahead_folio(). This will allow a subsequent synchronous readahead request to try them again. If they are left in the page cache, then they will be read individually using ->read_folio() which may be less efficient.h](hThose folios not in the final }(hjhhhNhNubjS)}(h``async_size``h]h async_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhX  of the request should be considered to be important and ->readahead() should not fail them due to congestion or temporary resource unavailability, but should wait for necessary resources (e.g. memory or indexing information) to become available. Folios in the final }(hjhhhNhNubjS)}(h``async_size``h]h async_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhX may be considered less urgent and failure to read them is more acceptable. In this case it is best to use filemap_remove_folio() to remove the folios from the page cache as is automatically done for folios that were not fetched with readahead_folio(). This will allow a subsequent synchronous readahead request to try them again. If they are left in the page cache, then they will be read individually using ->read_folio() which may be less efficient.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKdhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$page_cache_ra_unbounded (C function)c.page_cache_ra_unboundedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvvoid page_cache_ra_unbounded (struct readahead_control *ractl, unsigned long nr_to_read, unsigned long lookahead_size)h]h)}(huvoid page_cache_ra_unbounded(struct readahead_control *ractl, unsigned long nr_to_read, unsigned long lookahead_size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hpage_cache_ra_unboundedh]j)}(hpage_cache_ra_unboundedh]hpage_cache_ra_unbounded}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubj )}(hY(struct readahead_control *ractl, unsigned long nr_to_read, unsigned long lookahead_size)h](j )}(hstruct readahead_control *ractlh](j5)}(hj8h]hstruct}(hjDhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]jy)}jlj*sbc.page_cache_ra_unboundedasbuh1hhj@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj@ubj)}(hractlh]hractl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj<ubj )}(hunsigned long nr_to_readh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h nr_to_readh]h nr_to_read}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj<ubj )}(hunsigned long lookahead_sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlookahead_sizeh]hlookahead_size}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj<ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjhhubj4)}(hhh]jM)}(hStart unchecked readahead.h]hStart unchecked readahead.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjfhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct readahead_control *ractl`` Readahead control. ``unsigned long nr_to_read`` The number of pages to read. ``unsigned long lookahead_size`` Where to start the next readahead. **Description** This function is for filesystems to call when they want to start readahead beyond a file's stated i_size. This is almost certainly not the function you want to call. Use page_cache_async_readahead() or page_cache_sync_readahead() instead. **Context** File is referenced by caller, and ractl->mapping->invalidate_lock must be held by the caller at least in shared mode. Mutexes may be held by caller. May sleep, but will not reenter filesystem to reclaim memory.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubj)}(hhh](j)}(h7``struct readahead_control *ractl`` Readahead control. h](j)}(h#``struct readahead_control *ractl``h]jS)}(hjh]hstruct readahead_control *ractl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubj)}(hhh]jM)}(hReadahead control.h]hReadahead control.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h:``unsigned long nr_to_read`` The number of pages to read. h](j)}(h``unsigned long nr_to_read``h]jS)}(hjh]hunsigned long nr_to_read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubj)}(hhh]jM)}(hThe number of pages to read.h]hThe number of pages to read.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hD``unsigned long lookahead_size`` Where to start the next readahead. h](j)}(h ``unsigned long lookahead_size``h]jS)}(hjh]hunsigned long lookahead_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubj)}(hhh]jM)}(h"Where to start the next readahead.h]h"Where to start the next readahead.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hKhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubjM)}(hThis function is for filesystems to call when they want to start readahead beyond a file's stated i_size. This is almost certainly not the function you want to call. Use page_cache_async_readahead() or page_cache_sync_readahead() instead.h]hThis function is for filesystems to call when they want to start readahead beyond a file’s stated i_size. This is almost certainly not the function you want to call. Use page_cache_async_readahead() or page_cache_sync_readahead() instead.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubjM)}(h **Context**h]j)}(hj~h]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubjM)}(hFile is referenced by caller, and ractl->mapping->invalidate_lock must be held by the caller at least in shared mode. Mutexes may be held by caller. May sleep, but will not reenter filesystem to reclaim memory.h]hFile is referenced by caller, and ractl->mapping->invalidate_lock must be held by the caller at least in shared mode. Mutexes may be held by caller. May sleep, but will not reenter filesystem to reclaim memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_expand (C function)c.readahead_expandhNtauh1hhjhhhNhNubh)}(hhh](h)}(hYvoid readahead_expand (struct readahead_control *ractl, loff_t new_start, size_t new_len)h]h)}(hXvoid readahead_expand(struct readahead_control *ractl, loff_t new_start, size_t new_len)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hreadahead_expandh]j)}(hreadahead_expandh]hreadahead_expand}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hC(struct readahead_control *ractl, loff_t new_start, size_t new_len)h](j )}(hstruct readahead_control *ractlh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljsbc.readahead_expandasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjLhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hractlh]hractl}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t new_starth](h)}(hhh]j)}(hloff_th]hloff_t}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjwmodnameN classnameNjpjs)}jv]j:c.readahead_expandasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h new_starth]h new_start}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hsize_t new_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j:c.readahead_expandasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnew_lenh]hnew_len}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hExpand a readahead requesth]hExpand a readahead request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj+jHj+jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct readahead_control *ractl`` The request to be expanded ``loff_t new_start`` The revised start ``size_t new_len`` The revised size of the request **Description** Attempt to expand a readahead request outwards from the current size to the specified size by inserting locked pages before and after the current window to increase the size to the new window. This may involve the insertion of THPs, in which case the window may get expanded even beyond what was requested. The algorithm will stop if it encounters a conflicting page already in the pagecache and leave a smaller expansion than requested. The caller must check for this by examining the revised **ractl** object for a different expansion than was requested.h](jM)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhj/ubj)}(hhh](j)}(h?``struct readahead_control *ractl`` The request to be expanded h](j)}(h#``struct readahead_control *ractl``h]jS)}(hjTh]hstruct readahead_control *ractl}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjRubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjNubj)}(hhh]jM)}(hThe request to be expandedh]hThe request to be expanded}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjKubj)}(h'``loff_t new_start`` The revised start h](j)}(h``loff_t new_start``h]jS)}(hjh]hloff_t new_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjubj)}(hhh]jM)}(hThe revised starth]hThe revised start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjKubj)}(h3``size_t new_len`` The revised size of the request h](j)}(h``size_t new_len``h]jS)}(hjh]hsize_t new_len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjubj)}(hhh]jM)}(hThe revised size of the requesth]hThe revised size of the request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhj/ubjM)}(hX3Attempt to expand a readahead request outwards from the current size to the specified size by inserting locked pages before and after the current window to increase the size to the new window. This may involve the insertion of THPs, in which case the window may get expanded even beyond what was requested.h]hX3Attempt to expand a readahead request outwards from the current size to the specified size by inserting locked pages before and after the current window to increase the size to the new window. This may involve the insertion of THPs, in which case the window may get expanded even beyond what was requested.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhj/ubjM)}(hThe algorithm will stop if it encounters a conflicting page already in the pagecache and leave a smaller expansion than requested.h]hThe algorithm will stop if it encounters a conflicting page already in the pagecache and leave a smaller expansion than requested.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chM hj/ubjM)}(hvThe caller must check for this by examining the revised **ractl** object for a different expansion than was requested.h](h8The caller must check for this by examining the revised }(hj5hhhNhNubj)}(h **ractl**h]hractl}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh5 object for a different expansion than was requested.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] readaheadah ]h"] readaheadah$]h&]uh1hhjthhhhhKAubh)}(hhh](h)}(h Writebackh]h Writeback}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehhhhhKJubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h2balance_dirty_pages_ratelimited_flags (C function)'c.balance_dirty_pages_ratelimited_flagshNtauh1hhjehhhNhNubh)}(hhh](h)}(h]int balance_dirty_pages_ratelimited_flags (struct address_space *mapping, unsigned int flags)h]h)}(h\int balance_dirty_pages_ratelimited_flags(struct address_space *mapping, unsigned int flags)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h%balance_dirty_pages_ratelimited_flagsh]j)}(h%balance_dirty_pages_ratelimited_flagsh]h%balance_dirty_pages_ratelimited_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h3(struct address_space *mapping, unsigned int flags)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsb'c.balance_dirty_pages_ratelimited_flagsasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hflagsh]hflags}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hBalance dirty memory state.h]hBalance dirty memory state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjehNhNubj)}(hX**Parameters** ``struct address_space *mapping`` address_space which was dirtied. ``unsigned int flags`` BDP flags. **Description** Processes which are dirtying memory should call in here once for each page which was newly dirtied. The function will periodically check the system's dirty state and will initiate writeback if needed. See balance_dirty_pages_ratelimited() for details. **Return** If **flags** contains BDP_ASYNC, it may return -EAGAIN to indicate that memory is out of balance and the caller must wait for I/O to complete. Otherwise, it will return 0 to indicate that either memory was already in balance, or it was able to sleep until the amount of dirty memory returned to balance.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubj)}(hhh](j)}(hC``struct address_space *mapping`` address_space which was dirtied. h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubj)}(hhh]jM)}(h address_space which was dirtied.h]h address_space which was dirtied.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``unsigned int flags`` BDP flags. h](j)}(h``unsigned int flags``h]jS)}(hj h]hunsigned int flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhj ubj)}(hhh]jM)}(h BDP flags.h]h BDP flags.}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/ hMhj0 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj/ hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjU h]h Description}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubjM)}(hProcesses which are dirtying memory should call in here once for each page which was newly dirtied. The function will periodically check the system's dirty state and will initiate writeback if needed.h]hProcesses which are dirtying memory should call in here once for each page which was newly dirtied. The function will periodically check the system’s dirty state and will initiate writeback if needed.}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubjM)}(h2See balance_dirty_pages_ratelimited() for details.h]h2See balance_dirty_pages_ratelimited() for details.}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubjM)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubjM)}(hX0If **flags** contains BDP_ASYNC, it may return -EAGAIN to indicate that memory is out of balance and the caller must wait for I/O to complete. Otherwise, it will return 0 to indicate that either memory was already in balance, or it was able to sleep until the amount of dirty memory returned to balance.h](hIf }(hj hhhNhNubj)}(h **flags**h]hflags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhX$ contains BDP_ASYNC, it may return -EAGAIN to indicate that memory is out of balance and the caller must wait for I/O to complete. Otherwise, it will return 0 to indicate that either memory was already in balance, or it was able to sleep until the amount of dirty memory returned to balance.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,balance_dirty_pages_ratelimited (C function)!c.balance_dirty_pages_ratelimitedhNtauh1hhjehhhNhNubh)}(hhh](h)}(hDvoid balance_dirty_pages_ratelimited (struct address_space *mapping)h]h)}(hCvoid balance_dirty_pages_ratelimited(struct address_space *mapping)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM4ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hM4ubh)}(hbalance_dirty_pages_ratelimitedh]j)}(hbalance_dirty_pages_ratelimitedh]hbalance_dirty_pages_ratelimited}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj hM4ubj )}(h(struct address_space *mapping)h]j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj, hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj= hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj: ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj? modnameN classnameNjpjs)}jv]jy)}jlj sb!c.balance_dirty_pages_ratelimitedasbuh1hhj ubj)}(h h]h }(hj] hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjk hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hmappingh]hmapping}(hjx hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubah}(h]h ]h"]h$]h&]jjuh1j hj hhhj hM4ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj hM4ubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hM4hj hhubj4)}(hhh]jM)}(hbalance dirty memory state.h]hbalance dirty memory state.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM4hj hhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj hM4ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjehNhNubj)}(hX**Parameters** ``struct address_space *mapping`` address_space which was dirtied. **Description** Processes which are dirtying memory should call in here once for each page which was newly dirtied. The function will periodically check the system's dirty state and will initiate writeback if needed. Once we're over the dirty memory limit we decrease the ratelimiting by a lot, to prevent individual processes from overshooting the limit by (ratelimit_pages) each.h](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM8hj ubj)}(hhh]j)}(hC``struct address_space *mapping`` address_space which was dirtied. h](j)}(h!``struct address_space *mapping``h]jS)}(hj h]hstruct address_space *mapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM5hj ubj)}(hhh]jM)}(h address_space which was dirtied.h]h address_space which was dirtied.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM5hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM5hj ubah}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM7hj ubjM)}(hProcesses which are dirtying memory should call in here once for each page which was newly dirtied. The function will periodically check the system's dirty state and will initiate writeback if needed.h]hProcesses which are dirtying memory should call in here once for each page which was newly dirtied. The function will periodically check the system’s dirty state and will initiate writeback if needed.}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM6hj ubjM)}(hOnce we're over the dirty memory limit we decrease the ratelimiting by a lot, to prevent individual processes from overshooting the limit by (ratelimit_pages) each.h]hOnce we’re over the dirty memory limit we decrease the ratelimiting by a lot, to prevent individual processes from overshooting the limit by (ratelimit_pages) each.}(hjC hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM:hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$tag_pages_for_writeback (C function)c.tag_pages_for_writebackhNtauh1hhjehhhNhNubh)}(hhh](h)}(hXvoid tag_pages_for_writeback (struct address_space *mapping, pgoff_t start, pgoff_t end)h]h)}(hWvoid tag_pages_for_writeback(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j)}(hvoidh]hvoid}(hjr hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM' ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn hhhj hM' ubh)}(htag_pages_for_writebackh]j)}(htag_pages_for_writebackh]htag_pages_for_writeback}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjn hhhj hM' ubj )}(h;(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jlj sbc.tag_pages_for_writebackasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hmappingh]hmapping}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(h pgoff_t starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj$ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj! ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj& modnameN classnameNjpjs)}jv]j c.tag_pages_for_writebackasbuh1hhj ubj)}(h h]h }(hjB hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hstarth]hstart}(hjP hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(h pgoff_t endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjl hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjn modnameN classnameNjpjs)}jv]j c.tag_pages_for_writebackasbuh1hhje ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje ubj)}(hendh]hend}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubeh}(h]h ]h"]h$]h&]jjuh1j hjn hhhj hM' ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjj hhhj hM' ubah}(h]je ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hM' hjg hhubj4)}(hhh]jM)}(h$tag pages to be written by writebackh]h$tag pages to be written by writeback}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM' hj hhubah}(h]h ]h"]h$]h&]uh1j3hjg hhhj hM' ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjehNhNubj)}(hX**Parameters** ``struct address_space *mapping`` address space structure to write ``pgoff_t start`` starting page index ``pgoff_t end`` ending page index (inclusive) **Description** This function scans the page range from **start** to **end** (inclusive) and tags all pages that have DIRTY tag set with a special TOWRITE tag. The caller can then use the TOWRITE tag to identify pages eligible for writeback. This mechanism is used to avoid livelocking of writeback by a process steadily creating new dirty pages in the file (thus it is important for this function to be quick so that it can tag pages faster than a dirtying process can create them).h](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM+ hj ubj)}(hhh](j)}(hC``struct address_space *mapping`` address space structure to write h](j)}(h!``struct address_space *mapping``h]jS)}(hj h]hstruct address_space *mapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM( hj ubj)}(hhh]jM)}(h address space structure to writeh]h address space structure to write}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM( hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM( hj ubj)}(h&``pgoff_t start`` starting page index h](j)}(h``pgoff_t start``h]jS)}(hj< h]h pgoff_t start}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj: ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM) hj6 ubj)}(hhh]jM)}(hstarting page indexh]hstarting page index}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQ hM) hjR ubah}(h]h ]h"]h$]h&]uh1jhj6 ubeh}(h]h ]h"]h$]h&]uh1jhjQ hM) hj ubj)}(h.``pgoff_t end`` ending page index (inclusive) h](j)}(h``pgoff_t end``h]jS)}(hju h]h pgoff_t end}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjs ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM* hjo ubj)}(hhh]jM)}(hending page index (inclusive)h]hending page index (inclusive)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM* hj ubah}(h]h ]h"]h$]h&]uh1jhjo ubeh}(h]h ]h"]h$]h&]uh1jhj hM* hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM, hj ubjM)}(hXThis function scans the page range from **start** to **end** (inclusive) and tags all pages that have DIRTY tag set with a special TOWRITE tag. The caller can then use the TOWRITE tag to identify pages eligible for writeback. This mechanism is used to avoid livelocking of writeback by a process steadily creating new dirty pages in the file (thus it is important for this function to be quick so that it can tag pages faster than a dirtying process can create them).h](h(This function scans the page range from }(hj hhhNhNubj)}(h **start**h]hstart}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh to }(hj hhhNhNubj)}(h**end**h]hend}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhX (inclusive) and tags all pages that have DIRTY tag set with a special TOWRITE tag. The caller can then use the TOWRITE tag to identify pages eligible for writeback. This mechanism is used to avoid livelocking of writeback by a process steadily creating new dirty pages in the file (thus it is important for this function to be quick so that it can tag pages faster than a dirtying process can create them).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM+ hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwriteback_iter (C function)c.writeback_iterhNtauh1hhjehhhNhNubh)}(hhh](h)}(h}struct folio * writeback_iter (struct address_space *mapping, struct writeback_control *wbc, struct folio *folio, int *error)h]h)}(h{struct folio *writeback_iter(struct address_space *mapping, struct writeback_control *wbc, struct folio *folio, int *error)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj&hM ubh)}(hhh]j)}(hfolioh]hfolio}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj:modnameN classnameNjpjs)}jv]jy)}jlwriteback_itersbc.writeback_iterasbuh1hhjhhhj&hM ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj&hM ubjF )}(hjI h]h*}(hjghhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj&hM ubh)}(hwriteback_iterh]j)}(hjVh]hwriteback_iter}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj&hM ubj )}(h_(struct address_space *mapping, struct writeback_control *wbc, struct folio *folio, int *error)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jTc.writeback_iterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct writeback_control *wbch](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hwriteback_controlh]hwriteback_control}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj#modnameN classnameNjpjs)}jv]jTc.writeback_iterasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjMhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hwbch]hwbc}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jTc.writeback_iterasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjoubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int *errorh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(herrorh]herror}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj&hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj&hM ubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj&hM hjhhubj4)}(hhh]jM)}(h(iterate folio of a mapping for writebackh]h(iterate folio of a mapping for writeback}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj3hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj&hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjNjHjNjIjJjKuh1hhhhjehNhNubj)}(hXu**Parameters** ``struct address_space *mapping`` address space structure to write ``struct writeback_control *wbc`` writeback context ``struct folio *folio`` previously iterated folio (``NULL`` to start) ``int *error`` in-out pointer for writeback errors (see below) **Description** This function returns the next folio for the writeback operation described by **wbc** on **mapping** and should be called in a while loop in the ->writepages implementation. To start the writeback operation, ``NULL`` is passed in the **folio** argument, and for every subsequent iteration the folio returned previously should be passed back in. If there was an error in the per-folio writeback inside the writeback_iter() loop, **error** should be set to the error value. Once the writeback described in **wbc** has finished, this function will return ``NULL`` and if there was an error in any iteration restore it to **error**. **Note** callers should not manually break out of the loop using break or goto but must keep calling writeback_iter() until it returns ``NULL``. **Return** the folio to write or ``NULL`` if the loop is done.h](jM)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjRubj)}(hhh](j)}(hC``struct address_space *mapping`` address space structure to write h](j)}(h!``struct address_space *mapping``h]jS)}(hjwh]hstruct address_space *mapping}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjqubj)}(hhh]jM)}(h address space structure to writeh]h address space structure to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhM hjnubj)}(h4``struct writeback_control *wbc`` writeback context h](j)}(h!``struct writeback_control *wbc``h]jS)}(hjh]hstruct writeback_control *wbc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(hwriteback contexth]hwriteback context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjnubj)}(hF``struct folio *folio`` previously iterated folio (``NULL`` to start) h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(h-previously iterated folio (``NULL`` to start)h](hpreviously iterated folio (}(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh to start)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjnubj)}(h?``int *error`` in-out pointer for writeback errors (see below) h](j)}(h``int *error``h]jS)}(hj4h]h int *error}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj.ubj)}(hhh]jM)}(h/in-out pointer for writeback errors (see below)h]h/in-out pointer for writeback errors (see below)}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhM hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM hjnubeh}(h]h ]h"]h$]h&]uh1jhjRubjM)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjRubjM)}(hThis function returns the next folio for the writeback operation described by **wbc** on **mapping** and should be called in a while loop in the ->writepages implementation.h](hNThis function returns the next folio for the writeback operation described by }(hjhhhNhNubj)}(h**wbc**h]hwbc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh on }(hjhhhNhNubj)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhJ and should be called in a while loop in the ->writepages implementation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjRubjM)}(hTo start the writeback operation, ``NULL`` is passed in the **folio** argument, and for every subsequent iteration the folio returned previously should be passed back in.h](h"To start the writeback operation, }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh is passed in the }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhe argument, and for every subsequent iteration the folio returned previously should be passed back in.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjRubjM)}(h~If there was an error in the per-folio writeback inside the writeback_iter() loop, **error** should be set to the error value.h](hSIf there was an error in the per-folio writeback inside the writeback_iter() loop, }(hjhhhNhNubj)}(h **error**h]herror}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" should be set to the error value.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjRubjM)}(hOnce the writeback described in **wbc** has finished, this function will return ``NULL`` and if there was an error in any iteration restore it to **error**.h](h Once the writeback described in }(hj hhhNhNubj)}(h**wbc**h]hwbc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh) has finished, this function will return }(hj hhhNhNubjS)}(h``NULL``h]hNULL}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh: and if there was an error in any iteration restore it to }(hj hhhNhNubj)}(h **error**h]herror}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjRubjM)}(h**Note**h]j)}(hjSh]hNote}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjRubjM)}(hcallers should not manually break out of the loop using break or goto but must keep calling writeback_iter() until it returns ``NULL``.h](h~callers should not manually break out of the loop using break or goto but must keep calling writeback_iter() until it returns }(hjihhhNhNubjS)}(h``NULL``h]hNULL}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubh.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjRubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjRubjM)}(h3the folio to write or ``NULL`` if the loop is done.h](hthe folio to write or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if the loop is done.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h filemap_dirty_folio (C function)c.filemap_dirty_foliohNtauh1hhjehhhNhNubh)}(hhh](h)}(hMbool filemap_dirty_folio (struct address_space *mapping, struct folio *folio)h]h)}(hLbool filemap_dirty_folio(struct address_space *mapping, struct folio *folio)h](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfilemap_dirty_folioh]j)}(hfilemap_dirty_folioh]hfilemap_dirty_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h4(struct address_space *mapping, struct folio *folio)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj?modnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_dirty_folioasbuh1hhjubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjkhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jYc.filemap_dirty_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjhhubj4)}(hhh]jM)}(hAMark a folio dirty for filesystems which do not use buffer_heads.h]hAMark a folio dirty for filesystems which do not use buffer_heads.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj*jHj*jIjJjKuh1hhhhjehNhNubj)}(hX~**Parameters** ``struct address_space *mapping`` Address space this folio belongs to. ``struct folio *folio`` Folio to be marked as dirty. **Description** Filesystems which do not use buffer heads should call this function from their dirty_folio address space operation. It ignores the contents of folio_get_private(), so if the filesystem marks individual blocks as dirty, the filesystem should handle that itself. This is also sometimes used by filesystems which use buffer_heads when a single buffer is being dirtied: we want to set the folio dirty in that case, but not all the buffers. This is a "bottom-up" dirtying, whereas block_dirty_folio() is a "top-down" dirtying. The caller must ensure this doesn't race with truncation. Most will simply hold the folio lock, but e.g. zap_pte_range() calls with the folio mapped and the pte lock held, which also locks out truncation.h](jM)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj.ubj)}(hhh](j)}(hG``struct address_space *mapping`` Address space this folio belongs to. h](j)}(h!``struct address_space *mapping``h]jS)}(hjSh]hstruct address_space *mapping}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjMubj)}(hhh]jM)}(h$Address space this folio belongs to.h]h$Address space this folio belongs to.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhM hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhM hjJubj)}(h5``struct folio *folio`` Folio to be marked as dirty. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(hFolio to be marked as dirty.h]hFolio to be marked as dirty.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjJubeh}(h]h ]h"]h$]h&]uh1jhj.ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj.ubjM)}(hXFilesystems which do not use buffer heads should call this function from their dirty_folio address space operation. It ignores the contents of folio_get_private(), so if the filesystem marks individual blocks as dirty, the filesystem should handle that itself.h]hXFilesystems which do not use buffer heads should call this function from their dirty_folio address space operation. It ignores the contents of folio_get_private(), so if the filesystem marks individual blocks as dirty, the filesystem should handle that itself.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj.ubjM)}(hXThis is also sometimes used by filesystems which use buffer_heads when a single buffer is being dirtied: we want to set the folio dirty in that case, but not all the buffers. This is a "bottom-up" dirtying, whereas block_dirty_folio() is a "top-down" dirtying.h]hX This is also sometimes used by filesystems which use buffer_heads when a single buffer is being dirtied: we want to set the folio dirty in that case, but not all the buffers. This is a “bottom-up” dirtying, whereas block_dirty_folio() is a “top-down” dirtying.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj.ubjM)}(hThe caller must ensure this doesn't race with truncation. Most will simply hold the folio lock, but e.g. zap_pte_range() calls with the folio mapped and the pte lock held, which also locks out truncation.h]hThe caller must ensure this doesn’t race with truncation. Most will simply hold the folio lock, but e.g. zap_pte_range() calls with the folio mapped and the pte lock held, which also locks out truncation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(folio_redirty_for_writepage (C function)c.folio_redirty_for_writepagehNtauh1hhjehhhNhNubh)}(hhh](h)}(hUbool folio_redirty_for_writepage (struct writeback_control *wbc, struct folio *folio)h]h)}(hTbool folio_redirty_for_writepage(struct writeback_control *wbc, struct folio *folio)h](j)}(hj.h]hbool}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj7hM ubh)}(hfolio_redirty_for_writepageh]j)}(hfolio_redirty_for_writepageh]hfolio_redirty_for_writepage}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1hhj&hhhj7hM ubj )}(h4(struct writeback_control *wbc, struct folio *folio)h](j )}(hstruct writeback_control *wbch](j5)}(hj8h]hstruct}(hjfhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j)}(hwriteback_controlh]hwriteback_control}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljLsbc.folio_redirty_for_writepageasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjbubj)}(hwbch]hwbc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj^ubj )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_redirty_for_writepageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj"hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj^ubeh}(h]h ]h"]h$]h&]jjuh1j hj&hhhj7hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj"hhhj7hM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj7hM hjhhubj4)}(hhh]jM)}(hDecline to write a dirty folio.h]hDecline to write a dirty folio.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjVhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj7hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjqjHjqjIjJjKuh1hhhhjehNhNubj)}(hXv**Parameters** ``struct writeback_control *wbc`` The writeback control. ``struct folio *folio`` The folio. **Description** When a writepage implementation decides that it doesn't want to write **folio** for some reason, it should call this function, unlock **folio** and return 0. **Return** True if we redirtied the folio. False if someone else dirtied it first.h](jM)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjuubj)}(hhh](j)}(h9``struct writeback_control *wbc`` The writeback control. h](j)}(h!``struct writeback_control *wbc``h]jS)}(hjh]hstruct writeback_control *wbc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(hThe writeback control.h]hThe writeback control.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjuubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjuubjM)}(hWhen a writepage implementation decides that it doesn't want to write **folio** for some reason, it should call this function, unlock **folio** and return 0.h](hHWhen a writepage implementation decides that it doesn’t want to write }(hj$hhhNhNubj)}(h **folio**h]hfolio}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh7 for some reason, it should call this function, unlock }(hj$hhhNhNubj)}(h **folio**h]hfolio}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh and return 0.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjuubjM)}(h **Return**h]j)}(hjYh]hReturn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjuubjM)}(hHTrue if we redirtied the folio. False if someone else dirtied it first.h]hHTrue if we redirtied the folio. False if someone else dirtied it first.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mark_dirty (C function)c.folio_mark_dirtyhNtauh1hhjehhhNhNubh)}(hhh](h)}(h+bool folio_mark_dirty (struct folio *folio)h]h)}(h*bool folio_mark_dirty(struct folio *folio)h](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_mark_dirtyh]j)}(hfolio_mark_dirtyh]hfolio_mark_dirty}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_mark_dirtyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj&hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjhhubj4)}(hhh]jM)}(hMark a folio as being modified.h]hMark a folio as being modified.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjZhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjujHjujIjJjKuh1hhhhjehNhNubj)}(hX!**Parameters** ``struct folio *folio`` The folio. **Description** The folio may not be truncated while this function is running. Holding the folio lock is sufficient to prevent truncation, but some callers cannot acquire a sleeping lock. These callers instead hold the page table lock for a page table which contains at least one page in this folio. Truncation will block on the page table lock as it unmaps pages before removing the folio from its mapping. **Return** True if the folio was newly dirtied, false if it was already dirty.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjyubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjyubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjyubjM)}(hXThe folio may not be truncated while this function is running. Holding the folio lock is sufficient to prevent truncation, but some callers cannot acquire a sleeping lock. These callers instead hold the page table lock for a page table which contains at least one page in this folio. Truncation will block on the page table lock as it unmaps pages before removing the folio from its mapping.h]hXThe folio may not be truncated while this function is running. Holding the folio lock is sufficient to prevent truncation, but some callers cannot acquire a sleeping lock. These callers instead hold the page table lock for a page table which contains at least one page in this folio. Truncation will block on the page table lock as it unmaps pages before removing the folio from its mapping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjyubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjyubjM)}(hCTrue if the folio was newly dirtied, false if it was already dirty.h]hCTrue if the folio was newly dirtied, false if it was already dirty.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_wait_writeback (C function)c.folio_wait_writebackhNtauh1hhjehhhNhNubh)}(hhh](h)}(h/void folio_wait_writeback (struct folio *folio)h]h)}(h.void folio_wait_writeback(struct folio *folio)h](j)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjShM ubh)}(hfolio_wait_writebackh]j)}(hfolio_wait_writebackh]hfolio_wait_writeback}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1hhjAhhhjShM ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljhsbc.folio_wait_writebackasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj~ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjzubah}(h]h ]h"]h$]h&]jjuh1j hjAhhhjShM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj=hhhjShM ubah}(h]j8ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjShM hj:hhubj4)}(hhh]jM)}(h%Wait for a folio to finish writeback.h]h%Wait for a folio to finish writeback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hj:hhhjShM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjehNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to wait for. **Description** If the folio is currently being written back to storage, wait for the I/O to complete. **Context** Sleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished.h](jM)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj!ubj)}(hhh]j)}(h/``struct folio *folio`` The folio to wait for. h](j)}(h``struct folio *folio``h]jS)}(hjFh]hstruct folio *folio}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj@ubj)}(hhh]jM)}(hThe folio to wait for.h]hThe folio to wait for.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hM hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hM hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj!ubjM)}(hVIf the folio is currently being written back to storage, wait for the I/O to complete.h]hVIf the folio is currently being written back to storage, wait for the I/O to complete.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj!ubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj!ubjM)}(hSleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished.h]hSleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*folio_wait_writeback_killable (C function)c.folio_wait_writeback_killablehNtauh1hhjehhhNhNubh)}(hhh](h)}(h7int folio_wait_writeback_killable (struct folio *folio)h]h)}(h6int folio_wait_writeback_killable(struct folio *folio)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_wait_writeback_killableh]j)}(hfolio_wait_writeback_killableh]hfolio_wait_writeback_killable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj*hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]j)}(hfolioh]hfolio}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjJmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_wait_writeback_killableasbuh1hhj&ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjF )}(hjI h]h*}(hjvhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj&ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj"ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjhhubj4)}(hhh]jM)}(h%Wait for a folio to finish writeback.h]h%Wait for a folio to finish writeback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjehNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to wait for. **Description** If the folio is currently being written back to storage, wait for the I/O to complete or a fatal signal to arrive. **Context** Sleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished. **Return** 0 on success, -EINTR if we get a fatal signal while waiting.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]j)}(h/``struct folio *folio`` The folio to wait for. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(hThe folio to wait for.h]hThe folio to wait for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(hrIf the folio is currently being written back to storage, wait for the I/O to complete or a fatal signal to arrive.h]hrIf the folio is currently being written back to storage, wait for the I/O to complete or a fatal signal to arrive.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(h **Context**h]j)}(hjPh]hContext}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(hSleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished.h]hSleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(h **Return**h]j)}(hjwh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(h<0 on success, -EINTR if we get a fatal signal while waiting.h]h<0 on success, -EINTR if we get a fatal signal while waiting.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_wait_stable (C function)c.folio_wait_stablehNtauh1hhjehhhNhNubh)}(hhh](h)}(h,void folio_wait_stable (struct folio *folio)h]h)}(h+void folio_wait_stable(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_wait_stableh]j)}(hfolio_wait_stableh]hfolio_wait_stable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_wait_stableasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjEhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjhhubj4)}(hhh]jM)}(h+wait for writeback to finish, if necessary.h]h+wait for writeback to finish, if necessary.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjyhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjehNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to wait on. **Description** This function determines if the given folio is related to a backing device that requires folio contents to be held stable during writeback. If so, then it will wait for any pending writeback to complete. **Context** Sleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]j)}(h.``struct folio *folio`` The folio to wait on. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(hThe folio to wait on.h]hThe folio to wait on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(hThis function determines if the given folio is related to a backing device that requires folio contents to be held stable during writeback. If so, then it will wait for any pending writeback to complete.h]hThis function determines if the given folio is related to a backing device that requires folio contents to be held stable during writeback. If so, then it will wait for any pending writeback to complete.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(h **Context**h]j)}(hjh]hContext}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM! hjubjM)}(hSleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished.h]hSleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM" hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubeh}(h] writebackah ]h"] writebackah$]h&]uh1hhjthhhhhKJubh)}(hhh](h)}(hTruncateh]hTruncate}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShhhhhKPubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_invalidate (C function)c.folio_invalidatehNtauh1hhjShhhNhNubh)}(hhh](h)}(hIvoid folio_invalidate (struct folio *folio, size_t offset, size_t length)h]h)}(hHvoid folio_invalidate(struct folio *folio, size_t offset, size_t length)h](j)}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhKyubh)}(hfolio_invalidateh]j)}(hfolio_invalidateh]hfolio_invalidate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjyhhhjhKyubj )}(h3(struct folio *folio, size_t offset, size_t length)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_invalidateasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h size_t offseth](h)}(hhh]j)}(hsize_th]hsize_t}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj1modnameN classnameNjpjs)}jv]jc.folio_invalidateasbuh1hhj(ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hoffseth]hoffset}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h size_t lengthh](h)}(hhh]j)}(hsize_th]hsize_t}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjymodnameN classnameNjpjs)}jv]jc.folio_invalidateasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hlengthh]hlength}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjyhhhjhKyubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjuhhhjhKyubah}(h]jpah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKyhjrhhubj4)}(hhh]jM)}(h"Invalidate part or all of a folio.h]h"Invalidate part or all of a folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKyhjhhubah}(h]h ]h"]h$]h&]uh1j3hjrhhhjhKyubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjShNhNubj)}(hX[**Parameters** ``struct folio *folio`` The folio which is affected. ``size_t offset`` start of the range to invalidate ``size_t length`` length of the range to invalidate **Description** folio_invalidate() is called when all or part of the folio has become invalidated by a truncate operation. folio_invalidate() does not have to release all buffers, but it must ensure that no dirty buffer is left outside **offset** and that no I/O is underway against any of the blocks which are outside the truncation point. Because the caller is about to free (and possibly reuse) those blocks on-disk.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK}hjubj)}(hhh](j)}(h5``struct folio *folio`` The folio which is affected. h](j)}(h``struct folio *folio``h]jS)}(hj h]hstruct folio *folio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKzhj ubj)}(hhh]jM)}(hThe folio which is affected.h]hThe folio which is affected.}(hj' hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj# hKzhj$ ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj# hKzhj ubj)}(h3``size_t offset`` start of the range to invalidate h](j)}(h``size_t offset``h]jS)}(hjG h]h size_t offset}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjE ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK{hjA ubj)}(hhh]jM)}(h start of the range to invalidateh]h start of the range to invalidate}(hj` hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\ hK{hj] ubah}(h]h ]h"]h$]h&]uh1jhjA ubeh}(h]h ]h"]h$]h&]uh1jhj\ hK{hj ubj)}(h4``size_t length`` length of the range to invalidate h](j)}(h``size_t length``h]jS)}(hj h]h size_t length}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj~ ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK|hjz ubj)}(hhh]jM)}(h!length of the range to invalidateh]h!length of the range to invalidate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hK|hj ubah}(h]h ]h"]h$]h&]uh1jhjz ubeh}(h]h ]h"]h$]h&]uh1jhj hK|hj ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK~hjubjM)}(hjfolio_invalidate() is called when all or part of the folio has become invalidated by a truncate operation.h]hjfolio_invalidate() is called when all or part of the folio has become invalidated by a truncate operation.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK}hjubjM)}(hX)folio_invalidate() does not have to release all buffers, but it must ensure that no dirty buffer is left outside **offset** and that no I/O is underway against any of the blocks which are outside the truncation point. Because the caller is about to free (and possibly reuse) those blocks on-disk.h](hqfolio_invalidate() does not have to release all buffers, but it must ensure that no dirty buffer is left outside }(hj hhhNhNubj)}(h **offset**h]hoffset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh and that no I/O is underway against any of the blocks which are outside the truncation point. Because the caller is about to free (and possibly reuse) those blocks on-disk.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'truncate_inode_pages_range (C function)c.truncate_inode_pages_rangehNtauh1hhjShhhNhNubh)}(hhh](h)}(h[void truncate_inode_pages_range (struct address_space *mapping, loff_t lstart, uoff_t lend)h]h)}(hZvoid truncate_inode_pages_range(struct address_space *mapping, loff_t lstart, uoff_t lend)h](j)}(hvoidh]hvoid}(hj!!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMWubj)}(h h]h }(hj0!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj/!hMWubh)}(htruncate_inode_pages_rangeh]j)}(htruncate_inode_pages_rangeh]htruncate_inode_pages_range}(hjB!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>!ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj!hhhj/!hMWubj )}(h;(struct address_space *mapping, loff_t lstart, uoff_t lend)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj^!hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjZ!ubj)}(h h]h }(hjk!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ!ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj|!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy!ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj~!modnameN classnameNjpjs)}jv]jy)}jljD!sbc.truncate_inode_pages_rangeasbuh1hhjZ!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ!ubjF )}(hjI h]h*}(hj!hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjZ!ubj)}(hmappingh]hmapping}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjV!ubj )}(h loff_t lstarth](h)}(hhh]j)}(hloff_th]hloff_t}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj!modnameN classnameNjpjs)}jv]j!c.truncate_inode_pages_rangeasbuh1hhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hlstarth]hlstart}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjV!ubj )}(h uoff_t lendh](h)}(hhh]j)}(huoff_th]huoff_t}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj"modnameN classnameNjpjs)}jv]j!c.truncate_inode_pages_rangeasbuh1hhj"ubj)}(h h]h }(hj9"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hlendh]hlend}(hjG"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjV!ubeh}(h]h ]h"]h$]h&]jjuh1j hj!hhhj/!hMWubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj!hhhj/!hMWubah}(h]j!ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj/!hMWhj!hhubj4)}(hhh]jM)}(h=truncate range of pages specified by start & end byte offsetsh]h=truncate range of pages specified by start & end byte offsets}(hjq"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMWhjn"hhubah}(h]h ]h"]h$]h&]uh1j3hj!hhhj/!hMWubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj"jHj"jIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``struct address_space *mapping`` mapping to truncate ``loff_t lstart`` offset from which to truncate ``uoff_t lend`` offset to which to truncate (inclusive) **Description** Truncate the page cache, removing the pages that are between specified offsets (and zeroing out partial pages if lstart or lend + 1 is not page aligned). Truncate takes two passes - the first pass is nonblocking. It will not block on page locks and it will not block on writeback. The second pass will wait. This is to prevent as much IO as possible in the affected region. The first pass will remove most pages, so the search cost of the second pass is low. We pass down the cache-hot hint to the page freeing code. Even if the mapping is large, it is probably the case that the final pages are the most recently touched, and freeing happens in ascending file offset order. Note that since ->invalidate_folio() accepts range to invalidate truncate_inode_pages_range is able to handle cases where lend + 1 is not page aligned properly.h](jM)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM[hj"ubj)}(hhh](j)}(h6``struct address_space *mapping`` mapping to truncate h](j)}(h!``struct address_space *mapping``h]jS)}(hj"h]hstruct address_space *mapping}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMXhj"ubj)}(hhh]jM)}(hmapping to truncateh]hmapping to truncate}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"hMXhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMXhj"ubj)}(h0``loff_t lstart`` offset from which to truncate h](j)}(h``loff_t lstart``h]jS)}(hj"h]h loff_t lstart}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMYhj"ubj)}(hhh]jM)}(hoffset from which to truncateh]hoffset from which to truncate}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#hMYhj#ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj#hMYhj"ubj)}(h8``uoff_t lend`` offset to which to truncate (inclusive) h](j)}(h``uoff_t lend``h]jS)}(hj$#h]h uoff_t lend}(hj&#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"#ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMZhj#ubj)}(hhh]jM)}(h'offset to which to truncate (inclusive)h]h'offset to which to truncate (inclusive)}(hj=#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9#hMZhj:#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj9#hMZhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"ubjM)}(h**Description**h]j)}(hj_#h]h Description}(hja#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]#ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM\hj"ubjM)}(hTruncate the page cache, removing the pages that are between specified offsets (and zeroing out partial pages if lstart or lend + 1 is not page aligned).h]hTruncate the page cache, removing the pages that are between specified offsets (and zeroing out partial pages if lstart or lend + 1 is not page aligned).}(hju#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM[hj"ubjM)}(hX3Truncate takes two passes - the first pass is nonblocking. It will not block on page locks and it will not block on writeback. The second pass will wait. This is to prevent as much IO as possible in the affected region. The first pass will remove most pages, so the search cost of the second pass is low.h]hX3Truncate takes two passes - the first pass is nonblocking. It will not block on page locks and it will not block on writeback. The second pass will wait. This is to prevent as much IO as possible in the affected region. The first pass will remove most pages, so the search cost of the second pass is low.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM_hj"ubjM)}(hWe pass down the cache-hot hint to the page freeing code. Even if the mapping is large, it is probably the case that the final pages are the most recently touched, and freeing happens in ascending file offset order.h]hWe pass down the cache-hot hint to the page freeing code. Even if the mapping is large, it is probably the case that the final pages are the most recently touched, and freeing happens in ascending file offset order.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMehj"ubjM)}(hNote that since ->invalidate_folio() accepts range to invalidate truncate_inode_pages_range is able to handle cases where lend + 1 is not page aligned properly.h]hNote that since ->invalidate_folio() accepts range to invalidate truncate_inode_pages_range is able to handle cases where lend + 1 is not page aligned properly.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMihj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!truncate_inode_pages (C function)c.truncate_inode_pageshNtauh1hhjShhhNhNubh)}(hhh](h)}(hHvoid truncate_inode_pages (struct address_space *mapping, loff_t lstart)h]h)}(hGvoid truncate_inode_pages(struct address_space *mapping, loff_t lstart)h](j)}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj#hMubh)}(htruncate_inode_pagesh]j)}(htruncate_inode_pagesh]htruncate_inode_pages}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj#hhhj#hMubj )}(h.(struct address_space *mapping, loff_t lstart)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj$hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj $ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj $ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj,$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)$ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj.$modnameN classnameNjpjs)}jv]jy)}jlj#sbc.truncate_inode_pagesasbuh1hhj $ubj)}(h h]h }(hjL$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj $ubjF )}(hjI h]h*}(hjZ$hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj $ubj)}(hmappingh]hmapping}(hjg$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj $ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$ubj )}(h loff_t lstarth](h)}(hhh]j)}(hloff_th]hloff_t}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj$modnameN classnameNjpjs)}jv]jH$c.truncate_inode_pagesasbuh1hhj|$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|$ubj)}(hlstarth]hlstart}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|$ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$ubeh}(h]h ]h"]h$]h&]jjuh1j hj#hhhj#hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj#hhhj#hMubah}(h]j#ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj#hMhj#hhubj4)}(hhh]jM)}(h'truncate *all* the pages from an offseth](h truncate }(hj$hhhNhNubj_)}(h*all*h]hall}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hj$ubh the pages from an offset}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj$hhubah}(h]h ]h"]h$]h&]uh1j3hj#hhhj#hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj%jHj%jIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``struct address_space *mapping`` mapping to truncate ``loff_t lstart`` offset from which to truncate **Description** Called under (and serialised by) inode->i_rwsem and mapping->invalidate_lock. **Note** When this function returns, there can be a page in the process of deletion (inside __filemap_remove_folio()) in the specified range. Thus mapping->nrpages can be non-zero when this function returns even after truncation of the whole mapping.h](jM)}(h**Parameters**h]j)}(hj %h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj %ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj%ubj)}(hhh](j)}(h6``struct address_space *mapping`` mapping to truncate h](j)}(h!``struct address_space *mapping``h]jS)}(hj,%h]hstruct address_space *mapping}(hj.%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*%ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj&%ubj)}(hhh]jM)}(hmapping to truncateh]hmapping to truncate}(hjE%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjA%hMhjB%ubah}(h]h ]h"]h$]h&]uh1jhj&%ubeh}(h]h ]h"]h$]h&]uh1jhjA%hMhj#%ubj)}(h0``loff_t lstart`` offset from which to truncate h](j)}(h``loff_t lstart``h]jS)}(hje%h]h loff_t lstart}(hjg%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjc%ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj_%ubj)}(hhh]jM)}(hoffset from which to truncateh]hoffset from which to truncate}(hj~%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjz%hMhj{%ubah}(h]h ]h"]h$]h&]uh1jhj_%ubeh}(h]h ]h"]h$]h&]uh1jhjz%hMhj#%ubeh}(h]h ]h"]h$]h&]uh1jhj%ubjM)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj%ubjM)}(hMCalled under (and serialised by) inode->i_rwsem and mapping->invalidate_lock.h]hMCalled under (and serialised by) inode->i_rwsem and mapping->invalidate_lock.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj%ubjM)}(h**Note**h]j)}(hj%h]hNote}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj%ubjM)}(hWhen this function returns, there can be a page in the process of deletion (inside __filemap_remove_folio()) in the specified range. Thus mapping->nrpages can be non-zero when this function returns even after truncation of the whole mapping.h]hWhen this function returns, there can be a page in the process of deletion (inside __filemap_remove_folio()) in the specified range. Thus mapping->nrpages can be non-zero when this function returns even after truncation of the whole mapping.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'truncate_inode_pages_final (C function)c.truncate_inode_pages_finalhNtauh1hhjShhhNhNubh)}(hhh](h)}(h?void truncate_inode_pages_final (struct address_space *mapping)h]h)}(h>void truncate_inode_pages_final(struct address_space *mapping)h](j)}(hvoidh]hvoid}(hj &hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj&hMubh)}(htruncate_inode_pages_finalh]j)}(htruncate_inode_pages_finalh]htruncate_inode_pages_final}(hj-&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)&ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj&hhhj&hMubj )}(h(struct address_space *mapping)h]j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjI&hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjE&ubj)}(h h]h }(hjV&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE&ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjg&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd&ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetji&modnameN classnameNjpjs)}jv]jy)}jlj/&sbc.truncate_inode_pages_finalasbuh1hhjE&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE&ubjF )}(hjI h]h*}(hj&hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjE&ubj)}(hmappingh]hmapping}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjA&ubah}(h]h ]h"]h$]h&]jjuh1j hj&hhhj&hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj&hhhj&hMubah}(h]j%ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj&hMhj&hhubj4)}(hhh]jM)}(h&truncate *all* pages before inode diesh](h truncate }(hj&hhhNhNubj_)}(h*all*h]hall}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hj&ubh pages before inode dies}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj&hhubah}(h]h ]h"]h$]h&]uh1j3hj&hhhj&hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj&jHj&jIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``struct address_space *mapping`` mapping to truncate **Description** Called under (and serialized by) inode->i_rwsem. Filesystems have to use this in the .evict_inode path to inform the VM that this is the final truncate and the inode is going away.h](jM)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj&ubj)}(hhh]j)}(h6``struct address_space *mapping`` mapping to truncate h](j)}(h!``struct address_space *mapping``h]jS)}(hj'h]hstruct address_space *mapping}(hj!'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj'ubj)}(hhh]jM)}(hmapping to truncateh]hmapping to truncate}(hj8'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4'hMhj5'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj4'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubjM)}(h**Description**h]j)}(hjZ'h]h Description}(hj\'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX'ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj&ubjM)}(h0Called under (and serialized by) inode->i_rwsem.h]h0Called under (and serialized by) inode->i_rwsem.}(hjp'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj&ubjM)}(hFilesystems have to use this in the .evict_inode path to inform the VM that this is the final truncate and the inode is going away.h]hFilesystems have to use this in the .evict_inode path to inform the VM that this is the final truncate and the inode is going away.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%invalidate_mapping_pages (C function)c.invalidate_mapping_pageshNtauh1hhjShhhNhNubh)}(hhh](h)}(hbunsigned long invalidate_mapping_pages (struct address_space *mapping, pgoff_t start, pgoff_t end)h]h)}(haunsigned long invalidate_mapping_pages(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j)}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMJubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj'hMJubj)}(hlongh]hlong}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj'hMJubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj'hMJubh)}(hinvalidate_mapping_pagesh]j)}(hinvalidate_mapping_pagesh]hinvalidate_mapping_pages}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj'hhhj'hMJubj )}(h;(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj(hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj%(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj'(modnameN classnameNjpjs)}jv]jy)}jlj'sbc.invalidate_mapping_pagesasbuh1hhj(ubj)}(h h]h }(hjE(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjF )}(hjI h]h*}(hjS(hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj(ubj)}(hmappingh]hmapping}(hj`(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj'ubj )}(h pgoff_t starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj|(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj~(modnameN classnameNjpjs)}jv]jA(c.invalidate_mapping_pagesasbuh1hhju(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju(ubj)}(hstarth]hstart}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj'ubj )}(h pgoff_t endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj(modnameN classnameNjpjs)}jv]jA(c.invalidate_mapping_pagesasbuh1hhj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hendh]hend}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj'ubeh}(h]h ]h"]h$]h&]jjuh1j hj'hhhj'hMJubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj'hhhj'hMJubah}(h]j'ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj'hMJhj'hhubj4)}(hhh]jM)}(h1Invalidate all clean, unlocked cache of one inodeh]h1Invalidate all clean, unlocked cache of one inode}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMJhj)hhubah}(h]h ]h"]h$]h&]uh1j3hj'hhhj'hMJubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj2)jHj2)jIjJjKuh1hhhhjShNhNubj)}(hX<**Parameters** ``struct address_space *mapping`` the address_space which holds the cache to invalidate ``pgoff_t start`` the offset 'from' which to invalidate ``pgoff_t end`` the offset 'to' which to invalidate (inclusive) **Description** This function removes pages that are clean, unmapped and unlocked, as well as shadow entries. It will not block on IO activity. If you want to remove all the pages of one inode, regardless of their use and writeback state, use truncate_inode_pages(). **Return** The number of indices that had their contents invalidatedh](jM)}(h**Parameters**h]j)}(hj<)h]h Parameters}(hj>)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:)ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMNhj6)ubj)}(hhh](j)}(hX``struct address_space *mapping`` the address_space which holds the cache to invalidate h](j)}(h!``struct address_space *mapping``h]jS)}(hj[)h]hstruct address_space *mapping}(hj])hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjY)ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMKhjU)ubj)}(hhh]jM)}(h5the address_space which holds the cache to invalidateh]h5the address_space which holds the cache to invalidate}(hjt)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjp)hMKhjq)ubah}(h]h ]h"]h$]h&]uh1jhjU)ubeh}(h]h ]h"]h$]h&]uh1jhjp)hMKhjR)ubj)}(h8``pgoff_t start`` the offset 'from' which to invalidate h](j)}(h``pgoff_t start``h]jS)}(hj)h]h pgoff_t start}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMLhj)ubj)}(hhh]jM)}(h%the offset 'from' which to invalidateh]h)the offset ‘from’ which to invalidate}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)hMLhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMLhjR)ubj)}(h@``pgoff_t end`` the offset 'to' which to invalidate (inclusive) h](j)}(h``pgoff_t end``h]jS)}(hj)h]h pgoff_t end}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMMhj)ubj)}(hhh]jM)}(h/the offset 'to' which to invalidate (inclusive)h]h3the offset ‘to’ which to invalidate (inclusive)}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)hMMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMMhjR)ubeh}(h]h ]h"]h$]h&]uh1jhj6)ubjM)}(h**Description**h]j)}(hj*h]h Description}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMOhj6)ubjM)}(hThis function removes pages that are clean, unmapped and unlocked, as well as shadow entries. It will not block on IO activity.h]hThis function removes pages that are clean, unmapped and unlocked, as well as shadow entries. It will not block on IO activity.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMNhj6)ubjM)}(hzIf you want to remove all the pages of one inode, regardless of their use and writeback state, use truncate_inode_pages().h]hzIf you want to remove all the pages of one inode, regardless of their use and writeback state, use truncate_inode_pages().}(hj-*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMQhj6)ubjM)}(h **Return**h]j)}(hj>*h]hReturn}(hj@*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<*ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMThj6)ubjM)}(h9The number of indices that had their contents invalidatedh]h9The number of indices that had their contents invalidated}(hjT*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMUhj6)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*invalidate_inode_pages2_range (C function)c.invalidate_inode_pages2_rangehNtauh1hhjShhhNhNubh)}(hhh](h)}(h]int invalidate_inode_pages2_range (struct address_space *mapping, pgoff_t start, pgoff_t end)h]h)}(h\int invalidate_inode_pages2_range(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j)}(hinth]hint}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj*hMubh)}(hinvalidate_inode_pages2_rangeh]j)}(hinvalidate_inode_pages2_rangeh]hinvalidate_inode_pages2_range}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj*hhhj*hMubj )}(h;(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj*hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj*modnameN classnameNjpjs)}jv]jy)}jlj*sbc.invalidate_inode_pages2_rangeasbuh1hhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjF )}(hjI h]h*}(hj +hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj*ubj)}(hmappingh]hmapping}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj*ubj )}(h pgoff_t starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj5+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2+ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7+modnameN classnameNjpjs)}jv]j*c.invalidate_inode_pages2_rangeasbuh1hhj.+ubj)}(h h]h }(hjS+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.+ubj)}(hstarth]hstart}(hja+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.+ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj*ubj )}(h pgoff_t endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj}+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz+ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj+modnameN classnameNjpjs)}jv]j*c.invalidate_inode_pages2_rangeasbuh1hhjv+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv+ubj)}(hendh]hend}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv+ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj*ubeh}(h]h ]h"]h$]h&]jjuh1j hj*hhhj*hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj{*hhhj*hMubah}(h]jv*ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj*hMhjx*hhubj4)}(hhh]jM)}(h+remove range of pages from an address_spaceh]h+remove range of pages from an address_space}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj+hhubah}(h]h ]h"]h$]h&]uh1j3hjx*hhhj*hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj+jHj+jIjJjKuh1hhhhjShNhNubj)}(hXu**Parameters** ``struct address_space *mapping`` the address_space ``pgoff_t start`` the page offset 'from' which to invalidate ``pgoff_t end`` the page offset 'to' which to invalidate (inclusive) **Description** Any pages which are found to be mapped into pagetables are unmapped prior to invalidation. **Return** -EBUSY if any pages could not be invalidated.h](jM)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj+ubj)}(hhh](j)}(h4``struct address_space *mapping`` the address_space h](j)}(h!``struct address_space *mapping``h]jS)}(hj,h]hstruct address_space *mapping}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj,ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj,ubj)}(hhh]jM)}(hthe address_spaceh]hthe address_space}(hj-,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj),hMhj*,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj),hMhj ,ubj)}(h=``pgoff_t start`` the page offset 'from' which to invalidate h](j)}(h``pgoff_t start``h]jS)}(hjM,h]h pgoff_t start}(hjO,hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjK,ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjG,ubj)}(hhh]jM)}(h*the page offset 'from' which to invalidateh]h.the page offset ‘from’ which to invalidate}(hjf,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjb,hMhjc,ubah}(h]h ]h"]h$]h&]uh1jhjG,ubeh}(h]h ]h"]h$]h&]uh1jhjb,hMhj ,ubj)}(hE``pgoff_t end`` the page offset 'to' which to invalidate (inclusive) h](j)}(h``pgoff_t end``h]jS)}(hj,h]h pgoff_t end}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj,ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj,ubj)}(hhh]jM)}(h4the page offset 'to' which to invalidate (inclusive)h]h8the page offset ‘to’ which to invalidate (inclusive)}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj ,ubeh}(h]h ]h"]h$]h&]uh1jhj+ubjM)}(h**Description**h]j)}(hj,h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj+ubjM)}(hZAny pages which are found to be mapped into pagetables are unmapped prior to invalidation.h]hZAny pages which are found to be mapped into pagetables are unmapped prior to invalidation.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj+ubjM)}(h **Return**h]j)}(hj,h]hReturn}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj+ubjM)}(h--EBUSY if any pages could not be invalidated.h]h--EBUSY if any pages could not be invalidated.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$invalidate_inode_pages2 (C function)c.invalidate_inode_pages2hNtauh1hhjShhhNhNubh)}(hhh](h)}(h;int invalidate_inode_pages2 (struct address_space *mapping)h]h)}(h:int invalidate_inode_pages2(struct address_space *mapping)h](j)}(hinth]hint}(hj--hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)-hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hj<-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)-hhhj;-hMubh)}(hinvalidate_inode_pages2h]j)}(hinvalidate_inode_pages2h]hinvalidate_inode_pages2}(hjN-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ-ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj)-hhhj;-hMubj )}(h(struct address_space *mapping)h]j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjj-hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjf-ubj)}(h h]h }(hjw-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf-ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj-modnameN classnameNjpjs)}jv]jy)}jljP-sbc.invalidate_inode_pages2asbuh1hhjf-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf-ubjF )}(hjI h]h*}(hj-hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjf-ubj)}(hmappingh]hmapping}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjb-ubah}(h]h ]h"]h$]h&]jjuh1j hj)-hhhj;-hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj%-hhhj;-hMubah}(h]j -ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj;-hMhj"-hhubj4)}(hhh]jM)}(h&remove all pages from an address_spaceh]h&remove all pages from an address_space}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj-hhubah}(h]h ]h"]h$]h&]uh1j3hj"-hhhj;-hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj.jHj.jIjJjKuh1hhhhjShNhNubj)}(h**Parameters** ``struct address_space *mapping`` the address_space **Description** Any pages which are found to be mapped into pagetables are unmapped prior to invalidation. **Return** -EBUSY if any pages could not be invalidated.h](jM)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj .ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj .ubj)}(hhh]j)}(h4``struct address_space *mapping`` the address_space h](j)}(h!``struct address_space *mapping``h]jS)}(hj..h]hstruct address_space *mapping}(hj0.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj,.ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj(.ubj)}(hhh]jM)}(hthe address_spaceh]hthe address_space}(hjG.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjC.hMhjD.ubah}(h]h ]h"]h$]h&]uh1jhj(.ubeh}(h]h ]h"]h$]h&]uh1jhjC.hMhj%.ubah}(h]h ]h"]h$]h&]uh1jhj .ubjM)}(h**Description**h]j)}(hji.h]h Description}(hjk.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg.ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj .ubjM)}(hZAny pages which are found to be mapped into pagetables are unmapped prior to invalidation.h]hZAny pages which are found to be mapped into pagetables are unmapped prior to invalidation.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj .ubjM)}(h **Return**h]j)}(hj.h]hReturn}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj .ubjM)}(h--EBUSY if any pages could not be invalidated.h]h--EBUSY if any pages could not be invalidated.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj .ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htruncate_pagecache (C function)c.truncate_pagecachehNtauh1hhjShhhNhNubh)}(hhh](h)}(h=void truncate_pagecache (struct inode *inode, loff_t newsize)h]h)}(h1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjC1modnameN classnameNjpjs)}jv]jy)}jlj 1sbc.truncate_setsizeasbuh1hhj1ubj)}(h h]h }(hja1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjF )}(hjI h]h*}(hjo1hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1ubj)}(hinodeh]hinode}(hj|1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hloff_t newsizeh](h)}(hhh]j)}(hloff_th]hloff_t}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj1modnameN classnameNjpjs)}jv]j]1c.truncate_setsizeasbuh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hnewsizeh]hnewsize}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubeh}(h]h ]h"]h$]h&]jjuh1j hj0hhhj0hM$ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj0hhhj0hM$ubah}(h]j0ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj0hM$hj0hhubj4)}(hhh]jM)}(h.update inode and pagecache for a new file sizeh]h.update inode and pagecache for a new file size}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM$hj1hhubah}(h]h ]h"]h$]h&]uh1j3hj0hhhj0hM$ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj2jHj2jIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``struct inode *inode`` inode ``loff_t newsize`` new file size **Description** truncate_setsize updates i_size and performs pagecache truncation (if necessary) to **newsize**. It will be typically be called from the filesystem's setattr function when ATTR_SIZE is passed in. Must be called with a lock serializing truncates and writes (generally i_rwsem but e.g. xfs uses a different lock) and before all filesystem specific block truncation has been performed.h](jM)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM(hj 2ubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]jS)}(hj/2h]hstruct inode *inode}(hj12hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-2ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM%hj)2ubj)}(hhh]jM)}(hinodeh]hinode}(hjH2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjD2hM%hjE2ubah}(h]h ]h"]h$]h&]uh1jhj)2ubeh}(h]h ]h"]h$]h&]uh1jhjD2hM%hj&2ubj)}(h!``loff_t newsize`` new file size h](j)}(h``loff_t newsize``h]jS)}(hjh2h]hloff_t newsize}(hjj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjf2ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM&hjb2ubj)}(hhh]jM)}(h new file sizeh]h new file size}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}2hM&hj~2ubah}(h]h ]h"]h$]h&]uh1jhjb2ubeh}(h]h ]h"]h$]h&]uh1jhj}2hM&hj&2ubeh}(h]h ]h"]h$]h&]uh1jhj 2ubjM)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM(hj 2ubjM)}(htruncate_setsize updates i_size and performs pagecache truncation (if necessary) to **newsize**. It will be typically be called from the filesystem's setattr function when ATTR_SIZE is passed in.h](hTtruncate_setsize updates i_size and performs pagecache truncation (if necessary) to }(hj2hhhNhNubj)}(h **newsize**h]hnewsize}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubhf. It will be typically be called from the filesystem’s setattr function when ATTR_SIZE is passed in.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM'hj 2ubjM)}(hMust be called with a lock serializing truncates and writes (generally i_rwsem but e.g. xfs uses a different lock) and before all filesystem specific block truncation has been performed.h]hMust be called with a lock serializing truncates and writes (generally i_rwsem but e.g. xfs uses a different lock) and before all filesystem specific block truncation has been performed.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM+hj 2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%pagecache_isize_extended (C function)c.pagecache_isize_extendedhNtauh1hhjShhhNhNubh)}(hhh](h)}(hKvoid pagecache_isize_extended (struct inode *inode, loff_t from, loff_t to)h]h)}(hJvoid pagecache_isize_extended(struct inode *inode, loff_t from, loff_t to)h](j)}(hvoidh]hvoid}(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM<ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhj3hM<ubh)}(hpagecache_isize_extendedh]j)}(hpagecache_isize_extendedh]hpagecache_isize_extended}(hj*3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&3ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj3hhhj3hM<ubj )}(h-(struct inode *inode, loff_t from, loff_t to)h](j )}(hstruct inode *inodeh](j5)}(hj8h]hstruct}(hjF3hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjB3ubj)}(h h]h }(hjS3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB3ubh)}(hhh]j)}(hinodeh]hinode}(hjd3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjf3modnameN classnameNjpjs)}jv]jy)}jlj,3sbc.pagecache_isize_extendedasbuh1hhjB3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB3ubjF )}(hjI h]h*}(hj3hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjB3ubj)}(hinodeh]hinode}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>3ubj )}(h loff_t fromh](h)}(hhh]j)}(hloff_th]hloff_t}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3modnameN classnameNjpjs)}jv]j3c.pagecache_isize_extendedasbuh1hhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hfromh]hfrom}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>3ubj )}(h loff_t toh](h)}(hhh]j)}(hloff_th]hloff_t}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4modnameN classnameNjpjs)}jv]j3c.pagecache_isize_extendedasbuh1hhj3ubj)}(h h]h }(hj!4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(htoh]hto}(hj/4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>3ubeh}(h]h ]h"]h$]h&]jjuh1j hj3hhhj3hM<ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj3hhhj3hM<ubah}(h]j2ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj3hM<hj2hhubj4)}(hhh]jM)}(h*update pagecache after extension of i_sizeh]h*update pagecache after extension of i_size}(hjY4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM<hjV4hhubah}(h]h ]h"]h$]h&]uh1j3hj2hhhj3hM<ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjq4jHjq4jIjJjKuh1hhhhjShNhNubj)}(hXq**Parameters** ``struct inode *inode`` inode for which i_size was extended ``loff_t from`` original inode size ``loff_t to`` new inode size **Description** Handle extension of inode size either caused by extending truncate or by write starting after current i_size. We mark the page straddling current i_size RO so that page_mkwrite() is called on the first write access to the page. The filesystem will update its per-block information before user writes to the page via mmap after the i_size has been changed. The function must be called after i_size is updated so that page fault coming after we unlock the folio will already see the new i_size. The function must be called while we still hold i_rwsem - this not only makes sure i_size is stable but also that userspace cannot observe new i_size value before we are prepared to store mmap writes at new inode size.h](jM)}(h**Parameters**h]j)}(hj{4h]h Parameters}(hj}4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy4ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM@hju4ubj)}(hhh](j)}(h<``struct inode *inode`` inode for which i_size was extended h](j)}(h``struct inode *inode``h]jS)}(hj4h]hstruct inode *inode}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM=hj4ubj)}(hhh]jM)}(h#inode for which i_size was extendedh]h#inode for which i_size was extended}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4hM=hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM=hj4ubj)}(h$``loff_t from`` original inode size h](j)}(h``loff_t from``h]jS)}(hj4h]h loff_t from}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM>hj4ubj)}(hhh]jM)}(horiginal inode sizeh]horiginal inode size}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4hM>hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM>hj4ubj)}(h``loff_t to`` new inode size h](j)}(h ``loff_t to``h]jS)}(hj 5h]h loff_t to}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj 5ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM?hj5ubj)}(hhh]jM)}(hnew inode sizeh]hnew inode size}(hj%5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj!5hM?hj"5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj!5hM?hj4ubeh}(h]h ]h"]h$]h&]uh1jhju4ubjM)}(h**Description**h]j)}(hjG5h]h Description}(hjI5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE5ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMAhju4ubjM)}(hXeHandle extension of inode size either caused by extending truncate or by write starting after current i_size. We mark the page straddling current i_size RO so that page_mkwrite() is called on the first write access to the page. The filesystem will update its per-block information before user writes to the page via mmap after the i_size has been changed.h]hXeHandle extension of inode size either caused by extending truncate or by write starting after current i_size. We mark the page straddling current i_size RO so that page_mkwrite() is called on the first write access to the page. The filesystem will update its per-block information before user writes to the page via mmap after the i_size has been changed.}(hj]5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM@hju4ubjM)}(hXcThe function must be called after i_size is updated so that page fault coming after we unlock the folio will already see the new i_size. The function must be called while we still hold i_rwsem - this not only makes sure i_size is stable but also that userspace cannot observe new i_size value before we are prepared to store mmap writes at new inode size.h]hXcThe function must be called after i_size is updated so that page fault coming after we unlock the folio will already see the new i_size. The function must be called while we still hold i_rwsem - this not only makes sure i_size is stable but also that userspace cannot observe new i_size value before we are prepared to store mmap writes at new inode size.}(hjl5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMGhju4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%truncate_pagecache_range (C function)c.truncate_pagecache_rangehNtauh1hhjShhhNhNubh)}(hhh](h)}(hOvoid truncate_pagecache_range (struct inode *inode, loff_t lstart, loff_t lend)h]h)}(hNvoid truncate_pagecache_range(struct inode *inode, loff_t lstart, loff_t lend)h](j)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM|ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhj5hM|ubh)}(htruncate_pagecache_rangeh]j)}(htruncate_pagecache_rangeh]htruncate_pagecache_range}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj5hhhj5hM|ubj )}(h1(struct inode *inode, loff_t lstart, loff_t lend)h](j )}(hstruct inode *inodeh](j5)}(hj8h]hstruct}(hj5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j)}(hinodeh]hinode}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5modnameN classnameNjpjs)}jv]jy)}jlj5sbc.truncate_pagecache_rangeasbuh1hhj5ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjF )}(hjI h]h*}(hj$6hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5ubj)}(hinodeh]hinode}(hj16hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubj )}(h loff_t lstarth](h)}(hhh]j)}(hloff_th]hloff_t}(hjM6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ6ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjO6modnameN classnameNjpjs)}jv]j6c.truncate_pagecache_rangeasbuh1hhjF6ubj)}(h h]h }(hjk6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF6ubj)}(hlstarth]hlstart}(hjy6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF6ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubj )}(h loff_t lendh](h)}(hhh]j)}(hloff_th]hloff_t}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj6modnameN classnameNjpjs)}jv]j6c.truncate_pagecache_rangeasbuh1hhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hlendh]hlend}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubeh}(h]h ]h"]h$]h&]jjuh1j hj5hhhj5hM|ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj5hhhj5hM|ubah}(h]j5ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj5hM|hj5hhubj4)}(hhh]jM)}(h/unmap and remove pagecache that is hole-punchedh]h/unmap and remove pagecache that is hole-punched}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM|hj6hhubah}(h]h ]h"]h$]h&]uh1j3hj5hhhj5hM|ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj7jHj7jIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``struct inode *inode`` inode ``loff_t lstart`` offset of beginning of hole ``loff_t lend`` offset of last byte of hole **Description** This function should typically be called before the filesystem releases resources associated with the freed range (eg. deallocates blocks). This way, pagecache will always stay logically coherent with on-disk format, and the filesystem would not have to deal with situations such as writepage being called for a page that has already had its underlying blocks deallocated.h](jM)}(h**Parameters**h]j)}(hj 7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 7ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj7ubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]jS)}(hj,7h]hstruct inode *inode}(hj.7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*7ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM}hj&7ubj)}(hhh]jM)}(hinodeh]hinode}(hjE7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjA7hM}hjB7ubah}(h]h ]h"]h$]h&]uh1jhj&7ubeh}(h]h ]h"]h$]h&]uh1jhjA7hM}hj#7ubj)}(h.``loff_t lstart`` offset of beginning of hole h](j)}(h``loff_t lstart``h]jS)}(hje7h]h loff_t lstart}(hjg7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjc7ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM~hj_7ubj)}(hhh]jM)}(hoffset of beginning of holeh]hoffset of beginning of hole}(hj~7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjz7hM~hj{7ubah}(h]h ]h"]h$]h&]uh1jhj_7ubeh}(h]h ]h"]h$]h&]uh1jhjz7hM~hj#7ubj)}(h,``loff_t lend`` offset of last byte of hole h](j)}(h``loff_t lend``h]jS)}(hj7h]h loff_t lend}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj7ubj)}(hhh]jM)}(hoffset of last byte of holeh]hoffset of last byte of hole}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj#7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubjM)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj7ubjM)}(hXtThis function should typically be called before the filesystem releases resources associated with the freed range (eg. deallocates blocks). This way, pagecache will always stay logically coherent with on-disk format, and the filesystem would not have to deal with situations such as writepage being called for a page that has already had its underlying blocks deallocated.h]hXtThis function should typically be called before the filesystem releases resources associated with the freed range (eg. deallocates blocks). This way, pagecache will always stay logically coherent with on-disk format, and the filesystem would not have to deal with situations such as writepage being called for a page that has already had its underlying blocks deallocated.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_set_wb_err (C function)c.filemap_set_wb_errhNtauh1hhjShhhNhNubh)}(hhh](h)}(h@void filemap_set_wb_err (struct address_space *mapping, int err)h]h)}(h?void filemap_set_wb_err(struct address_space *mapping, int err)h](j)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKEubj)}(h h]h }(hj-8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj,8hKEubh)}(hfilemap_set_wb_errh]j)}(hfilemap_set_wb_errh]hfilemap_set_wb_err}(hj?8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;8ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj8hhhj,8hKEubj )}(h((struct address_space *mapping, int err)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj[8hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjW8ubj)}(h h]h }(hjh8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW8ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjy8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv8ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj{8modnameN classnameNjpjs)}jv]jy)}jljA8sbc.filemap_set_wb_errasbuh1hhjW8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW8ubjF )}(hjI h]h*}(hj8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjW8ubj)}(hmappingh]hmapping}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjS8ubj )}(hint errh](j)}(hinth]hint}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(herrh]herr}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjS8ubeh}(h]h ]h"]h$]h&]jjuh1j hj8hhhj,8hKEubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj8hhhj,8hKEubah}(h]j8ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj,8hKEhj8hhubj4)}(hhh]jM)}(h)set a writeback error on an address_spaceh]h)set a writeback error on an address_space}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKEhj9hhubah}(h]h ]h"]h$]h&]uh1j3hj8hhhj,8hKEubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj+9jHj+9jIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``struct address_space *mapping`` mapping in which to set writeback error ``int err`` error to be set in mapping **Description** When writeback fails in some way, we must record that error so that userspace can be informed when fsync and the like are called. We endeavor to report errors on any file that was open at the time of the error. Some internal callers also need to know when writeback errors have occurred. When a writeback error occurs, most filesystems will want to call filemap_set_wb_err to record the error in the mapping so that it will be automatically reported whenever fsync is called on the file.h](jM)}(h**Parameters**h]j)}(hj59h]h Parameters}(hj79hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj39ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKIhj/9ubj)}(hhh](j)}(hJ``struct address_space *mapping`` mapping in which to set writeback error h](j)}(h!``struct address_space *mapping``h]jS)}(hjT9h]hstruct address_space *mapping}(hjV9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjR9ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKFhjN9ubj)}(hhh]jM)}(h'mapping in which to set writeback errorh]h'mapping in which to set writeback error}(hjm9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhji9hKFhjj9ubah}(h]h ]h"]h$]h&]uh1jhjN9ubeh}(h]h ]h"]h$]h&]uh1jhji9hKFhjK9ubj)}(h'``int err`` error to be set in mapping h](j)}(h ``int err``h]jS)}(hj9h]hint err}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKGhj9ubj)}(hhh]jM)}(herror to be set in mappingh]herror to be set in mapping}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9hKGhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hKGhjK9ubeh}(h]h ]h"]h$]h&]uh1jhj/9ubjM)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKIhj/9ubjM)}(hX!When writeback fails in some way, we must record that error so that userspace can be informed when fsync and the like are called. We endeavor to report errors on any file that was open at the time of the error. Some internal callers also need to know when writeback errors have occurred.h]hX!When writeback fails in some way, we must record that error so that userspace can be informed when fsync and the like are called. We endeavor to report errors on any file that was open at the time of the error. Some internal callers also need to know when writeback errors have occurred.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKHhj/9ubjM)}(hWhen a writeback error occurs, most filesystems will want to call filemap_set_wb_err to record the error in the mapping so that it will be automatically reported whenever fsync is called on the file.h]hWhen a writeback error occurs, most filesystems will want to call filemap_set_wb_err to record the error in the mapping so that it will be automatically reported whenever fsync is called on the file.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKMhj/9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!filemap_check_wb_err (C function)c.filemap_check_wb_errhNtauh1hhjShhhNhNubh)}(hhh](h)}(hHint filemap_check_wb_err (struct address_space *mapping, errseq_t since)h]h)}(hGint filemap_check_wb_err(struct address_space *mapping, errseq_t since)h](j)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKZubj)}(h h]h }(hj+:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj*:hKZubh)}(hfilemap_check_wb_errh]j)}(hfilemap_check_wb_errh]hfilemap_check_wb_err}(hj=:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9:ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhj*:hKZubj )}(h/(struct address_space *mapping, errseq_t since)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjY:hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjU:ubj)}(h h]h }(hjf:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU:ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjw:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt:ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjy:modnameN classnameNjpjs)}jv]jy)}jlj?:sbc.filemap_check_wb_errasbuh1hhjU:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU:ubjF )}(hjI h]h*}(hj:hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjU:ubj)}(hmappingh]hmapping}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQ:ubj )}(herrseq_t sinceh](h)}(hhh]j)}(herrseq_th]herrseq_t}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj:modnameN classnameNjpjs)}jv]j:c.filemap_check_wb_errasbuh1hhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hsinceh]hsince}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQ:ubeh}(h]h ]h"]h$]h&]jjuh1j hj:hhhj*:hKZubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj:hhhj*:hKZubah}(h]j:ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj*:hKZhj:hhubj4)}(hhh]jM)}(h1has an error occurred since the mark was sampled?h]h1has an error occurred since the mark was sampled?}(hj$;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKZhj!;hhubah}(h]h ]h"]h$]h&]uh1j3hj:hhhj*:hKZubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj<;jHj<;jIjJjKuh1hhhhjShNhNubj)}(hXG**Parameters** ``struct address_space *mapping`` mapping to check for writeback errors ``errseq_t since`` previously-sampled errseq_t **Description** Grab the errseq_t value from the mapping, and see if it has changed "since" the given value was sampled. If it has then report the latest error set, otherwise return 0.h](jM)}(h**Parameters**h]j)}(hjF;h]h Parameters}(hjH;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD;ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK^hj@;ubj)}(hhh](j)}(hH``struct address_space *mapping`` mapping to check for writeback errors h](j)}(h!``struct address_space *mapping``h]jS)}(hje;h]hstruct address_space *mapping}(hjg;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjc;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK[hj_;ubj)}(hhh]jM)}(h%mapping to check for writeback errorsh]h%mapping to check for writeback errors}(hj~;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjz;hK[hj{;ubah}(h]h ]h"]h$]h&]uh1jhj_;ubeh}(h]h ]h"]h$]h&]uh1jhjz;hK[hj\;ubj)}(h/``errseq_t since`` previously-sampled errseq_t h](j)}(h``errseq_t since``h]jS)}(hj;h]herrseq_t since}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK\hj;ubj)}(hhh]jM)}(hpreviously-sampled errseq_th]hpreviously-sampled errseq_t}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hK\hj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hK\hj\;ubeh}(h]h ]h"]h$]h&]uh1jhj@;ubjM)}(h**Description**h]j)}(hj;h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK^hj@;ubjM)}(hhGrab the errseq_t value from the mapping, and see if it has changed "since" the given value was sampled.h]hlGrab the errseq_t value from the mapping, and see if it has changed “since” the given value was sampled.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK]hj@;ubjM)}(h?If it has then report the latest error set, otherwise return 0.h]h?If it has then report the latest error set, otherwise return 0.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK`hj@;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"filemap_sample_wb_err (C function)c.filemap_sample_wb_errhNtauh1hhjShhhNhNubh)}(hhh](h)}(h>errseq_t filemap_sample_wb_err (struct address_space *mapping)h]h)}(h=errseq_t filemap_sample_wb_err(struct address_space *mapping)h](h)}(hhh]j)}(herrseq_th]herrseq_t}(hj0<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-<ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj2<modnameN classnameNjpjs)}jv]jy)}jlfilemap_sample_wb_errsbc.filemap_sample_wb_errasbuh1hhj)<hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKjubj)}(h h]h }(hjR<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)<hhhjQ<hKjubh)}(hfilemap_sample_wb_errh]j)}(hjN<h]hfilemap_sample_wb_err}(hjd<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`<ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj)<hhhjQ<hKjubj )}(h(struct address_space *mapping)h]j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj<hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj{<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{<ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj<modnameN classnameNjpjs)}jv]jL<c.filemap_sample_wb_errasbuh1hhj{<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{<ubjF )}(hjI h]h*}(hj<hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj{<ubj)}(hmappingh]hmapping}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{<ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjw<ubah}(h]h ]h"]h$]h&]jjuh1j hj)<hhhjQ<hKjubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj%<hhhjQ<hKjubah}(h]j <ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjQ<hKjhj"<hhubj4)}(hhh]jM)}(h4sample the current errseq_t to test for later errorsh]h4sample the current errseq_t to test for later errors}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKjhj<hhubah}(h]h ]h"]h$]h&]uh1j3hj"<hhhjQ<hKjubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj=jHj=jIjJjKuh1hhhhjShNhNubj)}(h**Parameters** ``struct address_space *mapping`` mapping to be sampled **Description** Writeback errors are always reported relative to a particular sample point in the past. This function provides those sample points.h](jM)}(h**Parameters**h]j)}(hj"=h]h Parameters}(hj$=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj =ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKnhj=ubj)}(hhh]j)}(h8``struct address_space *mapping`` mapping to be sampled h](j)}(h!``struct address_space *mapping``h]jS)}(hjA=h]hstruct address_space *mapping}(hjC=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj?=ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKkhj;=ubj)}(hhh]jM)}(hmapping to be sampledh]hmapping to be sampled}(hjZ=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjV=hKkhjW=ubah}(h]h ]h"]h$]h&]uh1jhj;=ubeh}(h]h ]h"]h$]h&]uh1jhjV=hKkhj8=ubah}(h]h ]h"]h$]h&]uh1jhj=ubjM)}(h**Description**h]j)}(hj|=h]h Description}(hj~=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz=ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKmhj=ubjM)}(hWriteback errors are always reported relative to a particular sample point in the past. This function provides those sample points.h]hWriteback errors are always reported relative to a particular sample point in the past. This function provides those sample points.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKlhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfile_sample_sb_err (C function)c.file_sample_sb_errhNtauh1hhjShhhNhNubh)}(hhh](h)}(h/errseq_t file_sample_sb_err (struct file *file)h]h)}(h.errseq_t file_sample_sb_err(struct file *file)h](h)}(hhh]j)}(herrseq_th]herrseq_t}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj=modnameN classnameNjpjs)}jv]jy)}jlfile_sample_sb_errsbc.file_sample_sb_errasbuh1hhj=hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKvubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hKvubh)}(hfile_sample_sb_errh]j)}(hj=h]hfile_sample_sb_err}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj=hhhj=hKvubj )}(h(struct file *file)h]j )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hj>hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj>ubj)}(h h]h }(hj >hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]j)}(hfileh]hfile}(hj1>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.>ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3>modnameN classnameNjpjs)}jv]j=c.file_sample_sb_errasbuh1hhj>ubj)}(h h]h }(hjO>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjF )}(hjI h]h*}(hj]>hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj>ubj)}(hfileh]hfile}(hjj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj >ubah}(h]h ]h"]h$]h&]jjuh1j hj=hhhj=hKvubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj=hhhj=hKvubah}(h]j=ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj=hKvhj=hhubj4)}(hhh]jM)}(h4sample the current errseq_t to test for later errorsh]h4sample the current errseq_t to test for later errors}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKvhj>hhubah}(h]h ]h"]h$]h&]uh1j3hj=hhhj=hKvubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj>jHj>jIjJjKuh1hhhhjShNhNubj)}(h**Parameters** ``struct file *file`` file pointer to be sampled **Description** Grab the most current superblock-level errseq_t value for the given struct file.h](jM)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKzhj>ubj)}(hhh]j)}(h1``struct file *file`` file pointer to be sampled h](j)}(h``struct file *file``h]jS)}(hj>h]hstruct file *file}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKwhj>ubj)}(hhh]jM)}(hfile pointer to be sampledh]hfile pointer to be sampled}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hKwhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hKwhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubjM)}(h**Description**h]j)}(hj?h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKyhj>ubjM)}(hPGrab the most current superblock-level errseq_t value for the given struct file.h]hPGrab the most current superblock-level errseq_t value for the given struct file.}(hj&?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKxhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmapping_set_error (C function)c.mapping_set_errorhNtauh1hhjShhhNhNubh)}(hhh](h)}(hAvoid mapping_set_error (struct address_space *mapping, int error)h]h)}(h@void mapping_set_error(struct address_space *mapping, int error)h](j)}(hvoidh]hvoid}(hjU?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ?hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKubj)}(h h]h }(hjd?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ?hhhjc?hKubh)}(hmapping_set_errorh]j)}(hmapping_set_errorh]hmapping_set_error}(hjv?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr?ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjQ?hhhjc?hKubj )}(h*(struct address_space *mapping, int error)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj?hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj?modnameN classnameNjpjs)}jv]jy)}jljx?sbc.mapping_set_errorasbuh1hhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjF )}(hjI h]h*}(hj?hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj?ubj)}(hmappingh]hmapping}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj?ubj )}(h int errorh](j)}(hinth]hint}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(herrorh]herror}(hj @hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj?ubeh}(h]h ]h"]h$]h&]jjuh1j hjQ?hhhjc?hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjM?hhhjc?hKubah}(h]jH?ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjc?hKhjJ?hhubj4)}(hhh]jM)}(h-record a writeback error in the address_spaceh]h-record a writeback error in the address_space}(hjJ@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhjG@hhubah}(h]h ]h"]h$]h&]uh1j3hjJ?hhhjc?hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjb@jHjb@jIjJjKuh1hhhhjShNhNubj)}(hX|**Parameters** ``struct address_space *mapping`` the mapping in which an error should be set ``int error`` the error to set in the mapping **Description** When writeback fails in some way, we must record that error so that userspace can be informed when fsync and the like are called. We endeavor to report errors on any file that was open at the time of the error. Some internal callers also need to know when writeback errors have occurred. When a writeback error occurs, most filesystems will want to call mapping_set_error to record the error in the mapping so that it can be reported when the application calls fsync(2).h](jM)}(h**Parameters**h]j)}(hjl@h]h Parameters}(hjn@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj@ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhjf@ubj)}(hhh](j)}(hN``struct address_space *mapping`` the mapping in which an error should be set h](j)}(h!``struct address_space *mapping``h]jS)}(hj@h]hstruct address_space *mapping}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj@ubj)}(hhh]jM)}(h+the mapping in which an error should be seth]h+the mapping in which an error should be set}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@hKhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj@ubj)}(h.``int error`` the error to set in the mapping h](j)}(h ``int error``h]jS)}(hj@h]h int error}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj@ubj)}(hhh]jM)}(hthe error to set in the mappingh]hthe error to set in the mapping}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@hKhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj@ubeh}(h]h ]h"]h$]h&]uh1jhjf@ubjM)}(h**Description**h]j)}(hj@h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhjf@ubjM)}(hX!When writeback fails in some way, we must record that error so that userspace can be informed when fsync and the like are called. We endeavor to report errors on any file that was open at the time of the error. Some internal callers also need to know when writeback errors have occurred.h]hX!When writeback fails in some way, we must record that error so that userspace can be informed when fsync and the like are called. We endeavor to report errors on any file that was open at the time of the error. Some internal callers also need to know when writeback errors have occurred.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhjf@ubjM)}(hWhen a writeback error occurs, most filesystems will want to call mapping_set_error to record the error in the mapping so that it can be reported when the application calls fsync(2).h]hWhen a writeback error occurs, most filesystems will want to call mapping_set_error to record the error in the mapping so that it can be reported when the application calls fsync(2).}(hj$AhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhjf@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%mapping_set_large_folios (C function)c.mapping_set_large_folioshNtauh1hhjShhhNhNubh)}(hhh](h)}(h=void mapping_set_large_folios (struct address_space *mapping)h]h)}(hstruct address_space *folio_flush_mapping(struct folio *folio)h](j5)}(hj8h]hstruct}(hjFhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjFhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM(ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhM(ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Gubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjGmodnameN classnameNjpjs)}jv]jy)}jlfolio_flush_mappingsbc.folio_flush_mappingasbuh1hhjFhhhjFhM(ubj)}(h h]h }(hj-GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhM(ubjF )}(hjI h]h*}(hj;GhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjFhhhjFhM(ubh)}(hfolio_flush_mappingh]j)}(hj*Gh]hfolio_flush_mapping}(hjLGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHGubah}(h]h ](jjeh"]h$]h&]jjuh1hhjFhhhjFhM(ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjgGhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjcGubj)}(h h]h }(hjtGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcGubh)}(hhh]j)}(hfolioh]hfolio}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjGmodnameN classnameNjpjs)}jv]j(Gc.folio_flush_mappingasbuh1hhjcGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcGubjF )}(hjI h]h*}(hjGhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjcGubj)}(hfolioh]hfolio}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcGubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_Gubah}(h]h ]h"]h$]h&]jjuh1j hjFhhhjFhM(ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjFhhhjFhM(ubah}(h]jFah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjFhM(hjFhhubj4)}(hhh]jM)}(h,Find the file mapping this folio belongs to.h]h,Find the file mapping this folio belongs to.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM(hjGhhubah}(h]h ]h"]h$]h&]uh1j3hjFhhhjFhM(ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjHjHjHjIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio. **Description** For folios which are in the page cache, return the mapping that this page belongs to. Anonymous folios return NULL, even if they're in the swap cache. Other kinds of folio also return NULL. This is ONLY used by architecture cache flushing code. If you aren't writing cache flushing code, you want either folio_mapping() or folio_file_mapping().h](jM)}(h**Parameters**h]j)}(hj Hh]h Parameters}(hj HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM,hjHubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hj)Hh]hstruct folio *folio}(hj+HhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'Hubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM)hj#Hubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjBHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>HhM)hj?Hubah}(h]h ]h"]h$]h&]uh1jhj#Hubeh}(h]h ]h"]h$]h&]uh1jhj>HhM)hj Hubah}(h]h ]h"]h$]h&]uh1jhjHubjM)}(h**Description**h]j)}(hjdHh]h Description}(hjfHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbHubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM+hjHubjM)}(hFor folios which are in the page cache, return the mapping that this page belongs to. Anonymous folios return NULL, even if they're in the swap cache. Other kinds of folio also return NULL.h]hFor folios which are in the page cache, return the mapping that this page belongs to. Anonymous folios return NULL, even if they’re in the swap cache. Other kinds of folio also return NULL.}(hjzHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM*hjHubjM)}(hThis is ONLY used by architecture cache flushing code. If you aren't writing cache flushing code, you want either folio_mapping() or folio_file_mapping().h]hThis is ONLY used by architecture cache flushing code. If you aren’t writing cache flushing code, you want either folio_mapping() or folio_file_mapping().}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM.hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_inode (C function) c.folio_inodehNtauh1hhjShhhNhNubh)}(hhh](h)}(h0struct inode * folio_inode (struct folio *folio)h]h)}(h.struct inode *folio_inode(struct folio *folio)h](j5)}(hj8h]hstruct}(hjHhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjHhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM<ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjHhM<ubh)}(hhh]j)}(hinodeh]hinode}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjHmodnameN classnameNjpjs)}jv]jy)}jl folio_inodesb c.folio_inodeasbuh1hhjHhhhjHhM<ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjHhM<ubjF )}(hjI h]h*}(hjIhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjHhhhjHhM<ubh)}(h folio_inodeh]j)}(hjHh]h folio_inode}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1hhjHhhhjHhM<ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj2IhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj.Iubj)}(h h]h }(hj?IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Iubh)}(hhh]j)}(hfolioh]hfolio}(hjPIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMIubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRImodnameN classnameNjpjs)}jv]jH c.folio_inodeasbuh1hhj.Iubj)}(h h]h }(hjnIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.IubjF )}(hjI h]h*}(hj|IhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj.Iubj)}(hfolioh]hfolio}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Iubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj*Iubah}(h]h ]h"]h$]h&]jjuh1j hjHhhhjHhM<ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjHhhhjHhM<ubah}(h]jHah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjHhM<hjHhhubj4)}(hhh]jM)}(h"Get the host inode for this folio.h]h"Get the host inode for this folio.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM<hjIhhubah}(h]h ]h"]h$]h&]uh1j3hjHhhhjHhM<ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjIjHjIjIjJjKuh1hhhhjShNhNubj)}(h**Parameters** ``struct folio *folio`` The folio. **Description** For folios which are in the page cache, return the inode that this folio belongs to. Do not call this for folios which aren't in the page cache.h](jM)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM@hjIubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjIh]hstruct folio *folio}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM=hjIubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj JhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj JhM=hj Jubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhj JhM=hjIubah}(h]h ]h"]h$]h&]uh1jhjIubjM)}(h**Description**h]j)}(hj/Jh]h Description}(hj1JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Jubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM?hjIubjM)}(hTFor folios which are in the page cache, return the inode that this folio belongs to.h]hTFor folios which are in the page cache, return the inode that this folio belongs to.}(hjEJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM>hjIubjM)}(h;Do not call this for folios which aren't in the page cache.h]h=Do not call this for folios which aren’t in the page cache.}(hjTJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMAhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_attach_private (C function)c.folio_attach_privatehNtauh1hhjShhhNhNubh)}(hhh](h)}(h;void folio_attach_private (struct folio *folio, void *data)h]h)}(h:void folio_attach_private(struct folio *folio, void *data)h](j)}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhjJhMJubh)}(hfolio_attach_privateh]j)}(hfolio_attach_privateh]hfolio_attach_private}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1hhjJhhhjJhMJubj )}(h!(struct folio *folio, void *data)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjJhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]j)}(hfolioh]hfolio}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjJmodnameN classnameNjpjs)}jv]jy)}jljJsbc.folio_attach_privateasbuh1hhjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjF )}(hjI h]h*}(hj KhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjJubj)}(hfolioh]hfolio}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubj )}(h void *datah](j)}(hvoidh]hvoid}(hj2KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Kubj)}(h h]h }(hj@KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.KubjF )}(hjI h]h*}(hjNKhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj.Kubj)}(hdatah]hdata}(hj[KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Kubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubeh}(h]h ]h"]h$]h&]jjuh1j hjJhhhjJhMJubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj{JhhhjJhMJubah}(h]jvJah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjJhMJhjxJhhubj4)}(hhh]jM)}(hAttach private data to a folio.h]hAttach private data to a folio.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMJhjKhhubah}(h]h ]h"]h$]h&]uh1j3hjxJhhhjJhMJubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjKjHjKjIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``struct folio *folio`` Folio to attach data to. ``void *data`` Data to attach to folio. **Description** Attaching private data to a folio increments the page's reference count. The data must be detached before the folio will be freed.h](jM)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMNhjKubj)}(hhh](j)}(h1``struct folio *folio`` Folio to attach data to. h](j)}(h``struct folio *folio``h]jS)}(hjKh]hstruct folio *folio}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMKhjKubj)}(hhh]jM)}(hFolio to attach data to.h]hFolio to attach data to.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhMKhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMKhjKubj)}(h(``void *data`` Data to attach to folio. h](j)}(h``void *data``h]jS)}(hjKh]h void *data}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMLhjKubj)}(hhh]jM)}(hData to attach to folio.h]hData to attach to folio.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhMLhjLubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjLhMLhjKubeh}(h]h ]h"]h$]h&]uh1jhjKubjM)}(h**Description**h]j)}(hj:Lh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6\ubh & }(hj6\hhhNhNubj)}(h **index**h]hindex}(hjP\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6\ubhK. If a folio is present, it is returned locked with an increased refcount.}(hj6\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM,hj[ubjM)}(h **Context**h]j)}(hjk\h]hContext}(hjm\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji\ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM/hj[ubjM)}(h May sleep.h]h May sleep.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM0hj[ubjM)}(h **Return**h]j)}(hj\h]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM2hj[ubjM)}(h{A folio or ERR_PTR(-ENOENT) if there is no folio in the cache for this index. Will not return a shadow, swap or DAX entry.h]h{A folio or ERR_PTR(-ENOENT) if there is no folio in the cache for this index. Will not return a shadow, swap or DAX entry.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM1hj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_grab_folio (C function)c.filemap_grab_foliohNtauh1hhjShhhNhNubh)}(hhh](h)}(hPstruct folio * filemap_grab_folio (struct address_space *mapping, pgoff_t index)h]h)}(hNstruct folio *filemap_grab_folio(struct address_space *mapping, pgoff_t index)h](j5)}(hj8h]hstruct}(hj\hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj\hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM;ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj\hM;ubh)}(hhh]j)}(hfolioh]hfolio}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj\modnameN classnameNjpjs)}jv]jy)}jlfilemap_grab_foliosbc.filemap_grab_folioasbuh1hhj\hhhj\hM;ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj\hM;ubjF )}(hjI h]h*}(hj%]hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj\hhhj\hM;ubh)}(hfilemap_grab_folioh]j)}(hj]h]hfilemap_grab_folio}(hj6]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2]ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj\hhhj\hM;ubj )}(h.(struct address_space *mapping, pgoff_t index)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjQ]hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjM]ubj)}(h h]h }(hj^]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM]ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjo]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjq]modnameN classnameNjpjs)}jv]j]c.filemap_grab_folioasbuh1hhjM]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM]ubjF )}(hjI h]h*}(hj]hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjM]ubj)}(hmappingh]hmapping}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjI]ubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj]modnameN classnameNjpjs)}jv]j]c.filemap_grab_folioasbuh1hhj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hindexh]hindex}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjI]ubeh}(h]h ]h"]h$]h&]jjuh1j hj\hhhj\hM;ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj\hhhj\hM;ubah}(h]j\ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj\hM;hj\hhubj4)}(hhh]jM)}(h grab a folio from the page cacheh]h grab a folio from the page cache}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM;hj^hhubah}(h]h ]h"]h$]h&]uh1j3hj\hhhj\hM;ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj2^jHj2^jIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The address space to search ``pgoff_t index`` The page index **Description** Looks up the page cache entry at **mapping** & **index**. If no folio is found, a new folio is created. The folio is locked, marked as accessed, and returned. **Return** A found or created folio. ERR_PTR(-ENOMEM) if no folio is found and failed to create a folio.h](jM)}(h**Parameters**h]j)}(hj<^h]h Parameters}(hj>^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:^ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM?hj6^ubj)}(hhh](j)}(h>``struct address_space *mapping`` The address space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hj[^h]hstruct address_space *mapping}(hj]^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjY^ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM<hjU^ubj)}(hhh]jM)}(hThe address space to searchh]hThe address space to search}(hjt^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjp^hM<hjq^ubah}(h]h ]h"]h$]h&]uh1jhjU^ubeh}(h]h ]h"]h$]h&]uh1jhjp^hM<hjR^ubj)}(h!``pgoff_t index`` The page index h](j)}(h``pgoff_t index``h]jS)}(hj^h]h pgoff_t index}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM=hj^ubj)}(hhh]jM)}(hThe page indexh]hThe page index}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hM=hj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hM=hjR^ubeh}(h]h ]h"]h$]h&]uh1jhj6^ubjM)}(h**Description**h]j)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM?hj6^ubjM)}(hLooks up the page cache entry at **mapping** & **index**. If no folio is found, a new folio is created. The folio is locked, marked as accessed, and returned.h](h!Looks up the page cache entry at }(hj^hhhNhNubj)}(h **mapping**h]hmapping}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh & }(hj^hhhNhNubj)}(h **index**h]hindex}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubhf. If no folio is found, a new folio is created. The folio is locked, marked as accessed, and returned.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM>hj6^ubjM)}(h **Return**h]j)}(hj_h]hReturn}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMBhj6^ubjM)}(h]A found or created folio. ERR_PTR(-ENOMEM) if no folio is found and failed to create a folio.h]h]A found or created folio. ERR_PTR(-ENOMEM) if no folio is found and failed to create a folio.}(hj0_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMChj6^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfind_get_page (C function)c.find_get_pagehNtauh1hhjShhhNhNubh)}(hhh](h)}(hKstruct page * find_get_page (struct address_space *mapping, pgoff_t offset)h]h)}(hIstruct page *find_get_page(struct address_space *mapping, pgoff_t offset)h](j5)}(hj8h]hstruct}(hj__hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj[_hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMOubj)}(h h]h }(hjm_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[_hhhjl_hMOubh)}(hhh]j)}(hpageh]hpage}(hj~_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]jy)}jl find_get_pagesbc.find_get_pageasbuh1hhj[_hhhjl_hMOubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[_hhhjl_hMOubjF )}(hjI h]h*}(hj_hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj[_hhhjl_hMOubh)}(h find_get_pageh]j)}(hj_h]h find_get_page}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj[_hhhjl_hMOubj )}(h/(struct address_space *mapping, pgoff_t offset)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj_hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]j_c.find_get_pageasbuh1hhj_ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjF )}(hjI h]h*}(hj#`hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj_ubj)}(hmappingh]hmapping}(hj0`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_ubj )}(hpgoff_t offseth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjL`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI`ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjN`modnameN classnameNjpjs)}jv]j_c.find_get_pageasbuh1hhjE`ubj)}(h h]h }(hjj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE`ubj)}(hoffseth]hoffset}(hjx`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_ubeh}(h]h ]h"]h$]h&]jjuh1j hj[_hhhjl_hMOubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjW_hhhjl_hMOubah}(h]jR_ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjl_hMOhjT_hhubj4)}(hhh]jM)}(hfind and get a page referenceh]hfind and get a page reference}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMOhj`hhubah}(h]h ]h"]h$]h&]uh1j3hjT_hhhjl_hMOubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj`jHj`jIjJjKuh1hhhhjShNhNubj)}(hX-**Parameters** ``struct address_space *mapping`` the address_space to search ``pgoff_t offset`` the page index **Description** Looks up the page cache slot at **mapping** & **offset**. If there is a page cache page, it is returned with an increased refcount. Otherwise, ``NULL`` is returned.h](jM)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMShj`ubj)}(hhh](j)}(h>``struct address_space *mapping`` the address_space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hj`h]hstruct address_space *mapping}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMPhj`ubj)}(hhh]jM)}(hthe address_space to searchh]hthe address_space to search}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`hMPhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMPhj`ubj)}(h"``pgoff_t offset`` the page index h](j)}(h``pgoff_t offset``h]jS)}(hjah]hpgoff_t offset}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMQhjaubj)}(hhh]jM)}(hthe page indexh]hthe page index}(hj5ahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1ahMQhj2aubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj1ahMQhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubjM)}(h**Description**h]j)}(hjWah]h Description}(hjYahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUaubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMShj`ubjM)}(hLooks up the page cache slot at **mapping** & **offset**. If there is a page cache page, it is returned with an increased refcount.h](h Looks up the page cache slot at }(hjmahhhNhNubj)}(h **mapping**h]hmapping}(hjuahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmaubh & }(hjmahhhNhNubj)}(h **offset**h]hoffset}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmaubhL. If there is a page cache page, it is returned with an increased refcount.}(hjmahhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMRhj`ubjM)}(h Otherwise, ``NULL`` is returned.h](h Otherwise, }(hjahhhNhNubjS)}(h``NULL``h]hNULL}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubh is returned.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMUhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfind_lock_page (C function)c.find_lock_pagehNtauh1hhjShhhNhNubh)}(hhh](h)}(hKstruct page * find_lock_page (struct address_space *mapping, pgoff_t index)h]h)}(hIstruct page *find_lock_page(struct address_space *mapping, pgoff_t index)h](j5)}(hj8h]hstruct}(hjahhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjahhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMeubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjahMeubh)}(hhh]j)}(hpageh]hpage}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbmodnameN classnameNjpjs)}jv]jy)}jlfind_lock_pagesbc.find_lock_pageasbuh1hhjahhhjahMeubj)}(h h]h }(hj!bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjahMeubjF )}(hjI h]h*}(hj/bhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjahhhjahMeubh)}(hfind_lock_pageh]j)}(hjbh]hfind_lock_page}(hj@bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj``struct address_space *mapping`` the address_space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hjech]hstruct address_space *mapping}(hjgchhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjccubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMfhj_cubj)}(hhh]jM)}(hthe address_space to searchh]hthe address_space to search}(hj~chhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzchMfhj{cubah}(h]h ]h"]h$]h&]uh1jhj_cubeh}(h]h ]h"]h$]h&]uh1jhjzchMfhj\cubj)}(h!``pgoff_t index`` the page index h](j)}(h``pgoff_t index``h]jS)}(hjch]h pgoff_t index}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMghjcubj)}(hhh]jM)}(hthe page indexh]hthe page index}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjchMghjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMghj\cubeh}(h]h ]h"]h$]h&]uh1jhj@cubjM)}(h**Description**h]j)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMihj@cubjM)}(hLooks up the page cache entry at **mapping** & **index**. If there is a page cache page, it is returned locked and with an increased refcount.h](h!Looks up the page cache entry at }(hjchhhNhNubj)}(h **mapping**h]hmapping}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh & }(hjchhhNhNubj)}(h **index**h]hindex}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubhW. If there is a page cache page, it is returned locked and with an increased refcount.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhhj@cubjM)}(h **Context**h]j)}(hj$dh]hContext}(hj&dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"dubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMlhj@cubjM)}(h May sleep.h]h May sleep.}(hj:dhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMmhj@cubjM)}(h **Return**h]j)}(hjKdh]hReturn}(hjMdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIdubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMohj@cubjM)}(hJA struct page or ``NULL`` if there is no page in the cache for this index.h](hA struct page or }(hjadhhhNhNubjS)}(h``NULL``h]hNULL}(hjidhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjadubh1 if there is no page in the cache for this index.}(hjadhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMnhj@cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h find_or_create_page (C function)c.find_or_create_pagehNtauh1hhjShhhNhNubh)}(hhh](h)}(h`struct page * find_or_create_page (struct address_space *mapping, pgoff_t index, gfp_t gfp_mask)h]h)}(h^struct page *find_or_create_page(struct address_space *mapping, pgoff_t index, gfp_t gfp_mask)h](j5)}(hj8h]hstruct}(hjdhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMxubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhMxubh)}(hhh]j)}(hpageh]hpage}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]jy)}jlfind_or_create_pagesbc.find_or_create_pageasbuh1hhjdhhhjdhMxubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhMxubjF )}(hjI h]h*}(hjdhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjdhhhjdhMxubh)}(hfind_or_create_pageh]j)}(hjdh]hfind_or_create_page}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1hhjdhhhjdhMxubj )}(h>(struct address_space *mapping, pgoff_t index, gfp_t gfp_mask)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjehhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjeubj)}(h h]h }(hj)ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hhh]j)}(h address_spaceh]h address_space}(hj:ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7eubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj**Parameters** ``struct address_space *mapping`` target address_space ``pgoff_t index`` the page index **Description** Returns locked page at given index in given cache, creating it if needed, but do not wait if the page is locked or to reclaim memory. This is intended for speculative data generators, where the data can be regenerated if the page couldn't be grabbed. This routine should be safe to call while holding the lock for another page. Clear __GFP_FS when allocating the page to avoid recursion into the fs and deadlock against the caller's locked page.h](jM)}(h**Parameters**h]j)}(hjLih]h Parameters}(hjNihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJiubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjFiubj)}(hhh](j)}(h7``struct address_space *mapping`` target address_space h](j)}(h!``struct address_space *mapping``h]jS)}(hjkih]hstruct address_space *mapping}(hjmihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiiubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjeiubj)}(hhh]jM)}(htarget address_spaceh]htarget address_space}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjeiubeh}(h]h ]h"]h$]h&]uh1jhjihMhjbiubj)}(h!``pgoff_t index`` the page index h](j)}(h``pgoff_t index``h]jS)}(hjih]h pgoff_t index}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjiubj)}(hhh]jM)}(hthe page indexh]hthe page index}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMhjbiubeh}(h]h ]h"]h$]h&]uh1jhjFiubjM)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjFiubjM)}(hXHReturns locked page at given index in given cache, creating it if needed, but do not wait if the page is locked or to reclaim memory. This is intended for speculative data generators, where the data can be regenerated if the page couldn't be grabbed. This routine should be safe to call while holding the lock for another page.h]hXJReturns locked page at given index in given cache, creating it if needed, but do not wait if the page is locked or to reclaim memory. This is intended for speculative data generators, where the data can be regenerated if the page couldn’t be grabbed. This routine should be safe to call while holding the lock for another page.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjFiubjM)}(huClear __GFP_FS when allocating the page to avoid recursion into the fs and deadlock against the caller's locked page.h]hwClear __GFP_FS when allocating the page to avoid recursion into the fs and deadlock against the caller’s locked page.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjFiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_next_index (C function)c.folio_next_indexhNtauh1hhjShhhNhNubh)}(hhh](h)}(h4pgoff_t folio_next_index (const struct folio *folio)h]h)}(h3pgoff_t folio_next_index(const struct folio *folio)h](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj6jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3jubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj8jmodnameN classnameNjpjs)}jv]jy)}jlfolio_next_indexsbc.folio_next_indexasbuh1hhj/jhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjXjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/jhhhjWjhMubh)}(hfolio_next_indexh]j)}(hjTjh]hfolio_next_index}(hjjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/jhhhjWjhMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj5)}(hj8h]hstruct}(hjjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j)}(hfolioh]hfolio}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjjmodnameN classnameNjpjs)}jv]jRjc.folio_next_indexasbuh1hhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjF )}(hjI h]h*}(hjjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjjubj)}(hfolioh]hfolio}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}jubah}(h]h ]h"]h$]h&]jjuh1j hj/jhhhjWjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj+jhhhjWjhMubah}(h]j&jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjWjhMhj(jhhubj4)}(hhh]jM)}(h Get the index of the next folio.h]h Get the index of the next folio.}(hj!khhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjkhhubah}(h]h ]h"]h$]h&]uh1j3hj(jhhhjWjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj9kjHj9kjIjJjKuh1hhhhjShNhNubj)}(h**Parameters** ``const struct folio *folio`` The current folio. **Return** The index of the folio which follows this folio in the file.h](jM)}(h**Parameters**h]j)}(hjCkh]h Parameters}(hjEkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAkubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=kubj)}(hhh]j)}(h1``const struct folio *folio`` The current folio. h](j)}(h``const struct folio *folio``h]jS)}(hjbkh]hconst struct folio *folio}(hjdkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`kubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj\kubj)}(hhh]jM)}(hThe current folio.h]hThe current folio.}(hj{khhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwkhMhjxkubah}(h]h ]h"]h$]h&]uh1jhj\kubeh}(h]h ]h"]h$]h&]uh1jhjwkhMhjYkubah}(h]h ]h"]h$]h&]uh1jhj=kubjM)}(h **Return**h]j)}(hjkh]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=kubjM)}(hbool folio_contains (const struct folio *folio, pgoff_t index)h]h)}(h=bool folio_contains(const struct folio *folio, pgoff_t index)h](j)}(hj.h]hbool}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjphMubh)}(hfolio_containsh]j)}(hfolio_containsh]hfolio_contains}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1hhjohhhjphMubj )}(h*(const struct folio *folio, pgoff_t index)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj1phhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-pubj)}(h h]h }(hj>phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-pubj5)}(hj8h]hstruct}(hjLphhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-pubj)}(h h]h }(hjYphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-pubh)}(hhh]j)}(hfolioh]hfolio}(hjjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlpmodnameN classnameNjpjs)}jv]jy)}jljpsbc.folio_containsasbuh1hhj-pubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-pubjF )}(hjI h]h*}(hjphhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-pubj)}(hfolioh]hfolio}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-pubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)pubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjpmodnameN classnameNjpjs)}jv]jpc.folio_containsasbuh1hhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hindexh]hindex}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)pubeh}(h]h ]h"]h$]h&]jjuh1j hjohhhjphMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjohhhjphMubah}(h]joah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjphMhjohhubj4)}(hhh]jM)}(h#Does this folio contain this index?h]h#Does this folio contain this index?}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjqhhubah}(h]h ]h"]h$]h&]uh1j3hjohhhjphMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj/qjHj/qjIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``const struct folio *folio`` The folio. ``pgoff_t index`` The page index within the file. **Context** The caller should have the folio locked and ensure e.g., shmem did not move this folio to the swap cache. **Return** true or false.h](jM)}(h**Parameters**h]j)}(hj9qh]h Parameters}(hj;qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7qubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj3qubj)}(hhh](j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjXqh]hconst struct folio *folio}(hjZqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVqubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjRqubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjqqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmqhMhjnqubah}(h]h ]h"]h$]h&]uh1jhjRqubeh}(h]h ]h"]h$]h&]uh1jhjmqhMhjOqubj)}(h2``pgoff_t index`` The page index within the file. h](j)}(h``pgoff_t index``h]jS)}(hjqh]h pgoff_t index}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjqubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjqubj)}(hhh]jM)}(hThe page index within the file.h]hThe page index within the file.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjOqubeh}(h]h ]h"]h$]h&]uh1jhj3qubjM)}(h **Context**h]j)}(hjqh]hContext}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj3qubjM)}(hiThe caller should have the folio locked and ensure e.g., shmem did not move this folio to the swap cache.h]hiThe caller should have the folio locked and ensure e.g., shmem did not move this folio to the swap cache.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj3qubjM)}(h **Return**h]j)}(hjqh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj3qubjM)}(htrue or false.h]htrue or false.}(hj rhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj3qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpage_pgoff (C function) c.page_pgoffhNtauh1hhjShhhNhNubh)}(hhh](h)}(hGpgoff_t page_pgoff (const struct folio *folio, const struct page *page)h]h)}(hFpgoff_t page_pgoff(const struct folio *folio, const struct page *page)h](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj;rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8rubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj=rmodnameN classnameNjpjs)}jv]jy)}jl page_pgoffsb c.page_pgoffasbuh1hhj4rhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hj]rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4rhhhj\rhMubh)}(h page_pgoffh]j)}(hjYrh]h page_pgoff}(hjorhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkrubah}(h]h ](jjeh"]h$]h&]jjuh1hhj4rhhhj\rhMubj )}(h4(const struct folio *folio, const struct page *page)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjrhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj5)}(hj8h]hstruct}(hjrhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hhh]j)}(hfolioh]hfolio}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrmodnameN classnameNjpjs)}jv]jWr c.page_pgoffasbuh1hhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjF )}(hjI h]h*}(hjrhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjrubj)}(hfolioh]hfolio}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubj )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsubj)}(h h]h }(hj"shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj5)}(hj8h]hstruct}(hj0shhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsubj)}(h h]h }(hj=shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j)}(hpageh]hpage}(hjNshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKsubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjPsmodnameN classnameNjpjs)}jv]jWr c.page_pgoffasbuh1hhjsubj)}(h h]h }(hjlshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjF )}(hjI h]h*}(hjzshhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsubj)}(hpageh]hpage}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubeh}(h]h ]h"]h$]h&]jjuh1j hj4rhhhj\rhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj0rhhhj\rhMubah}(h]j+rah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj\rhMhj-rhhubj4)}(hhh]jM)}(h/Calculate the logical page offset of this page.h]h/Calculate the logical page offset of this page.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjshhubah}(h]h ]h"]h$]h&]uh1j3hj-rhhhj\rhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjsjHjsjIjJjKuh1hhhhjShNhNubj)}(hX&**Parameters** ``const struct folio *folio`` The folio containing this page. ``const struct page *page`` The page which we need the offset of. **Description** For file pages, this is the offset from the beginning of the file in units of PAGE_SIZE. For anonymous pages, this is the offset from the beginning of the anon_vma in units of PAGE_SIZE. This will return nonsense for KSM pages. **Context** Caller must have a reference on the folio or otherwise prevent it from being split or freed. **Return** The offset in units of PAGE_SIZE.h](jM)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsubj)}(hhh](j)}(h>``const struct folio *folio`` The folio containing this page. h](j)}(h``const struct folio *folio``h]jS)}(hjsh]hconst struct folio *folio}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjsubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsubj)}(hhh]jM)}(hThe folio containing this page.h]hThe folio containing this page.}(hj thhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjthMhjsubj)}(hB``const struct page *page`` The page which we need the offset of. h](j)}(h``const struct page *page``h]jS)}(hj+th]hconst struct page *page}(hj-thhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)tubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj%tubj)}(hhh]jM)}(h%The page which we need the offset of.h]h%The page which we need the offset of.}(hjDthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@thMhjAtubah}(h]h ]h"]h$]h&]uh1jhj%tubeh}(h]h ]h"]h$]h&]uh1jhj@thMhjsubeh}(h]h ]h"]h$]h&]uh1jhjsubjM)}(h**Description**h]j)}(hjfth]h Description}(hjhthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdtubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsubjM)}(hFor file pages, this is the offset from the beginning of the file in units of PAGE_SIZE. For anonymous pages, this is the offset from the beginning of the anon_vma in units of PAGE_SIZE. This will return nonsense for KSM pages.h]hFor file pages, this is the offset from the beginning of the file in units of PAGE_SIZE. For anonymous pages, this is the offset from the beginning of the anon_vma in units of PAGE_SIZE. This will return nonsense for KSM pages.}(hj|thhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsubjM)}(h **Context**h]j)}(hjth]hContext}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsubjM)}(h\Caller must have a reference on the folio or otherwise prevent it from being split or freed.h]h\Caller must have a reference on the folio or otherwise prevent it from being split or freed.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsubjM)}(h **Return**h]j)}(hjth]hReturn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsubjM)}(h!The offset in units of PAGE_SIZE.h]h!The offset in units of PAGE_SIZE.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_pos (C function) c.folio_poshNtauh1hhjShhhNhNubh)}(hhh](h)}(h,loff_t folio_pos (const struct folio *folio)h]h)}(h+loff_t folio_pos(const struct folio *folio)h](h)}(hhh]j)}(hloff_th]hloff_t}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjtmodnameN classnameNjpjs)}jv]jy)}jl folio_possb c.folio_posasbuh1hhjthhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjuhMubh)}(h folio_posh]j)}(hjuh]h folio_pos}(hj0uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,uubah}(h]h ](jjeh"]h$]h&]jjuh1hhjthhhjuhMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjKuhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjGuubj)}(h h]h }(hjXuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGuubj5)}(hj8h]hstruct}(hjfuhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjGuubj)}(h h]h }(hjsuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGuubh)}(hhh]j)}(hfolioh]hfolio}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjumodnameN classnameNjpjs)}jv]ju c.folio_posasbuh1hhjGuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGuubjF )}(hjI h]h*}(hjuhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjGuubj)}(hfolioh]hfolio}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGuubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCuubah}(h]h ]h"]h$]h&]jjuh1j hjthhhjuhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjthhhjuhMubah}(h]jtah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjuhMhjthhubj4)}(hhh]jM)}(h4Returns the byte position of this folio in its file.h]h4Returns the byte position of this folio in its file.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjuhhubah}(h]h ]h"]h$]h&]uh1j3hjthhhjuhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjujHjujIjJjKuh1hhhhjShNhNubj)}(h:**Parameters** ``const struct folio *folio`` The folio.h](jM)}(h**Parameters**h]j)}(hj vh]h Parameters}(hj vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjvubj)}(hhh]j)}(h(``const struct folio *folio`` The folio.h](j)}(h``const struct folio *folio``h]jS)}(hj(vh]hconst struct folio *folio}(hj*vhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&vubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj"vubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjAvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj>vubah}(h]h ]h"]h$]h&]uh1jhj"vubeh}(h]h ]h"]h$]h&]uh1jhj=vhMhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_trylock (C function)c.folio_trylockhNtauh1hhjShhhNhNubh)}(hhh](h)}(h(bool folio_trylock (struct folio *folio)h]h)}(h'bool folio_trylock(struct folio *folio)h](j)}(hj.h]hbool}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~vhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMSubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~vhhhjvhMSubh)}(h folio_trylockh]j)}(h folio_trylockh]h folio_trylock}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1hhj~vhhhjvhMSubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjvhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j)}(hfolioh]hfolio}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjvmodnameN classnameNjpjs)}jv]jy)}jljvsbc.folio_trylockasbuh1hhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjF )}(hjI h]h*}(hj whhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjvubj)}(hfolioh]hfolio}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjvubah}(h]h ]h"]h$]h&]jjuh1j hj~vhhhjvhMSubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjzvhhhjvhMSubah}(h]juvah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjvhMShjwvhhubj4)}(hhh]jM)}(hAttempt to lock a folio.h]hAttempt to lock a folio.}(hjAwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMShj>whhubah}(h]h ]h"]h$]h&]uh1j3hjwvhhhjvhMSubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjYwjHjYwjIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to attempt to lock. **Description** Sometimes it is undesirable to wait for a folio to be unlocked (eg when the locks are being taken in the wrong order, or if making progress through a batch of folios is more important than processing them in order). Usually folio_lock() is the correct function to call. **Context** Any context. **Return** Whether the lock was successfully acquired.h](jM)}(h**Parameters**h]j)}(hjcwh]h Parameters}(hjewhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjawubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMWhj]wubj)}(hhh]j)}(h6``struct folio *folio`` The folio to attempt to lock. h](j)}(h``struct folio *folio``h]jS)}(hjwh]hstruct folio *folio}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMThj|wubj)}(hhh]jM)}(hThe folio to attempt to lock.h]hThe folio to attempt to lock.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwhMThjwubah}(h]h ]h"]h$]h&]uh1jhj|wubeh}(h]h ]h"]h$]h&]uh1jhjwhMThjywubah}(h]h ]h"]h$]h&]uh1jhj]wubjM)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMVhj]wubjM)}(hXSometimes it is undesirable to wait for a folio to be unlocked (eg when the locks are being taken in the wrong order, or if making progress through a batch of folios is more important than processing them in order). Usually folio_lock() is the correct function to call.h]hXSometimes it is undesirable to wait for a folio to be unlocked (eg when the locks are being taken in the wrong order, or if making progress through a batch of folios is more important than processing them in order). Usually folio_lock() is the correct function to call.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMUhj]wubjM)}(h **Context**h]j)}(hjwh]hContext}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMZhj]wubjM)}(h Any context.h]h Any context.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM[hj]wubjM)}(h **Return**h]j)}(hj xh]hReturn}(hj xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj xubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM]hj]wubjM)}(h+Whether the lock was successfully acquired.h]h+Whether the lock was successfully acquired.}(hj!xhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM\hj]wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_lock (C function) c.folio_lockhNtauh1hhjShhhNhNubh)}(hhh](h)}(h%void folio_lock (struct folio *folio)h]h)}(h$void folio_lock(struct folio *folio)h](j)}(hvoidh]hvoid}(hjPxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLxhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMlubj)}(h h]h }(hj_xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLxhhhj^xhMlubh)}(h folio_lockh]j)}(h folio_lockh]h folio_lock}(hjqxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmxubah}(h]h ](jjeh"]h$]h&]jjuh1hhjLxhhhj^xhMlubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjxhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]j)}(hfolioh]hfolio}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjxmodnameN classnameNjpjs)}jv]jy)}jljsxsb c.folio_lockasbuh1hhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjF )}(hjI h]h*}(hjxhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjxubj)}(hfolioh]hfolio}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjxubah}(h]h ]h"]h$]h&]jjuh1j hjLxhhhj^xhMlubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjHxhhhj^xhMlubah}(h]jCxah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj^xhMlhjExhhubj4)}(hhh]jM)}(hLock this folio.h]hLock this folio.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMlhj yhhubah}(h]h ]h"]h$]h&]uh1j3hjExhhhj^xhMlubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj(yjHj(yjIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to lock. **Description** The folio lock protects against many things, probably more than it should. It is primarily held while a folio is being brought uptodate, either from its backing file or from swap. It is also held while a folio is being truncated from its address_space, so holding the lock is sufficient to keep folio->mapping stable. The folio lock is also held while write() is modifying the page to provide POSIX atomicity guarantees (as long as the write does not cross a page boundary). Other modifications to the data in the folio do not hold the folio lock and can race with writes, eg DMA and stores to mapped pages. **Context** May sleep. If you need to acquire the locks of two or more folios, they must be in order of ascending index, if they are in the same address_space. If they are in different address_spaces, acquire the lock of the folio which belongs to the address_space which has the lowest address in memory first.h](jM)}(h**Parameters**h]j)}(hj2yh]h Parameters}(hj4yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0yubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMphj,yubj)}(hhh]j)}(h+``struct folio *folio`` The folio to lock. h](j)}(h``struct folio *folio``h]jS)}(hjQyh]hstruct folio *folio}(hjSyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjOyubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMmhjKyubj)}(hhh]jM)}(hThe folio to lock.h]hThe folio to lock.}(hjjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfyhMmhjgyubah}(h]h ]h"]h$]h&]uh1jhjKyubeh}(h]h ]h"]h$]h&]uh1jhjfyhMmhjHyubah}(h]h ]h"]h$]h&]uh1jhj,yubjM)}(h**Description**h]j)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMohj,yubjM)}(hX?The folio lock protects against many things, probably more than it should. It is primarily held while a folio is being brought uptodate, either from its backing file or from swap. It is also held while a folio is being truncated from its address_space, so holding the lock is sufficient to keep folio->mapping stable.h]hX?The folio lock protects against many things, probably more than it should. It is primarily held while a folio is being brought uptodate, either from its backing file or from swap. It is also held while a folio is being truncated from its address_space, so holding the lock is sufficient to keep folio->mapping stable.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMnhj,yubjM)}(hX"The folio lock is also held while write() is modifying the page to provide POSIX atomicity guarantees (as long as the write does not cross a page boundary). Other modifications to the data in the folio do not hold the folio lock and can race with writes, eg DMA and stores to mapped pages.h]hX"The folio lock is also held while write() is modifying the page to provide POSIX atomicity guarantees (as long as the write does not cross a page boundary). Other modifications to the data in the folio do not hold the folio lock and can race with writes, eg DMA and stores to mapped pages.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMthj,yubjM)}(h **Context**h]j)}(hjyh]hContext}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMzhj,yubjM)}(hX-May sleep. If you need to acquire the locks of two or more folios, they must be in order of ascending index, if they are in the same address_space. If they are in different address_spaces, acquire the lock of the folio which belongs to the address_space which has the lowest address in memory first.h]hX-May sleep. If you need to acquire the locks of two or more folios, they must be in order of ascending index, if they are in the same address_space. If they are in different address_spaces, acquire the lock of the folio which belongs to the address_space which has the lowest address in memory first.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM{hj,yubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlock_page (C function) c.lock_pagehNtauh1hhjShhhNhNubh)}(hhh](h)}(h"void lock_page (struct page *page)h]h)}(h!void lock_page(struct page *page)h](j)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhMubh)}(h lock_pageh]j)}(h lock_pageh]h lock_page}(hj(zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$zubah}(h]h ](jjeh"]h$]h&]jjuh1hhjzhhhjzhMubj )}(h(struct page *page)h]j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjDzhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj@zubj)}(h h]h }(hjQzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@zubh)}(hhh]j)}(hpageh]hpage}(hjbzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_zubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdzmodnameN classnameNjpjs)}jv]jy)}jlj*zsb c.lock_pageasbuh1hhj@zubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@zubjF )}(hjI h]h*}(hjzhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj@zubj)}(hpageh]hpage}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@zubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjhjubj)}(hhh](j)}(h``file`` The file, used primarily by network filesystems for authentication. May be NULL if invoked internally by the filesystem. h](j)}(h``file``h]jS)}(hjh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM>hjubj)}(hhh]jM)}(hxThe file, used primarily by network filesystems for authentication. May be NULL if invoked internally by the filesystem.h]hxThe file, used primarily by network filesystems for authentication. May be NULL if invoked internally by the filesystem.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM=hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM>hjubj)}(h.``mapping`` Readahead this filesystem object. h](j)}(h ``mapping``h]jS)}(hj0h]hmapping}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM?hj*ubj)}(hhh]jM)}(h!Readahead this filesystem object.h]h!Readahead this filesystem object.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhM?hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM?hjubj)}(h*``ra`` File readahead state. May be NULL.h](j)}(h``ra``h]jS)}(hjih]hra}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM?hjcubj)}(hhh]jM)}(h#File readahead state. May be NULL.h]h#File readahead state. May be NULL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM@hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM?hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMChjShhubjM)}(hA readahead request is for consecutive pages. Filesystems which implement the ->readahead method should call readahead_folio() or __readahead_batch() in a loop and attempt to start reads into each folio in the request.h]hA readahead request is for consecutive pages. Filesystems which implement the ->readahead method should call readahead_folio() or __readahead_batch() in a loop and attempt to start reads into each folio in the request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM3hjShhubjM)}(h\Most of the fields in this struct are private and should be accessed by the functions below.h]h\Most of the fields in this struct are private and should be accessed by the functions below.}(hjсhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM8hjShhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&page_cache_sync_readahead (C function)c.page_cache_sync_readaheadhNtauh1hhjShhhNhNubh)}(hhh](h)}(hvoid page_cache_sync_readahead (struct address_space *mapping, struct file_ra_state *ra, struct file *file, pgoff_t index, unsigned long req_count)h]h)}(hvoid page_cache_sync_readahead(struct address_space *mapping, struct file_ra_state *ra, struct file *file, pgoff_t index, unsigned long req_count)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMaubh)}(hpage_cache_sync_readaheadh]j)}(hpage_cache_sync_readaheadh]hpage_cache_sync_readahead}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMaubj )}(ht(struct address_space *mapping, struct file_ra_state *ra, struct file *file, pgoff_t index, unsigned long req_count)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj6hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjVmodnameN classnameNjpjs)}jv]jy)}jljsbc.page_cache_sync_readaheadasbuh1hhj2ubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2ubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj.ubj )}(hstruct file_ra_state *rah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h file_ra_stateh]h file_ra_state}(hjƂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÂubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjȂmodnameN classnameNjpjs)}jv]jpc.page_cache_sync_readaheadasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hrah]hra}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj.ubj )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfileh]hfile}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj8modnameN classnameNjpjs)}jv]jpc.page_cache_sync_readaheadasbuh1hhjubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjbhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfileh]hfile}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj.ubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jpc.page_cache_sync_readaheadasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj.ubj )}(hunsigned long req_counth](j)}(hunsignedh]hunsigned}(hjЃhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̃ubj)}(h h]h }(hjރhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̃ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̃ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̃ubj)}(h req_counth]h req_count}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̃ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj.ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMaubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMaubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMahjhhubj4)}(hhh]jM)}(hgeneric file readaheadh]hgeneric file readahead}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMahj/hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMaubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjJjHjJjIjJjKuh1hhhhjShNhNubj)}(hX{**Parameters** ``struct address_space *mapping`` address_space which holds the pagecache and I/O vectors ``struct file_ra_state *ra`` file_ra_state which holds the readahead state ``struct file *file`` Used by the filesystem for authentication. ``pgoff_t index`` Index of first page to be read. ``unsigned long req_count`` Total number of pages being read by the caller. **Description** page_cache_sync_readahead() should be called when a cache miss happened: it will submit the read. The readahead logic may decide to piggyback more pages onto the read request if access patterns suggest it will improve performance.h](jM)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMehjNubj)}(hhh](j)}(hZ``struct address_space *mapping`` address_space which holds the pagecache and I/O vectors h](j)}(h!``struct address_space *mapping``h]jS)}(hjsh]hstruct address_space *mapping}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjqubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMbhjmubj)}(hhh]jM)}(h7address_space which holds the pagecache and I/O vectorsh]h7address_space which holds the pagecache and I/O vectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMbhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMbhjjubj)}(hK``struct file_ra_state *ra`` file_ra_state which holds the readahead state h](j)}(h``struct file_ra_state *ra``h]jS)}(hjh]hstruct file_ra_state *ra}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMchjubj)}(hhh]jM)}(h-file_ra_state which holds the readahead stateh]h-file_ra_state which holds the readahead state}(hjńhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMchj„ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjjubj)}(hA``struct file *file`` Used by the filesystem for authentication. h](j)}(h``struct file *file``h]jS)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMdhj߄ubj)}(hhh]jM)}(h*Used by the filesystem for authentication.h]h*Used by the filesystem for authentication.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhj߄ubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjjubj)}(h2``pgoff_t index`` Index of first page to be read. h](j)}(h``pgoff_t index``h]jS)}(hjh]h pgoff_t index}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMehjubj)}(hhh]jM)}(hIndex of first page to be read.h]hIndex of first page to be read.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3hMehj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMehjjubj)}(hL``unsigned long req_count`` Total number of pages being read by the caller. h](j)}(h``unsigned long req_count``h]jS)}(hjWh]hunsigned long req_count}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjUubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMfhjQubj)}(hhh]jM)}(h/Total number of pages being read by the caller.h]h/Total number of pages being read by the caller.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhMfhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMfhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhhjNubjM)}(hpage_cache_sync_readahead() should be called when a cache miss happened: it will submit the read. The readahead logic may decide to piggyback more pages onto the read request if access patterns suggest it will improve performance.h]hpage_cache_sync_readahead() should be called when a cache miss happened: it will submit the read. The readahead logic may decide to piggyback more pages onto the read request if access patterns suggest it will improve performance.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMghjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'page_cache_async_readahead (C function)c.page_cache_async_readaheadhNtauh1hhjShhhNhNubh)}(hhh](h)}(hvoid page_cache_async_readahead (struct address_space *mapping, struct file_ra_state *ra, struct file *file, struct folio *folio, unsigned long req_count)h]h)}(hvoid page_cache_async_readahead(struct address_space *mapping, struct file_ra_state *ra, struct file *file, struct folio *folio, unsigned long req_count)h](j)}(hvoidh]hvoid}(hjׅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӅhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӅhhhjhMwubh)}(hpage_cache_async_readaheadh]j)}(hpage_cache_async_readaheadh]hpage_cache_async_readahead}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjӅhhhjhMwubj )}(hz(struct address_space *mapping, struct file_ra_state *ra, struct file *file, struct folio *folio, unsigned long req_count)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4modnameN classnameNjpjs)}jv]jy)}jljsbc.page_cache_async_readaheadasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj`hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hstruct file_ra_state *rah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h file_ra_stateh]h file_ra_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jNc.page_cache_async_readaheadasbuh1hhjubj)}(h h]h }(hj†hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjІhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hrah]hra}(hj݆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jNc.page_cache_async_readaheadasbuh1hhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj@hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfileh]hfile}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjfhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jNc.page_cache_async_readaheadasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjbubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hunsigned long req_counth](j)}(hunsignedh]hunsigned}(hjևhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҇ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҇ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҇ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҇ubj)}(h req_counth]h req_count}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҇ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubeh}(h]h ]h"]h$]h&]jjuh1j hjӅhhhjhMwubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjυhhhjhMwubah}(h]jʅah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMwhj̅hhubj4)}(hhh]jM)}(hfile readahead for marked pagesh]hfile readahead for marked pages}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMwhj5hhubah}(h]h ]h"]h$]h&]uh1j3hj̅hhhjhMwubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjPjHjPjIjJjKuh1hhhhjShNhNubj)}(hX**Parameters** ``struct address_space *mapping`` address_space which holds the pagecache and I/O vectors ``struct file_ra_state *ra`` file_ra_state which holds the readahead state ``struct file *file`` Used by the filesystem for authentication. ``struct folio *folio`` The folio which triggered the readahead call. ``unsigned long req_count`` Total number of pages being read by the caller. **Description** page_cache_async_readahead() should be called when a page is used which is marked as PageReadahead; this is a marker to suggest that the application has used up enough of the readahead window that we should start pulling in more pages.h](jM)}(h**Parameters**h]j)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM{hjTubj)}(hhh](j)}(hZ``struct address_space *mapping`` address_space which holds the pagecache and I/O vectors h](j)}(h!``struct address_space *mapping``h]jS)}(hjyh]hstruct address_space *mapping}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMxhjsubj)}(hhh]jM)}(h7address_space which holds the pagecache and I/O vectorsh]h7address_space which holds the pagecache and I/O vectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjpubj)}(hK``struct file_ra_state *ra`` file_ra_state which holds the readahead state h](j)}(h``struct file_ra_state *ra``h]jS)}(hjh]hstruct file_ra_state *ra}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMyhjubj)}(hhh]jM)}(h-file_ra_state which holds the readahead stateh]h-file_ra_state which holds the readahead state}(hjˈhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLjhMyhjȈubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjLjhMyhjpubj)}(hA``struct file *file`` Used by the filesystem for authentication. h](j)}(h``struct file *file``h]jS)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMzhjubj)}(hhh]jM)}(h*Used by the filesystem for authentication.h]h*Used by the filesystem for authentication.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMzhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMzhjpubj)}(hF``struct folio *folio`` The folio which triggered the readahead call. h](j)}(h``struct folio *folio``h]jS)}(hj$h]hstruct folio *folio}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM{hjubj)}(hhh]jM)}(h-The folio which triggered the readahead call.h]h-The folio which triggered the readahead call.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9hM{hj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hM{hjpubj)}(hL``unsigned long req_count`` Total number of pages being read by the caller. h](j)}(h``unsigned long req_count``h]jS)}(hj]h]hunsigned long req_count}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM|hjWubj)}(hhh]jM)}(h/Total number of pages being read by the caller.h]h/Total number of pages being read by the caller.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhM|hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM|hjpubeh}(h]h ]h"]h$]h&]uh1jhjTubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM~hjTubjM)}(hpage_cache_async_readahead() should be called when a page is used which is marked as PageReadahead; this is a marker to suggest that the application has used up enough of the readahead window that we should start pulling in more pages.h]hpage_cache_async_readahead() should be called when a page is used which is marked as PageReadahead; this is a marker to suggest that the application has used up enough of the readahead window that we should start pulling in more pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM}hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_folio (C function)c.readahead_foliohNtauh1hhjShhhNhNubh)}(hhh](h)}(h@struct folio * readahead_folio (struct readahead_control *ractl)h]h)}(h>struct folio *readahead_folio(struct readahead_control *ractl)h](j5)}(hj8h]hstruct}(hj݉hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjىhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjىhhhjhMubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlreadahead_foliosbc.readahead_folioasbuh1hhjىhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjىhhhjhMubjF )}(hjI h]h*}(hj+hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjىhhhjhMubh)}(hreadahead_folioh]j)}(hjh]hreadahead_folio}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjىhhhjhMubj )}(h!(struct readahead_control *ractl)h]j )}(hstruct readahead_control *ractlh](j5)}(hj8h]hstruct}(hjWhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjwmodnameN classnameNjpjs)}jv]jc.readahead_folioasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjSubj)}(hractlh]hractl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubah}(h]h ]h"]h$]h&]jjuh1j hjىhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjՉhhhjhMubah}(h]jЉah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhj҉hhubj4)}(hhh]jM)}(hGet the next folio to read.h]hGet the next folio to read.}(hj؊hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjՊhhubah}(h]h ]h"]h$]h&]uh1j3hj҉hhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjShNhNubj)}(hX **Parameters** ``struct readahead_control *ractl`` The current readahead request. **Context** The folio is locked. The caller should unlock the folio once all I/O to that folio has completed. **Return** A pointer to the next folio, or ``NULL`` if we are done.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubj)}(hhh]j)}(hC``struct readahead_control *ractl`` The current readahead request. h](j)}(h#``struct readahead_control *ractl``h]jS)}(hjh]hstruct readahead_control *ractl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubj)}(hhh]jM)}(hThe current readahead request.h]hThe current readahead request.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Context**h]j)}(hjTh]hContext}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubjM)}(hbThe folio is locked. The caller should unlock the folio once all I/O to that folio has completed.h]hbThe folio is locked. The caller should unlock the folio once all I/O to that folio has completed.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubjM)}(h **Return**h]j)}(hj{h]hReturn}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubjM)}(h8A pointer to the next folio, or ``NULL`` if we are done.h](h A pointer to the next folio, or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if we are done.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_pos (C function)c.readahead_poshNtauh1hhjShhhNhNubh)}(hhh](h)}(h:loff_t readahead_pos (const struct readahead_control *rac)h]h)}(h9loff_t readahead_pos(const struct readahead_control *rac)h](h)}(hhh]j)}(hloff_th]hloff_t}(hjՋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҋubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj׋modnameN classnameNjpjs)}jv]jy)}jl readahead_possbc.readahead_posasbuh1hhj΋hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj΋hhhjhMubh)}(h readahead_posh]j)}(hjh]h readahead_pos}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj΋hhhjhMubj )}(h%(const struct readahead_control *rac)h]j )}(h#const struct readahead_control *rach](j5)}(hjh]hconst}(hj$hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj5)}(hj8h]hstruct}(hj?hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]jc.readahead_posasbuh1hhj ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hrach]hrac}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hj΋hhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjʋhhhjhMubah}(h]jŋah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjNjhhubj4)}(hhh]jM)}(h8The byte offset into the file of this readahead request.h]h8The byte offset into the file of this readahead request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjNjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj،jHj،jIjJjKuh1hhhhjShNhNubj)}(hP**Parameters** ``const struct readahead_control *rac`` The readahead request.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj܌ubj)}(hhh]j)}(h>``const struct readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]jS)}(hjh]h#const struct readahead_control *rac}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubj)}(hhh]jM)}(hThe readahead request.h]hThe readahead request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj܌ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_length (C function)c.readahead_lengthhNtauh1hhjShhhNhNubh)}(hhh](h)}(h=size_t readahead_length (const struct readahead_control *rac)h]h)}(h``const struct readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]jS)}(hjh]h#const struct readahead_control *rac}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubj)}(hhh]jM)}(hThe readahead request.h]hThe readahead request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_index (C function)c.readahead_indexhNtauh1hhjShhhNhNubh)}(hhh](h)}(h=pgoff_t readahead_index (const struct readahead_control *rac)h]h)}(h``const struct readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]jS)}(hjh]h#const struct readahead_control *rac}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj ubj)}(hhh]jM)}(hThe readahead request.h]hThe readahead request.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_count (C function)c.readahead_counthNtauh1hhjShhhNhNubh)}(hhh](h)}(hBunsigned int readahead_count (const struct readahead_control *rac)h]h)}(hAunsigned int readahead_count(const struct readahead_control *rac)h](j)}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj{hMubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj{hMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj{hMubh)}(hreadahead_counth]j)}(hreadahead_counth]hreadahead_count}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjihhhj{hMubj )}(h%(const struct readahead_control *rac)h]j )}(h#const struct readahead_control *rach](j5)}(hjh]hconst}(hjƐhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjӐhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.readahead_countasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj-hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hrach]hrac}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjihhhj{hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjehhhj{hMubah}(h]j`ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj{hMhjbhhubj4)}(hhh]jM)}(h.The number of pages in this readahead request.h]h.The number of pages in this readahead request.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjahhubah}(h]h ]h"]h$]h&]uh1j3hjbhhhj{hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj|jHj|jIjJjKuh1hhhhjShNhNubj)}(hP**Parameters** ``const struct readahead_control *rac`` The readahead request.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubj)}(hhh]j)}(h>``const struct readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]jS)}(hjh]h#const struct readahead_control *rac}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubj)}(hhh]jM)}(hThe readahead request.h]hThe readahead request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#readahead_batch_length (C function)c.readahead_batch_lengthhNtauh1hhjShhhNhNubh)}(hhh](h)}(hCsize_t readahead_batch_length (const struct readahead_control *rac)h]h)}(hBsize_t readahead_batch_length(const struct readahead_control *rac)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlreadahead_batch_lengthsbc.readahead_batch_lengthasbuh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hMubh)}(hreadahead_batch_lengthh]j)}(hj h]hreadahead_batch_length}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj#hMubj )}(h%(const struct readahead_control *rac)h]j )}(h#const struct readahead_control *rach](j5)}(hjh]hconst}(hjQhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj5)}(hj8h]hstruct}(hjlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.readahead_batch_lengthasbuh1hhjMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjMubj)}(hrach]hrac}(hjÒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj#hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj#hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj#hMhjhhubj4)}(hhh]jM)}(h)The number of bytes in the current batch.h]h)The number of bytes in the current batch.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj#hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjShNhNubj)}(hP**Parameters** ``const struct readahead_control *rac`` The readahead request.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj ubj)}(hhh]j)}(h>``const struct readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]jS)}(hj.h]h#const struct readahead_control *rac}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj,ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj(ubj)}(hhh]jM)}(hThe readahead request.h]hThe readahead request.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)folio_mkwrite_check_truncate (C function)c.folio_mkwrite_check_truncatehNtauh1hhjShhhNhNubh)}(hhh](h)}(h[ssize_t folio_mkwrite_check_truncate (const struct folio *folio, const struct inode *inode)h]h)}(hZssize_t folio_mkwrite_check_truncate(const struct folio *folio, const struct inode *inode)h](h)}(hhh]j)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlfolio_mkwrite_check_truncatesbc.folio_mkwrite_check_truncateasbuh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_mkwrite_check_truncateh]j)}(hjh]hfolio_mkwrite_check_truncate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h6(const struct folio *folio, const struct inode *inode)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjړhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj֓ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֓ubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj֓ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֓ubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_mkwrite_check_truncateasbuh1hhj֓ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֓ubjF )}(hjI h]h*}(hj?hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj֓ubj)}(hfolioh]hfolio}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֓ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjғubj )}(hconst struct inode *inodeh](j5)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_mkwrite_check_truncateasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjF )}(hjI h]h*}(hjʔhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjaubj)}(hinodeh]hinode}(hjהhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjғubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]j{ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhj}hhubj4)}(hhh]jM)}(hcheck if folio was truncatedh]hcheck if folio was truncated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj}hhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjShNhNubj)}(h**Parameters** ``const struct folio *folio`` the folio to check ``const struct inode *inode`` the inode to check the folio against **Return** the number of bytes in the folio up to EOF, or -EFAULT if the folio was truncated.h](jM)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubj)}(hhh](j)}(h1``const struct folio *folio`` the folio to check h](j)}(h``const struct folio *folio``h]jS)}(hjBh]hconst struct folio *folio}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj<ubj)}(hhh]jM)}(hthe folio to checkh]hthe folio to check}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj9ubj)}(hC``const struct inode *inode`` the inode to check the folio against h](j)}(h``const struct inode *inode``h]jS)}(hj{h]hconst struct inode *inode}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjuubj)}(hhh]jM)}(h$the inode to check the folio againsth]h$the inode to check the folio against}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhj9ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubjM)}(hRthe number of bytes in the folio up to EOF, or -EFAULT if the folio was truncated.h]hRthe number of bytes in the folio up to EOF, or -EFAULT if the folio was truncated.}(hj̕hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hi_blocks_per_folio (C function)c.i_blocks_per_foliohNtauh1hhjShhhNhNubh)}(hhh](h)}(hVunsigned int i_blocks_per_folio (const struct inode *inode, const struct folio *folio)h]h)}(hUunsigned int i_blocks_per_folio(const struct inode *inode, const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubh)}(hi_blocks_per_folioh]j)}(hi_blocks_per_folioh]hi_blocks_per_folio}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hMubj )}(h6(const struct inode *inode, const struct folio *folio)h](j )}(hconst struct inode *inodeh](j5)}(hjh]hconst}(hjThhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj5)}(hj8h]hstruct}(hjohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjPubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj:sbc.i_blocks_per_folioasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjPubj)}(hinodeh]hinode}(hjȖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjLubj )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjݖubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݖubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjݖubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݖubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.i_blocks_per_folioasbuh1hhjݖubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݖubjF )}(hjI h]h*}(hjFhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjݖubj)}(hfolioh]hfolio}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݖubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjLubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hMhjhhubj4)}(hhh]jM)}(h"How many blocks fit in this folio.h]h"How many blocks fit in this folio.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjzhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjShNhNubj)}(hXy**Parameters** ``const struct inode *inode`` The inode which contains the blocks. ``const struct folio *folio`` The folio. **Description** If the block size is larger than the size of this folio, return zero. **Context** The caller should hold a refcount on the folio to prevent it from being split. **Return** The number of filesystem blocks covered by this folio.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM!hjubj)}(hhh](j)}(hC``const struct inode *inode`` The inode which contains the blocks. h](j)}(h``const struct inode *inode``h]jS)}(hjh]hconst struct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubj)}(hhh]jM)}(h$The inode which contains the blocks.h]h$The inode which contains the blocks.}(hjחhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjӗhMhjԗubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӗhMhjubj)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjh]hconst struct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM!hjubjM)}(hEIf the block size is larger than the size of this folio, return zero.h]hEIf the block size is larger than the size of this folio, return zero.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hjubjM)}(h **Context**h]j)}(hjYh]hContext}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM"hjubjM)}(hNThe caller should hold a refcount on the folio to prevent it from being split.h]hNThe caller should hold a refcount on the folio to prevent it from being split.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM#hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM&hjubjM)}(h6The number of filesystem blocks covered by this folio.h]h6The number of filesystem blocks covered by this folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubeh}(h]truncateah ]h"]truncateah$]h&]uh1hhjthhhhhKPubeh}(h]file-mapping-and-page-cacheah ]h"]file mapping and page cacheah$]h&]uh1hhhhhhhhK8ubh)}(hhh](h)}(h Memory poolsh]h Memory pools}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKYubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmempool_exit (C function)c.mempool_exithNtauh1hhjhhhNhNubh)}(hhh](h)}(h(void mempool_exit (struct mempool *pool)h]h)}(h'void mempool_exit(struct mempool *pool)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(h mempool_exith]j)}(h mempool_exith]h mempool_exit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubj )}(h(struct mempool *pool)h]j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hj#hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hmempoolh]hmempool}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjCmodnameN classnameNjpjs)}jv]jy)}jlj sbc.mempool_exitasbuh1hhjubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjohhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpoolh]hpool}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjޘhhhjhKubah}(h]j٘ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjۘhhubj4)}(hhh]jM)}(h.exit a mempool initialized with mempool_init()h]h.exit a mempool initialized with mempool_init()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjۘhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXS**Parameters** ``struct mempool *pool`` pointer to the memory pool which was initialized with mempool_init(). **Description** Free all reserved elements in **pool** and **pool** itself. This function only sleeps if the free_fn() function sleeps. May be called on a zeroed but uninitialized mempool (i.e. allocated with kzalloc()).h](jM)}(h**Parameters**h]j)}(hjșh]h Parameters}(hjʙhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƙubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj™ubj)}(hhh]j)}(h_``struct mempool *pool`` pointer to the memory pool which was initialized with mempool_init(). h](j)}(h``struct mempool *pool``h]jS)}(hjh]hstruct mempool *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubj)}(hhh]jM)}(hEpointer to the memory pool which was initialized with mempool_init().h]hEpointer to the memory pool which was initialized with mempool_init().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjޙubah}(h]h ]h"]h$]h&]uh1jhj™ubjM)}(h**Description**h]j)}(hj#h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj™ubjM)}(hxFree all reserved elements in **pool** and **pool** itself. This function only sleeps if the free_fn() function sleeps.h](hFree all reserved elements in }(hj9hhhNhNubj)}(h**pool**h]hpool}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh and }(hj9hhhNhNubj)}(h**pool**h]hpool}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubhE itself. This function only sleeps if the free_fn() function sleeps.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj™ubjM)}(hTMay be called on a zeroed but uninitialized mempool (i.e. allocated with kzalloc()).h]hTMay be called on a zeroed but uninitialized mempool (i.e. allocated with kzalloc()).}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj™ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmempool_destroy (C function)c.mempool_destroyhNtauh1hhjhhhNhNubh)}(hhh](h)}(h+void mempool_destroy (struct mempool *pool)h]h)}(h*void mempool_destroy(struct mempool *pool)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hmempool_destroyh]j)}(hmempool_destroyh]hmempool_destroy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubj )}(h(struct mempool *pool)h]j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hjؚhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjԚubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԚubh)}(hhh]j)}(hmempoolh]hmempool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.mempool_destroyasbuh1hhjԚubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԚubjF )}(hjI h]h*}(hj$hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjԚubj)}(hpoolh]hpool}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԚubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjКubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjhhubj4)}(hhh]jM)}(hdeallocate a memory poolh]hdeallocate a memory pool}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjXhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjsjHjsjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct mempool *pool`` pointer to the memory pool which was allocated via mempool_create(). **Description** Free all reserved elements in **pool** and **pool** itself. This function only sleeps if the free_fn() function sleeps.h](jM)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjwubj)}(hhh]j)}(h^``struct mempool *pool`` pointer to the memory pool which was allocated via mempool_create(). h](j)}(h``struct mempool *pool``h]jS)}(hjh]hstruct mempool *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubj)}(hhh]jM)}(hDpointer to the memory pool which was allocated via mempool_create().h]hDpointer to the memory pool which was allocated via mempool_create().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjwubjM)}(h**Description**h]j)}(hj؛h]h Description}(hjڛhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֛ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjwubjM)}(hxFree all reserved elements in **pool** and **pool** itself. This function only sleeps if the free_fn() function sleeps.h](hFree all reserved elements in }(hjhhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhE itself. This function only sleeps if the free_fn() function sleeps.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmempool_init (C function)c.mempool_inithNtauh1hhjhhhNhNubh)}(hhh](h)}(hxint mempool_init (struct mempool *pool, int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data)h]h)}(hwint mempool_init(struct mempool *pool, int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data)h](j)}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhjOhMubh)}(h mempool_inith]j)}(h mempool_inith]h mempool_init}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj=hhhjOhMubj )}(hg(struct mempool *pool, int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data)h](j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hj~hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hhh]j)}(hmempoolh]hmempool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljdsbc.mempool_initasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjF )}(hjI h]h*}(hjʜhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjzubj)}(hpoolh]hpool}(hjלhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjvubj )}(h int min_nrh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmin_nrh]hmin_nr}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjvubj )}(hmempool_alloc_t *alloc_fnh](h)}(hhh]j)}(hmempool_alloc_th]hmempool_alloc_t}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj*modnameN classnameNjpjs)}jv]jc.mempool_initasbuh1hhj!ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjF )}(hjI h]h*}(hjThhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubj)}(halloc_fnh]halloc_fn}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjvubj )}(hmempool_free_t *free_fnh](h)}(hhh]j)}(hmempool_free_th]hmempool_free_t}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mempool_initasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjvubj)}(hfree_fnh]hfree_fn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjvubj )}(hvoid *pool_datah](j)}(hvoidh]hvoid}(hjϝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˝ubj)}(h h]h }(hjݝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˝ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj˝ubj)}(h pool_datah]h pool_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˝ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjvubeh}(h]h ]h"]h$]h&]jjuh1j hj=hhhjOhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj9hhhjOhMubah}(h]j4ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjOhMhj6hhubj4)}(hhh]jM)}(hinitialize a memory poolh]hinitialize a memory pool}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj6hhhjOhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj:jHj:jIjJjKuh1hhhhjhNhNubj)}(hXM**Parameters** ``struct mempool *pool`` pointer to the memory pool that should be initialized ``int min_nr`` the minimum number of elements guaranteed to be allocated for this pool. ``mempool_alloc_t *alloc_fn`` user-defined element-allocation function. ``mempool_free_t *free_fn`` user-defined element-freeing function. ``void *pool_data`` optional private data available to the user-defined functions. **Description** Like mempool_create(), but initializes the pool in (i.e. embedded in another structure). **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj>ubj)}(hhh](j)}(hO``struct mempool *pool`` pointer to the memory pool that should be initialized h](j)}(h``struct mempool *pool``h]jS)}(hjch]hstruct mempool *pool}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj]ubj)}(hhh]jM)}(h5pointer to the memory pool that should be initializedh]h5pointer to the memory pool that should be initialized}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjZubj)}(hX``int min_nr`` the minimum number of elements guaranteed to be allocated for this pool. h](j)}(h``int min_nr``h]jS)}(hjh]h int min_nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(hHthe minimum number of elements guaranteed to be allocated for this pool.h]hHthe minimum number of elements guaranteed to be allocated for this pool.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjZubj)}(hH``mempool_alloc_t *alloc_fn`` user-defined element-allocation function. h](j)}(h``mempool_alloc_t *alloc_fn``h]jS)}(hj֞h]hmempool_alloc_t *alloc_fn}(hj؞hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjԞubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjОubj)}(hhh]jM)}(h)user-defined element-allocation function.h]h)user-defined element-allocation function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjОubeh}(h]h ]h"]h$]h&]uh1jhjhMhjZubj)}(hC``mempool_free_t *free_fn`` user-defined element-freeing function. h](j)}(h``mempool_free_t *free_fn``h]jS)}(hjh]hmempool_free_t *free_fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj ubj)}(hhh]jM)}(h&user-defined element-freeing function.h]h&user-defined element-freeing function.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjZubj)}(hS``void *pool_data`` optional private data available to the user-defined functions. h](j)}(h``void *pool_data``h]jS)}(hjHh]hvoid *pool_data}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjBubj)}(hhh]jM)}(h>optional private data available to the user-defined functions.h]h>optional private data available to the user-defined functions.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjZubeh}(h]h ]h"]h$]h&]uh1jhj>ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj>ubjM)}(hXLike mempool_create(), but initializes the pool in (i.e. embedded in another structure).h]hXLike mempool_create(), but initializes the pool in (i.e. embedded in another structure).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj>ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj>ubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjğhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h mempool_create_node (C function)c.mempool_create_nodehNtauh1hhjhhhNhNubh)}(hhh](h)}(hstruct mempool * mempool_create_node (int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data, gfp_t gfp_mask, int node_id)h]h)}(hstruct mempool *mempool_create_node(int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data, gfp_t gfp_mask, int node_id)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM(ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM(ubh)}(hhh]j)}(hmempoolh]hmempool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlmempool_create_nodesbc.mempool_create_nodeasbuh1hhjhhhj hM(ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM(ubjF )}(hjI h]h*}(hjKhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj hM(ubh)}(hmempool_create_nodeh]j)}(hj:h]hmempool_create_node}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hM(ubj )}(hn(int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data, gfp_t gfp_mask, int node_id)h](j )}(h int min_nrh](j)}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hmin_nrh]hmin_nr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubj )}(hmempool_alloc_t *alloc_fnh](h)}(hhh]j)}(hmempool_alloc_th]hmempool_alloc_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j8c.mempool_create_nodeasbuh1hhjubj)}(h h]h }(hj͠hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj۠hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(halloc_fnh]halloc_fn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubj )}(hmempool_free_t *free_fnh](h)}(hhh]j)}(hmempool_free_th]hmempool_free_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j8c.mempool_create_nodeasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfree_fnh]hfree_fn}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubj )}(hvoid *pool_datah](j)}(hvoidh]hvoid}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjF )}(hjI h]h*}(hjrhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjRubj)}(h pool_datah]h pool_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j8c.mempool_create_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hjǡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubj )}(h int node_idh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܡubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܡubj)}(hnode_idh]hnode_id}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܡubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj hM(ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj hM(ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hM(hjhhubj4)}(hhh]jM)}(hcreate a memory poolh]hcreate a memory pool}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM(hj#hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hM(ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj>jHj>jIjJjKuh1hhhhjhNhNubj)}(hXJ**Parameters** ``int min_nr`` the minimum number of elements guaranteed to be allocated for this pool. ``mempool_alloc_t *alloc_fn`` user-defined element-allocation function. ``mempool_free_t *free_fn`` user-defined element-freeing function. ``void *pool_data`` optional private data available to the user-defined functions. ``gfp_t gfp_mask`` memory allocation flags ``int node_id`` numa node to allocate on **Description** this function creates and allocates a guaranteed size, preallocated memory pool. The pool can be used from the mempool_alloc() and mempool_free() functions. This function might sleep. Both the alloc_fn() and the free_fn() functions might sleep - as long as the mempool_alloc() function is not called from IRQ contexts. **Return** pointer to the created memory pool object or ``NULL`` on error.h](jM)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM,hjBubj)}(hhh](j)}(hX``int min_nr`` the minimum number of elements guaranteed to be allocated for this pool. h](j)}(h``int min_nr``h]jS)}(hjgh]h int min_nr}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM*hjaubj)}(hhh]jM)}(hHthe minimum number of elements guaranteed to be allocated for this pool.h]hHthe minimum number of elements guaranteed to be allocated for this pool.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM)hj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hM*hj^ubj)}(hH``mempool_alloc_t *alloc_fn`` user-defined element-allocation function. h](j)}(h``mempool_alloc_t *alloc_fn``h]jS)}(hjh]hmempool_alloc_t *alloc_fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM+hjubj)}(hhh]jM)}(h)user-defined element-allocation function.h]h)user-defined element-allocation function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hj^ubj)}(hC``mempool_free_t *free_fn`` user-defined element-freeing function. h](j)}(h``mempool_free_t *free_fn``h]jS)}(hjڢh]hmempool_free_t *free_fn}(hjܢhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjآubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM,hjԢubj)}(hhh]jM)}(h&user-defined element-freeing function.h]h&user-defined element-freeing function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjԢubeh}(h]h ]h"]h$]h&]uh1jhjhM,hj^ubj)}(hS``void *pool_data`` optional private data available to the user-defined functions. h](j)}(h``void *pool_data``h]jS)}(hjh]hvoid *pool_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM-hj ubj)}(hhh]jM)}(h>optional private data available to the user-defined functions.h]h>optional private data available to the user-defined functions.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj(hM-hj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hM-hj^ubj)}(h+``gfp_t gfp_mask`` memory allocation flags h](j)}(h``gfp_t gfp_mask``h]jS)}(hjLh]hgfp_t gfp_mask}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM.hjFubj)}(hhh]jM)}(hmemory allocation flagsh]hmemory allocation flags}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahM.hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM.hj^ubj)}(h)``int node_id`` numa node to allocate on h](j)}(h``int node_id``h]jS)}(hjh]h int node_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM/hjubj)}(hhh]jM)}(hnuma node to allocate onh]hnuma node to allocate on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hj^ubeh}(h]h ]h"]h$]h&]uh1jhjBubjM)}(h**Description**h]j)}(hjh]h Description}(hj£hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM1hjBubjM)}(hX>this function creates and allocates a guaranteed size, preallocated memory pool. The pool can be used from the mempool_alloc() and mempool_free() functions. This function might sleep. Both the alloc_fn() and the free_fn() functions might sleep - as long as the mempool_alloc() function is not called from IRQ contexts.h]hX>this function creates and allocates a guaranteed size, preallocated memory pool. The pool can be used from the mempool_alloc() and mempool_free() functions. This function might sleep. Both the alloc_fn() and the free_fn() functions might sleep - as long as the mempool_alloc() function is not called from IRQ contexts.}(hj֣hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM0hjBubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM6hjBubjM)}(h?pointer to the created memory pool object or ``NULL`` on error.h](h-pointer to the created memory pool object or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM7hjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmempool_resize (C function)c.mempool_resizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h9int mempool_resize (struct mempool *pool, int new_min_nr)h]h)}(h8int mempool_resize(struct mempool *pool, int new_min_nr)h](j)}(hinth]hint}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMNubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjLhMNubh)}(hmempool_resizeh]j)}(hmempool_resizeh]hmempool_resize}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhjLhMNubj )}(h&(struct mempool *pool, int new_min_nr)h](j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hj{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]j)}(hmempoolh]hmempool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljasbc.mempool_resizeasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjF )}(hjI h]h*}(hjǤhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwubj)}(hpoolh]hpool}(hjԤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(hint new_min_nrh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h new_min_nrh]h new_min_nr}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubeh}(h]h ]h"]h$]h&]jjuh1j hj:hhhjLhMNubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6hhhjLhMNubah}(h]j1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjLhMNhj3hhubj4)}(hhh]jM)}(hresize an existing memory poolh]hresize an existing memory pool}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMNhj0hhubah}(h]h ]h"]h$]h&]uh1j3hj3hhhjLhMNubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjKjHjKjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct mempool *pool`` pointer to the memory pool which was allocated via mempool_create(). ``int new_min_nr`` the new minimum number of elements guaranteed to be allocated for this pool. **Description** This function shrinks/grows the pool. In the case of growing, it cannot be guaranteed that the pool will be grown to the new size immediately, but new mempool_free() calls will refill it. This function may sleep. Note, the caller must guarantee that no mempool_destroy is called while this function is running. mempool_alloc() & mempool_free() might be called (eg. from IRQ contexts) while this function executes. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMRhjOubj)}(hhh](j)}(h^``struct mempool *pool`` pointer to the memory pool which was allocated via mempool_create(). h](j)}(h``struct mempool *pool``h]jS)}(hjth]hstruct mempool *pool}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjrubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMPhjnubj)}(hhh]jM)}(hDpointer to the memory pool which was allocated via mempool_create().h]hDpointer to the memory pool which was allocated via mempool_create().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMOhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjkubj)}(h```int new_min_nr`` the new minimum number of elements guaranteed to be allocated for this pool. h](j)}(h``int new_min_nr``h]jS)}(hjh]hint new_min_nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMRhjubj)}(hhh]jM)}(hLthe new minimum number of elements guaranteed to be allocated for this pool.h]hLthe new minimum number of elements guaranteed to be allocated for this pool.}(hjǥhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMQhjĥubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjåhMRhjkubeh}(h]h ]h"]h$]h&]uh1jhjOubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMThjOubjM)}(hThis function shrinks/grows the pool. In the case of growing, it cannot be guaranteed that the pool will be grown to the new size immediately, but new mempool_free() calls will refill it. This function may sleep.h]hThis function shrinks/grows the pool. In the case of growing, it cannot be guaranteed that the pool will be grown to the new size immediately, but new mempool_free() calls will refill it. This function may sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMShjOubjM)}(hNote, the caller must guarantee that no mempool_destroy is called while this function is running. mempool_alloc() & mempool_free() might be called (eg. from IRQ contexts) while this function executes.h]hNote, the caller must guarantee that no mempool_destroy is called while this function is running. mempool_alloc() & mempool_free() might be called (eg. from IRQ contexts) while this function executes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMXhjOubjM)}(h **Return**h]j)}(hj h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM\hjOubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubh+ on success, negative error code otherwise.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM]hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmempool_alloc_bulk (C function)c.mempool_alloc_bulkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hOint mempool_alloc_bulk (struct mempool *pool, void **elems, unsigned int count)h]h)}(hNint mempool_alloc_bulk(struct mempool *pool, void **elems, unsigned int count)h](j)}(hinth]hint}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhMubh)}(hmempool_alloc_bulkh]j)}(hmempool_alloc_bulkh]hmempool_alloc_bulk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjohhhjhMubj )}(h8(struct mempool *pool, void **elems, unsigned int count)h](j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hmempoolh]hmempool}(hjΦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˦ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjЦmodnameN classnameNjpjs)}jv]jy)}jljsbc.mempool_alloc_bulkasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpoolh]hpool}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h void **elemsh](j)}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj>hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubjF )}(hjI h]h*}(hjKhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(helemsh]helems}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjohhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjkhhhjhMubah}(h]jfah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhhubj4)}(hhh]jM)}(h-allocate multiple elements from a memory poolh]h-allocate multiple elements from a memory pool}(hjӧhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjЧhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXN**Parameters** ``struct mempool *pool`` pointer to the memory pool ``void **elems`` partially or fully populated elements array ``unsigned int count`` number of entries in **elem** that need to be allocated **Description** Allocate **count** elements into **elems**. This is done by first calling into the alloc_fn supplied at pool initialization time, and dipping into the reserved pool when alloc_fn fails to allocate an element. On return all **count** elements in **elems** will be populated. **Return** Always 0. If it wasn't for %$#^$ alloc tags, it would return void.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh](j)}(h4``struct mempool *pool`` pointer to the memory pool h](j)}(h``struct mempool *pool``h]jS)}(hjh]hstruct mempool *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj ubj)}(h=``void **elems`` partially or fully populated elements array h](j)}(h``void **elems``h]jS)}(hjMh]h void **elems}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjGubj)}(hhh]jM)}(h+partially or fully populated elements arrayh]h+partially or fully populated elements array}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj ubj)}(hO``unsigned int count`` number of entries in **elem** that need to be allocated h](j)}(h``unsigned int count``h]jS)}(hjh]hunsigned int count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(h7number of entries in **elem** that need to be allocatedh](hnumber of entries in }(hjhhhNhNubj)}(h**elem**h]helem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh that need to be allocated}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjӨh]h Description}(hjըhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѨubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubjM)}(hAllocate **count** elements into **elems**. This is done by first calling into the alloc_fn supplied at pool initialization time, and dipping into the reserved pool when alloc_fn fails to allocate an element.h](h Allocate }(hjhhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh elements into }(hjhhhNhNubj)}(h **elems**h]helems}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. This is done by first calling into the alloc_fn supplied at pool initialization time, and dipping into the reserved pool when alloc_fn fails to allocate an element.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubjM)}(h@On return all **count** elements in **elems** will be populated.h](hOn return all }(hjhhhNhNubj)}(h **count**h]hcount}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh elements in }(hjhhhNhNubj)}(h **elems**h]helems}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh will be populated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubjM)}(h **Return**h]j)}(hjQh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubjM)}(hCAlways 0. If it wasn't for %$#^$ alloc tags, it would return void.h]hEAlways 0. If it wasn’t for %$#^$ alloc tags, it would return void.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmempool_alloc (C function)c.mempool_allochNtauh1hhjhhhNhNubh)}(hhh](h)}(h;void * mempool_alloc (struct mempool *pool, gfp_t gfp_mask)h]h)}(h9void *mempool_alloc(struct mempool *pool, gfp_t gfp_mask)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(h mempool_alloch]j)}(h mempool_alloch]h mempool_alloc}(hjĩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h&(struct mempool *pool, gfp_t gfp_mask)h](j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjܩubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܩubh)}(hhh]j)}(hmempoolh]hmempool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljƩsbc.mempool_allocasbuh1hhjܩubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܩubjF )}(hjI h]h*}(hj,hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjܩubj)}(hpoolh]hpool}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܩubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjةubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWmodnameN classnameNjpjs)}jv]jc.mempool_allocasbuh1hhjNubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjةubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h&allocate an element from a memory poolh]h&allocate an element from a memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjêjHjêjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct mempool *pool`` pointer to the memory pool ``gfp_t gfp_mask`` GFP_* flags. ``__GFP_ZERO`` is not supported. **Description** Allocate an element from **pool**. This is done by first calling into the alloc_fn supplied at pool initialization time, and dipping into the reserved pool when alloc_fn fails to allocate an element. This function only sleeps if the alloc_fn callback sleeps, or when waiting for elements to become available in the pool. **Return** pointer to the allocated element or ``NULL`` when failing to allocate an element. Allocation failure can only happen when **gfp_mask** does not include ``__GFP_DIRECT_RECLAIM``.h](jM)}(h**Parameters**h]j)}(hjͪh]h Parameters}(hjϪhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˪ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjǪubj)}(hhh](j)}(h4``struct mempool *pool`` pointer to the memory pool h](j)}(h``struct mempool *pool``h]jS)}(hjh]hstruct mempool *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``gfp_t gfp_mask`` GFP_* flags. ``__GFP_ZERO`` is not supported. h](j)}(h``gfp_t gfp_mask``h]jS)}(hj%h]hgfp_t gfp_mask}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(h.GFP_* flags. ``__GFP_ZERO`` is not supported.h](hGFP_* flags. }(hj>hhhNhNubjS)}(h``__GFP_ZERO``h]h __GFP_ZERO}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubh is not supported.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubeh}(h]h ]h"]h$]h&]uh1jhjǪubjM)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjǪubjM)}(hAllocate an element from **pool**. This is done by first calling into the alloc_fn supplied at pool initialization time, and dipping into the reserved pool when alloc_fn fails to allocate an element.h](hAllocate an element from }(hjhhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. This is done by first calling into the alloc_fn supplied at pool initialization time, and dipping into the reserved pool when alloc_fn fails to allocate an element.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjǪubjM)}(hxThis function only sleeps if the alloc_fn callback sleeps, or when waiting for elements to become available in the pool.h]hxThis function only sleeps if the alloc_fn callback sleeps, or when waiting for elements to become available in the pool.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjǪubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjǪubjM)}(hpointer to the allocated element or ``NULL`` when failing to allocate an element. Allocation failure can only happen when **gfp_mask** does not include ``__GFP_DIRECT_RECLAIM``.h](h$pointer to the allocated element or }(hjЫhhhNhNubjS)}(h``NULL``h]hNULL}(hjثhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjЫubhO when failing to allocate an element. Allocation failure can only happen when }(hjЫhhhNhNubj)}(h **gfp_mask**h]hgfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЫubh does not include }(hjЫhhhNhNubjS)}(h``__GFP_DIRECT_RECLAIM``h]h__GFP_DIRECT_RECLAIM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjЫubh.}(hjЫhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjǪubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'mempool_alloc_preallocated (C function)c.mempool_alloc_preallocatedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h8void * mempool_alloc_preallocated (struct mempool *pool)h]h)}(h6void *mempool_alloc_preallocated(struct mempool *pool)h](j)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMJubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjChMJubjF )}(hjI h]h*}(hjRhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1hhhjChMJubh)}(hmempool_alloc_preallocatedh]j)}(hmempool_alloc_preallocatedh]hmempool_alloc_preallocated}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj1hhhjChMJubj )}(h(struct mempool *pool)h]j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]j)}(hmempoolh]hmempool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljesbc.mempool_alloc_preallocatedasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjF )}(hjI h]h*}(hjˬhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj{ubj)}(hpoolh]hpool}(hjجhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjwubah}(h]h ]h"]h$]h&]jjuh1j hj1hhhjChMJubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj-hhhjChMJubah}(h]j(ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjChMJhj*hhubj4)}(hhh]jM)}(hIallocate an element from preallocated elements belonging to a memory poolh]hIallocate an element from preallocated elements belonging to a memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMJhjhhubah}(h]h ]h"]h$]h&]uh1j3hj*hhhjChMJubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct mempool *pool`` pointer to the memory pool **Description** This function is similar to mempool_alloc(), but it only attempts allocating an element from the preallocated elements. It only takes a single spinlock_t and immediately returns if no preallocated elements are available. **Return** pointer to the allocated element or ``NULL`` if no elements are available.h](jM)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMNhjubj)}(hhh]j)}(h4``struct mempool *pool`` pointer to the memory pool h](j)}(h``struct mempool *pool``h]jS)}(hjCh]hstruct mempool *pool}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMLhj=ubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXhMLhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMLhj:ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMNhjubjM)}(hThis function is similar to mempool_alloc(), but it only attempts allocating an element from the preallocated elements. It only takes a single spinlock_t and immediately returns if no preallocated elements are available.h]hThis function is similar to mempool_alloc(), but it only attempts allocating an element from the preallocated elements. It only takes a single spinlock_t and immediately returns if no preallocated elements are available.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMQhjubjM)}(hJpointer to the allocated element or ``NULL`` if no elements are available.h](h$pointer to the allocated element or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjíhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if no elements are available.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmempool_free_bulk (C function)c.mempool_free_bulkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hWunsigned int mempool_free_bulk (struct mempool *pool, void **elems, unsigned int count)h]h)}(hVunsigned int mempool_free_bulk(struct mempool *pool, void **elems, unsigned int count)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM_ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM_ubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM_ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM_ubh)}(hmempool_free_bulkh]j)}(hmempool_free_bulkh]hmempool_free_bulk}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hM_ubj )}(h8(struct mempool *pool, void **elems, unsigned int count)h](j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hjUhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j)}(hmempoolh]hmempool}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjumodnameN classnameNjpjs)}jv]jy)}jlj;sbc.mempool_free_bulkasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjQubj)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubj )}(h void **elemsh](j)}(hvoidh]hvoid}(hjǮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjîubj)}(h h]h }(hjծhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjîubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjîubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjîubj)}(helemsh]helems}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjîubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubj )}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcounth]hcount}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj hM_ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj hM_ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hM_hjhhubj4)}(hhh]jM)}(hreturn elements to a mempoolh]hreturn elements to a mempool}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM_hjuhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hM_ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXS**Parameters** ``struct mempool *pool`` pointer to the memory pool ``void **elems`` elements to return ``unsigned int count`` number of elements to return **Description** Returns a number of elements from the start of **elem** to **pool** if **pool** needs replenishing and sets their slots in **elem** to NULL. Other elements are left in **elem**. **Return** number of elements transferred to **pool**. Elements are always transferred from the beginning of **elem**, so the return value can be used as an offset into **elem** for the freeing the remaining elements in the caller.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMchjubj)}(hhh](j)}(h4``struct mempool *pool`` pointer to the memory pool h](j)}(h``struct mempool *pool``h]jS)}(hjh]hstruct mempool *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM`hjubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hjүhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjίhM`hjϯubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjίhM`hjubj)}(h$``void **elems`` elements to return h](j)}(h``void **elems``h]jS)}(hjh]h void **elems}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMahjubj)}(hhh]jM)}(helements to returnh]helements to return}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubj)}(h4``unsigned int count`` number of elements to return h](j)}(h``unsigned int count``h]jS)}(hj+h]hunsigned int count}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMbhj%ubj)}(hhh]jM)}(hnumber of elements to returnh]hnumber of elements to return}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@hMbhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMbhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMdhjubjM)}(hReturns a number of elements from the start of **elem** to **pool** if **pool** needs replenishing and sets their slots in **elem** to NULL. Other elements are left in **elem**.h](h/Returns a number of elements from the start of }(hj|hhhNhNubj)}(h**elem**h]helem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh to }(hj|hhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh if }(hj|hhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh, needs replenishing and sets their slots in }(hj|hhhNhNubj)}(h**elem**h]helem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh& to NULL. Other elements are left in }(hj|hhhNhNubj)}(h**elem**h]helem}(hj̰hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMchjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMghjubjM)}(hnumber of elements transferred to **pool**. Elements are always transferred from the beginning of **elem**, so the return value can be used as an offset into **elem** for the freeing the remaining elements in the caller.h](h"number of elements transferred to }(hjhhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh9. Elements are always transferred from the beginning of }(hjhhhNhNubj)}(h**elem**h]helem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh4, so the return value can be used as an offset into }(hjhhhNhNubj)}(h**elem**h]helem}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh6 for the freeing the remaining elements in the caller.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmempool_free (C function)c.mempool_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(h7void mempool_free (void *element, struct mempool *pool)h]h)}(h6void mempool_free(void *element, struct mempool *pool)h](j)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhjphMubh)}(h mempool_freeh]j)}(h mempool_freeh]h mempool_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj^hhhjphMubj )}(h%(void *element, struct mempool *pool)h](j )}(h void *elementh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(helementh]helement}(hjȱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjݱubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݱubh)}(hhh]j)}(hmempoolh]hmempool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.mempool_freeasbuh1hhjݱubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݱubjF )}(hjI h]h*}(hj-hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjݱubj)}(hpoolh]hpool}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݱubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj^hhhjphMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjZhhhjphMubah}(h]jUah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjphMhjWhhubj4)}(hhh]jM)}(hreturn an element to the pool.h]hreturn an element to the pool.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjahhubah}(h]h ]h"]h$]h&]uh1j3hjWhhhjphMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj|jHj|jIjJjKuh1hhhhjhNhNubj)}(hX)**Parameters** ``void *element`` element to return ``struct mempool *pool`` pointer to the memory pool **Description** Returns **element** to **pool** if it needs replenishing, else frees it using the free_fn callback in **pool**. This function only sleeps if the free_fn callback sleeps.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh](j)}(h$``void *element`` element to return h](j)}(h``void *element``h]jS)}(hjh]h void *element}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(helement to returnh]helement to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``struct mempool *pool`` pointer to the memory pool h](j)}(h``struct mempool *pool``h]jS)}(hj޲h]hstruct mempool *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjܲubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjزubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjزubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubjM)}(hoReturns **element** to **pool** if it needs replenishing, else frees it using the free_fn callback in **pool**.h](hReturns }(hj/hhhNhNubj)}(h **element**h]helement}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh to }(hj/hhhNhNubj)}(h**pool**h]hpool}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhG if it needs replenishing, else frees it using the free_fn callback in }(hj/hhhNhNubj)}(h**pool**h]hpool}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubjM)}(h9This function only sleeps if the free_fn callback sleeps.h]h9This function only sleeps if the free_fn callback sleeps.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] memory-poolsah ]h"] memory poolsah$]h&]uh1hhhhhhhhKYubh)}(hhh](h)}(h More Memory Management Functionsh]h More Memory Management Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK_ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"zap_special_vma_range (C function)c.zap_special_vma_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hbvoid zap_special_vma_range (struct vm_area_struct *vma, unsigned long address, unsigned long size)h]h)}(havoid zap_special_vma_range(struct vm_area_struct *vma, unsigned long address, unsigned long size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hj˳hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjʳhMubh)}(hzap_special_vma_rangeh]j)}(hzap_special_vma_rangeh]hzap_special_vma_range}(hjݳhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٳubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjʳhMubj )}(hG(struct vm_area_struct *vma, unsigned long address, unsigned long size)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj߳sbc.zap_special_vma_rangeasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjEhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjʴhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjشhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjʳhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjʳhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjʳhMhjhhubj4)}(hhh]jM)}(h1zap all page table entries in a special vma rangeh]h1zap all page table entries in a special vma range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjʳhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj6jHj6jIjJjKuh1hhhhjhNhNubj)}(hXj**Parameters** ``struct vm_area_struct *vma`` the vma covering the range to zap ``unsigned long address`` starting address of the range to zap ``unsigned long size`` number of bytes to zap **Description** This function does nothing when the provided address range is not fully contained in **vma**, or when the **vma** is not VM_PFNMAP or VM_MIXEDMAP.h](jM)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj:ubj)}(hhh](j)}(hA``struct vm_area_struct *vma`` the vma covering the range to zap h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj_h]hstruct vm_area_struct *vma}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj]ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjYubj)}(hhh]jM)}(h!the vma covering the range to zaph]h!the vma covering the range to zap}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjVubj)}(h?``unsigned long address`` starting address of the range to zap h](j)}(h``unsigned long address``h]jS)}(hjh]hunsigned long address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]jM)}(h$starting address of the range to zaph]h$starting address of the range to zap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubj)}(h.``unsigned long size`` number of bytes to zap h](j)}(h``unsigned long size``h]jS)}(hjѵh]hunsigned long size}(hjӵhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjϵubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj˵ubj)}(hhh]jM)}(hnumber of bytes to zaph]hnumber of bytes to zap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj˵ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubeh}(h]h ]h"]h$]h&]uh1jhj:ubjM)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj:ubjM)}(hThis function does nothing when the provided address range is not fully contained in **vma**, or when the **vma** is not VM_PFNMAP or VM_MIXEDMAP.h](hUThis function does nothing when the provided address range is not fully contained in }(hj"hhhNhNubj)}(h**vma**h]hvma}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh, or when the }(hj"hhhNhNubj)}(h**vma**h]hvma}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh! is not VM_PFNMAP or VM_MIXEDMAP.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_insert_pages (C function)c.vm_insert_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hmint vm_insert_pages (struct vm_area_struct *vma, unsigned long addr, struct page **pages, unsigned long *num)h]h)}(hlint vm_insert_pages(struct vm_area_struct *vma, unsigned long addr, struct page **pages, unsigned long *num)h](j)}(hinth]hint}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhM ubh)}(hvm_insert_pagesh]j)}(hvm_insert_pagesh]hvm_insert_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjqhhhjhM ubj )}(hY(struct vm_area_struct *vma, unsigned long addr, struct page **pages, unsigned long *num)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjжhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͶubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjҶmodnameN classnameNjpjs)}jv]jy)}jljsbc.vm_insert_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(haddrh]haddr}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hjuhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.vm_insert_pagesasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjqubjF )}(hjI h]h*}(hj̷hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjqubj)}(hpagesh]hpages}(hjٷhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long *numh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj*hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnumh]hnum}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjqhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjmhhhjhM ubah}(h]jhah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjjhhubj4)}(hhh]jM)}(h;insert multiple pages into user vma, batching the pmd lock.h]h;insert multiple pages into user vma, batching the pmd lock.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj^hhubah}(h]h ]h"]h$]h&]uh1j3hjjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjyjHjyjIjJjKuh1hhhhjhNhNubj)}(hXP**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``unsigned long addr`` target start user address of these pages ``struct page **pages`` source kernel pages ``unsigned long *num`` in: number of pages to map. out: number of pages that were *not* mapped. (0 means all pages were successfully mapped). **Description** Preferred over vm_insert_page() when inserting multiple pages. In case of error, we may have mapped a subset of the provided pages. It is the caller's responsibility to account for this case. The same restrictions apply as in vm_insert_page().h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj}ubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h@``unsigned long addr`` target start user address of these pages h](j)}(h``unsigned long addr``h]jS)}(hj۸h]hunsigned long addr}(hjݸhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjٸubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjոubj)}(hhh]jM)}(h(target start user address of these pagesh]h(target start user address of these pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjոubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h,``struct page **pages`` source kernel pages h](j)}(h``struct page **pages``h]jS)}(hjh]hstruct page **pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(hsource kernel pagesh]hsource kernel pages}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)hM hj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hM hjubj)}(h``unsigned long *num`` in: number of pages to map. out: number of pages that were *not* mapped. (0 means all pages were successfully mapped). h](j)}(h``unsigned long *num``h]jS)}(hjMh]hunsigned long *num}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjGubj)}(hhh]jM)}(hvin: number of pages to map. out: number of pages that were *not* mapped. (0 means all pages were successfully mapped).h](h;in: number of pages to map. out: number of pages that were }(hjfhhhNhNubj_)}(h*not*h]hnot}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjfubh6 mapped. (0 means all pages were successfully mapped).}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM hjubeh}(h]h ]h"]h$]h&]uh1jhj}ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj}ubjM)}(h>Preferred over vm_insert_page() when inserting multiple pages.h]h>Preferred over vm_insert_page() when inserting multiple pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj}ubjM)}(hIn case of error, we may have mapped a subset of the provided pages. It is the caller's responsibility to account for this case.h]hIn case of error, we may have mapped a subset of the provided pages. It is the caller’s responsibility to account for this case.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj}ubjM)}(h3The same restrictions apply as in vm_insert_page().h]h3The same restrictions apply as in vm_insert_page().}(hjϹhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_insert_page (C function)c.vm_insert_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hVint vm_insert_page (struct vm_area_struct *vma, unsigned long addr, struct page *page)h]h)}(hUint vm_insert_page(struct vm_area_struct *vma, unsigned long addr, struct page *page)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM ubh)}(hvm_insert_pageh]j)}(hvm_insert_pageh]hvm_insert_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hM ubj )}(hC(struct vm_area_struct *vma, unsigned long addr, struct page *page)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj;hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj[modnameN classnameNjpjs)}jv]jy)}jlj!sbc.vm_insert_pageasbuh1hhj7ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj7ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjɺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj׺hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]juc.vm_insert_pageasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjHhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj hM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hM hjhhubj4)}(hhh]jM)}(h insert single page into user vmah]h insert single page into user vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj|hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``unsigned long addr`` target user address of this page ``struct page *page`` source kernel page **Description** This allows drivers to insert individual pages they've allocated into a user vma. The zeropage is supported in some VMAs, see vm_mixed_zeropage_allowed(). The page has to be a nice clean _individual_ kernel allocation. If you allocate a compound page, you need to have marked it as such (__GFP_COMP), or manually just split the page up yourself (see split_page()). NOTE! Traditionally this was done with "remap_pfn_range()" which took an arbitrary page protection parameter. This doesn't allow that. Your vma protection will have to be set up correctly, which means that if you want a shared writable mapping, you'd better ask for a shared writable mapping! The page does not need to be reserved. Usually this function is called from f_op->mmap() handler under mm->mmap_lock write-lock, so it can change vma->vm_flags. Caller must set VM_MIXEDMAP on vma if it wants to call this function from other places, for example from page-fault handler. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hj»hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hjٻhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjջhM hjֻubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjջhM hjubj)}(h8``unsigned long addr`` target user address of this page h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(h target user address of this pageh]h target user address of this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h)``struct page *page`` source kernel page h](j)}(h``struct page *page``h]jS)}(hj2h]hstruct page *page}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj,ubj)}(hhh]jM)}(hsource kernel pageh]hsource kernel page}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhM hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hThis allows drivers to insert individual pages they've allocated into a user vma. The zeropage is supported in some VMAs, see vm_mixed_zeropage_allowed().h]hThis allows drivers to insert individual pages they’ve allocated into a user vma. The zeropage is supported in some VMAs, see vm_mixed_zeropage_allowed().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hThe page has to be a nice clean _individual_ kernel allocation. If you allocate a compound page, you need to have marked it as such (__GFP_COMP), or manually just split the page up yourself (see split_page()).h]hThe page has to be a nice clean _individual_ kernel allocation. If you allocate a compound page, you need to have marked it as such (__GFP_COMP), or manually just split the page up yourself (see split_page()).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hX$NOTE! Traditionally this was done with "remap_pfn_range()" which took an arbitrary page protection parameter. This doesn't allow that. Your vma protection will have to be set up correctly, which means that if you want a shared writable mapping, you'd better ask for a shared writable mapping!h]hX,NOTE! Traditionally this was done with “remap_pfn_range()” which took an arbitrary page protection parameter. This doesn’t allow that. Your vma protection will have to be set up correctly, which means that if you want a shared writable mapping, you’d better ask for a shared writable mapping!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h&The page does not need to be reserved.h]h&The page does not need to be reserved.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hUsually this function is called from f_op->mmap() handler under mm->mmap_lock write-lock, so it can change vma->vm_flags. Caller must set VM_MIXEDMAP on vma if it wants to call this function from other places, for example from page-fault handler.h]hUsually this function is called from f_op->mmap() handler under mm->mmap_lock write-lock, so it can change vma->vm_flags. Caller must set VM_MIXEDMAP on vma if it wants to call this function from other places, for example from page-fault handler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h **Return**h]j)}(hjмh]hReturn}(hjҼhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjμubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_map_pages (C function)c.vm_map_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hUint vm_map_pages (struct vm_area_struct *vma, struct page **pages, unsigned long num)h]h)}(hTint vm_map_pages(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j)}(hinth]hint}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMB ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj1hMB ubh)}(h vm_map_pagesh]j)}(h vm_map_pagesh]h vm_map_pages}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj1hMB ubj )}(hD(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj`hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljFsbc.vm_map_pagesasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj\ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjXubj )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hjҽhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjνubj)}(h h]h }(hj߽hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjνubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.vm_map_pagesasbuh1hhjνubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjνubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjνubjF )}(hjI h]h*}(hj)hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjνubj)}(hpagesh]hpages}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjνubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjXubj )}(hunsigned long numh](j)}(hunsignedh]hunsigned}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hlongh]hlong}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hnumh]hnum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjXubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj1hMB ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj1hMB ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj1hMB hjhhubj4)}(hhh]jM)}(h6maps range of kernel pages starts with non zero offseth]h6maps range of kernel pages starts with non zero offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMB hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj1hMB ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjɾjHjɾjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``struct page **pages`` pointer to array of source kernel pages ``unsigned long num`` number of pages in page array **Description** Maps an object consisting of **num** pages, catering for the user's requested vm_pgoff If we fail to insert any page into the vma, the function will return immediately leaving any previously inserted pages present. Callers from the mmap handler may immediately return the error as their caller will destroy the vma, removing any successfully inserted pages. Other callers should make their own arrangements for calling unmap_region(). **Context** Process context. Called by mmap handlers. **Return** 0 on success and error code otherwise.h](jM)}(h**Parameters**h]j)}(hjӾh]h Parameters}(hjվhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѾubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMF hj;ubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMC hjubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMC hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMC hjubj)}(h@``struct page **pages`` pointer to array of source kernel pages h](j)}(h``struct page **pages``h]jS)}(hj+h]hstruct page **pages}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMD hj%ubj)}(hhh]jM)}(h'pointer to array of source kernel pagesh]h'pointer to array of source kernel pages}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@hMD hjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMD hjubj)}(h4``unsigned long num`` number of pages in page array h](j)}(h``unsigned long num``h]jS)}(hjdh]hunsigned long num}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chME hj^ubj)}(hhh]jM)}(hnumber of pages in page arrayh]hnumber of pages in page array}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjyhME hjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhME hjubeh}(h]h ]h"]h$]h&]uh1jhj;ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMG hj;ubjM)}(hVMaps an object consisting of **num** pages, catering for the user's requested vm_pgoffh](hMaps an object consisting of }(hjhhhNhNubj)}(h**num**h]hnum}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh4 pages, catering for the user’s requested vm_pgoff}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMF hj;ubjM)}(hX\If we fail to insert any page into the vma, the function will return immediately leaving any previously inserted pages present. Callers from the mmap handler may immediately return the error as their caller will destroy the vma, removing any successfully inserted pages. Other callers should make their own arrangements for calling unmap_region().h]hX\If we fail to insert any page into the vma, the function will return immediately leaving any previously inserted pages present. Callers from the mmap handler may immediately return the error as their caller will destroy the vma, removing any successfully inserted pages. Other callers should make their own arrangements for calling unmap_region().}(hjֿhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMI hj;ubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMO hj;ubjM)}(h)Process context. Called by mmap handlers.h]h)Process context. Called by mmap handlers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMP hj;ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMR hj;ubjM)}(h&0 on success and error code otherwise.h]h&0 on success and error code otherwise.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMQ hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_map_pages_zero (C function)c.vm_map_pages_zerohNtauh1hhjhhhNhNubh)}(hhh](h)}(hZint vm_map_pages_zero (struct vm_area_struct *vma, struct page **pages, unsigned long num)h]h)}(hYint vm_map_pages_zero(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j)}(hinth]hint}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM[ ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjahM[ ubh)}(hvm_map_pages_zeroh]j)}(hvm_map_pages_zeroh]hvm_map_pages_zero}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1hhjOhhhjahM[ ubj )}(hD(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljvsbc.vm_map_pages_zeroasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj"modnameN classnameNjpjs)}jv]jc.vm_map_pages_zeroasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjLhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubjF )}(hjI h]h*}(hjYhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpagesh]hpages}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long numh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hnumh]hnum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjOhhhjahM[ ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjKhhhjahM[ ubah}(h]jFah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjahM[ hjHhhubj4)}(hhh]jM)}(h1map range of kernel pages starts with zero offseth]h1map range of kernel pages starts with zero offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM[ hjhhubah}(h]h ]h"]h$]h&]uh1j3hjHhhhjahM[ ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``struct page **pages`` pointer to array of source kernel pages ``unsigned long num`` number of pages in page array **Description** Similar to vm_map_pages(), except that it explicitly sets the offset to 0. This function is intended for the drivers that did not consider vm_pgoff. **Context** Process context. Called by mmap handlers. **Return** 0 on success and error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM_ hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj"h]hstruct vm_area_struct *vma}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM\ hjubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7hM\ hj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hM\ hjubj)}(h@``struct page **pages`` pointer to array of source kernel pages h](j)}(h``struct page **pages``h]jS)}(hj[h]hstruct page **pages}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM] hjUubj)}(hhh]jM)}(h'pointer to array of source kernel pagesh]h'pointer to array of source kernel pages}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphM] hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphM] hjubj)}(h4``unsigned long num`` number of pages in page array h](j)}(h``unsigned long num``h]jS)}(hjh]hunsigned long num}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM^ hjubj)}(hhh]jM)}(hnumber of pages in page arrayh]hnumber of pages in page array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM^ hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM^ hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM` hjubjM)}(hSimilar to vm_map_pages(), except that it explicitly sets the offset to 0. This function is intended for the drivers that did not consider vm_pgoff.h]hSimilar to vm_map_pages(), except that it explicitly sets the offset to 0. This function is intended for the drivers that did not consider vm_pgoff.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM_ hjubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMc hjubjM)}(h)Process context. Called by mmap handlers.h]h)Process context. Called by mmap handlers.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMd hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMf hjubjM)}(h&0 on success and error code otherwise.h]h&0 on success and error code otherwise.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMe hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h vmf_insert_pfn_prot (C function)c.vmf_insert_pfn_prothNtauh1hhjhhhNhNubh)}(hhh](h)}(hsvm_fault_t vmf_insert_pfn_prot (struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, pgprot_t pgprot)h]h)}(hrvm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, pgprot_t pgprot)h](h)}(hhh]j)}(h vm_fault_th]h vm_fault_t}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjgmodnameN classnameNjpjs)}jv]jy)}jlvmf_insert_pfn_protsbc.vmf_insert_pfn_protasbuh1hhj^hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhjhM ubh)}(hvmf_insert_pfn_proth]j)}(hjh]hvmf_insert_pfn_prot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj^hhhjhM ubj )}(hT(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, pgprot_t pgprot)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.vmf_insert_pfn_protasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(haddrh]haddr}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hpgprot_t pgproth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.vmf_insert_pfn_protasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpgproth]hpgprot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj^hhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjZhhhjhM ubah}(h]jUah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjWhhubj4)}(hhh]jM)}(h5insert single pfn into user vma with specified pgproth]h5insert single pfn into user vma with specified pgprot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjWhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj7jHj7jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``unsigned long addr`` target user address of this page ``unsigned long pfn`` source kernel pfn ``pgprot_t pgprot`` pgprot flags for the inserted page **Description** This is exactly like vmf_insert_pfn(), except that it allows drivers to override pgprot on a per-page basis. This only makes sense for IO mappings, and it makes no sense for COW mappings. In general, using multiple vmas is preferable; vmf_insert_pfn_prot should only be used if using multiple VMAs is impractical. pgprot typically only differs from **vma->vm_page_prot** when drivers set caching- and encryption bits different than those of **vma->vm_page_prot**, because the caching- or encryption mode may not be known at mmap() time. This is ok as long as **vma->vm_page_prot** is not used by the core vm to set caching and encryption bits for those vmas (except for COW pages). This is ensured by core vm only modifying these page table entries using functions that don't touch caching- or encryption bits, using pte_modify() if needed. (See for example mprotect()). Also when new page-table entries are created, this is only done using the fault() callback, and never using the value of vma->vm_page_prot, except for page-table entries that point to anonymous pages as the result of COW. **Context** Process context. May allocate using ``GFP_KERNEL``. **Return** vm_fault_t value.h](jM)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj;ubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj`h]hstruct vm_area_struct *vma}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjZubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuhM hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhM hjWubj)}(h8``unsigned long addr`` target user address of this page h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(h target user address of this pageh]h target user address of this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjWubj)}(h(``unsigned long pfn`` source kernel pfn h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(hsource kernel pfnh]hsource kernel pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjWubj)}(h7``pgprot_t pgprot`` pgprot flags for the inserted page h](j)}(h``pgprot_t pgprot``h]jS)}(hj h]hpgprot_t pgprot}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(h"pgprot flags for the inserted pageh]h"pgprot flags for the inserted page}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM hj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubjM)}(h**Description**h]j)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj;ubjM)}(hlThis is exactly like vmf_insert_pfn(), except that it allows drivers to override pgprot on a per-page basis.h]hlThis is exactly like vmf_insert_pfn(), except that it allows drivers to override pgprot on a per-page basis.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj;ubjM)}(hThis only makes sense for IO mappings, and it makes no sense for COW mappings. In general, using multiple vmas is preferable; vmf_insert_pfn_prot should only be used if using multiple VMAs is impractical.h]hThis only makes sense for IO mappings, and it makes no sense for COW mappings. In general, using multiple vmas is preferable; vmf_insert_pfn_prot should only be used if using multiple VMAs is impractical.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj;ubjM)}(hpgprot typically only differs from **vma->vm_page_prot** when drivers set caching- and encryption bits different than those of **vma->vm_page_prot**, because the caching- or encryption mode may not be known at mmap() time.h](h#pgprot typically only differs from }(hjzhhhNhNubj)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubhG when drivers set caching- and encryption bits different than those of }(hjzhhhNhNubj)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubhJ, because the caching- or encryption mode may not be known at mmap() time.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj;ubjM)}(hXMThis is ok as long as **vma->vm_page_prot** is not used by the core vm to set caching and encryption bits for those vmas (except for COW pages). This is ensured by core vm only modifying these page table entries using functions that don't touch caching- or encryption bits, using pte_modify() if needed. (See for example mprotect()).h](hThis is ok as long as }(hjhhhNhNubj)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX$ is not used by the core vm to set caching and encryption bits for those vmas (except for COW pages). This is ensured by core vm only modifying these page table entries using functions that don’t touch caching- or encryption bits, using pte_modify() if needed. (See for example mprotect()).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj;ubjM)}(hAlso when new page-table entries are created, this is only done using the fault() callback, and never using the value of vma->vm_page_prot, except for page-table entries that point to anonymous pages as the result of COW.h]hAlso when new page-table entries are created, this is only done using the fault() callback, and never using the value of vma->vm_page_prot, except for page-table entries that point to anonymous pages as the result of COW.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj;ubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj;ubjM)}(h4Process context. May allocate using ``GFP_KERNEL``.h](h%Process context. May allocate using }(hjhhhNhNubjS)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj;ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj;ubjM)}(hvm_fault_t value.h]hvm_fault_t value.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmf_insert_pfn (C function)c.vmf_insert_pfnhNtauh1hhjhhhNhNubh)}(hhh](h)}(h]vm_fault_t vmf_insert_pfn (struct vm_area_struct *vma, unsigned long addr, unsigned long pfn)h]h)}(h\vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn)h](h)}(hhh]j)}(h vm_fault_th]h vm_fault_t}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbmodnameN classnameNjpjs)}jv]jy)}jlvmf_insert_pfnsbc.vmf_insert_pfnasbuh1hhjYhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjhM ubh)}(hvmf_insert_pfnh]j)}(hj~h]hvmf_insert_pfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjYhhhjhM ubj )}(hC(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j|c.vmf_insert_pfnasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjYhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjUhhhjhM ubah}(h]jPah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjRhhubj4)}(hhh]jM)}(hinsert single pfn into user vmah]hinsert single pfn into user vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjRhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``unsigned long addr`` target user address of this page ``unsigned long pfn`` source kernel pfn **Description** Similar to vm_insert_page, this allows drivers to insert individual pages they've allocated into a user vma. Same comments apply. This function should only be called from a vm_ops->fault handler, and in that case the handler should return the result of this function. vma cannot be a COW mapping. As this is called only for pages that do not currently exist, we do not need to flush old virtual caches or the TLB. **Context** Process context. May allocate using ``GFP_KERNEL``. **Return** vm_fault_t value.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj ubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj(hM hj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hM hj ubj)}(h8``unsigned long addr`` target user address of this page h](j)}(h``unsigned long addr``h]jS)}(hjLh]hunsigned long addr}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjFubj)}(hhh]jM)}(h target user address of this pageh]h target user address of this page}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahM hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM hj ubj)}(h(``unsigned long pfn`` source kernel pfn h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(hsource kernel pfnh]hsource kernel pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hSimilar to vm_insert_page, this allows drivers to insert individual pages they've allocated into a user vma. Same comments apply.h]hSimilar to vm_insert_page, this allows drivers to insert individual pages they’ve allocated into a user vma. Same comments apply.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hThis function should only be called from a vm_ops->fault handler, and in that case the handler should return the result of this function.h]hThis function should only be called from a vm_ops->fault handler, and in that case the handler should return the result of this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hvma cannot be a COW mapping.h]hvma cannot be a COW mapping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(htAs this is called only for pages that do not currently exist, we do not need to flush old virtual caches or the TLB.h]htAs this is called only for pages that do not currently exist, we do not need to flush old virtual caches or the TLB.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h4Process context. May allocate using ``GFP_KERNEL``.h](h%Process context. May allocate using }(hj*hhhNhNubjS)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubh.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h **Return**h]j)}(hjMh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hvm_fault_t value.h]hvm_fault_t value.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hremap_pfn_range (C function)c.remap_pfn_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hzint remap_pfn_range (struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot)h]h)}(hyint remap_pfn_range(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMw ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMw ubh)}(hremap_pfn_rangeh]j)}(hremap_pfn_rangeh]hremap_pfn_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMw ubj )}(hf(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.remap_pfn_rangeasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hlongh]hlong}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(haddrh]haddr}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgprot_t proth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj9modnameN classnameNjpjs)}jv]j c.remap_pfn_rangeasbuh1hhj0ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hproth]hprot}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMw ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMw ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMw hjhhubj4)}(hhh]jM)}(h remap kernel memory to userspaceh]h remap kernel memory to userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMw hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMw ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``unsigned long addr`` target page aligned user address to start at ``unsigned long pfn`` page frame number of kernel physical memory address ``unsigned long size`` size of mapping area ``pgprot_t prot`` page protection flags for this mapping **Note** this is only safe if the mm semaphore is held when called. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM{ hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMx hjubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMx hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMx hjubj)}(hD``unsigned long addr`` target page aligned user address to start at h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMy hjubj)}(hhh]jM)}(h,target page aligned user address to start ath]h,target page aligned user address to start at}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMy hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMy hjubj)}(hJ``unsigned long pfn`` page frame number of kernel physical memory address h](j)}(h``unsigned long pfn``h]jS)}(hj@h]hunsigned long pfn}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMz hj:ubj)}(hhh]jM)}(h3page frame number of kernel physical memory addressh]h3page frame number of kernel physical memory address}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhMz hjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMz hjubj)}(h,``unsigned long size`` size of mapping area h](j)}(h``unsigned long size``h]jS)}(hjyh]hunsigned long size}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM{ hjsubj)}(hhh]jM)}(hsize of mapping areah]hsize of mapping area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM{ hjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhM{ hjubj)}(h9``pgprot_t prot`` page protection flags for this mapping h](j)}(h``pgprot_t prot``h]jS)}(hjh]h pgprot_t prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM| hjubj)}(hhh]jM)}(h&page protection flags for this mappingh]h&page protection flags for this mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM| hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM| hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM~ hjubjM)}(h:this is only safe if the mm semaphore is held when called.h]h:this is only safe if the mm semaphore is held when called.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM~ hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubh+ on success, negative error code otherwise.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_iomap_memory (C function)c.vm_iomap_memoryhNtauh1hhjhhhNhNubh)}(hhh](h)}(hVint vm_iomap_memory (struct vm_area_struct *vma, phys_addr_t start, unsigned long len)h]h)}(hUint vm_iomap_memory(struct vm_area_struct *vma, phys_addr_t start, unsigned long len)h](j)}(hinth]hint}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjuhM ubh)}(hvm_iomap_memoryh]j)}(hvm_iomap_memoryh]hvm_iomap_memory}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjchhhjuhM ubj )}(hB(struct vm_area_struct *vma, phys_addr_t start, unsigned long len)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.vm_iomap_memoryasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hphys_addr_t starth](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.vm_iomap_memoryasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hlongh]hlong}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjchhhjuhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj_hhhjuhM ubah}(h]jZah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjuhM hj\hhubj4)}(hhh]jM)}(hremap memory to userspaceh]hremap memory to userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hj\hhhjuhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX.**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``phys_addr_t start`` start of the physical memory to be mapped ``unsigned long len`` size of area **Description** This is a simplified io_remap_pfn_range() for common driver use. The driver just needs to give us the physical memory range to be mapped, we'll figure out the rest from the vma information. NOTE! Some drivers might want to tweak vma->vm_page_prot first to get whatever write-combining details or similar. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h@``phys_addr_t start`` start of the physical memory to be mapped h](j)}(h``phys_addr_t start``h]jS)}(hj:h]hphys_addr_t start}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj4ubj)}(hhh]jM)}(h)start of the physical memory to be mappedh]h)start of the physical memory to be mapped}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjOhM hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hjubj)}(h#``unsigned long len`` size of area h](j)}(h``unsigned long len``h]jS)}(hjsh]hunsigned long len}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjqubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjmubj)}(hhh]jM)}(h size of areah]h size of area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hThis is a simplified io_remap_pfn_range() for common driver use. The driver just needs to give us the physical memory range to be mapped, we'll figure out the rest from the vma information.h]hThis is a simplified io_remap_pfn_range() for common driver use. The driver just needs to give us the physical memory range to be mapped, we’ll figure out the rest from the vma information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hrNOTE! Some drivers might want to tweak vma->vm_page_prot first to get whatever write-combining details or similar.h]hrNOTE! Some drivers might want to tweak vma->vm_page_prot first to get whatever write-combining details or similar.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h unmap_mapping_pages (C function)c.unmap_mapping_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hcvoid unmap_mapping_pages (struct address_space *mapping, pgoff_t start, pgoff_t nr, bool even_cows)h]h)}(hbvoid unmap_mapping_pages(struct address_space *mapping, pgoff_t start, pgoff_t nr, bool even_cows)h](j)}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM,ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhjEhM,ubh)}(hunmap_mapping_pagesh]j)}(hunmap_mapping_pagesh]hunmap_mapping_pages}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1hhj3hhhjEhM,ubj )}(hJ(struct address_space *mapping, pgoff_t start, pgoff_t nr, bool even_cows)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjthhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljZsbc.unmap_mapping_pagesasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjpubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubj )}(h pgoff_t starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.unmap_mapping_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubj )}(h pgoff_t nrh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3modnameN classnameNjpjs)}jv]jc.unmap_mapping_pagesasbuh1hhj*ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hnrh]hnr}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubj )}(hbool even_cowsh](j)}(hj.h]hbool}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h even_cowsh]h even_cows}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubeh}(h]h ]h"]h$]h&]jjuh1j hj3hhhjEhM,ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj/hhhjEhM,ubah}(h]j*ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjEhM,hj,hhubj4)}(hhh]jM)}(hUnmap pages from processes.h]hUnmap pages from processes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM,hjhhubah}(h]h ]h"]h$]h&]uh1j3hj,hhhjEhM,ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX **Parameters** ``struct address_space *mapping`` The address space containing pages to be unmapped. ``pgoff_t start`` Index of first page to be unmapped. ``pgoff_t nr`` Number of pages to be unmapped. 0 to unmap to end of file. ``bool even_cows`` Whether to unmap even private COWed pages. **Description** Unmap the pages in this address space from any userspace process which has them mmaped. Generally, you want to remove COWed pages as well when a file is being truncated, but not when invalidating pages from the page cache.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM0hjubj)}(hhh](j)}(hU``struct address_space *mapping`` The address space containing pages to be unmapped. h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM-hjubj)}(hhh]jM)}(h2The address space containing pages to be unmapped.h]h2The address space containing pages to be unmapped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(h6``pgoff_t start`` Index of first page to be unmapped. h](j)}(h``pgoff_t start``h]jS)}(hj5h]h pgoff_t start}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM.hj/ubj)}(hhh]jM)}(h#Index of first page to be unmapped.h]h#Index of first page to be unmapped.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhM.hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM.hjubj)}(hK``pgoff_t nr`` Number of pages to be unmapped. 0 to unmap to end of file. h](j)}(h``pgoff_t nr``h]jS)}(hjnh]h pgoff_t nr}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM/hjhubj)}(hhh]jM)}(h;Number of pages to be unmapped. 0 to unmap to end of file.h]h;Number of pages to be unmapped. 0 to unmap to end of file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjubj)}(h>``bool even_cows`` Whether to unmap even private COWed pages. h](j)}(h``bool even_cows``h]jS)}(hjh]hbool even_cows}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM0hjubj)}(hhh]jM)}(h*Whether to unmap even private COWed pages.h]h*Whether to unmap even private COWed pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM2hjubjM)}(hUnmap the pages in this address space from any userspace process which has them mmaped. Generally, you want to remove COWed pages as well when a file is being truncated, but not when invalidating pages from the page cache.h]hUnmap the pages in this address space from any userspace process which has them mmaped. Generally, you want to remove COWed pages as well when a file is being truncated, but not when invalidating pages from the page cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h unmap_mapping_range (C function)c.unmap_mapping_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(huvoid unmap_mapping_range (struct address_space *mapping, loff_t const holebegin, loff_t const holelen, int even_cows)h]h)}(htvoid unmap_mapping_range(struct address_space *mapping, loff_t const holebegin, loff_t const holelen, int even_cows)h](j)}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMKubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj5hMKubh)}(hunmap_mapping_rangeh]j)}(hunmap_mapping_rangeh]hunmap_mapping_range}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1hhj#hhhj5hMKubj )}(h\(struct address_space *mapping, loff_t const holebegin, loff_t const holelen, int even_cows)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjdhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljJsbc.unmap_mapping_rangeasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj`ubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubj )}(hloff_t const holebeginh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.unmap_mapping_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h holebeginh]h holebegin}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubj )}(hloff_t const holelenh](h)}(hhh]j)}(hloff_th]hloff_t}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj>modnameN classnameNjpjs)}jv]jc.unmap_mapping_rangeasbuh1hhj5ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj5)}(hjh]hconst}(hjhhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hholelenh]hholelen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubj )}(h int even_cowsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h even_cowsh]h even_cows}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubeh}(h]h ]h"]h$]h&]jjuh1j hj#hhhj5hMKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj5hMKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj5hMKhjhhubj4)}(hhh]jM)}(hunmap the portion of all mmaps in the specified address_space corresponding to the specified byte range in the underlying file.h]hunmap the portion of all mmaps in the specified address_space corresponding to the specified byte range in the underlying file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj5hMKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` the address space containing mmaps to be unmapped. ``loff_t const holebegin`` byte in first page to unmap, relative to the start of the underlying file. This will be rounded down to a PAGE_SIZE boundary. Note that this is different from truncate_pagecache(), which must keep the partial page. In contrast, we must get rid of partial pages. ``loff_t const holelen`` size of prospective hole in bytes. This will be rounded up to a PAGE_SIZE boundary. A holelen of zero truncates to the end of the file. ``int even_cows`` 1 when truncating a file, unmap even private COWed pages; but 0 when invalidating pagecache, don't throw away private data.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMOhjubj)}(hhh](j)}(hU``struct address_space *mapping`` the address space containing mmaps to be unmapped. h](j)}(h!``struct address_space *mapping``h]jS)}(hj#h]hstruct address_space *mapping}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMOhjubj)}(hhh]jM)}(h2the address space containing mmaps to be unmapped.h]h2the address space containing mmaps to be unmapped.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hMOhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMOhjubj)}(hX$``loff_t const holebegin`` byte in first page to unmap, relative to the start of the underlying file. This will be rounded down to a PAGE_SIZE boundary. Note that this is different from truncate_pagecache(), which must keep the partial page. In contrast, we must get rid of partial pages. h](j)}(h``loff_t const holebegin``h]jS)}(hj\h]hloff_t const holebegin}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMThjVubj)}(hhh]jM)}(hXbyte in first page to unmap, relative to the start of the underlying file. This will be rounded down to a PAGE_SIZE boundary. Note that this is different from truncate_pagecache(), which must keep the partial page. In contrast, we must get rid of partial pages.h]hXbyte in first page to unmap, relative to the start of the underlying file. This will be rounded down to a PAGE_SIZE boundary. Note that this is different from truncate_pagecache(), which must keep the partial page. In contrast, we must get rid of partial pages.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMPhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMThjubj)}(h``loff_t const holelen`` size of prospective hole in bytes. This will be rounded up to a PAGE_SIZE boundary. A holelen of zero truncates to the end of the file. h](j)}(h``loff_t const holelen``h]jS)}(hjh]hloff_t const holelen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMWhjubj)}(hhh]jM)}(hsize of prospective hole in bytes. This will be rounded up to a PAGE_SIZE boundary. A holelen of zero truncates to the end of the file.h]hsize of prospective hole in bytes. This will be rounded up to a PAGE_SIZE boundary. A holelen of zero truncates to the end of the file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjubj)}(h``int even_cows`` 1 when truncating a file, unmap even private COWed pages; but 0 when invalidating pagecache, don't throw away private data.h](j)}(h``int even_cows``h]jS)}(hjh]h int even_cows}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMXhjubj)}(hhh]jM)}(h{1 when truncating a file, unmap even private COWed pages; but 0 when invalidating pagecache, don't throw away private data.h]h}1 when truncating a file, unmap even private COWed pages; but 0 when invalidating pagecache, don’t throw away private data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMXhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h follow_pfnmap_start (C function)c.follow_pfnmap_starthNtauh1hhjhhhNhNubh)}(hhh](h)}(h9int follow_pfnmap_start (struct follow_pfnmap_args *args)h]h)}(h8int follow_pfnmap_start(struct follow_pfnmap_args *args)h](j)}(hinth]hint}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj7hMubh)}(hfollow_pfnmap_starth]j)}(hfollow_pfnmap_starth]hfollow_pfnmap_start}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1hhj%hhhj7hMubj )}(h!(struct follow_pfnmap_args *args)h]j )}(hstruct follow_pfnmap_args *argsh](j5)}(hj8h]hstruct}(hjfhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j)}(hfollow_pfnmap_argsh]hfollow_pfnmap_args}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljLsbc.follow_pfnmap_startasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjbubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj^ubah}(h]h ]h"]h$]h&]jjuh1j hj%hhhj7hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj!hhhj7hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj7hMhjhhubj4)}(hhh]jM)}(h/Look up a pfn mapping at a user virtual addressh]h/Look up a pfn mapping at a user virtual address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj7hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct follow_pfnmap_args *args`` Pointer to struct **follow_pfnmap_args** **Description** The caller needs to setup args->vma and args->address to point to the virtual address as the target of such lookup. On a successful return, the results will be put into other output fields. After the caller finished using the fields, the caller must invoke another follow_pfnmap_end() to proper releases the locks and resources of such look up request. During the start() and end() calls, the results in **args** will be valid as proper locks will be held. After the end() is called, all the fields in **follow_pfnmap_args** will be invalid to be further accessed. Further use of such information after end() may require proper synchronizations by the caller with page table updates, otherwise it can create a security bug. If the PTE maps a refcounted page, callers are responsible to protect against invalidation with MMU notifiers; otherwise access to the PFN at a later point in time can trigger use-after-free. Only IO mappings and raw PFN mappings are allowed. The mmap semaphore should be taken for read, and the mmap semaphore cannot be released before the end() is invoked. This function must not be used to modify PTE content. **Return** zero on success, negative otherwise.h](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j)}(hM``struct follow_pfnmap_args *args`` Pointer to struct **follow_pfnmap_args** h](j)}(h#``struct follow_pfnmap_args *args``h]jS)}(hj*h]hstruct follow_pfnmap_args *args}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj$ubj)}(hhh]jM)}(h(Pointer to struct **follow_pfnmap_args**h](hPointer to struct }(hjChhhNhNubj)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jLhj?hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(hThe caller needs to setup args->vma and args->address to point to the virtual address as the target of such lookup. On a successful return, the results will be put into other output fields.h]hThe caller needs to setup args->vma and args->address to point to the virtual address as the target of such lookup. On a successful return, the results will be put into other output fields.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(hAfter the caller finished using the fields, the caller must invoke another follow_pfnmap_end() to proper releases the locks and resources of such look up request.h]hAfter the caller finished using the fields, the caller must invoke another follow_pfnmap_end() to proper releases the locks and resources of such look up request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(hXtDuring the start() and end() calls, the results in **args** will be valid as proper locks will be held. After the end() is called, all the fields in **follow_pfnmap_args** will be invalid to be further accessed. Further use of such information after end() may require proper synchronizations by the caller with page table updates, otherwise it can create a security bug.h](h3During the start() and end() calls, the results in }(hjhhhNhNubj)}(h**args**h]hargs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh[ will be valid as proper locks will be held. After the end() is called, all the fields in }(hjhhhNhNubj)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh will be invalid to be further accessed. Further use of such information after end() may require proper synchronizations by the caller with page table updates, otherwise it can create a security bug.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(hIf the PTE maps a refcounted page, callers are responsible to protect against invalidation with MMU notifiers; otherwise access to the PFN at a later point in time can trigger use-after-free.h]hIf the PTE maps a refcounted page, callers are responsible to protect against invalidation with MMU notifiers; otherwise access to the PFN at a later point in time can trigger use-after-free.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(hOnly IO mappings and raw PFN mappings are allowed. The mmap semaphore should be taken for read, and the mmap semaphore cannot be released before the end() is invoked.h]hOnly IO mappings and raw PFN mappings are allowed. The mmap semaphore should be taken for read, and the mmap semaphore cannot be released before the end() is invoked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(h5This function must not be used to modify PTE content.h]h5This function must not be used to modify PTE content.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(h$zero on success, negative otherwise.h]h$zero on success, negative otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfollow_pfnmap_end (C function)c.follow_pfnmap_endhNtauh1hhjhhhNhNubh)}(hhh](h)}(h8void follow_pfnmap_end (struct follow_pfnmap_args *args)h]h)}(h7void follow_pfnmap_end(struct follow_pfnmap_args *args)h](j)}(hvoidh]hvoid}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhj\hMubh)}(hfollow_pfnmap_endh]j)}(hfollow_pfnmap_endh]hfollow_pfnmap_end}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1hhjJhhhj\hMubj )}(h!(struct follow_pfnmap_args *args)h]j )}(hstruct follow_pfnmap_args *argsh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfollow_pfnmap_argsh]hfollow_pfnmap_args}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljqsbc.follow_pfnmap_endasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjJhhhj\hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjFhhhj\hMubah}(h]jAah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj\hMhjChhubj4)}(hhh]jM)}(h#End a follow_pfnmap_start() processh]h#End a follow_pfnmap_start() process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj hhubah}(h]h ]h"]h$]h&]uh1j3hjChhhj\hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj&jHj&jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct follow_pfnmap_args *args`` Pointer to struct **follow_pfnmap_args** **Description** Must be used in pair of follow_pfnmap_start(). See the start() function above for more information.h](jM)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj*ubj)}(hhh]j)}(hM``struct follow_pfnmap_args *args`` Pointer to struct **follow_pfnmap_args** h](j)}(h#``struct follow_pfnmap_args *args``h]jS)}(hjOh]hstruct follow_pfnmap_args *args}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjIubj)}(hhh]jM)}(h(Pointer to struct **follow_pfnmap_args**h](hPointer to struct }(hjhhhhNhNubj)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jLhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj*ubjM)}(hdMust be used in pair of follow_pfnmap_start(). See the start() function above for more information.h]hdMust be used in pair of follow_pfnmap_start(). See the start() function above for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h generic_access_phys (C function)c.generic_access_physhNtauh1hhjhhhNhNubh)}(hhh](h)}(hgint generic_access_phys (struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write)h]h)}(hfint generic_access_phys(struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM+ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM+ubh)}(hgeneric_access_physh]j)}(hgeneric_access_physh]hgeneric_access_phys}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM+ubj )}(hO(struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj:modnameN classnameNjpjs)}jv]jy)}jljsbc.generic_access_physasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjfhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h void *bufh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint lenh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlenh]hlen}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int writeh](j)}(hinth]hint}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hwriteh]hwrite}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM+ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM+ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM+hjhhubj4)}(hhh]jM)}(h,generic implementation for iomem mmap accessh]h,generic implementation for iomem mmap access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM+hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM+ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` the vma to access ``unsigned long addr`` userspace address, not relative offset within **vma** ``void *buf`` buffer to read/write ``int len`` length of transfer ``int write`` set to FOLL_WRITE when writing, otherwise reading **Description** This is a generic implementation for :c:type:`vm_operations_struct.access ` for an iomem mapping. This callback is used by access_process_vm() when the **vma** is not page based.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM/hjubj)}(hhh](j)}(h1``struct vm_area_struct *vma`` the vma to access h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM,hjubj)}(hhh]jM)}(hthe vma to accessh]hthe vma to access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjubj)}(hM``unsigned long addr`` userspace address, not relative offset within **vma** h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM-hjubj)}(hhh]jM)}(h5userspace address, not relative offset within **vma**h](h.userspace address, not relative offset within }(hj-hhhNhNubj)}(h**vma**h]hvma}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jLhj)hM-hj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hM-hjubj)}(h#``void *buf`` buffer to read/write h](j)}(h ``void *buf``h]jS)}(hj[h]h void *buf}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM.hjUubj)}(hhh]jM)}(hbuffer to read/writeh]hbuffer to read/write}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphM.hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphM.hjubj)}(h``int len`` length of transfer h](j)}(h ``int len``h]jS)}(hjh]hint len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM/hjubj)}(hhh]jM)}(hlength of transferh]hlength of transfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjubj)}(h@``int write`` set to FOLL_WRITE when writing, otherwise reading h](j)}(h ``int write``h]jS)}(hjh]h int write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM0hjubj)}(hhh]jM)}(h1set to FOLL_WRITE when writing, otherwise readingh]h1set to FOLL_WRITE when writing, otherwise reading}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM2hjubjM)}(hThis is a generic implementation for :c:type:`vm_operations_struct.access ` for an iomem mapping. This callback is used by access_process_vm() when the **vma** is not page based.h](h%This is a generic implementation for }(hjhhhNhNubh)}(h<:c:type:`vm_operations_struct.access `h]jS)}(hj(h]hvm_operations_struct.access}(hj*hhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhj&ubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNvm_operations_structuh1hhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM1hjubhM for an iomem mapping. This callback is used by access_process_vm() when the }(hjhhhNhNubj)}(h**vma**h]hvma}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not page based.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjEhM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcopy_remote_vm_str (C function)c.copy_remote_vm_strhNtauh1hhjhhhNhNubh)}(hhh](h)}(hpint copy_remote_vm_str (struct task_struct *tsk, unsigned long addr, void *buf, int len, unsigned int gup_flags)h]h)}(hoint copy_remote_vm_str(struct task_struct *tsk, unsigned long addr, void *buf, int len, unsigned int gup_flags)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhM6ubh)}(hcopy_remote_vm_strh]j)}(hcopy_remote_vm_strh]hcopy_remote_vm_str}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj~hhhjhM6ubj )}(hY(struct task_struct *tsk, unsigned long addr, void *buf, int len, unsigned int gup_flags)h](j )}(hstruct task_struct *tskh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.copy_remote_vm_strasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(htskh]htsk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hlongh]hlong}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(haddrh]haddr}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h void *bufh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj~ubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint lenh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int gup_flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h gup_flagsh]h gup_flags}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj~hhhjhM6ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjzhhhjhM6ubah}(h]juah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM6hjwhhubj4)}(hhh]jM)}(h3copy a string from another process's address space.h]h5copy a string from another process’s address space.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM6hjXhhubah}(h]h ]h"]h$]h&]uh1j3hjwhhhjhM6ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjsjHjsjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct task_struct *tsk`` the task of the target address space ``unsigned long addr`` start address to read from ``void *buf`` destination buffer ``int len`` number of bytes to copy ``unsigned int gup_flags`` flags modifying lookup behaviour **Description** The caller must hold a reference on **mm**. **Return** number of bytes copied from **addr** (source) to **buf** (destination); not including the trailing NUL. Always guaranteed to leave NUL-terminated buffer. On any error, return -EFAULT.h](jM)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM:hjwubj)}(hhh](j)}(hA``struct task_struct *tsk`` the task of the target address space h](j)}(h``struct task_struct *tsk``h]jS)}(hjh]hstruct task_struct *tsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM7hjubj)}(hhh]jM)}(h$the task of the target address spaceh]h$the task of the target address space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubj)}(h2``unsigned long addr`` start address to read from h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM8hjubj)}(hhh]jM)}(hstart address to read fromh]hstart address to read from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubj)}(h!``void *buf`` destination buffer h](j)}(h ``void *buf``h]jS)}(hjh]h void *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM9hjubj)}(hhh]jM)}(hdestination bufferh]hdestination buffer}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#hM9hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hM9hjubj)}(h$``int len`` number of bytes to copy h](j)}(h ``int len``h]jS)}(hjGh]hint len}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM:hjAubj)}(hhh]jM)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\hM:hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM:hjubj)}(h<``unsigned int gup_flags`` flags modifying lookup behaviour h](j)}(h``unsigned int gup_flags``h]jS)}(hjh]hunsigned int gup_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj~ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM;hjzubj)}(hhh]jM)}(h flags modifying lookup behaviourh]h flags modifying lookup behaviour}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubeh}(h]h ]h"]h$]h&]uh1jhjwubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM=hjwubjM)}(h+The caller must hold a reference on **mm**.h](h$The caller must hold a reference on }(hjhhhNhNubj)}(h**mm**h]hmm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM<hjwubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM>hjwubjM)}(hnumber of bytes copied from **addr** (source) to **buf** (destination); not including the trailing NUL. Always guaranteed to leave NUL-terminated buffer. On any error, return -EFAULT.h](hnumber of bytes copied from }(hj hhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh (source) to }(hj hhhNhNubj)}(h**buf**h]hbuf}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh (destination); not including the trailing NUL. Always guaranteed to leave NUL-terminated buffer. On any error, return -EFAULT.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM?hjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&__get_pfnblock_flags_mask (C function)c.__get_pfnblock_flags_maskhNtauh1hhjhhhNhNubh)}(hhh](h)}(hhunsigned long __get_pfnblock_flags_mask (const struct page *page, unsigned long pfn, unsigned long mask)h]h)}(hgunsigned long __get_pfnblock_flags_mask(const struct page *page, unsigned long pfn, unsigned long mask)h](j)}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM{ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhM{ubj)}(hlongh]hlong}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhM{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhM{ubh)}(h__get_pfnblock_flags_maskh]j)}(h__get_pfnblock_flags_maskh]h__get_pfnblock_flags_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjYhhhjkhM{ubj )}(h@(const struct page *page, unsigned long pfn, unsigned long mask)h](j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.__get_pfnblock_flags_maskasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hpfnh]hpfn}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long maskh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjYhhhjkhM{ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjUhhhjkhM{ubah}(h]jPah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjkhM{hjRhhubj4)}(hhh]jM)}(hKReturn the requested group of flags for a pageblock_nr_pages block of pagesh]hKReturn the requested group of flags for a pageblock_nr_pages block of pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM{hjhhubah}(h]h ]h"]h$]h&]uh1j3hjRhhhjkhM{ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct page *page`` The page within the block of interest ``unsigned long pfn`` The target page frame number ``unsigned long mask`` mask of bits that the caller is interested in **Return** pageblock_bits flagsh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(hB``const struct page *page`` The page within the block of interest h](j)}(h``const struct page *page``h]jS)}(hj7h]hconst struct page *page}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM}hj1ubj)}(hhh]jM)}(h%The page within the block of interesth]h%The page within the block of interest}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhM}hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhM}hj.ubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]jS)}(hjph]hunsigned long pfn}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM~hjjubj)}(hhh]jM)}(hThe target page frame numberh]hThe target page frame number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM~hjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhM~hj.ubj)}(hE``unsigned long mask`` mask of bits that the caller is interested in h](j)}(h``unsigned long mask``h]jS)}(hjh]hunsigned long mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h-mask of bits that the caller is interested inh]h-mask of bits that the caller is interested in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj.ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hpageblock_bits flagsh]hpageblock_bits flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_pfnblock_bit (C function)c.get_pfnblock_bithNtauh1hhjhhhNhNubh)}(hhh](h)}(h^bool get_pfnblock_bit (const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h]h)}(h]bool get_pfnblock_bit(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hj.h]hbool}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj6hMubh)}(hget_pfnblock_bith]j)}(hget_pfnblock_bith]hget_pfnblock_bit}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1hhj%hhhj6hMubj )}(hH(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj5)}(hj8h]hstruct}(hjhhhNhzNubah}(h]h ]jAah"]h$]h&]uh1j4hjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljKsbc.get_pfnblock_bitasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjaubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]ubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]ubj )}(henum pageblock_bits pb_bith](j5)}(henumh]henum}(hjChhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj?ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hhh]j)}(hpageblock_bitsh]hpageblock_bits}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]jc.get_pfnblock_bitasbuh1hhj?ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hpb_bith]hpb_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]ubeh}(h]h ]h"]h$]h&]jjuh1j hj%hhhj6hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj!hhhj6hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj6hMhjhhubj4)}(hhh]jM)}(h/Check if a standalone bit of a pageblock is seth]h/Check if a standalone bit of a pageblock is set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj6hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct page *page`` The page within the block of interest ``unsigned long pfn`` The target page frame number ``enum pageblock_bits pb_bit`` pageblock bit to check **Return** true if the bit is set, otherwise falseh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(hB``const struct page *page`` The page within the block of interest h](j)}(h``const struct page *page``h]jS)}(hjh]hconst struct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h%The page within the block of interesth]h%The page within the block of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]jS)}(hj2h]hunsigned long pfn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj,ubj)}(hhh]jM)}(hThe target page frame numberh]hThe target page frame number}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjubj)}(h6``enum pageblock_bits pb_bit`` pageblock bit to check h](j)}(h``enum pageblock_bits pb_bit``h]jS)}(hjkh]henum pageblock_bits pb_bit}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjeubj)}(hhh]jM)}(hpageblock bit to checkh]hpageblock bit to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h'true if the bit is set, otherwise falseh]h'true if the bit is set, otherwise false}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%get_pfnblock_migratetype (C function)c.get_pfnblock_migratetypehNtauh1hhjhhhNhNubh)}(hhh](h)}(hVenum migratetype get_pfnblock_migratetype (const struct page *page, unsigned long pfn)h]h)}(hUenum migratetype get_pfnblock_migratetype(const struct page *page, unsigned long pfn)h](j5)}(hjEh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(h migratetypeh]h migratetype}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jlget_pfnblock_migratetypesbc.get_pfnblock_migratetypeasbuh1hhjhhhjhMubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hget_pfnblock_migratetypeh]j)}(hj(h]hget_pfnblock_migratetype}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h,(const struct page *page, unsigned long pfn)h](j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj5)}(hj8h]hstruct}(hjshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j&c.get_pfnblock_migratetypeasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjTubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h%Return the migratetype of a pageblockh]h%Return the migratetype of a pageblock}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjBhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj]jHj]jIjJjKuh1hhhhjhNhNubj)}(hX9**Parameters** ``const struct page *page`` The page within the block of interest ``unsigned long pfn`` The target page frame number **Return** The migratetype of the pageblock **Description** Use get_pfnblock_migratetype() if caller already has both **page** and **pfn** to save a call to page_to_pfn().h](jM)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjaubj)}(hhh](j)}(hB``const struct page *page`` The page within the block of interest h](j)}(h``const struct page *page``h]jS)}(hjh]hconst struct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h%The page within the block of interesth]h%The page within the block of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hThe target page frame numberh]hThe target page frame number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjaubjM)}(h The migratetype of the pageblockh]h The migratetype of the pageblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjaubjM)}(h**Description**h]j)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjaubjM)}(hoUse get_pfnblock_migratetype() if caller already has both **page** and **pfn** to save a call to page_to_pfn().h](h:Use get_pfnblock_migratetype() if caller already has both }(hj7hhhNhNubj)}(h**page**h]hpage}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh and }(hj7hhhNhNubj)}(h**pfn**h]hpfn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh! to save a call to page_to_pfn().}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&__set_pfnblock_flags_mask (C function)c.__set_pfnblock_flags_maskhNtauh1hhjhhhNhNubh)}(hhh](h)}(hnvoid __set_pfnblock_flags_mask (struct page *page, unsigned long pfn, unsigned long flags, unsigned long mask)h]h)}(hmvoid __set_pfnblock_flags_mask(struct page *page, unsigned long pfn, unsigned long flags, unsigned long mask)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h__set_pfnblock_flags_maskh]j)}(h__set_pfnblock_flags_maskh]h__set_pfnblock_flags_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hO(struct page *page, unsigned long pfn, unsigned long flags, unsigned long mask)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.__set_pfnblock_flags_maskasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hpfnh]hpfn}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long maskh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]j}ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hHSet the requested group of flags for a pageblock_nr_pages block of pagesh]hHSet the requested group of flags for a pageblock_nr_pages block of pages}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj:hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjUjHjUjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct page *page`` The page within the block of interest ``unsigned long pfn`` The target page frame number ``unsigned long flags`` The flags to set ``unsigned long mask`` mask of bits that the caller is interested inh](jM)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjYubj)}(hhh](j)}(h<``struct page *page`` The page within the block of interest h](j)}(h``struct page *page``h]jS)}(hj~h]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj|ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjxubj)}(hhh]jM)}(h%The page within the block of interesth]h%The page within the block of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hThe target page frame numberh]hThe target page frame number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubj)}(h)``unsigned long flags`` The flags to set h](j)}(h``unsigned long flags``h]jS)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hThe flags to seth]hThe flags to set}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubj)}(hD``unsigned long mask`` mask of bits that the caller is interested inh](j)}(h``unsigned long mask``h]jS)}(hj)h]hunsigned long mask}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj#ubj)}(hhh]jM)}(h-mask of bits that the caller is interested inh]h-mask of bits that the caller is interested in}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjuubeh}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hset_pfnblock_bit (C function)c.set_pfnblock_bithNtauh1hhjhhhNhNubh)}(hhh](h)}(h^void set_pfnblock_bit (const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h]h)}(h]void set_pfnblock_bit(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hset_pfnblock_bith]j)}(hset_pfnblock_bith]hset_pfnblock_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hH(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.set_pfnblock_bitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj'hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hlongh]hlong}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum pageblock_bits pb_bith](j5)}(hjEh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageblock_bitsh]hpageblock_bits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.set_pfnblock_bitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpb_bith]hpb_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj{hhhjhMubah}(h]jvah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjxhhubj4)}(hhh]jM)}(h#Set a standalone bit of a pageblockh]h#Set a standalone bit of a pageblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjxhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj*jHj*jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct page *page`` The page within the block of interest ``unsigned long pfn`` The target page frame number ``enum pageblock_bits pb_bit`` pageblock bit to seth](jM)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj.ubj)}(hhh](j)}(hB``const struct page *page`` The page within the block of interest h](j)}(h``const struct page *page``h]jS)}(hjSh]hconst struct page *page}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjMubj)}(hhh]jM)}(h%The page within the block of interesth]h%The page within the block of interest}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjJubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hThe target page frame numberh]hThe target page frame number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjJubj)}(h3``enum pageblock_bits pb_bit`` pageblock bit to seth](j)}(h``enum pageblock_bits pb_bit``h]jS)}(hjh]henum pageblock_bits pb_bit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hpageblock bit to seth]hpageblock bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjJubeh}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_pfnblock_bit (C function)c.clear_pfnblock_bithNtauh1hhjhhhNhNubh)}(hhh](h)}(h`void clear_pfnblock_bit (const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h]h)}(h_void clear_pfnblock_bit(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj-hMubh)}(hclear_pfnblock_bith]j)}(hclear_pfnblock_bith]hclear_pfnblock_bit}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj-hMubj )}(hH(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hj\hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj5)}(hj8h]hstruct}(hjwhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljBsbc.clear_pfnblock_bitasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjXubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubj )}(henum pageblock_bits pb_bith](j5)}(hjEh]henum}(hj:hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j)}(hpageblock_bitsh]hpageblock_bits}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjZmodnameN classnameNjpjs)}jv]jc.clear_pfnblock_bitasbuh1hhj6ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hpb_bith]hpb_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj-hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj-hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj-hMhjhhubj4)}(hhh]jM)}(h%Clear a standalone bit of a pageblockh]h%Clear a standalone bit of a pageblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj-hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct page *page`` The page within the block of interest ``unsigned long pfn`` The target page frame number ``enum pageblock_bits pb_bit`` pageblock bit to clearh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(hB``const struct page *page`` The page within the block of interest h](j)}(h``const struct page *page``h]jS)}(hjh]hconst struct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h%The page within the block of interesth]h%The page within the block of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]jS)}(hj(h]hunsigned long pfn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj"ubj)}(hhh]jM)}(hThe target page frame numberh]hThe target page frame number}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubj)}(h5``enum pageblock_bits pb_bit`` pageblock bit to clearh](j)}(h``enum pageblock_bits pb_bit``h]jS)}(hjah]henum pageblock_bits pb_bit}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj_ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj[ubj)}(hhh]jM)}(hpageblock bit to clearh]hpageblock bit to clear}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&set_pageblock_migratetype (C function)c.set_pageblock_migratetypehNtauh1hhjhhhNhNubh)}(hhh](h)}(hPvoid set_pageblock_migratetype (struct page *page, enum migratetype migratetype)h]h)}(hOvoid set_pageblock_migratetype(struct page *page, enum migratetype migratetype)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hset_pageblock_migratetypeh]j)}(hset_pageblock_migratetypeh]hset_pageblock_migratetype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h1(struct page *page, enum migratetype migratetype)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.set_pageblock_migratetypeasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum migratetype migratetypeh](j5)}(hjEh]henum}(hjjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j)}(h migratetypeh]h migratetype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j2c.set_pageblock_migratetypeasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h migratetypeh]h migratetype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h"Set the migratetype of a pageblockh]h"Set the migratetype of a pageblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct page *page`` The page within the block of interest ``enum migratetype migratetype`` migratetype to seth](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjubj)}(hhh](j)}(h<``struct page *page`` The page within the block of interest h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h%The page within the block of interesth]h%The page within the block of interest}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubj)}(h3``enum migratetype migratetype`` migratetype to seth](j)}(h ``enum migratetype migratetype``h]jS)}(hjXh]henum migratetype migratetype}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjRubj)}(hhh]jM)}(hmigratetype to seth]hmigratetype to set}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+__move_freepages_block_isolate (C function) c.__move_freepages_block_isolatehNtauh1hhjhhhNhNubh)}(hhh](h)}(hXbool __move_freepages_block_isolate (struct zone *zone, struct page *page, bool isolate)h]h)}(hWbool __move_freepages_block_isolate(struct zone *zone, struct page *page, bool isolate)h](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM!ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM!ubh)}(h__move_freepages_block_isolateh]j)}(h__move_freepages_block_isolateh]h__move_freepages_block_isolate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM!ubj )}(h4(struct zone *zone, struct page *page, bool isolate)h](j )}(hstruct zone *zoneh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hzoneh]hzone}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsb c.__move_freepages_block_isolateasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj:hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hzoneh]hzone}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hj`hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hhh]j)}(hpageh]hpage}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j( c.__move_freepages_block_isolateasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj\ubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h bool isolateh](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hisolateh]hisolate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM!ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM!ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM!hjhhubj4)}(hhh]jM)}(h+move free pages in block for page isolationh]h+move free pages in block for page isolation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM!hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM!ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj-jHj-jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct zone *zone`` the zone ``struct page *page`` the pageblock page ``bool isolate`` to isolate the given pageblock or unisolate it **Description** This is similar to move_freepages_block(), but handles the special case encountered in page isolation, where the block of interest might be part of a larger buddy spanning multiple pageblocks. Unlike the regular page allocator path, which moves pages while stealing buddies off the freelist, page isolation is interested in arbitrary pfn ranges that may have overlapping buddies on both ends. This function handles that. Straddling buddies are split into individual pageblocks. Only the block of interest is moved. Returns ``true`` if pages could be moved, ``false`` otherwise.h](jM)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM%hj1ubj)}(hhh](j)}(h``struct zone *zone`` the zone h](j)}(h``struct zone *zone``h]jS)}(hjVh]hstruct zone *zone}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjTubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM"hjPubj)}(hhh]jM)}(hthe zoneh]hthe zone}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjkhM"hjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM"hjMubj)}(h)``struct page *page`` the pageblock page h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM#hjubj)}(hhh]jM)}(hthe pageblock pageh]hthe pageblock page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjMubj)}(h@``bool isolate`` to isolate the given pageblock or unisolate it h](j)}(h``bool isolate``h]jS)}(hjh]h bool isolate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM$hjubj)}(hhh]jM)}(h.to isolate the given pageblock or unisolate ith]h.to isolate the given pageblock or unisolate it}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjMubeh}(h]h ]h"]h$]h&]uh1jhj1ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM&hj1ubjM)}(hThis is similar to move_freepages_block(), but handles the special case encountered in page isolation, where the block of interest might be part of a larger buddy spanning multiple pageblocks.h]hThis is similar to move_freepages_block(), but handles the special case encountered in page isolation, where the block of interest might be part of a larger buddy spanning multiple pageblocks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM%hj1ubjM)}(hUnlike the regular page allocator path, which moves pages while stealing buddies off the freelist, page isolation is interested in arbitrary pfn ranges that may have overlapping buddies on both ends.h]hUnlike the regular page allocator path, which moves pages while stealing buddies off the freelist, page isolation is interested in arbitrary pfn ranges that may have overlapping buddies on both ends.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM)hj1ubjM)}(hyThis function handles that. Straddling buddies are split into individual pageblocks. Only the block of interest is moved.h]hyThis function handles that. Straddling buddies are split into individual pageblocks. Only the block of interest is moved.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM-hj1ubjM)}(h>Returns ``true`` if pages could be moved, ``false`` otherwise.h](hReturns }(hjFhhhNhNubjS)}(h``true``h]htrue}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubh if pages could be moved, }(hjFhhhNhNubjS)}(h ``false``h]hfalse}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubh otherwise.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM0hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$__putback_isolated_page (C function)c.__putback_isolated_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hLvoid __putback_isolated_page (struct page *page, unsigned int order, int mt)h]h)}(hKvoid __putback_isolated_page(struct page *page, unsigned int order, int mt)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM[ ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM[ ubh)}(h__putback_isolated_pageh]j)}(h__putback_isolated_pageh]h__putback_isolated_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM[ ubj )}(h/(struct page *page, unsigned int order, int mt)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.__putback_isolated_pageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj"hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hinth]hint}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint mth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmth]hmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM[ ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM[ ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM[ hjhhubj4)}(hhh]jM)}(h/Return a now-isolated page back where we got ith]h/Return a now-isolated page back where we got it}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM[ hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM[ ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX?**Parameters** ``struct page *page`` Page that was isolated ``unsigned int order`` Order of the isolated page ``int mt`` The page's pageblock's migratetype **Description** This function is meant to return a page pulled from the free lists via __isolate_free_page back to the free lists they were pulled from.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM_ hjubj)}(hhh](j)}(h-``struct page *page`` Page that was isolated h](j)}(h``struct page *page``h]jS)}(hj h]hstruct page *page}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM\ hjubj)}(hhh]jM)}(hPage that was isolatedh]hPage that was isolated}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hM\ hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM\ hjubj)}(h2``unsigned int order`` Order of the isolated page h](j)}(h``unsigned int order``h]jS)}(hjYh]hunsigned int order}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM] hjSubj)}(hhh]jM)}(hOrder of the isolated pageh]hOrder of the isolated page}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjnhM] hjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM] hjubj)}(h.``int mt`` The page's pageblock's migratetype h](j)}(h ``int mt``h]jS)}(hjh]hint mt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM^ hjubj)}(hhh]jM)}(h"The page's pageblock's migratetypeh]h&The page’s pageblock’s migratetype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM^ hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM^ hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM` hjubjM)}(hThis function is meant to return a page pulled from the free lists via __isolate_free_page back to the free lists they were pulled from.h]hThis function is meant to return a page pulled from the free lists via __isolate_free_page back to the free lists they were pulled from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM_ hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__free_pages (C function)c.__free_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h9void __free_pages (struct page *page, unsigned int order)h]h)}(h8void __free_pages(struct page *page, unsigned int order)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubh)}(h __free_pagesh]j)}(h __free_pagesh]h __free_pages}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hMubj )}(h'(struct page *page, unsigned int order)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjOhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hhh]j)}(hpageh]hpage}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjomodnameN classnameNjpjs)}jv]jy)}jlj5sbc.__free_pagesasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjKubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjGubj )}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjGubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hMhjhhubj4)}(hhh]jM)}(h(Free pages allocated with alloc_pages().h]h(Free pages allocated with alloc_pages().}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj;jHj;jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct page *page`` The page pointer returned from alloc_pages(). ``unsigned int order`` The order of the allocation. **Description** This function can free multi-page allocations that are not compound pages. It does not check that the **order** passed in matches that of the allocation, so it is easy to leak memory. Freeing more memory than was allocated will probably emit a warning. If the last reference to this page is speculative, it will be released by put_page() which only frees the first page of a non-compound allocation. To prevent the remaining pages from being leaked, we free the subsequent pages here. If you want to use the page's reference count to decide when to free the allocation, you should allocate a compound page, and use put_page() instead of __free_pages(). **Context** May be called in interrupt context or while holding a normal spinlock, but not in NMI context or while holding a raw spinlock.h](jM)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj?ubj)}(hhh](j)}(hD``struct page *page`` The page pointer returned from alloc_pages(). h](j)}(h``struct page *page``h]jS)}(hjdh]hstruct page *page}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj^ubj)}(hhh]jM)}(h-The page pointer returned from alloc_pages().h]h-The page pointer returned from alloc_pages().}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj[ubj)}(h4``unsigned int order`` The order of the allocation. h](j)}(h``unsigned int order``h]jS)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hThe order of the allocation.h]hThe order of the allocation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj[ubeh}(h]h ]h"]h$]h&]uh1jhj?ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj?ubjM)}(hThis function can free multi-page allocations that are not compound pages. It does not check that the **order** passed in matches that of the allocation, so it is easy to leak memory. Freeing more memory than was allocated will probably emit a warning.h](hgThis function can free multi-page allocations that are not compound pages. It does not check that the }(hjhhhNhNubj)}(h **order**h]horder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh passed in matches that of the allocation, so it is easy to leak memory. Freeing more memory than was allocated will probably emit a warning.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj?ubjM)}(hXIf the last reference to this page is speculative, it will be released by put_page() which only frees the first page of a non-compound allocation. To prevent the remaining pages from being leaked, we free the subsequent pages here. If you want to use the page's reference count to decide when to free the allocation, you should allocate a compound page, and use put_page() instead of __free_pages().h]hXIf the last reference to this page is speculative, it will be released by put_page() which only frees the first page of a non-compound allocation. To prevent the remaining pages from being leaked, we free the subsequent pages here. If you want to use the page’s reference count to decide when to free the allocation, you should allocate a compound page, and use put_page() instead of __free_pages().U}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM"hj?ubjM)}(h **Context**h]j)}(hj h]hContext}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM)hj?ubjM)}(h~May be called in interrupt context or while holding a normal spinlock, but not in NMI context or while holding a raw spinlock.h]h~May be called in interrupt context or while holding a normal spinlock, but not in NMI context or while holding a raw spinlock.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM*hj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfree_pages (C function) c.free_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h8void free_pages (unsigned long addr, unsigned int order)h]h)}(h7void free_pages(unsigned long addr, unsigned int order)h](j)}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM=ubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjshM=ubh)}(h free_pagesh]j)}(h free_pagesh]h free_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjahhhjshM=ubj )}(h((unsigned long addr, unsigned int order)h](j )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(horderh]horder}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjahhhjshM=ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj]hhhjshM=ubah}(h]jXah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjshM=hjZhhubj4)}(hhh]jM)}(h-Free pages allocated with __get_free_pages().h]h-Free pages allocated with __get_free_pages().}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM=hjRhhubah}(h]h ]h"]h$]h&]uh1j3hjZhhhjshM=ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjmjHjmjIjJjKuh1hhhhjhNhNubj)}(hXg**Parameters** ``unsigned long addr`` The virtual address tied to a page returned from __get_free_pages(). ``unsigned int order`` The order of the allocation. **Description** This function behaves the same as __free_pages(). Use this function to free pages when you only have a valid virtual address. If you have the page, call __free_pages() instead.h](jM)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMAhjqubj)}(hhh](j)}(h\``unsigned long addr`` The virtual address tied to a page returned from __get_free_pages(). h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM>hjubj)}(hhh]jM)}(hDThe virtual address tied to a page returned from __get_free_pages().h]hDThe virtual address tied to a page returned from __get_free_pages().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM>hjubj)}(h4``unsigned int order`` The order of the allocation. h](j)}(h``unsigned int order``h]jS)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM?hjubj)}(hhh]jM)}(hThe order of the allocation.h]hThe order of the allocation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjubeh}(h]h ]h"]h$]h&]uh1jhjqubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMAhjqubjM)}(hThis function behaves the same as __free_pages(). Use this function to free pages when you only have a valid virtual address. If you have the page, call __free_pages() instead.h]hThis function behaves the same as __free_pages(). Use this function to free pages when you only have a valid virtual address. If you have the page, call __free_pages() instead.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM@hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_pages_exact (C function)c.alloc_pages_exacthNtauh1hhjhhhNhNubh)}(hhh](h)}(h6void * alloc_pages_exact (size_t size, gfp_t gfp_mask)h]h)}(h4void *alloc_pages_exact(size_t size, gfp_t gfp_mask)h](j)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMcubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj]hMcubjF )}(hjI h]h*}(hjlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjKhhhj]hMcubh)}(halloc_pages_exacth]j)}(halloc_pages_exacth]halloc_pages_exact}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1hhjKhhhj]hMcubj )}(h(size_t size, gfp_t gfp_mask)h](j )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.alloc_pages_exactasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.alloc_pages_exactasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjKhhhj]hMcubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjGhhhj]hMcubah}(h]jBah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj]hMchjDhhubj4)}(hhh]jM)}(h5allocate an exact number physically-contiguous pages.h]h5allocate an exact number physically-contiguous pages.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMchj9hhubah}(h]h ]h"]h$]h&]uh1j3hjDhhhj]hMcubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjTjHjTjIjJjKuh1hhhhjhNhNubj)}(hX **Parameters** ``size_t size`` the number of bytes to allocate ``gfp_t gfp_mask`` GFP flags for the allocation, must not contain __GFP_COMP **Description** This function is similar to alloc_pages(), except that it allocates the minimum number of pages to satisfy the request. alloc_pages() can only allocate memory in power-of-two pages. This function is also limited by MAX_PAGE_ORDER. Memory allocated by this function must be released by free_pages_exact(). **Return** pointer to the allocated area or ``NULL`` in case of error.h](jM)}(h**Parameters**h]j)}(hj^h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMghjXubj)}(hhh](j)}(h0``size_t size`` the number of bytes to allocate h](j)}(h``size_t size``h]jS)}(hj}h]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj{ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMdhjwubj)}(hhh]jM)}(hthe number of bytes to allocateh]hthe number of bytes to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjtubj)}(hM``gfp_t gfp_mask`` GFP flags for the allocation, must not contain __GFP_COMP h](j)}(h``gfp_t gfp_mask``h]jS)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMehjubj)}(hhh]jM)}(h9GFP flags for the allocation, must not contain __GFP_COMPh]h9GFP flags for the allocation, must not contain __GFP_COMP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjtubeh}(h]h ]h"]h$]h&]uh1jhjXubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMghjXubjM)}(hThis function is similar to alloc_pages(), except that it allocates the minimum number of pages to satisfy the request. alloc_pages() can only allocate memory in power-of-two pages.h]hThis function is similar to alloc_pages(), except that it allocates the minimum number of pages to satisfy the request. alloc_pages() can only allocate memory in power-of-two pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMfhjXubjM)}(h0This function is also limited by MAX_PAGE_ORDER.h]h0This function is also limited by MAX_PAGE_ORDER.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMjhjXubjM)}(hIMemory allocated by this function must be released by free_pages_exact().h]hIMemory allocated by this function must be released by free_pages_exact().}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMlhjXubjM)}(h **Return**h]j)}(hj6h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMnhjXubjM)}(h;pointer to the allocated area or ``NULL`` in case of error.h](h!pointer to the allocated area or }(hjLhhhNhNubjS)}(h``NULL``h]hNULL}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubh in case of error.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMohjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"alloc_pages_exact_nid (C function)c.alloc_pages_exact_nidhNtauh1hhjhhhNhNubh)}(hhh](h)}(hCvoid * alloc_pages_exact_nid (int nid, size_t size, gfp_t gfp_mask)h]h)}(hAvoid *alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(halloc_pages_exact_nidh]j)}(halloc_pages_exact_nidh]halloc_pages_exact_nid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h&(int nid, size_t size, gfp_t gfp_mask)h](j )}(hint nidh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnidh]hnid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.alloc_pages_exact_nidasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj[modnameN classnameNjpjs)}jv]j+c.alloc_pages_exact_nidasbuh1hhjRubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hBallocate an exact number of physically-contiguous pages on a node.h]hBallocate an exact number of physically-contiguous pages on a node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``int nid`` the preferred node ID where memory should be allocated ``size_t size`` the number of bytes to allocate ``gfp_t gfp_mask`` GFP flags for the allocation, must not contain __GFP_COMP **Description** Like alloc_pages_exact(), but try to allocate on node nid first before falling back. **Return** pointer to the allocated area or ``NULL`` in case of error.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(hC``int nid`` the preferred node ID where memory should be allocated h](j)}(h ``int nid``h]jS)}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h6the preferred node ID where memory should be allocatedh]h6the preferred node ID where memory should be allocated}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``size_t size`` the number of bytes to allocate h](j)}(h``size_t size``h]jS)}(hj)h]h size_t size}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj#ubj)}(hhh]jM)}(hthe number of bytes to allocateh]hthe number of bytes to allocate}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjubj)}(hM``gfp_t gfp_mask`` GFP flags for the allocation, must not contain __GFP_COMP h](j)}(h``gfp_t gfp_mask``h]jS)}(hjbh]hgfp_t gfp_mask}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj\ubj)}(hhh]jM)}(h9GFP flags for the allocation, must not contain __GFP_COMPh]h9GFP flags for the allocation, must not contain __GFP_COMP}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hTLike alloc_pages_exact(), but try to allocate on node nid first before falling back.h]hTLike alloc_pages_exact(), but try to allocate on node nid first before falling back.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h;pointer to the allocated area or ``NULL`` in case of error.h](h!pointer to the allocated area or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh in case of error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfree_pages_exact (C function)c.free_pages_exacthNtauh1hhjhhhNhNubh)}(hhh](h)}(h/void free_pages_exact (void *virt, size_t size)h]h)}(h.void free_pages_exact(void *virt, size_t size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hMubh)}(hfree_pages_exacth]j)}(hfree_pages_exacth]hfree_pages_exact}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj)hMubj )}(h(void *virt, size_t size)h](j )}(h void *virth](j)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjF )}(hjI h]h*}(hjthhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjTubj)}(hvirth]hvirt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj>sbc.free_pages_exactasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj)hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj)hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj)hMhjhhubj4)}(hhh]jM)}(h0release memory allocated via alloc_pages_exact()h]h0release memory allocated via alloc_pages_exact()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj)hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``void *virt`` the value returned by alloc_pages_exact. ``size_t size`` size of allocation, same value as passed to alloc_pages_exact(). **Description** Release the memory allocated by a previous call to alloc_pages_exact.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(h8``void *virt`` the value returned by alloc_pages_exact. h](j)}(h``void *virt``h]jS)}(hj6h]h void *virt}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj0ubj)}(hhh]jM)}(h(the value returned by alloc_pages_exact.h]h(the value returned by alloc_pages_exact.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj-ubj)}(hQ``size_t size`` size of allocation, same value as passed to alloc_pages_exact(). h](j)}(h``size_t size``h]jS)}(hjoh]h size_t size}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjmubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjiubj)}(hhh]jM)}(h@size of allocation, same value as passed to alloc_pages_exact().h]h@size of allocation, same value as passed to alloc_pages_exact().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhj-ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hERelease the memory allocated by a previous call to alloc_pages_exact.h]hERelease the memory allocated by a previous call to alloc_pages_exact.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hnr_free_zone_pages (C function)c.nr_free_zone_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h-unsigned long nr_free_zone_pages (int offset)h]h)}(h,unsigned long nr_free_zone_pages(int offset)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hnr_free_zone_pagesh]j)}(hnr_free_zone_pagesh]hnr_free_zone_pages}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h (int offset)h]j )}(h int offseth](j)}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hoffseth]hoffset}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h+count number of pages beyond high watermarkh]h+count number of pages beyond high watermark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXy**Parameters** ``int offset`` The zone index of the highest zone **Description** nr_free_zone_pages() counts the number of pages which are beyond the high watermark within all zones at or below a given zone index. For each zone, the number of pages is calculated as: nr_free_zone_pages = managed_pages - high_pages **Return** number of pages beyond high watermark.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j)}(h2``int offset`` The zone index of the highest zone h](j)}(h``int offset``h]jS)}(hjh]h int offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h"The zone index of the highest zoneh]h"The zone index of the highest zone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hnr_free_zone_pages() counts the number of pages which are beyond the high watermark within all zones at or below a given zone index. For each zone, the number of pages is calculated as:h]hnr_free_zone_pages() counts the number of pages which are beyond the high watermark within all zones at or below a given zone index. For each zone, the number of pages is calculated as:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubji)}(h0nr_free_zone_pages = managed_pages - high_pages h]jM)}(h/nr_free_zone_pages = managed_pages - high_pagesh]h/nr_free_zone_pages = managed_pages - high_pages}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj/ubah}(h]h ]h"]h$]h&]uh1jhhjAhMhjubjM)}(h **Return**h]j)}(hjJh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h&number of pages beyond high watermark.h]h&number of pages beyond high watermark.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!nr_free_buffer_pages (C function)c.nr_free_buffer_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h)unsigned long nr_free_buffer_pages (void)h]h)}(h(unsigned long nr_free_buffer_pages(void)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hnr_free_buffer_pagesh]j)}(hnr_free_buffer_pagesh]hnr_free_buffer_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(void)h]j )}(hvoidh]j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h+count number of pages beyond high watermarkh]h+count number of pages beyond high watermark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj*jHj*jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``void`` no arguments **Description** nr_free_buffer_pages() counts the number of pages which are beyond the high watermark within ZONE_DMA and ZONE_NORMAL. **Return** number of pages beyond high watermark within ZONE_DMA and ZONE_NORMAL.h](jM)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj.ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]jS)}(hjSh]hvoid}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chKhjMubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhKhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhKhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chKhj.ubjM)}(hvnr_free_buffer_pages() counts the number of pages which are beyond the high watermark within ZONE_DMA and ZONE_NORMAL.h]hvnr_free_buffer_pages() counts the number of pages which are beyond the high watermark within ZONE_DMA and ZONE_NORMAL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj.ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj.ubjM)}(hFnumber of pages beyond high watermark within ZONE_DMA and ZONE_NORMAL.h]hFnumber of pages beyond high watermark within ZONE_DMA and ZONE_NORMAL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h find_next_best_node (C function)c.find_next_best_nodehNtauh1hhjhhhNhNubh)}(hhh](h)}(h>int find_next_best_node (int node, nodemask_t *used_node_mask)h]h)}(h=int find_next_best_node(int node, nodemask_t *used_node_mask)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfind_next_best_nodeh]j)}(hfind_next_best_nodeh]hfind_next_best_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h&(int node, nodemask_t *used_node_mask)h](j )}(hint nodeh](j)}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hnodeh]hnode}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj/ubj )}(hnodemask_t *used_node_maskh](h)}(hhh]j)}(h nodemask_th]h nodemask_t}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjqmodnameN classnameNjpjs)}jv]jy)}jljsbc.find_next_best_nodeasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhubj)}(hused_node_maskh]hused_node_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj/ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hEfind the next node that should appear in a given node's fallback listh]hGfind the next node that should appear in a given node’s fallback list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``int node`` node whose fallback list we're appending ``nodemask_t *used_node_mask`` nodemask_t of already used nodes **Description** We use a number of factors to determine which is the next node that should appear on a given node's fallback list. The node should not have appeared already in **node**'s fallback list, and it should be the next closest node according to the distance array (which contains arbitrary distance values from each node to each node in the system), and should also prefer nodes with no CPUs, since presumably they'll have very little allocation pressure on them otherwise. **Return** node id of the found node or ``NUMA_NO_NODE`` if no node is found.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(h6``int node`` node whose fallback list we're appending h](j)}(h ``int node``h]jS)}(hj h]hint node}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj ubj)}(hhh]jM)}(h(node whose fallback list we're appendingh]h*node whose fallback list we’re appending}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj* hMhj+ ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj* hMhj ubj)}(h@``nodemask_t *used_node_mask`` nodemask_t of already used nodes h](j)}(h``nodemask_t *used_node_mask``h]jS)}(hjN h]hnodemask_t *used_node_mask}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjL ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjH ubj)}(hhh]jM)}(h nodemask_t of already used nodesh]h nodemask_t of already used nodes}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjc hMhjd ubah}(h]h ]h"]h$]h&]uh1jhjH ubeh}(h]h ]h"]h$]h&]uh1jhjc hMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hXWe use a number of factors to determine which is the next node that should appear on a given node's fallback list. The node should not have appeared already in **node**'s fallback list, and it should be the next closest node according to the distance array (which contains arbitrary distance values from each node to each node in the system), and should also prefer nodes with no CPUs, since presumably they'll have very little allocation pressure on them otherwise.h](hWe use a number of factors to determine which is the next node that should appear on a given node’s fallback list. The node should not have appeared already in }(hj hhhNhNubj)}(h**node**h]hnode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhX.’s fallback list, and it should be the next closest node according to the distance array (which contains arbitrary distance values from each node to each node in the system), and should also prefer nodes with no CPUs, since presumably they’ll have very little allocation pressure on them otherwise.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM#hjubjM)}(hBnode id of the found node or ``NUMA_NO_NODE`` if no node is found.h](hnode id of the found node or }(hj hhhNhNubjS)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh if no node is found.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"setup_per_zone_wmarks (C function)c.setup_per_zone_wmarkshNtauh1hhjhhhNhNubh)}(hhh](h)}(h!void setup_per_zone_wmarks (void)h]h)}(h void setup_per_zone_wmarks(void)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMsubj)}(h h]h }(hj( hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj' hMsubh)}(hsetup_per_zone_wmarksh]j)}(hsetup_per_zone_wmarksh]hsetup_per_zone_wmarks}(hj: hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6 ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj' hMsubj )}(h(void)h]j )}(hvoidh]j)}(hvoidh]hvoid}(hjV hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR ubah}(h]h ]h"]h$]h&]noemphjjuh1j hjN ubah}(h]h ]h"]h$]h&]jjuh1j hj hhhj' hMsubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj' hMsubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj' hMshj hhubj4)}(hhh]jM)}(hIcalled when min_free_kbytes changes or when memory is hot-{added|removed}h]hIcalled when min_free_kbytes changes or when memory is hot-{added|removed}}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMshj} hhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj' hMsubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** Ensures that the watermark[min,low,high] values for each zone are set correctly with respect to min_free_kbytes.h](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMwhj ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]jS)}(hj h]hvoid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chKhj ubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chKhj ubjM)}(hpEnsures that the watermark[min,low,high] values for each zone are set correctly with respect to min_free_kbytes.h]hpEnsures that the watermark[min,low,high] values for each zone are set correctly with respect to min_free_kbytes.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMthj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __free_contig_range (C function)c.__free_contig_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hDvoid __free_contig_range (unsigned long pfn, unsigned long nr_pages)h]h)}(hCvoid __free_contig_range(unsigned long pfn, unsigned long nr_pages)h](j)}(hvoidh]hvoid}(hjA hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj= hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM ubj)}(h h]h }(hjP hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj= hhhjO hM ubh)}(h__free_contig_rangeh]j)}(h__free_contig_rangeh]h__free_contig_range}(hjb hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj= hhhjO hM ubj )}(h+(unsigned long pfn, unsigned long nr_pages)h](j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj~ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubj)}(hpfnh]hpfn}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjv ubj )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hnr_pagesh]hnr_pages}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjv ubeh}(h]h ]h"]h$]h&]jjuh1j hj= hhhjO hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj9 hhhjO hM ubah}(h]j4 ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjO hM hj6 hhubj4)}(hhh]jM)}(h'Free contiguous range of order-0 pages.h]h'Free contiguous range of order-0 pages.}(hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hj. hhubah}(h]h ]h"]h$]h&]uh1j3hj6 hhhjO hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjI jHjI jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long pfn`` Page frame number of the first page in the range. ``unsigned long nr_pages`` Number of pages to free. **Description** For each order-0 struct page in the physically contiguous range, put a reference. Free any page who's reference count falls to zero. The implementation is functionally equivalent to, but significantly faster than calling __free_page() for each struct page in a loop. Memory allocated with alloc_pages(order>=1) then subsequently split to order-0 with split_page() is an example of appropriate contiguous pages that can be freed with this API. **Context** May be called in interrupt context or while holding a normal spinlock, but not in NMI context or while holding a raw spinlock.h](jM)}(h**Parameters**h]j)}(hjS h]h Parameters}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjM ubj)}(hhh](j)}(hH``unsigned long pfn`` Page frame number of the first page in the range. h](j)}(h``unsigned long pfn``h]jS)}(hjr h]hunsigned long pfn}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjp ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjl ubj)}(hhh]jM)}(h1Page frame number of the first page in the range.h]h1Page frame number of the first page in the range.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjl ubeh}(h]h ]h"]h$]h&]uh1jhj hM hji ubj)}(h4``unsigned long nr_pages`` Number of pages to free. h](j)}(h``unsigned long nr_pages``h]jS)}(hj h]hunsigned long nr_pages}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj ubj)}(hhh]jM)}(hNumber of pages to free.h]hNumber of pages to free.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhji ubeh}(h]h ]h"]h$]h&]uh1jhjM ubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjM ubjM)}(hX For each order-0 struct page in the physically contiguous range, put a reference. Free any page who's reference count falls to zero. The implementation is functionally equivalent to, but significantly faster than calling __free_page() for each struct page in a loop.h]hX For each order-0 struct page in the physically contiguous range, put a reference. Free any page who’s reference count falls to zero. The implementation is functionally equivalent to, but significantly faster than calling __free_page() for each struct page in a loop.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjM ubjM)}(hMemory allocated with alloc_pages(order>=1) then subsequently split to order-0 with split_page() is an example of appropriate contiguous pages that can be freed with this API.h]hMemory allocated with alloc_pages(order>=1) then subsequently split to order-0 with split_page() is an example of appropriate contiguous pages that can be freed with this API.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjM ubjM)}(h **Context**h]j)}(hj h]hContext}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjM ubjM)}(h~May be called in interrupt context or while holding a normal spinlock, but not in NMI context or while holding a raw spinlock.h]h~May be called in interrupt context or while holding a normal spinlock, but not in NMI context or while holding a raw spinlock.}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjM ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&alloc_contig_frozen_range (C function)c.alloc_contig_frozen_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hoint alloc_contig_frozen_range (unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h]h)}(hnint alloc_contig_frozen_range(unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h](j)}(hinth]hint}(hja hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj] hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjp hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj] hhhjo hMubh)}(halloc_contig_frozen_rangeh]j)}(halloc_contig_frozen_rangeh]halloc_contig_frozen_range}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj] hhhjo hMubj )}(hQ(unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h](j )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hendh]hend}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hacr_flags_t alloc_flagsh](h)}(hhh]j)}(h acr_flags_th]h acr_flags_t}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjEmodnameN classnameNjpjs)}jv]jy)}jlj sbc.alloc_contig_frozen_rangeasbuh1hhj<ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h alloc_flagsh]h alloc_flags}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j_c.alloc_contig_frozen_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubeh}(h]h ]h"]h$]h&]jjuh1j hj] hhhjo hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjY hhhjo hMubah}(h]jT ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjo hMhjV hhubj4)}(hhh]j~W)}(hhh]j/)}(h-tries to allocate given range of frozen pagesh]jM)}(hjh]h-tries to allocate given range of frozen pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubah}(h]h ]h"]h$]h&]uh1j/hjhhhjhNubah}(h]h ]h"]h$]h&]jWjWuh1j}WhjhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjV hhhjo hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long start`` start PFN to allocate ``unsigned long end`` one-past-the-last PFN to allocate ``acr_flags_t alloc_flags`` allocation information ``gfp_t gfp_mask`` GFP mask. Node/zone/placement hints are ignored; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim. **Description** The PFN range does not have to be pageblock aligned. The PFN range must belong to a single zone. The first thing this routine does is attempt to MIGRATE_ISOLATE all pageblocks in the range. Once isolated, the pageblocks should not be modified by others. All frozen pages which PFN is in [start, end) are allocated for the caller, and they could be freed with free_contig_frozen_range(), free_frozen_pages() also could be used to free compound frozen pages directly. **Return** zero on success or negative error code.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(h.``unsigned long start`` start PFN to allocate h](j)}(h``unsigned long start``h]jS)}(hj6h]hunsigned long start}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj0ubj)}(hhh]jM)}(hstart PFN to allocateh]hstart PFN to allocate}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj-ubj)}(h8``unsigned long end`` one-past-the-last PFN to allocate h](j)}(h``unsigned long end``h]jS)}(hjoh]hunsigned long end}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjmubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjiubj)}(hhh]jM)}(h!one-past-the-last PFN to allocateh]h!one-past-the-last PFN to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhj-ubj)}(h3``acr_flags_t alloc_flags`` allocation information h](j)}(h``acr_flags_t alloc_flags``h]jS)}(hjh]hacr_flags_t alloc_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hallocation informationh]hallocation information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj-ubj)}(h``gfp_t gfp_mask`` GFP mask. Node/zone/placement hints are ignored; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim. h](j)}(h``gfp_t gfp_mask``h]jS)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hGFP mask. Node/zone/placement hints are ignored; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim.h]hGFP mask. Node/zone/placement hints are ignored; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj-ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h`The PFN range does not have to be pageblock aligned. The PFN range must belong to a single zone.h]h`The PFN range does not have to be pageblock aligned. The PFN range must belong to a single zone.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hThe first thing this routine does is attempt to MIGRATE_ISOLATE all pageblocks in the range. Once isolated, the pageblocks should not be modified by others.h]hThe first thing this routine does is attempt to MIGRATE_ISOLATE all pageblocks in the range. Once isolated, the pageblocks should not be modified by others.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hAll frozen pages which PFN is in [start, end) are allocated for the caller, and they could be freed with free_contig_frozen_range(), free_frozen_pages() also could be used to free compound frozen pages directly.h]hAll frozen pages which PFN is in [start, end) are allocated for the caller, and they could be freed with free_contig_frozen_range(), free_frozen_pages() also could be used to free compound frozen pages directly.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h **Return**h]j)}(hjbh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h'zero on success or negative error code.h]h'zero on success or negative error code.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_contig_range (C function)c.alloc_contig_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hhint alloc_contig_range (unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h]h)}(hgint alloc_contig_range(unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMQubh)}(halloc_contig_rangeh]j)}(halloc_contig_rangeh]halloc_contig_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMQubj )}(hQ(unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h](j )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hlongh]hlong}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hendh]hend}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hacr_flags_t alloc_flagsh](h)}(hhh]j)}(h acr_flags_th]h acr_flags_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.alloc_contig_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h alloc_flagsh]h alloc_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.alloc_contig_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMQubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMQubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMQhjhhubj4)}(hhh]j~W)}(hhh]j/)}(h&tries to allocate given range of pagesh]jM)}(hj.h]h&tries to allocate given range of pages}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMQhj,ubah}(h]h ]h"]h$]h&]uh1j/hj)hhhj=hNubah}(h]h ]h"]h$]h&]jWjWuh1j}Whj=hMQhj&hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMQubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjSjHjSjIjJjKuh1hhhhjhNhNubj)}(hXj**Parameters** ``unsigned long start`` start PFN to allocate ``unsigned long end`` one-past-the-last PFN to allocate ``acr_flags_t alloc_flags`` allocation information ``gfp_t gfp_mask`` GFP mask. **Description** This routine is a wrapper around alloc_contig_frozen_range(), it can't be used to allocate compound pages, the refcount of each allocated page will be set to one. All pages which PFN is in [start, end) are allocated for the caller, and should be freed with free_contig_range() or by manually calling __free_page() on each allocated page. **Return** zero on success or negative error code.h](jM)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMUhjWubj)}(hhh](j)}(h.``unsigned long start`` start PFN to allocate h](j)}(h``unsigned long start``h]jS)}(hj|h]hunsigned long start}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMRhjvubj)}(hhh]jM)}(hstart PFN to allocateh]hstart PFN to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMRhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjsubj)}(h8``unsigned long end`` one-past-the-last PFN to allocate h](j)}(h``unsigned long end``h]jS)}(hjh]hunsigned long end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMShjubj)}(hhh]jM)}(h!one-past-the-last PFN to allocateh]h!one-past-the-last PFN to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjsubj)}(h3``acr_flags_t alloc_flags`` allocation information h](j)}(h``acr_flags_t alloc_flags``h]jS)}(hjh]hacr_flags_t alloc_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMThjubj)}(hhh]jM)}(hallocation informationh]hallocation information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjsubj)}(h``gfp_t gfp_mask`` GFP mask. h](j)}(h``gfp_t gfp_mask``h]jS)}(hj'h]hgfp_t gfp_mask}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMUhj!ubj)}(hhh]jM)}(h GFP mask.h]h GFP mask.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj<hMUhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMUhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubjM)}(h**Description**h]j)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMWhjWubjM)}(hThis routine is a wrapper around alloc_contig_frozen_range(), it can't be used to allocate compound pages, the refcount of each allocated page will be set to one.h]hThis routine is a wrapper around alloc_contig_frozen_range(), it can’t be used to allocate compound pages, the refcount of each allocated page will be set to one.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMVhjWubjM)}(hAll pages which PFN is in [start, end) are allocated for the caller, and should be freed with free_contig_range() or by manually calling __free_page() on each allocated page.h]hAll pages which PFN is in [start, end) are allocated for the caller, and should be freed with free_contig_range() or by manually calling __free_page() on each allocated page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMZhjWubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM^hjWubjM)}(h'zero on success or negative error code.h]h'zero on success or negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM_hjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&alloc_contig_frozen_pages (C function)c.alloc_contig_frozen_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hostruct page * alloc_contig_frozen_pages (unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h]h)}(hmstruct page *alloc_contig_frozen_pages(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlalloc_contig_frozen_pagessbc.alloc_contig_frozen_pagesasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hj+hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(halloc_contig_frozen_pagesh]j)}(hjh]halloc_contig_frozen_pages}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hG(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h](j )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hlongh]hlong}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.alloc_contig_frozen_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubj )}(hint nidh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnidh]hnid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubj )}(hnodemask_t *nodemaskh](h)}(hhh]j)}(h nodemask_th]h nodemask_t}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj*modnameN classnameNjpjs)}jv]jc.alloc_contig_frozen_pagesasbuh1hhj!ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjF )}(hjI h]h*}(hjThhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubj)}(hnodemaskh]hnodemask}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]j~W)}(hhh]j/)}(h;tries to find and allocate contiguous range of frozen pagesh]jM)}(hjh]h;tries to find and allocate contiguous range of frozen pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubah}(h]h ]h"]h$]h&]uh1j/hjhhhjhNubah}(h]h ]h"]h$]h&]jWjWuh1j}WhjhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long nr_pages`` Number of contiguous pages to allocate ``gfp_t gfp_mask`` GFP mask. Node/zone/placement hints limit the search; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim. ``int nid`` Target node ``nodemask_t *nodemask`` Mask for other possible nodes **Description** This routine is a wrapper around alloc_contig_frozen_range(). It scans over zones on an applicable zonelist to find a contiguous pfn range which can then be tried for allocation with alloc_contig_frozen_range(). This routine is intended for allocation requests which can not be fulfilled with the buddy allocator. The allocated memory is always aligned to a page boundary. If nr_pages is a power of two, then allocated range is also guaranteed to be aligned to same nr_pages (e.g. 1GB request would be aligned to 1GB). Allocated frozen pages need be freed with free_contig_frozen_range(), or by manually calling free_frozen_pages() on each allocated frozen non-compound page, for compound frozen pages could be freed with free_frozen_pages() directly. **Return** pointer to contiguous frozen pages on success, or NULL if not successful.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(hB``unsigned long nr_pages`` Number of contiguous pages to allocate h](j)}(h``unsigned long nr_pages``h]jS)}(hjh]hunsigned long nr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h&Number of contiguous pages to allocateh]h&Number of contiguous pages to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``gfp_t gfp_mask`` GFP mask. Node/zone/placement hints limit the search; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim. h](j)}(h``gfp_t gfp_mask``h]jS)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hGFP mask. Node/zone/placement hints limit the search; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim.h]hGFP mask. Node/zone/placement hints limit the search; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(h``int nid`` Target node h](j)}(h ``int nid``h]jS)}(hjQh]hint nid}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjOubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjKubj)}(hhh]jM)}(h Target nodeh]h Target node}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubj)}(h7``nodemask_t *nodemask`` Mask for other possible nodes h](j)}(h``nodemask_t *nodemask``h]jS)}(hjh]hnodemask_t *nodemask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hMask for other possible nodesh]hMask for other possible nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hX9This routine is a wrapper around alloc_contig_frozen_range(). It scans over zones on an applicable zonelist to find a contiguous pfn range which can then be tried for allocation with alloc_contig_frozen_range(). This routine is intended for allocation requests which can not be fulfilled with the buddy allocator.h]hX9This routine is a wrapper around alloc_contig_frozen_range(). It scans over zones on an applicable zonelist to find a contiguous pfn range which can then be tried for allocation with alloc_contig_frozen_range(). This routine is intended for allocation requests which can not be fulfilled with the buddy allocator.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hThe allocated memory is always aligned to a page boundary. If nr_pages is a power of two, then allocated range is also guaranteed to be aligned to same nr_pages (e.g. 1GB request would be aligned to 1GB).h]hThe allocated memory is always aligned to a page boundary. If nr_pages is a power of two, then allocated range is also guaranteed to be aligned to same nr_pages (e.g. 1GB request would be aligned to 1GB).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hAllocated frozen pages need be freed with free_contig_frozen_range(), or by manually calling free_frozen_pages() on each allocated frozen non-compound page, for compound frozen pages could be freed with free_frozen_pages() directly.h]hAllocated frozen pages need be freed with free_contig_frozen_range(), or by manually calling free_frozen_pages() on each allocated frozen non-compound page, for compound frozen pages could be freed with free_frozen_pages() directly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hIpointer to contiguous frozen pages on success, or NULL if not successful.h]hIpointer to contiguous frozen pages on success, or NULL if not successful.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_contig_pages (C function)c.alloc_contig_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hhstruct page * alloc_contig_pages (unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h]h)}(hfstruct page *alloc_contig_pages(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h](j5)}(hj8h]hstruct}(hjOhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjKhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj\hMubh)}(hhh]j)}(hpageh]hpage}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjpmodnameN classnameNjpjs)}jv]jy)}jlalloc_contig_pagessbc.alloc_contig_pagesasbuh1hhjKhhhj\hMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj\hMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjKhhhj\hMubh)}(halloc_contig_pagesh]j)}(hjh]halloc_contig_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjKhhhj\hMubj )}(hG(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h](j )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.alloc_contig_pagesasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint nidh](j)}(hinth]hint}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hnidh]hnid}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hnodemask_t *nodemaskh](h)}(hhh]j)}(h nodemask_th]h nodemask_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.alloc_contig_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnodemaskh]hnodemask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjKhhhj\hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjGhhhj\hMubah}(h]jBah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj\hMhjDhhubj4)}(hhh]j~W)}(hhh]j/)}(h4tries to find and allocate contiguous range of pagesh]jM)}(hjh]h4tries to find and allocate contiguous range of pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubah}(h]h ]h"]h$]h&]uh1j/hjhhhjhNubah}(h]h ]h"]h$]h&]jWjWuh1j}WhjhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjDhhhj\hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj'jHj'jIjJjKuh1hhhhjhNhNubj)}(hXA**Parameters** ``unsigned long nr_pages`` Number of contiguous pages to allocate ``gfp_t gfp_mask`` GFP mask. ``int nid`` Target node ``nodemask_t *nodemask`` Mask for other possible nodes **Description** This routine is a wrapper around alloc_contig_frozen_pages(), it can't be used to allocate compound pages, the refcount of each allocated page will be set to one. Allocated pages can be freed with free_contig_range() or by manually calling __free_page() on each allocated page. **Return** pointer to contiguous pages on success, or NULL if not successful.h](jM)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj+ubj)}(hhh](j)}(hB``unsigned long nr_pages`` Number of contiguous pages to allocate h](j)}(h``unsigned long nr_pages``h]jS)}(hjPh]hunsigned long nr_pages}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjJubj)}(hhh]jM)}(h&Number of contiguous pages to allocateh]h&Number of contiguous pages to allocate}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjGubj)}(h``gfp_t gfp_mask`` GFP mask. h](j)}(h``gfp_t gfp_mask``h]jS)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h GFP mask.h]h GFP mask.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjGubj)}(h``int nid`` Target node h](j)}(h ``int nid``h]jS)}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h Target nodeh]h Target node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjGubj)}(h7``nodemask_t *nodemask`` Mask for other possible nodes h](j)}(h``nodemask_t *nodemask``h]jS)}(hjh]hnodemask_t *nodemask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hMask for other possible nodesh]hMask for other possible nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubjM)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj+ubjM)}(hThis routine is a wrapper around alloc_contig_frozen_pages(), it can't be used to allocate compound pages, the refcount of each allocated page will be set to one.h]hThis routine is a wrapper around alloc_contig_frozen_pages(), it can’t be used to allocate compound pages, the refcount of each allocated page will be set to one.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj+ubjM)}(hrAllocated pages can be freed with free_contig_range() or by manually calling __free_page() on each allocated page.h]hrAllocated pages can be freed with free_contig_range() or by manually calling __free_page() on each allocated page.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj+ubjM)}(h **Return**h]j)}(hjlh]hReturn}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hj+ubjM)}(hBpointer to contiguous pages on success, or NULL if not successful.h]hBpointer to contiguous pages on success, or NULL if not successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%free_contig_frozen_range (C function)c.free_contig_frozen_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hIvoid free_contig_frozen_range (unsigned long pfn, unsigned long nr_pages)h]h)}(hHvoid free_contig_frozen_range(unsigned long pfn, unsigned long nr_pages)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfree_contig_frozen_rangeh]j)}(hfree_contig_frozen_rangeh]hfree_contig_frozen_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h+(unsigned long pfn, unsigned long nr_pages)h](j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hlongh]hlong}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hnr_pagesh]hnr_pages}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]j~W)}(hhh]j/)}(h)free the contiguous range of frozen pagesh]jM)}(hjh]h)free the contiguous range of frozen pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubah}(h]h ]h"]h$]h&]uh1j/hjhhhjhNubah}(h]h ]h"]h$]h&]jWjWuh1j}WhjhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned long pfn`` start PFN to free ``unsigned long nr_pages`` Number of contiguous frozen pages to free **Description** This can be used to free the allocated compound/non-compound frozen pages.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM"hjubj)}(hhh](j)}(h(``unsigned long pfn`` start PFN to free h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hstart PFN to freeh]hstart PFN to free}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hE``unsigned long nr_pages`` Number of contiguous frozen pages to free h](j)}(h``unsigned long nr_pages``h]jS)}(hj-h]hunsigned long nr_pages}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj+ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hj'ubj)}(hhh]jM)}(h)Number of contiguous frozen pages to freeh]h)Number of contiguous frozen pages to free}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhM hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjhh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM"hjubjM)}(hJThis can be used to free the allocated compound/non-compound frozen pages.h]hJThis can be used to free the allocated compound/non-compound frozen pages.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfree_contig_range (C function)c.free_contig_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hBvoid free_contig_range (unsigned long pfn, unsigned long nr_pages)h]h)}(hAvoid free_contig_range(unsigned long pfn, unsigned long nr_pages)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM7ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM7ubh)}(hfree_contig_rangeh]j)}(hfree_contig_rangeh]hfree_contig_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM7ubj )}(h+(unsigned long pfn, unsigned long nr_pages)h](j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hlongh]hlong}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hnr_pagesh]hnr_pages}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM7ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM7ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM7hjhhubj4)}(hhh]j~W)}(hhh]j/)}(h"free the contiguous range of pagesh]jM)}(hjh]h"free the contiguous range of pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM7hjubah}(h]h ]h"]h$]h&]uh1j/hjhhhjhNubah}(h]h ]h"]h$]h&]jWjWuh1j}WhjhM7hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM7ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned long pfn`` start PFN to free ``unsigned long nr_pages`` Number of contiguous pages to free **Description** This can be only used to free the allocated non-compound pages.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM;hjubj)}(hhh](j)}(h(``unsigned long pfn`` start PFN to free h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM8hjubj)}(hhh]jM)}(hstart PFN to freeh]hstart PFN to free}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubj)}(h>``unsigned long nr_pages`` Number of contiguous pages to free h](j)}(h``unsigned long nr_pages``h]jS)}(hj)h]hunsigned long nr_pages}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM9hj#ubj)}(hhh]jM)}(h"Number of contiguous pages to freeh]h"Number of contiguous pages to free}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hM9hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hM9hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM;hjubjM)}(h?This can be only used to free the allocated non-compound pages.h]h?This can be only used to free the allocated non-compound pages.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM:hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_pages_nolock (C function)c.alloc_pages_nolockhNtauh1hhjhhhNhNubh)}(hhh](h)}(hOstruct page * alloc_pages_nolock (gfp_t gfp_flags, int nid, unsigned int order)h]h)}(hMstruct page *alloc_pages_nolock(gfp_t gfp_flags, int nid, unsigned int order)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlalloc_pages_nolocksbc.alloc_pages_nolockasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(halloc_pages_nolockh]j)}(hjh]halloc_pages_nolock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h.(gfp_t gfp_flags, int nid, unsigned int order)h](j )}(hgfp_t gfp_flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj(modnameN classnameNjpjs)}jv]jc.alloc_pages_nolockasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h gfp_flagsh]h gfp_flags}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint nidh](j)}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hnidh]hnid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h3opportunistic reentrant allocation from any contexth]h3opportunistic reentrant allocation from any context}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``gfp_t gfp_flags`` GFP flags. Only __GFP_ACCOUNT allowed. ``int nid`` node to allocate from ``unsigned int order`` allocation order size **Description** Allocates pages of a given order from the given node. This is safe to call from any context where RCU is watching (from atomic, NMI, and also reentrant allocator -> tracepoint -> alloc_pages_nolock_noprof). Allocation is best effort and to be expected to fail easily so nobody should rely on the success. Failures are not reported via warn_alloc(). See always fail conditions below. **Return** allocated page or NULL on failure. NULL does not mean EBUSY or EAGAIN. It means ENOMEM. There is no reason to call it again and expect !NULL.h](jM)}(h**Parameters**h]j)}(hj$ h]h Parameters}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj" ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hj ubj)}(hhh](j)}(h;``gfp_t gfp_flags`` GFP flags. Only __GFP_ACCOUNT allowed. h](j)}(h``gfp_t gfp_flags``h]jS)}(hjC h]hgfp_t gfp_flags}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjA ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hj= ubj)}(hhh]jM)}(h&GFP flags. Only __GFP_ACCOUNT allowed.h]h&GFP flags. Only __GFP_ACCOUNT allowed.}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjX hM hjY ubah}(h]h ]h"]h$]h&]uh1jhj= ubeh}(h]h ]h"]h$]h&]uh1jhjX hM hj: ubj)}(h"``int nid`` node to allocate from h](j)}(h ``int nid``h]jS)}(hj| h]hint nid}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjz ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjv ubj)}(hhh]jM)}(hnode to allocate fromh]hnode to allocate from}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjv ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj: ubj)}(h-``unsigned int order`` allocation order size h](j)}(h``unsigned int order``h]jS)}(hj h]hunsigned int order}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hj ubj)}(hhh]jM)}(hallocation order sizeh]hallocation order size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj: ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hj ubjM)}(hX~Allocates pages of a given order from the given node. This is safe to call from any context where RCU is watching (from atomic, NMI, and also reentrant allocator -> tracepoint -> alloc_pages_nolock_noprof). Allocation is best effort and to be expected to fail easily so nobody should rely on the success. Failures are not reported via warn_alloc(). See always fail conditions below.h]hX~Allocates pages of a given order from the given node. This is safe to call from any context where RCU is watching (from atomic, NMI, and also reentrant allocator -> tracepoint -> alloc_pages_nolock_noprof). Allocation is best effort and to be expected to fail easily so nobody should rely on the success. Failures are not reported via warn_alloc(). See always fail conditions below.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hj ubjM)}(h **Return**h]j)}(hj!h]hReturn}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj ubjM)}(hallocated page or NULL on failure. NULL does not mean EBUSY or EAGAIN. It means ENOMEM. There is no reason to call it again and expect !NULL.h]hallocated page or NULL on failure. NULL does not mean EBUSY or EAGAIN. It means ENOMEM. There is no reason to call it again and expect !NULL.}(hj-!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hnuma_nearest_node (C function)c.numa_nearest_nodehNtauh1hhjhhhNhNubh)}(hhh](h)}(h4int numa_nearest_node (int node, unsigned int state)h]h)}(h3int numa_nearest_node(int node, unsigned int state)h](j)}(hinth]hint}(hj\!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX!hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMubj)}(h h]h }(hjk!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX!hhhjj!hMubh)}(hnuma_nearest_nodeh]j)}(hnuma_nearest_nodeh]hnuma_nearest_node}(hj}!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy!ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjX!hhhjj!hMubj )}(h(int node, unsigned int state)h](j )}(hint nodeh](j)}(hinth]hint}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hnodeh]hnode}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!ubj )}(hunsigned int stateh](j)}(hunsignedh]hunsigned}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hinth]hint}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hstateh]hstate}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!ubeh}(h]h ]h"]h$]h&]jjuh1j hjX!hhhjj!hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjT!hhhjj!hMubah}(h]jO!ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjj!hMhjQ!hhubj4)}(hhh]jM)}(hFind nearest node by stateh]hFind nearest node by state}(hj0"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhj-"hhubah}(h]h ]h"]h$]h&]uh1j3hjQ!hhhjj!hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjH"jHjH"jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``int node`` Node id to start the search ``unsigned int state`` State to filter the search **Description** Lookup the closest node by distance if **nid** is not in state. **Return** this **node** if it is in state, otherwise the closest node by distanceh](jM)}(h**Parameters**h]j)}(hjR"h]h Parameters}(hjT"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP"ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjL"ubj)}(hhh](j)}(h)``int node`` Node id to start the search h](j)}(h ``int node``h]jS)}(hjq"h]hint node}(hjs"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjo"ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjk"ubj)}(hhh]jM)}(hNode id to start the searchh]hNode id to start the search}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjk"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjh"ubj)}(h2``unsigned int state`` State to filter the search h](j)}(h``unsigned int state``h]jS)}(hj"h]hunsigned int state}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhj"ubj)}(hhh]jM)}(hState to filter the searchh]hState to filter the search}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjh"ubeh}(h]h ]h"]h$]h&]uh1jhjL"ubjM)}(h**Description**h]j)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjL"ubjM)}(h?Lookup the closest node by distance if **nid** is not in state.h](h'Lookup the closest node by distance if }(hj"hhhNhNubj)}(h**nid**h]hnid}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh is not in state.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjL"ubjM)}(h **Return**h]j)}(hj#h]hReturn}(hj #hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjL"ubjM)}(hGthis **node** if it is in state, otherwise the closest node by distanceh](hthis }(hj4#hhhNhNubj)}(h**node**h]hnode}(hj<#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4#ubh: if it is in state, otherwise the closest node by distance}(hj4#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjL"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"nearest_node_nodemask (C function)c.nearest_node_nodemaskhNtauh1hhjhhhNhNubh)}(hhh](h)}(h6int nearest_node_nodemask (int node, nodemask_t *mask)h]h)}(h5int nearest_node_nodemask(int node, nodemask_t *mask)h](j)}(hinth]hint}(hju#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq#hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM6ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq#hhhj#hM6ubh)}(hnearest_node_nodemaskh]j)}(hnearest_node_nodemaskh]hnearest_node_nodemask}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjq#hhhj#hM6ubj )}(h(int node, nodemask_t *mask)h](j )}(hint nodeh](j)}(hinth]hint}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hnodeh]hnode}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#ubj )}(hnodemask_t *maskh](h)}(hhh]j)}(h nodemask_th]h nodemask_t}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj#modnameN classnameNjpjs)}jv]jy)}jlj#sbc.nearest_node_nodemaskasbuh1hhj#ubj)}(h h]h }(hj $hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjF )}(hjI h]h*}(hj$hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj#ubj)}(hmaskh]hmask}(hj%$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#ubeh}(h]h ]h"]h$]h&]jjuh1j hjq#hhhj#hM6ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjm#hhhj#hM6ubah}(h]jh#ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj#hM6hjj#hhubj4)}(hhh]jM)}(h@Find the node in **mask** at the nearest distance from **node**.h](hFind the node in }(hjO$hhhNhNubj)}(h**mask**h]hmask}(hjW$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO$ubh at the nearest distance from }(hjO$hhhNhNubj)}(h**node**h]hnode}(hji$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO$ubh.}(hjO$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM6hjL$hhubah}(h]h ]h"]h$]h&]uh1j3hjj#hhhj#hM6ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj$jHj$jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``int node`` a valid node ID to start the search from. ``nodemask_t *mask`` a pointer to a nodemask representing the allowed nodes. **Description** This function iterates over all nodes in **mask** and calculates the distance from the starting **node**, then it returns the node ID that is the closest to **node**, or MAX_NUMNODES if no node is found. Note that **node** must be a valid node ID usable with node_distance(), providing an invalid node ID (e.g., NUMA_NO_NODE) may result in crashes or unexpected behavior.h](jM)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM:hj$ubj)}(hhh](j)}(h7``int node`` a valid node ID to start the search from. h](j)}(h ``int node``h]jS)}(hj$h]hint node}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM9hj$ubj)}(hhh]jM)}(h)a valid node ID to start the search from.h]h)a valid node ID to start the search from.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$hM9hj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM9hj$ubj)}(hM``nodemask_t *mask`` a pointer to a nodemask representing the allowed nodes. h](j)}(h``nodemask_t *mask``h]jS)}(hj$h]hnodemask_t *mask}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM:hj$ubj)}(hhh]jM)}(h7a pointer to a nodemask representing the allowed nodes.h]h7a pointer to a nodemask representing the allowed nodes.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%hM:hj%ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj%hM:hj$ubeh}(h]h ]h"]h$]h&]uh1jhj$ubjM)}(h**Description**h]j)}(hj(%h]h Description}(hj*%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&%ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM<hj$ubjM)}(hThis function iterates over all nodes in **mask** and calculates the distance from the starting **node**, then it returns the node ID that is the closest to **node**, or MAX_NUMNODES if no node is found.h](h)This function iterates over all nodes in }(hj>%hhhNhNubj)}(h**mask**h]hmask}(hjF%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>%ubh/ and calculates the distance from the starting }(hj>%hhhNhNubj)}(h**node**h]hnode}(hjX%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>%ubh5, then it returns the node ID that is the closest to }(hj>%hhhNhNubj)}(h**node**h]hnode}(hjj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>%ubh&, or MAX_NUMNODES if no node is found.}(hj>%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM;hj$ubjM)}(hNote that **node** must be a valid node ID usable with node_distance(), providing an invalid node ID (e.g., NUMA_NO_NODE) may result in crashes or unexpected behavior.h](h Note that }(hj%hhhNhNubj)}(h**node**h]hnode}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh must be a valid node ID usable with node_distance(), providing an invalid node ID (e.g., NUMA_NO_NODE) may result in crashes or unexpected behavior.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM?hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_can_map_prot_numa (C function)c.folio_can_map_prot_numahNtauh1hhjhhhNhNubh)}(hhh](h)}(hobool folio_can_map_prot_numa (struct folio *folio, struct vm_area_struct *vma, bool is_private_single_threaded)h]h)}(hnbool folio_can_map_prot_numa(struct folio *folio, struct vm_area_struct *vma, bool is_private_single_threaded)h](j)}(hj.h]hbool}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM7ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj%hM7ubh)}(hfolio_can_map_prot_numah]j)}(hfolio_can_map_prot_numah]hfolio_can_map_prot_numa}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj%hhhj%hM7ubj )}(hR(struct folio *folio, struct vm_area_struct *vma, bool is_private_single_threaded)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj&hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj%ubj)}(h h]h }(hj &hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hhh]j)}(hfolioh]hfolio}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj &modnameN classnameNjpjs)}jv]jy)}jlj%sbc.folio_can_map_prot_numaasbuh1hhj%ubj)}(h h]h }(hj>&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjF )}(hjI h]h*}(hjL&hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj%ubj)}(hfolioh]hfolio}(hjY&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj%ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjr&hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjn&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn&ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj&modnameN classnameNjpjs)}jv]j:&c.folio_can_map_prot_numaasbuh1hhjn&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn&ubjF )}(hjI h]h*}(hj&hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjn&ubj)}(hvmah]hvma}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj%ubj )}(hbool is_private_single_threadedh](j)}(hj.h]hbool}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(his_private_single_threadedh]his_private_single_threaded}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj%ubeh}(h]h ]h"]h$]h&]jjuh1j hj%hhhj%hM7ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj%hhhj%hM7ubah}(h]j%ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj%hM7hj%hhubj4)}(hhh]jM)}(h)check whether the folio can map prot numah]h)check whether the folio can map prot numa}(hj''hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM7hj$'hhubah}(h]h ]h"]h$]h&]uh1j3hj%hhhj%hM7ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj?'jHj?'jIjJjKuh1hhhhjhNhNubj)}(hXn**Parameters** ``struct folio *folio`` The folio whose mapping considered for being made NUMA hintable ``struct vm_area_struct *vma`` The VMA that the folio belongs to. ``bool is_private_single_threaded`` Is this a single-threaded private VMA or not **Description** This function checks to see if the folio actually indicates that we need to make the mapping one which causes a NUMA hinting fault, as there are cases where it's simply unnecessary, and the folio's access time is adjusted for memory tiering if prot numa needed. **Return** True if the mapping of the folio needs to be changed, false otherwise.h](jM)}(h**Parameters**h]j)}(hjI'h]h Parameters}(hjK'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG'ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM;hjC'ubj)}(hhh](j)}(hX``struct folio *folio`` The folio whose mapping considered for being made NUMA hintable h](j)}(h``struct folio *folio``h]jS)}(hjh'h]hstruct folio *folio}(hjj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjf'ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM8hjb'ubj)}(hhh]jM)}(h?The folio whose mapping considered for being made NUMA hintableh]h?The folio whose mapping considered for being made NUMA hintable}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}'hM8hj~'ubah}(h]h ]h"]h$]h&]uh1jhjb'ubeh}(h]h ]h"]h$]h&]uh1jhj}'hM8hj_'ubj)}(hB``struct vm_area_struct *vma`` The VMA that the folio belongs to. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj'h]hstruct vm_area_struct *vma}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM9hj'ubj)}(hhh]jM)}(h"The VMA that the folio belongs to.h]h"The VMA that the folio belongs to.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'hM9hj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM9hj_'ubj)}(hQ``bool is_private_single_threaded`` Is this a single-threaded private VMA or not h](j)}(h#``bool is_private_single_threaded``h]jS)}(hj'h]hbool is_private_single_threaded}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM:hj'ubj)}(hhh]jM)}(h,Is this a single-threaded private VMA or noth]h,Is this a single-threaded private VMA or not}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'hM:hj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM:hj_'ubeh}(h]h ]h"]h$]h&]uh1jhjC'ubjM)}(h**Description**h]j)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM<hjC'ubjM)}(hXThis function checks to see if the folio actually indicates that we need to make the mapping one which causes a NUMA hinting fault, as there are cases where it's simply unnecessary, and the folio's access time is adjusted for memory tiering if prot numa needed.h]hX This function checks to see if the folio actually indicates that we need to make the mapping one which causes a NUMA hinting fault, as there are cases where it’s simply unnecessary, and the folio’s access time is adjusted for memory tiering if prot numa needed.}(hj+(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM;hjC'ubjM)}(h **Return**h]j)}(hj<(h]hReturn}(hj>(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:(ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM@hjC'ubjM)}(hFTrue if the mapping of the folio needs to be changed, false otherwise.h]hFTrue if the mapping of the folio needs to be changed, false otherwise.}(hjR(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMAhjC'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_pages_mpol (C function)c.alloc_pages_mpolhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkstruct page * alloc_pages_mpol (gfp_t gfp, unsigned int order, struct mempolicy *pol, pgoff_t ilx, int nid)h]h)}(histruct page *alloc_pages_mpol(gfp_t gfp, unsigned int order, struct mempolicy *pol, pgoff_t ilx, int nid)h](j5)}(hj8h]hstruct}(hj(hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj}(hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}(hhhj(hM ubh)}(hhh]j)}(hpageh]hpage}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj(modnameN classnameNjpjs)}jv]jy)}jlalloc_pages_mpolsbc.alloc_pages_mpolasbuh1hhj}(hhhj(hM ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}(hhhj(hM ubjF )}(hjI h]h*}(hj(hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj}(hhhj(hM ubh)}(halloc_pages_mpolh]j)}(hj(h]halloc_pages_mpol}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj}(hhhj(hM ubj )}(hL(gfp_t gfp, unsigned int order, struct mempolicy *pol, pgoff_t ilx, int nid)h](j )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj)modnameN classnameNjpjs)}jv]j(c.alloc_pages_mpolasbuh1hhj(ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hgfph]hgfp}(hj*)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(ubj )}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjC)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?)ubj)}(h h]h }(hjQ)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?)ubj)}(hinth]hint}(hj_)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?)ubj)}(h h]h }(hjm)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?)ubj)}(horderh]horder}(hj{)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?)ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(ubj )}(hstruct mempolicy *polh](j5)}(hj8h]hstruct}(hj)hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubh)}(hhh]j)}(h mempolicyh]h mempolicy}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj)modnameN classnameNjpjs)}jv]j(c.alloc_pages_mpolasbuh1hhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjF )}(hjI h]h*}(hj)hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj)ubj)}(hpolh]hpol}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(ubj )}(h pgoff_t ilxh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj *modnameN classnameNjpjs)}jv]j(c.alloc_pages_mpolasbuh1hhj*ubj)}(h h]h }(hj%*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hilxh]hilx}(hj3*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(ubj )}(hint nidh](j)}(hinth]hint}(hjL*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH*ubj)}(h h]h }(hjZ*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH*ubj)}(hnidh]hnid}(hjh*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(ubeh}(h]h ]h"]h$]h&]jjuh1j hj}(hhhj(hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjy(hhhj(hM ubah}(h]jt(ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj(hM hjv(hhubj4)}(hhh]jM)}(h+Allocate pages according to NUMA mempolicy.h]h+Allocate pages according to NUMA mempolicy.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj*hhubah}(h]h ]h"]h$]h&]uh1j3hjv(hhhj(hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj*jHj*jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``gfp_t gfp`` GFP flags. ``unsigned int order`` Order of the page allocation. ``struct mempolicy *pol`` Pointer to the NUMA mempolicy. ``pgoff_t ilx`` Index for interleave mempolicy (also distinguishes alloc_pages()). ``int nid`` Preferred node (usually numa_node_id() but **mpol** may override it). **Return** The page on success or NULL if allocation fails.h](jM)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj*ubj)}(hhh](j)}(h``gfp_t gfp`` GFP flags. h](j)}(h ``gfp_t gfp``h]jS)}(hj*h]h gfp_t gfp}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj*ubj)}(hhh]jM)}(h GFP flags.h]h GFP flags.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj*hM hj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hM hj*ubj)}(h5``unsigned int order`` Order of the page allocation. h](j)}(h``unsigned int order``h]jS)}(hj +h]hunsigned int order}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj +ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj+ubj)}(hhh]jM)}(hOrder of the page allocation.h]hOrder of the page allocation.}(hj%+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj!+hM hj"+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj!+hM hj*ubj)}(h9``struct mempolicy *pol`` Pointer to the NUMA mempolicy. h](j)}(h``struct mempolicy *pol``h]jS)}(hjE+h]hstruct mempolicy *pol}(hjG+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjC+ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj?+ubj)}(hhh]jM)}(hPointer to the NUMA mempolicy.h]hPointer to the NUMA mempolicy.}(hj^+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZ+hM hj[+ubah}(h]h ]h"]h$]h&]uh1jhj?+ubeh}(h]h ]h"]h$]h&]uh1jhjZ+hM hj*ubj)}(hS``pgoff_t ilx`` Index for interleave mempolicy (also distinguishes alloc_pages()). h](j)}(h``pgoff_t ilx``h]jS)}(hj~+h]h pgoff_t ilx}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj|+ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjx+ubj)}(hhh]jM)}(hBIndex for interleave mempolicy (also distinguishes alloc_pages()).h]hBIndex for interleave mempolicy (also distinguishes alloc_pages()).}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+hM hj+ubah}(h]h ]h"]h$]h&]uh1jhjx+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM hj*ubj)}(hR``int nid`` Preferred node (usually numa_node_id() but **mpol** may override it). h](j)}(h ``int nid``h]jS)}(hj+h]hint nid}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj+ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj+ubj)}(hhh]jM)}(hEPreferred node (usually numa_node_id() but **mpol** may override it).h](h+Preferred node (usually numa_node_id() but }(hj+hhhNhNubj)}(h**mpol**h]hmpol}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh may override it).}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj+hM hj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM hj*ubeh}(h]h ]h"]h$]h&]uh1jhj*ubjM)}(h **Return**h]j)}(hj,h]hReturn}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj*ubjM)}(h0The page on success or NULL if allocation fails.h]h0The page on success or NULL if allocation fails.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvma_alloc_folio (C function)c.vma_alloc_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hestruct folio * vma_alloc_folio (gfp_t gfp, int order, struct vm_area_struct *vma, unsigned long addr)h]h)}(hcstruct folio *vma_alloc_folio(gfp_t gfp, int order, struct vm_area_struct *vma, unsigned long addr)h](j5)}(hj8h]hstruct}(hjI,hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjE,hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hjW,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE,hhhjV,hM ubh)}(hhh]j)}(hfolioh]hfolio}(hjh,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjj,modnameN classnameNjpjs)}jv]jy)}jlvma_alloc_foliosbc.vma_alloc_folioasbuh1hhjE,hhhjV,hM ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE,hhhjV,hM ubjF )}(hjI h]h*}(hj,hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjE,hhhjV,hM ubh)}(hvma_alloc_folioh]j)}(hj,h]hvma_alloc_folio}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjE,hhhjV,hM ubj )}(hF(gfp_t gfp, int order, struct vm_area_struct *vma, unsigned long addr)h](j )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,modnameN classnameNjpjs)}jv]j,c.vma_alloc_folioasbuh1hhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hgfph]hgfp}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj,ubj )}(h int orderh](j)}(hinth]hint}(hj -hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(horderh]horder}(hj'-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj,ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj@-hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj<-ubj)}(h h]h }(hjM-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<-ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj^-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[-ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj`-modnameN classnameNjpjs)}jv]j,c.vma_alloc_folioasbuh1hhj<-ubj)}(h h]h }(hj|-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<-ubjF )}(hjI h]h*}(hj-hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj<-ubj)}(hvmah]hvma}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj,ubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hlongh]hlong}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(haddrh]haddr}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj,ubeh}(h]h ]h"]h$]h&]jjuh1j hjE,hhhjV,hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjA,hhhjV,hM ubah}(h]j<,ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjV,hM hj>,hhubj4)}(hhh]jM)}(hAllocate a folio for a VMA.h]hAllocate a folio for a VMA.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj.hhubah}(h]h ]h"]h$]h&]uh1j3hj>,hhhjV,hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj*.jHj*.jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``gfp_t gfp`` GFP flags. ``int order`` Order of the folio. ``struct vm_area_struct *vma`` Pointer to VMA. ``unsigned long addr`` Virtual address of the allocation. Must be inside **vma**. **Description** Allocate a folio for a specific address in **vma**, using the appropriate NUMA policy. The caller must hold the mmap_lock of the mm_struct of the VMA to prevent it from going away. Should be used for all allocations for folios that will be mapped into user space, excepting hugetlbfs, and excepting where direct use of folio_alloc_mpol() is more appropriate. **Return** The folio on success or NULL if allocation fails.h](jM)}(h**Parameters**h]j)}(hj4.h]h Parameters}(hj6.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2.ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj..ubj)}(hhh](j)}(h``gfp_t gfp`` GFP flags. h](j)}(h ``gfp_t gfp``h]jS)}(hjS.h]h gfp_t gfp}(hjU.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQ.ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjM.ubj)}(hhh]jM)}(h GFP flags.h]h GFP flags.}(hjl.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjh.hM hji.ubah}(h]h ]h"]h$]h&]uh1jhjM.ubeh}(h]h ]h"]h$]h&]uh1jhjh.hM hjJ.ubj)}(h"``int order`` Order of the folio. h](j)}(h ``int order``h]jS)}(hj.h]h int order}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj.ubj)}(hhh]jM)}(hOrder of the folio.h]hOrder of the folio.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.hM hj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hM hjJ.ubj)}(h/``struct vm_area_struct *vma`` Pointer to VMA. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj.h]hstruct vm_area_struct *vma}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj.ubj)}(hhh]jM)}(hPointer to VMA.h]hPointer to VMA.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.hM hj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hM hjJ.ubj)}(hS``unsigned long addr`` Virtual address of the allocation. Must be inside **vma**. h](j)}(h``unsigned long addr``h]jS)}(hj.h]hunsigned long addr}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj.ubj)}(hhh]jM)}(h;Virtual address of the allocation. Must be inside **vma**.h](h3Virtual address of the allocation. Must be inside }(hj/hhhNhNubj)}(h**vma**h]hvma}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj/hM hj/ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj/hM hjJ.ubeh}(h]h ]h"]h$]h&]uh1jhj..ubjM)}(h**Description**h]j)}(hjK/h]h Description}(hjM/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI/ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj..ubjM)}(hXhAllocate a folio for a specific address in **vma**, using the appropriate NUMA policy. The caller must hold the mmap_lock of the mm_struct of the VMA to prevent it from going away. Should be used for all allocations for folios that will be mapped into user space, excepting hugetlbfs, and excepting where direct use of folio_alloc_mpol() is more appropriate.h](h+Allocate a folio for a specific address in }(hja/hhhNhNubj)}(h**vma**h]hvma}(hji/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja/ubhX6, using the appropriate NUMA policy. The caller must hold the mmap_lock of the mm_struct of the VMA to prevent it from going away. Should be used for all allocations for folios that will be mapped into user space, excepting hugetlbfs, and excepting where direct use of folio_alloc_mpol() is more appropriate.}(hja/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj..ubjM)}(h **Return**h]j)}(hj/h]hReturn}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj..ubjM)}(h1The folio on success or NULL if allocation fails.h]h1The folio on success or NULL if allocation fails.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj..ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_pages (C function) c.alloc_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h9struct page * alloc_pages (gfp_t gfp, unsigned int order)h]h)}(h7struct page *alloc_pages(gfp_t gfp, unsigned int order)h](j5)}(hj8h]hstruct}(hj/hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj/hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj/hM ubh)}(hhh]j)}(hpageh]hpage}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj/modnameN classnameNjpjs)}jv]jy)}jl alloc_pagessb c.alloc_pagesasbuh1hhj/hhhj/hM ubj)}(h h]h }(hj 0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj/hM ubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj/hhhj/hM ubh)}(h alloc_pagesh]j)}(hj0h]h alloc_pages}(hj(0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$0ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/hhhj/hM ubj )}(h(gfp_t gfp, unsigned int order)h](j )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjF0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjH0modnameN classnameNjpjs)}jv]j0 c.alloc_pagesasbuh1hhj?0ubj)}(h h]h }(hjd0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?0ubj)}(hgfph]hgfp}(hjr0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj;0ubj )}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hinth]hint}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(horderh]horder}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj;0ubeh}(h]h ]h"]h$]h&]jjuh1j hj/hhhj/hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj/hhhj/hM ubah}(h]j/ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj/hM hj/hhubj4)}(hhh]jM)}(hAllocate pages.h]hAllocate pages.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj0hhubah}(h]h ]h"]h$]h&]uh1j3hj/hhhj/hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj1jHj1jIjJjKuh1hhhhjhNhNubj)}(hX"**Parameters** ``gfp_t gfp`` GFP flags. ``unsigned int order`` Power of two of number of pages to allocate. **Description** Allocate 1 << **order** contiguous pages. The physical address of the first page is naturally aligned (eg an order-3 allocation will be aligned to a multiple of 8 * PAGE_SIZE bytes). The NUMA policy of the current process is honoured when in process context. **Context** Can be called from any context, providing the appropriate GFP flags are used. **Return** The page on success or NULL if allocation fails.h](jM)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 1ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj 1ubj)}(hhh](j)}(h``gfp_t gfp`` GFP flags. h](j)}(h ``gfp_t gfp``h]jS)}(hj.1h]h gfp_t gfp}(hj01hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj,1ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj(1ubj)}(hhh]jM)}(h GFP flags.h]h GFP flags.}(hjG1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjC1hM hjD1ubah}(h]h ]h"]h$]h&]uh1jhj(1ubeh}(h]h ]h"]h$]h&]uh1jhjC1hM hj%1ubj)}(hD``unsigned int order`` Power of two of number of pages to allocate. h](j)}(h``unsigned int order``h]jS)}(hjg1h]hunsigned int order}(hji1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje1ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hja1ubj)}(hhh]jM)}(h,Power of two of number of pages to allocate.h]h,Power of two of number of pages to allocate.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|1hM hj}1ubah}(h]h ]h"]h$]h&]uh1jhja1ubeh}(h]h ]h"]h$]h&]uh1jhj|1hM hj%1ubeh}(h]h ]h"]h$]h&]uh1jhj 1ubjM)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj 1ubjM)}(hXAllocate 1 << **order** contiguous pages. The physical address of the first page is naturally aligned (eg an order-3 allocation will be aligned to a multiple of 8 * PAGE_SIZE bytes). The NUMA policy of the current process is honoured when in process context.h](hAllocate 1 << }(hj1hhhNhNubj)}(h **order**h]horder}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh contiguous pages. The physical address of the first page is naturally aligned (eg an order-3 allocation will be aligned to a multiple of 8 * PAGE_SIZE bytes). The NUMA policy of the current process is honoured when in process context.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj 1ubjM)}(h **Context**h]j)}(hj1h]hContext}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj 1ubjM)}(hMCan be called from any context, providing the appropriate GFP flags are used.h]hMCan be called from any context, providing the appropriate GFP flags are used.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj 1ubjM)}(h **Return**h]j)}(hj2h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj 1ubjM)}(h0The page on success or NULL if allocation fails.h]h0The page on success or NULL if allocation fails.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj 1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmpol_misplaced (C function)c.mpol_misplacedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hRint mpol_misplaced (struct folio *folio, struct vm_fault *vmf, unsigned long addr)h]h)}(hQint mpol_misplaced(struct folio *folio, struct vm_fault *vmf, unsigned long addr)h](j)}(hinth]hint}(hjG2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC2hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hjV2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC2hhhjU2hM ubh)}(hmpol_misplacedh]j)}(hmpol_misplacedh]hmpol_misplaced}(hjh2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd2ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjC2hhhjU2hM ubj )}(h?(struct folio *folio, struct vm_fault *vmf, unsigned long addr)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj2hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]j)}(hfolioh]hfolio}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj2modnameN classnameNjpjs)}jv]jy)}jljj2sbc.mpol_misplacedasbuh1hhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjF )}(hjI h]h*}(hj2hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2ubj)}(hfolioh]hfolio}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|2ubj )}(hstruct vm_fault *vmfh](j5)}(hj8h]hstruct}(hj2hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj2ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3modnameN classnameNjpjs)}jv]j2c.mpol_misplacedasbuh1hhj2ubj)}(h h]h }(hj23hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjF )}(hjI h]h*}(hj@3hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2ubj)}(hvmfh]hvmf}(hjM3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|2ubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjf3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb3ubj)}(h h]h }(hjt3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb3ubj)}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb3ubj)}(haddrh]haddr}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|2ubeh}(h]h ]h"]h$]h&]jjuh1j hjC2hhhjU2hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj?2hhhjU2hM ubah}(h]j:2ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjU2hM hj<2hhubj4)}(hhh]jM)}(h3check whether current folio node is valid in policyh]h3check whether current folio node is valid in policy}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj3hhubah}(h]h ]h"]h$]h&]uh1j3hj<2hhhjU2hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj3jHj3jIjJjKuh1hhhhjhNhNubj)}(hX=**Parameters** ``struct folio *folio`` folio to be checked ``struct vm_fault *vmf`` structure describing the fault ``unsigned long addr`` virtual address in **vma** for shared policy lookup and interleave policy **Description** Lookup current policy node id for vma,addr and "compare to" folio's node id. Policy determination "mimics" alloc_page_vma(). Called from fault path where we know the vma and faulting address. **Return** NUMA_NO_NODE if the page is in a node that is valid for this policy, or a suitable node ID to allocate a replacement folio from.h](jM)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj3ubj)}(hhh](j)}(h,``struct folio *folio`` folio to be checked h](j)}(h``struct folio *folio``h]jS)}(hj 4h]hstruct folio *folio}(hj 4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj4ubj)}(hhh]jM)}(hfolio to be checkedh]hfolio to be checked}(hj"4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM hj4ubj)}(h8``struct vm_fault *vmf`` structure describing the fault h](j)}(h``struct vm_fault *vmf``h]jS)}(hjB4h]hstruct vm_fault *vmf}(hjD4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@4ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj<4ubj)}(hhh]jM)}(hstructure describing the faulth]hstructure describing the fault}(hj[4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjW4hM hjX4ubah}(h]h ]h"]h$]h&]uh1jhj<4ubeh}(h]h ]h"]h$]h&]uh1jhjW4hM hj4ubj)}(ha``unsigned long addr`` virtual address in **vma** for shared policy lookup and interleave policy h](j)}(h``unsigned long addr``h]jS)}(hj{4h]hunsigned long addr}(hj}4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjy4ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hju4ubj)}(hhh]jM)}(hIvirtual address in **vma** for shared policy lookup and interleave policyh](hvirtual address in }(hj4hhhNhNubj)}(h**vma**h]hvma}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh/ for shared policy lookup and interleave policy}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1jhju4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM hj4ubeh}(h]h ]h"]h$]h&]uh1jhj3ubjM)}(h**Description**h]j)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj3ubjM)}(hLookup current policy node id for vma,addr and "compare to" folio's node id. Policy determination "mimics" alloc_page_vma(). Called from fault path where we know the vma and faulting address.h]hLookup current policy node id for vma,addr and “compare to” folio’s node id. Policy determination “mimics” alloc_page_vma(). Called from fault path where we know the vma and faulting address.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj3ubjM)}(h **Return**h]j)}(hj4h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj3ubjM)}(hNUMA_NO_NODE if the page is in a node that is valid for this policy, or a suitable node ID to allocate a replacement folio from.h]hNUMA_NO_NODE if the page is in a node that is valid for this policy, or a suitable node ID to allocate a replacement folio from.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$mpol_shared_policy_init (C function)c.mpol_shared_policy_inithNtauh1hhjhhhNhNubh)}(hhh](h)}(hOvoid mpol_shared_policy_init (struct shared_policy *sp, struct mempolicy *mpol)h]h)}(hNvoid mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol)h](j)}(hvoidh]hvoid}(hj45hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj05hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hjC5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj05hhhjB5hM ubh)}(hmpol_shared_policy_inith]j)}(hmpol_shared_policy_inith]hmpol_shared_policy_init}(hjU5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ5ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj05hhhjB5hM ubj )}(h2(struct shared_policy *sp, struct mempolicy *mpol)h](j )}(hstruct shared_policy *sph](j5)}(hj8h]hstruct}(hjq5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjm5ubj)}(h h]h }(hj~5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm5ubh)}(hhh]j)}(h shared_policyh]h shared_policy}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5modnameN classnameNjpjs)}jv]jy)}jljW5sbc.mpol_shared_policy_initasbuh1hhjm5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm5ubjF )}(hjI h]h*}(hj5hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjm5ubj)}(hsph]hsp}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hji5ubj )}(hstruct mempolicy *mpolh](j5)}(hj8h]hstruct}(hj5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j)}(h mempolicyh]h mempolicy}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj6modnameN classnameNjpjs)}jv]j5c.mpol_shared_policy_initasbuh1hhj5ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjF )}(hjI h]h*}(hj-6hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5ubj)}(hmpolh]hmpol}(hj:6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hji5ubeh}(h]h ]h"]h$]h&]jjuh1j hj05hhhjB5hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj,5hhhjB5hM ubah}(h]j'5ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjB5hM hj)5hhubj4)}(hhh]jM)}(h"initialize shared policy for inodeh]h"initialize shared policy for inode}(hjd6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hja6hhubah}(h]h ]h"]h$]h&]uh1j3hj)5hhhjB5hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj|6jHj|6jIjJjKuh1hhhhjhNhNubj)}(hXv**Parameters** ``struct shared_policy *sp`` pointer to inode shared policy ``struct mempolicy *mpol`` struct mempolicy to install **Description** Install non-NULL **mpol** in inode's shared policy rb-tree. On entry, the current task has a reference on a non-NULL **mpol**. This must be released on exit. This is called at get_inode() calls and we can use GFP_KERNEL.h](jM)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj6ubj)}(hhh](j)}(h<``struct shared_policy *sp`` pointer to inode shared policy h](j)}(h``struct shared_policy *sp``h]jS)}(hj6h]hstruct shared_policy *sp}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj6ubj)}(hhh]jM)}(hpointer to inode shared policyh]hpointer to inode shared policy}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hM hj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hM hj6ubj)}(h7``struct mempolicy *mpol`` struct mempolicy to install h](j)}(h``struct mempolicy *mpol``h]jS)}(hj6h]hstruct mempolicy *mpol}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj6ubj)}(hhh]jM)}(hstruct mempolicy to installh]hstruct mempolicy to install}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hM hj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hM hj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubjM)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj6ubjM)}(hInstall non-NULL **mpol** in inode's shared policy rb-tree. On entry, the current task has a reference on a non-NULL **mpol**. This must be released on exit. This is called at get_inode() calls and we can use GFP_KERNEL.h](hInstall non-NULL }(hj/7hhhNhNubj)}(h**mpol**h]hmpol}(hj77hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/7ubh^ in inode’s shared policy rb-tree. On entry, the current task has a reference on a non-NULL }(hj/7hhhNhNubj)}(h**mpol**h]hmpol}(hjI7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/7ubh_. This must be released on exit. This is called at get_inode() calls and we can use GFP_KERNEL.}(hj/7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmpol_parse_str (C function)c.mpol_parse_strhNtauh1hhjhhhNhNubh)}(hhh](h)}(h7int mpol_parse_str (char *str, struct mempolicy **mpol)h]h)}(h6int mpol_parse_str(char *str, struct mempolicy **mpol)h](j)}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~7hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMR ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~7hhhj7hMR ubh)}(hmpol_parse_strh]j)}(hmpol_parse_strh]hmpol_parse_str}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj~7hhhj7hMR ubj )}(h$(char *str, struct mempolicy **mpol)h](j )}(h char *strh](j)}(hcharh]hchar}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjF )}(hjI h]h*}(hj7hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj7ubj)}(hstrh]hstr}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj7ubj )}(hstruct mempolicy **mpolh](j5)}(hj8h]hstruct}(hj8hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj7ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(h mempolicyh]h mempolicy}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj!8modnameN classnameNjpjs)}jv]jy)}jlj7sbc.mpol_parse_strasbuh1hhj7ubj)}(h h]h }(hj?8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjF )}(hjI h]h*}(hjM8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj7ubjF )}(hjI h]h*}(hjZ8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj7ubj)}(hmpolh]hmpol}(hjg8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj7ubeh}(h]h ]h"]h$]h&]jjuh1j hj~7hhhj7hMR ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjz7hhhj7hMR ubah}(h]ju7ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj7hMR hjw7hhubj4)}(hhh]jM)}(h7parse string to mempolicy, for tmpfs mpol mount option.h]h7parse string to mempolicy, for tmpfs mpol mount option.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMR hj8hhubah}(h]h ]h"]h$]h&]uh1j3hjw7hhhj7hMR ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj8jHj8jIjJjKuh1hhhhjhNhNubj)}(hX **Parameters** ``char *str`` string containing mempolicy to parse ``struct mempolicy **mpol`` pointer to struct mempolicy pointer, returned on success. **Description** Format of input: [=][:] **Return** ``0`` on success, else ``1``h](jM)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMV hj8ubj)}(hhh](j)}(h3``char *str`` string containing mempolicy to parse h](j)}(h ``char *str``h]jS)}(hj8h]h char *str}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMS hj8ubj)}(hhh]jM)}(h$string containing mempolicy to parseh]h$string containing mempolicy to parse}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hMS hj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMS hj8ubj)}(hV``struct mempolicy **mpol`` pointer to struct mempolicy pointer, returned on success. h](j)}(h``struct mempolicy **mpol``h]jS)}(hj 9h]hstruct mempolicy **mpol}(hj 9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj 9ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMT hj9ubj)}(hhh]jM)}(h9pointer to struct mempolicy pointer, returned on success.h]h9pointer to struct mempolicy pointer, returned on success.}(hj$9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj 9hMT hj!9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj 9hMT hj8ubeh}(h]h ]h"]h$]h&]uh1jhj8ubjM)}(h**Description**h]j)}(hjF9h]h Description}(hjH9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD9ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMV hj8ubj)}(hhh]j)}(h/Format of input: [=][:] h](j)}(hFormat of input:h]hFormat of input:}(hjc9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMV hj_9ubj)}(hhh]jM)}(h[=][:]h]h[=][:]}(hju9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjq9hMV hjr9ubah}(h]h ]h"]h$]h&]uh1jhj_9ubeh}(h]h ]h"]h$]h&]uh1jhjq9hMV hj\9ubah}(h]h ]h"]h$]h&]uh1jhj8ubjM)}(h **Return**h]j)}(hj9h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMX hj8ubjM)}(h``0`` on success, else ``1``h](jS)}(h``0``h]h0}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubh on success, else }(hj9hhhNhNubjS)}(h``1``h]h1}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMY hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmpol_to_str (C function) c.mpol_to_strhNtauh1hhjhhhNhNubh)}(hhh](h)}(hBvoid mpol_to_str (char *buffer, int maxlen, struct mempolicy *pol)h]h)}(hAvoid mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol)h](j)}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj:hM ubh)}(h mpol_to_strh]j)}(h mpol_to_strh]h mpol_to_str}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj9hhhj:hM ubj )}(h1(char *buffer, int maxlen, struct mempolicy *pol)h](j )}(h char *bufferh](j)}(hcharh]hchar}(hj5:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1:ubj)}(h h]h }(hjC:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1:ubjF )}(hjI h]h*}(hjQ:hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1:ubj)}(hbufferh]hbuffer}(hj^:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-:ubj )}(h int maxlenh](j)}(hinth]hint}(hjw:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs:ubj)}(hmaxlenh]hmaxlen}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-:ubj )}(hstruct mempolicy *polh](j5)}(hj8h]hstruct}(hj:hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(h mempolicyh]h mempolicy}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj:modnameN classnameNjpjs)}jv]jy)}jlj:sb c.mpol_to_strasbuh1hhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjF )}(hjI h]h*}(hj:hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj:ubj)}(hpolh]hpol}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-:ubeh}(h]h ]h"]h$]h&]jjuh1j hj9hhhj:hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj9hhhj:hM ubah}(h]j9ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj:hM hj9hhubj4)}(hhh]jM)}(h)format a mempolicy structure for printingh]h)format a mempolicy structure for printing}(hj/;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj,;hhubah}(h]h ]h"]h$]h&]uh1j3hj9hhhj:hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjG;jHjG;jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``char *buffer`` to contain formatted mempolicy string ``int maxlen`` length of **buffer** ``struct mempolicy *pol`` pointer to mempolicy to be formatted **Description** Convert **pol** into a string. If **buffer** is too short, truncate the string. Recommend a **maxlen** of at least 51 for the longest mode, "weighted interleave", plus the longest flag flags, "relative|balancing", and to display at least a few node ids.h](jM)}(h**Parameters**h]j)}(hjQ;h]h Parameters}(hjS;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO;ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjK;ubj)}(hhh](j)}(h7``char *buffer`` to contain formatted mempolicy string h](j)}(h``char *buffer``h]jS)}(hjp;h]h char *buffer}(hjr;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjn;ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjj;ubj)}(hhh]jM)}(h%to contain formatted mempolicy stringh]h%to contain formatted mempolicy string}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hM hj;ubah}(h]h ]h"]h$]h&]uh1jhjj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hM hjg;ubj)}(h$``int maxlen`` length of **buffer** h](j)}(h``int maxlen``h]jS)}(hj;h]h int maxlen}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj;ubj)}(hhh]jM)}(hlength of **buffer**h](h length of }(hj;hhhNhNubj)}(h **buffer**h]hbuffer}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jLhj;hM hj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hM hjg;ubj)}(h?``struct mempolicy *pol`` pointer to mempolicy to be formatted h](j)}(h``struct mempolicy *pol``h]jS)}(hj;h]hstruct mempolicy *pol}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj;ubj)}(hhh]jM)}(h$pointer to mempolicy to be formattedh]h$pointer to mempolicy to be formatted}(hj <hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj<hM hj<ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj<hM hjg;ubeh}(h]h ]h"]h$]h&]uh1jhjK;ubjM)}(h**Description**h]j)}(hj+<h]h Description}(hj-<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)<ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjK;ubjM)}(hConvert **pol** into a string. If **buffer** is too short, truncate the string. Recommend a **maxlen** of at least 51 for the longest mode, "weighted interleave", plus the longest flag flags, "relative|balancing", and to display at least a few node ids.h](hConvert }(hjA<hhhNhNubj)}(h**pol**h]hpol}(hjI<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA<ubh into a string. If }(hjA<hhhNhNubj)}(h **buffer**h]hbuffer}(hj[<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA<ubh0 is too short, truncate the string. Recommend a }(hjA<hhhNhNubj)}(h **maxlen**h]hmaxlen}(hjm<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA<ubh of at least 51 for the longest mode, “weighted interleave”, plus the longest flag flags, “relative|balancing”, and to display at least a few node ids.}(hjA<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjK;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsoftleaf_t (C type) c.softleaf_thNtauh1hhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhNubh)}(hhh](h)}(h softleaf_th]h)}(htype softleaf_th](j5)}(hjfPh]htype}(hj<hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj<hhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhj<hKubh)}(h softleaf_th]j)}(hj<h]h softleaf_t}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj<hhhj<hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj<hhhj<hKubah}(h]j<ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj<hKhj<hhubj4)}(hhh]jM)}(h_Describes a page table software leaf entry, abstracted from its architecture-specific encoding.h]h_Describes a page table software leaf entry, abstracted from its architecture-specific encoding.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM#hj<hhubah}(h]h ]h"]h$]h&]uh1j3hj<hhhj<hKubeh}(h]h ](jAtypeeh"]h$]h&]jFjAjGj=jHj=jIjJjKuh1hhhhjhj<hNubjM)}(h**Description**h]j)}(hj=h]h Description}(hj =hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM%hjhhubjM)}(hPage table leaf entries are those which do not reference any descendent page tables but rather either reference a data page, are an empty (or 'none' entry), or contain a non-present entry.h]hPage table leaf entries are those which do not reference any descendent page tables but rather either reference a data page, are an empty (or ‘none’ entry), or contain a non-present entry.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM$hjhhubjM)}(hIf referencing another page table or a data page then the page table entry is pertinent to hardware - that is it tells the hardware how to decode the page table entry.h]hIf referencing another page table or a data page then the page table entry is pertinent to hardware - that is it tells the hardware how to decode the page table entry.}(hj,=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM(hjhhubjM)}(hOtherwise it is a software-defined leaf page table entry, which this type describes. See leafops.h and specifically **softleaf_type** for a list of all possible kinds of software leaf entry.h](htOtherwise it is a software-defined leaf page table entry, which this type describes. See leafops.h and specifically }(hj;=hhhNhNubj)}(h**softleaf_type**h]h softleaf_type}(hjC=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;=ubh9 for a list of all possible kinds of software leaf entry.}(hj;=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM,hjhhubjM)}(heA softleaf_t entry is abstracted from the hardware page table entry, so is not architecture-specific.h]heA softleaf_t entry is abstracted from the hardware page table entry, so is not architecture-specific.}(hj\=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM0hjhhubjM)}(h**NOTE**h]j)}(hjm=h]hNOTE}(hjo=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk=ubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM3hjhhubj)}(hhh]j)}(hWhile we transition from the confusing swp_entry_t type used for this purpose, we simply alias this type. This will be removed once the transition is complete. h](j)}(hEWhile we transition from the confusing swp_entry_t type used for thish]hEWhile we transition from the confusing swp_entry_t type used for this}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM:hj=ubj)}(hhh]jM)}(hYpurpose, we simply alias this type. This will be removed once the transition is complete.h]hYpurpose, we simply alias this type. This will be removed once the transition is complete.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM6hj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hM:hj=ubah}(h]h ]h"]h$]h&]uh1jhjhhhj<hNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio (C struct)c.foliohNtauh1hhjhhhj<hNubh)}(hhh](h)}(hfolioh]h)}(h struct folioh](j5)}(hj8h]hstruct}(hj=hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj=hhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM<ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hM<ubh)}(hfolioh]j)}(hj=h]hfolio}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj=hhhj=hM<ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj=hhhj=hM<ubah}(h]j=ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj=hM<hj=hhubj4)}(hhh]jM)}(h%Represents a contiguous set of bytes.h]h%Represents a contiguous set of bytes.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMghj>hhubah}(h]h ]h"]h$]h&]uh1j3hj=hhhj=hM<ubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGj0>jHj0>jIjJjKuh1hhhhjhj<hNubj)}(hXy**Definition**:: struct folio { memdesc_flags_t flags; union { struct list_head lru; unsigned int mlock_count; struct dev_pagemap *pgmap; }; struct address_space *mapping; union { pgoff_t index; unsigned long share; }; union { void *private; swp_entry_t swap; }; atomic_t _mapcount; atomic_t _refcount; #ifdef CONFIG_MEMCG; unsigned long memcg_data; #elif defined(CONFIG_SLAB_OBJ_EXT); unsigned long _unused_slab_obj_exts; #endif; #if defined(WANT_PAGE_VIRTUAL); void *virtual; #endif; #ifdef LAST_CPUPID_NOT_IN_PAGE_FLAGS; int _last_cpupid; #endif; atomic_t _large_mapcount; atomic_t _nr_pages_mapped; #ifdef CONFIG_64BIT; atomic_t _entire_mapcount; atomic_t _pincount; #endif ; mm_id_mapcount_t _mm_id_mapcount[2]; union { mm_id_t _mm_id[2]; unsigned long _mm_ids; }; #ifdef NR_PAGES_IN_LARGE_FOLIO; unsigned int _nr_pages; #endif ; struct list_head _deferred_list; #ifndef CONFIG_64BIT; atomic_t _entire_mapcount; atomic_t _pincount; #endif ; void *_hugetlb_subpool; void *_hugetlb_cgroup; void *_hugetlb_cgroup_rsvd; void *_hugetlb_hwpoison; }; **Members** ``flags`` Identical to the page flags. ``{unnamed_union}`` anonymous ``lru`` Least Recently Used list; tracks how recently this folio was used. ``mlock_count`` Number of times this folio has been pinned by mlock(). ``pgmap`` Metadata for ZONE_DEVICE mappings ``mapping`` The file this page belongs to, or refers to the anon_vma for anonymous memory. ``{unnamed_union}`` anonymous ``index`` Offset within the file, in units of pages. For anonymous memory, this is the index from the beginning of the mmap. ``share`` number of DAX mappings that reference this folio. See dax_associate_entry. ``{unnamed_union}`` anonymous ``private`` Filesystem per-folio data (see folio_attach_private()). ``swap`` Used for swp_entry_t if folio_test_swapcache(). ``_mapcount`` Do not access this member directly. Use folio_mapcount() to find out how many times this folio is mapped by userspace. ``_refcount`` Do not access this member directly. Use folio_ref_count() to find how many references there are to this folio. ``memcg_data`` Memory Control Group data. ``_unused_slab_obj_exts`` Placeholder to match obj_exts in struct slab. ``virtual`` Virtual address in the kernel direct map. ``_last_cpupid`` IDs of last CPU and last process that accessed the folio. ``_large_mapcount`` Do not use directly, call folio_mapcount(). ``_nr_pages_mapped`` Do not use outside of rmap and debug code. ``_entire_mapcount`` Do not use directly, call folio_entire_mapcount(). ``_pincount`` Do not use directly, call folio_maybe_dma_pinned(). ``_mm_id_mapcount`` Do not use outside of rmap code. ``{unnamed_union}`` anonymous ``_mm_id`` Do not use outside of rmap code. ``_mm_ids`` Do not use outside of rmap code. ``_nr_pages`` Do not use directly, call folio_nr_pages(). ``_deferred_list`` Folios to be split under memory pressure. ``_entire_mapcount`` Do not use directly, call folio_entire_mapcount(). ``_pincount`` Do not use directly, call folio_maybe_dma_pinned(). ``_hugetlb_subpool`` Do not use directly, use accessor in hugetlb.h. ``_hugetlb_cgroup`` Do not use directly, use accessor in hugetlb_cgroup.h. ``_hugetlb_cgroup_rsvd`` Do not use directly, use accessor in hugetlb_cgroup.h. ``_hugetlb_hwpoison`` Do not use directly, call raw_hwp_list_head().h](jM)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj<>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8>ubh:}(hj8>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMkhj4>ubj()}(hXstruct folio { memdesc_flags_t flags; union { struct list_head lru; unsigned int mlock_count; struct dev_pagemap *pgmap; }; struct address_space *mapping; union { pgoff_t index; unsigned long share; }; union { void *private; swp_entry_t swap; }; atomic_t _mapcount; atomic_t _refcount; #ifdef CONFIG_MEMCG; unsigned long memcg_data; #elif defined(CONFIG_SLAB_OBJ_EXT); unsigned long _unused_slab_obj_exts; #endif; #if defined(WANT_PAGE_VIRTUAL); void *virtual; #endif; #ifdef LAST_CPUPID_NOT_IN_PAGE_FLAGS; int _last_cpupid; #endif; atomic_t _large_mapcount; atomic_t _nr_pages_mapped; #ifdef CONFIG_64BIT; atomic_t _entire_mapcount; atomic_t _pincount; #endif ; mm_id_mapcount_t _mm_id_mapcount[2]; union { mm_id_t _mm_id[2]; unsigned long _mm_ids; }; #ifdef NR_PAGES_IN_LARGE_FOLIO; unsigned int _nr_pages; #endif ; struct list_head _deferred_list; #ifndef CONFIG_64BIT; atomic_t _entire_mapcount; atomic_t _pincount; #endif ; void *_hugetlb_subpool; void *_hugetlb_cgroup; void *_hugetlb_cgroup_rsvd; void *_hugetlb_hwpoison; };h]hXstruct folio { memdesc_flags_t flags; union { struct list_head lru; unsigned int mlock_count; struct dev_pagemap *pgmap; }; struct address_space *mapping; union { pgoff_t index; unsigned long share; }; union { void *private; swp_entry_t swap; }; atomic_t _mapcount; atomic_t _refcount; #ifdef CONFIG_MEMCG; unsigned long memcg_data; #elif defined(CONFIG_SLAB_OBJ_EXT); unsigned long _unused_slab_obj_exts; #endif; #if defined(WANT_PAGE_VIRTUAL); void *virtual; #endif; #ifdef LAST_CPUPID_NOT_IN_PAGE_FLAGS; int _last_cpupid; #endif; atomic_t _large_mapcount; atomic_t _nr_pages_mapped; #ifdef CONFIG_64BIT; atomic_t _entire_mapcount; atomic_t _pincount; #endif ; mm_id_mapcount_t _mm_id_mapcount[2]; union { mm_id_t _mm_id[2]; unsigned long _mm_ids; }; #ifdef NR_PAGES_IN_LARGE_FOLIO; unsigned int _nr_pages; #endif ; struct list_head _deferred_list; #ifndef CONFIG_64BIT; atomic_t _entire_mapcount; atomic_t _pincount; #endif ; void *_hugetlb_subpool; void *_hugetlb_cgroup; void *_hugetlb_cgroup_rsvd; void *_hugetlb_hwpoison; };}hjU>sbah}(h]h ]h"]h$]h&]jjuh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMmhj4>ubjM)}(h **Members**h]j)}(hjf>h]hMembers}(hjh>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd>ubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj4>ubj)}(hhh](j)}(h'``flags`` Identical to the page flags. h](j)}(h ``flags``h]jS)}(hj>h]hflags}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMihj>ubj)}(hhh]jM)}(hIdentical to the page flags.h]hIdentical to the page flags.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hMihj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMihj|>ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hj>h]h{unnamed_union}}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhj>ubj)}(hhh]jM)}(h anonymoush]h anonymous}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hKhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hKhj|>ubj)}(hK``lru`` Least Recently Used list; tracks how recently this folio was used. h](j)}(h``lru``h]jS)}(hj>h]hlru}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMjhj>ubj)}(hhh]jM)}(hBLeast Recently Used list; tracks how recently this folio was used.h]hBLeast Recently Used list; tracks how recently this folio was used.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ?hMjhj ?ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj ?hMjhj|>ubj)}(hG``mlock_count`` Number of times this folio has been pinned by mlock(). h](j)}(h``mlock_count``h]jS)}(hj0?h]h mlock_count}(hj2?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.?ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMkhj*?ubj)}(hhh]jM)}(h6Number of times this folio has been pinned by mlock().h]h6Number of times this folio has been pinned by mlock().}(hjI?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjE?hMkhjF?ubah}(h]h ]h"]h$]h&]uh1jhj*?ubeh}(h]h ]h"]h$]h&]uh1jhjE?hMkhj|>ubj)}(h,``pgmap`` Metadata for ZONE_DEVICE mappings h](j)}(h ``pgmap``h]jS)}(hji?h]hpgmap}(hjk?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjg?ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMyhjc?ubj)}(hhh]jM)}(h!Metadata for ZONE_DEVICE mappingsh]h!Metadata for ZONE_DEVICE mappings}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~?hMyhj?ubah}(h]h ]h"]h$]h&]uh1jhjc?ubeh}(h]h ]h"]h$]h&]uh1jhj~?hMyhj|>ubj)}(h[``mapping`` The file this page belongs to, or refers to the anon_vma for anonymous memory. h](j)}(h ``mapping``h]jS)}(hj?h]hmapping}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj?ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMmhj?ubj)}(hhh]jM)}(hNThe file this page belongs to, or refers to the anon_vma for anonymous memory.h]hNThe file this page belongs to, or refers to the anon_vma for anonymous memory.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMlhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMmhj|>ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hj?h]h{unnamed_union}}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj?ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhj?ubj)}(hhh]jM)}(h anonymoush]h anonymous}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj?hKhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hKhj|>ubj)}(h~``index`` Offset within the file, in units of pages. For anonymous memory, this is the index from the beginning of the mmap. h](j)}(h ``index``h]jS)}(hj@h]hindex}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMohj@ubj)}(hhh]jM)}(hsOffset within the file, in units of pages. For anonymous memory, this is the index from the beginning of the mmap.h]hsOffset within the file, in units of pages. For anonymous memory, this is the index from the beginning of the mmap.}(hj.@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMnhj+@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj*@hMohj|>ubj)}(hU``share`` number of DAX mappings that reference this folio. See dax_associate_entry. h](j)}(h ``share``h]jS)}(hjO@h]hshare}(hjQ@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjM@ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMqhjI@ubj)}(hhh]jM)}(hJnumber of DAX mappings that reference this folio. See dax_associate_entry.h]hJnumber of DAX mappings that reference this folio. See dax_associate_entry.}(hjh@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMphje@ubah}(h]h ]h"]h$]h&]uh1jhjI@ubeh}(h]h ]h"]h$]h&]uh1jhjd@hMqhj|>ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hj@h]h{unnamed_union}}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhj@ubj)}(hhh]jM)}(h anonymoush]h anonymous}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@hKhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj|>ubj)}(hD``private`` Filesystem per-folio data (see folio_attach_private()). h](j)}(h ``private``h]jS)}(hj@h]hprivate}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMrhj@ubj)}(hhh]jM)}(h7Filesystem per-folio data (see folio_attach_private()).h]h7Filesystem per-folio data (see folio_attach_private()).}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@hMrhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMrhj|>ubj)}(h9``swap`` Used for swp_entry_t if folio_test_swapcache(). h](j)}(h``swap``h]jS)}(hj@h]hswap}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMshj@ubj)}(hhh]jM)}(h/Used for swp_entry_t if folio_test_swapcache().h]h/Used for swp_entry_t if folio_test_swapcache().}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMshjAubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhjAhMshj|>ubj)}(h``_mapcount`` Do not access this member directly. Use folio_mapcount() to find out how many times this folio is mapped by userspace. h](j)}(h ``_mapcount``h]jS)}(hj4Ah]h _mapcount}(hj6AhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2Aubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMuhj.Aubj)}(hhh]jM)}(hwDo not access this member directly. Use folio_mapcount() to find out how many times this folio is mapped by userspace.h]hwDo not access this member directly. Use folio_mapcount() to find out how many times this folio is mapped by userspace.}(hjMAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMthjJAubah}(h]h ]h"]h$]h&]uh1jhj.Aubeh}(h]h ]h"]h$]h&]uh1jhjIAhMuhj|>ubj)}(h~``_refcount`` Do not access this member directly. Use folio_ref_count() to find how many references there are to this folio. h](j)}(h ``_refcount``h]jS)}(hjnAh]h _refcount}(hjpAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlAubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMwhjhAubj)}(hhh]jM)}(hoDo not access this member directly. Use folio_ref_count() to find how many references there are to this folio.h]hoDo not access this member directly. Use folio_ref_count() to find how many references there are to this folio.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMvhjAubah}(h]h ]h"]h$]h&]uh1jhjhAubeh}(h]h ]h"]h$]h&]uh1jhjAhMwhj|>ubj)}(h*``memcg_data`` Memory Control Group data. h](j)}(h``memcg_data``h]jS)}(hjAh]h memcg_data}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMxhjAubj)}(hhh]jM)}(hMemory Control Group data.h]hMemory Control Group data.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMxhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMxhj|>ubj)}(hH``_unused_slab_obj_exts`` Placeholder to match obj_exts in struct slab. h](j)}(h``_unused_slab_obj_exts``h]jS)}(hjAh]h_unused_slab_obj_exts}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjAubj)}(hhh]jM)}(h-Placeholder to match obj_exts in struct slab.h]h-Placeholder to match obj_exts in struct slab.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj|>ubj)}(h6``virtual`` Virtual address in the kernel direct map. h](j)}(h ``virtual``h]jS)}(hjBh]hvirtual}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMzhjBubj)}(hhh]jM)}(h)Virtual address in the kernel direct map.h]h)Virtual address in the kernel direct map.}(hj3BhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/BhMzhj0Bubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj/BhMzhj|>ubj)}(hK``_last_cpupid`` IDs of last CPU and last process that accessed the folio. h](j)}(h``_last_cpupid``h]jS)}(hjSBh]h _last_cpupid}(hjUBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQBubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM{hjMBubj)}(hhh]jM)}(h9IDs of last CPU and last process that accessed the folio.h]h9IDs of last CPU and last process that accessed the folio.}(hjlBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhBhM{hjiBubah}(h]h ]h"]h$]h&]uh1jhjMBubeh}(h]h ]h"]h$]h&]uh1jhjhBhM{hj|>ubj)}(h@``_large_mapcount`` Do not use directly, call folio_mapcount(). h](j)}(h``_large_mapcount``h]jS)}(hjBh]h_large_mapcount}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM}hjBubj)}(hhh]jM)}(h+Do not use directly, call folio_mapcount().h]h+Do not use directly, call folio_mapcount().}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhM}hjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM}hj|>ubj)}(h@``_nr_pages_mapped`` Do not use outside of rmap and debug code. h](j)}(h``_nr_pages_mapped``h]jS)}(hjBh]h_nr_pages_mapped}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM~hjBubj)}(hhh]jM)}(h*Do not use outside of rmap and debug code.h]h*Do not use outside of rmap and debug code.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhM~hjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM~hj|>ubj)}(hH``_entire_mapcount`` Do not use directly, call folio_entire_mapcount(). h](j)}(h``_entire_mapcount``h]jS)}(hjBh]h_entire_mapcount}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM|hjBubj)}(hhh]jM)}(h2Do not use directly, call folio_entire_mapcount().h]h2Do not use directly, call folio_entire_mapcount().}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChM|hjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjChM|hj|>ubj)}(hB``_pincount`` Do not use directly, call folio_maybe_dma_pinned(). h](j)}(h ``_pincount``h]jS)}(hj7Ch]h _pincount}(hj9ChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5Cubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj1Cubj)}(hhh]jM)}(h3Do not use directly, call folio_maybe_dma_pinned().h]h3Do not use directly, call folio_maybe_dma_pinned().}(hjPChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLChMhjMCubah}(h]h ]h"]h$]h&]uh1jhj1Cubeh}(h]h ]h"]h$]h&]uh1jhjLChMhj|>ubj)}(h5``_mm_id_mapcount`` Do not use outside of rmap code. h](j)}(h``_mm_id_mapcount``h]jS)}(hjpCh]h_mm_id_mapcount}(hjrChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnCubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjjCubj)}(hhh]jM)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChMhjCubah}(h]h ]h"]h$]h&]uh1jhjjCubeh}(h]h ]h"]h$]h&]uh1jhjChMhj|>ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hjCh]h{unnamed_union}}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhjCubj)}(hhh]jM)}(h anonymoush]h anonymous}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChKhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChKhj|>ubj)}(h,``_mm_id`` Do not use outside of rmap code. h](j)}(h ``_mm_id``h]jS)}(hjCh]h_mm_id}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjCubj)}(hhh]jM)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChMhj|>ubj)}(h-``_mm_ids`` Do not use outside of rmap code. h](j)}(h ``_mm_ids``h]jS)}(hjDh]h_mm_ids}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjDubj)}(hhh]jM)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hj4DhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0DhMhj1Dubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj0DhMhj|>ubj)}(h:``_nr_pages`` Do not use directly, call folio_nr_pages(). h](j)}(h ``_nr_pages``h]jS)}(hjTDh]h _nr_pages}(hjVDhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjRDubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjNDubj)}(hhh]jM)}(h+Do not use directly, call folio_nr_pages().h]h+Do not use directly, call folio_nr_pages().}(hjmDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjiDhMhjjDubah}(h]h ]h"]h$]h&]uh1jhjNDubeh}(h]h ]h"]h$]h&]uh1jhjiDhMhj|>ubj)}(h=``_deferred_list`` Folios to be split under memory pressure. h](j)}(h``_deferred_list``h]jS)}(hjDh]h_deferred_list}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjDubj)}(hhh]jM)}(h)Folios to be split under memory pressure.h]h)Folios to be split under memory pressure.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhj|>ubj)}(hH``_entire_mapcount`` Do not use directly, call folio_entire_mapcount(). h](j)}(h``_entire_mapcount``h]jS)}(hjDh]h_entire_mapcount}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM|hjDubj)}(hhh]jM)}(h2Do not use directly, call folio_entire_mapcount().h]h2Do not use directly, call folio_entire_mapcount().}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhM|hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhM|hj|>ubj)}(hB``_pincount`` Do not use directly, call folio_maybe_dma_pinned(). h](j)}(h ``_pincount``h]jS)}(hjDh]h _pincount}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjDubj)}(hhh]jM)}(h3Do not use directly, call folio_maybe_dma_pinned().h]h3Do not use directly, call folio_maybe_dma_pinned().}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj|>ubj)}(hE``_hugetlb_subpool`` Do not use directly, use accessor in hugetlb.h. h](j)}(h``_hugetlb_subpool``h]jS)}(hj8Eh]h_hugetlb_subpool}(hj:EhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6Eubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj2Eubj)}(hhh]jM)}(h/Do not use directly, use accessor in hugetlb.h.h]h/Do not use directly, use accessor in hugetlb.h.}(hjQEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMEhMhjNEubah}(h]h ]h"]h$]h&]uh1jhj2Eubeh}(h]h ]h"]h$]h&]uh1jhjMEhMhj|>ubj)}(hK``_hugetlb_cgroup`` Do not use directly, use accessor in hugetlb_cgroup.h. h](j)}(h``_hugetlb_cgroup``h]jS)}(hjqEh]h_hugetlb_cgroup}(hjsEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoEubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjkEubj)}(hhh]jM)}(h6Do not use directly, use accessor in hugetlb_cgroup.h.h]h6Do not use directly, use accessor in hugetlb_cgroup.h.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjkEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj|>ubj)}(hP``_hugetlb_cgroup_rsvd`` Do not use directly, use accessor in hugetlb_cgroup.h. h](j)}(h``_hugetlb_cgroup_rsvd``h]jS)}(hjEh]h_hugetlb_cgroup_rsvd}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjEubj)}(hhh]jM)}(h6Do not use directly, use accessor in hugetlb_cgroup.h.h]h6Do not use directly, use accessor in hugetlb_cgroup.h.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj|>ubj)}(hD``_hugetlb_hwpoison`` Do not use directly, call raw_hwp_list_head().h](j)}(h``_hugetlb_hwpoison``h]jS)}(hjEh]h_hugetlb_hwpoison}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjEubj)}(hhh]jM)}(h.Do not use directly, call raw_hwp_list_head().h]h.Do not use directly, call raw_hwp_list_head().}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj|>ubeh}(h]h ]h"]h$]h&]uh1jhj4>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj<hNubjM)}(h**Description**h]j)}(hj&Fh]h Description}(hj(FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Fubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjhhubjM)}(hXA folio is a physically, virtually and logically contiguous set of bytes. It is a power-of-two in size, and it is aligned to that same power-of-two. It is at least as large as ``PAGE_SIZE``. If it is in the page cache, it is at a file offset which is a multiple of that power-of-two. It may be mapped into userspace at an address which is at an arbitrary page offset, but its kernel virtual address is aligned to its size.h](hA folio is a physically, virtually and logically contiguous set of bytes. It is a power-of-two in size, and it is aligned to that same power-of-two. It is at least as large as }(hjptl, used for THPs. ``__page_mapping`` Aliases with page->mapping. Unused for page tables. ``{unnamed_union}`` anonymous ``pt_index`` Used for s390 gmap. ``pt_mm`` Used for x86 pgds. ``pt_frag_refcount`` For fragmented page table tracking. Powerpc only. ``pt_share_count`` Used for HugeTLB PMD page table share count. ``{unnamed_union}`` anonymous ``_pt_pad_2`` Padding to ensure proper alignment. ``ptl`` Lock for the page table. ``ptl`` Lock for the page table. ``__page_type`` Same as page->page_type. Unused for page tables. ``__page_refcount`` Same as page refcount. ``pt_memcg_data`` Memcg data. Tracked for page tables here.h](jM)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh:}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM+hjFubj()}(hXstruct ptdesc { memdesc_flags_t pt_flags; union { struct rcu_head pt_rcu_head; struct list_head pt_list; struct { unsigned long _pt_pad_1; pgtable_t pmd_huge_pte; }; }; unsigned long __page_mapping; union { pgoff_t pt_index; struct mm_struct *pt_mm; atomic_t pt_frag_refcount; #ifdef CONFIG_HUGETLB_PMD_PAGE_TABLE_SHARING; atomic_t pt_share_count; #endif; }; union { unsigned long _pt_pad_2; #if ALLOC_SPLIT_PTLOCKS; spinlock_t *ptl; #else; spinlock_t ptl; #endif; }; unsigned int __page_type; atomic_t __page_refcount; #ifdef CONFIG_MEMCG; unsigned long pt_memcg_data; #endif; };h]hXstruct ptdesc { memdesc_flags_t pt_flags; union { struct rcu_head pt_rcu_head; struct list_head pt_list; struct { unsigned long _pt_pad_1; pgtable_t pmd_huge_pte; }; }; unsigned long __page_mapping; union { pgoff_t pt_index; struct mm_struct *pt_mm; atomic_t pt_frag_refcount; #ifdef CONFIG_HUGETLB_PMD_PAGE_TABLE_SHARING; atomic_t pt_share_count; #endif; }; union { unsigned long _pt_pad_2; #if ALLOC_SPLIT_PTLOCKS; spinlock_t *ptl; #else; spinlock_t ptl; #endif; }; unsigned int __page_type; atomic_t __page_refcount; #ifdef CONFIG_MEMCG; unsigned long pt_memcg_data; #endif; };}hjFsbah}(h]h ]h"]h$]h&]jjuh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM-hjFubjM)}(h **Members**h]j)}(hjGh]hMembers}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMOhjFubj)}(hhh](j)}(h3``pt_flags`` enum pt_flags plus zone/node/section. h](j)}(h ``pt_flags``h]jS)}(hj%Gh]hpt_flags}(hj'GhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#Gubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM)hjGubj)}(hhh]jM)}(h%enum pt_flags plus zone/node/section.h]h%enum pt_flags plus zone/node/section.}(hj>GhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:GhM)hj;Gubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhj:GhM)hjGubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hj^Gh]h{unnamed_union}}(hj`GhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\Gubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhjXGubj)}(hhh]jM)}(h anonymoush]h anonymous}(hjwGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjsGhKhjtGubah}(h]h ]h"]h$]h&]uh1jhjXGubeh}(h]h ]h"]h$]h&]uh1jhjsGhKhjGubj)}(h.``pt_rcu_head`` For freeing page table pages. h](j)}(h``pt_rcu_head``h]jS)}(hjGh]h pt_rcu_head}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM*hjGubj)}(hhh]jM)}(hFor freeing page table pages.h]hFor freeing page table pages.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhM*hjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhM*hjGubj)}(h``pt_list`` List of used page tables. Used for s390 gmap shadow pages (which are not linked into the user page tables) and x86 pgds. h](j)}(h ``pt_list``h]jS)}(hjGh]hpt_list}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM-hjGubj)}(hhh]jM)}(hxList of used page tables. Used for s390 gmap shadow pages (which are not linked into the user page tables) and x86 pgds.h]hxList of used page tables. Used for s390 gmap shadow pages (which are not linked into the user page tables) and x86 pgds.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM+hjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhM-hjGubj)}(h``{unnamed_struct}`` anonymous h](j)}(h``{unnamed_struct}``h]jS)}(hj Hh]h{unnamed_struct}}(hj HhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhjHubj)}(hhh]jM)}(h anonymoush]h anonymous}(hj#HhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHhKhj Hubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhKhjGubj)}(h>``_pt_pad_1`` Padding that aliases with page's compound head. h](j)}(h ``_pt_pad_1``h]jS)}(hjCHh]h _pt_pad_1}(hjEHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAHubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM.hj=Hubj)}(hhh]jM)}(h/Padding that aliases with page's compound head.h]h1Padding that aliases with page’s compound head.}(hj\HhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXHhM.hjYHubah}(h]h ]h"]h$]h&]uh1jhj=Hubeh}(h]h ]h"]h$]h&]uh1jhjXHhM.hjGubj)}(h:``pmd_huge_pte`` Protected by ptdesc->ptl, used for THPs. h](j)}(h``pmd_huge_pte``h]jS)}(hj|Hh]h pmd_huge_pte}(hj~HhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzHubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM/hjvHubj)}(hhh]jM)}(h(Protected by ptdesc->ptl, used for THPs.h]h(Protected by ptdesc->ptl, used for THPs.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHhM/hjHubah}(h]h ]h"]h$]h&]uh1jhjvHubeh}(h]h ]h"]h$]h&]uh1jhjHhM/hjGubj)}(hG``__page_mapping`` Aliases with page->mapping. Unused for page tables. h](j)}(h``__page_mapping``h]jS)}(hjHh]h__page_mapping}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM0hjHubj)}(hhh]jM)}(h3Aliases with page->mapping. Unused for page tables.h]h3Aliases with page->mapping. Unused for page tables.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHhM0hjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhM0hjGubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hjHh]h{unnamed_union}}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhjHubj)}(hhh]jM)}(h anonymoush]h anonymous}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhKhjIubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjIhKhjGubj)}(h!``pt_index`` Used for s390 gmap. h](j)}(h ``pt_index``h]jS)}(hj'Ih]hpt_index}(hj)IhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%Iubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM1hj!Iubj)}(hhh]jM)}(hUsed for s390 gmap.h]hUsed for s390 gmap.}(hj@IhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJubj)}(hhh]jM)}(h#Padding to ensure proper alignment.h]h#Padding to ensure proper alignment.}(hj]JhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYJhM5hjZJubah}(h]h ]h"]h$]h&]uh1jhj>Jubeh}(h]h ]h"]h$]h&]uh1jhjYJhM5hjGubj)}(h!``ptl`` Lock for the page table. h](j)}(h``ptl``h]jS)}(hj}Jh]hptl}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj{Jubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM6hjwJubj)}(hhh]jM)}(hLock for the page table.h]hLock for the page table.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhM6hjJubah}(h]h ]h"]h$]h&]uh1jhjwJubeh}(h]h ]h"]h$]h&]uh1jhjJhM6hjGubj)}(h!``ptl`` Lock for the page table. h](j)}(h``ptl``h]jS)}(hjJh]hptl}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM6hjJubj)}(hhh]jM)}(hLock for the page table.h]hLock for the page table.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhM6hjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhM6hjGubj)}(hA``__page_type`` Same as page->page_type. Unused for page tables. h](j)}(h``__page_type``h]jS)}(hjJh]h __page_type}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM7hjJubj)}(hhh]jM)}(h0Same as page->page_type. Unused for page tables.h]h0Same as page->page_type. Unused for page tables.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhM7hjKubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjKhM7hjGubj)}(h+``__page_refcount`` Same as page refcount. h](j)}(h``__page_refcount``h]jS)}(hj(Kh]h__page_refcount}(hj*KhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&Kubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM8hj"Kubj)}(hhh]jM)}(hSame as page refcount.h]hSame as page refcount.}(hjAKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=KhM8hj>Kubah}(h]h ]h"]h$]h&]uh1jhj"Kubeh}(h]h ]h"]h$]h&]uh1jhj=KhM8hjGubj)}(h;``pt_memcg_data`` Memcg data. Tracked for page tables here.h](j)}(h``pt_memcg_data``h]jS)}(hjaKh]h pt_memcg_data}(hjcKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj_Kubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM8hj[Kubj)}(hhh]jM)}(h)Memcg data. Tracked for page tables here.h]h)Memcg data. Tracked for page tables here.}(hjzKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM9hjwKubah}(h]h ]h"]h$]h&]uh1jhj[Kubeh}(h]h ]h"]h$]h&]uh1jhjvKhM8hjGubeh}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj<hNubjM)}(h**Description**h]j)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM<hjhhubjM)}(hcThis struct overlays struct page for now. Do not modify without a good understanding of the issues.h]hcThis struct overlays struct page for now. Do not modify without a good understanding of the issues.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM9hjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_fault_t (C type) c.vm_fault_thNtauh1hhjhhhj<hNubh)}(hhh](h)}(h vm_fault_th]h)}(htype vm_fault_th](j5)}(hjfPh]htype}(hjKhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjKhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM?ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhjKhM?ubh)}(h vm_fault_th]j)}(hjKh]h vm_fault_t}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1hhjKhhhjKhM?ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjKhhhjKhM?ubah}(h]jKah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjKhM?hjKhhubj4)}(hhh]jM)}(h$Return type for page fault handlers.h]h$Return type for page fault handlers.}(hj$LhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMrhj!Lhhubah}(h]h ]h"]h$]h&]uh1j3hjKhhhjKhM?ubeh}(h]h ](jAtypeeh"]h$]h&]jFjAjGjfault installed the pte, not return page ``VM_FAULT_LOCKED`` ->fault locked the returned page ``VM_FAULT_RETRY`` ->fault blocked, must retry ``VM_FAULT_FALLBACK`` huge page fault failed, fall back to small ``VM_FAULT_DONE_COW`` ->fault has fully handled COW ``VM_FAULT_NEEDDSYNC`` ->fault did not modify page tables and needs fsync() to complete (for synchronous page faults in DAX) ``VM_FAULT_COMPLETED`` ->fault completed, meanwhile mmap lock released ``VM_FAULT_HINDEX_MASK`` mask HINDEX valueh](jM)}(h **Constants**h]j)}(hjLh]h Constants}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM}hjLubj)}(hhh](j)}(h``VM_FAULT_OOM`` Out Of Memory h](j)}(h``VM_FAULT_OOM``h]jS)}(hjMh]h VM_FAULT_OOM}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjMubj)}(hhh]jM)}(h Out Of Memoryh]h Out Of Memory}(hj.MhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj*MhMhj+Mubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhj*MhMhj Mubj)}(h``VM_FAULT_SIGBUS`` Bad access h](j)}(h``VM_FAULT_SIGBUS``h]jS)}(hjNMh]hVM_FAULT_SIGBUS}(hjPMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLMubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjHMubj)}(hhh]jM)}(h Bad accessh]h Bad access}(hjgMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjcMhMhjdMubah}(h]h ]h"]h$]h&]uh1jhjHMubeh}(h]h ]h"]h$]h&]uh1jhjcMhMhj Mubj)}(h*``VM_FAULT_MAJOR`` Page read from storage h](j)}(h``VM_FAULT_MAJOR``h]jS)}(hjMh]hVM_FAULT_MAJOR}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjMubj)}(hhh]jM)}(hPage read from storageh]hPage read from storage}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj Mubj)}(h.``VM_FAULT_HWPOISON`` Hit poisoned small page h](j)}(h``VM_FAULT_HWPOISON``h]jS)}(hjMh]hVM_FAULT_HWPOISON}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjMubj)}(hhh]jM)}(hHit poisoned small pageh]hHit poisoned small page}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj Mubj)}(hQ``VM_FAULT_HWPOISON_LARGE`` Hit poisoned large page. Index encoded in upper bits h](j)}(h``VM_FAULT_HWPOISON_LARGE``h]jS)}(hjMh]hVM_FAULT_HWPOISON_LARGE}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjMubj)}(hhh]jM)}(h4Hit poisoned large page. Index encoded in upper bitsh]h4Hit poisoned large page. Index encoded in upper bits}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjNubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj Mubj)}(h(``VM_FAULT_SIGSEGV`` segmentation fault h](j)}(h``VM_FAULT_SIGSEGV``h]jS)}(hj3Nh]hVM_FAULT_SIGSEGV}(hj5NhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj1Nubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj-Nubj)}(hhh]jM)}(hsegmentation faulth]hsegmentation fault}(hjLNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHNhMhjINubah}(h]h ]h"]h$]h&]uh1jhj-Nubeh}(h]h ]h"]h$]h&]uh1jhjHNhMhj Mubj)}(h?``VM_FAULT_NOPAGE`` ->fault installed the pte, not return page h](j)}(h``VM_FAULT_NOPAGE``h]jS)}(hjlNh]hVM_FAULT_NOPAGE}(hjnNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjfNubj)}(hhh]jM)}(h*->fault installed the pte, not return pageh]h*->fault installed the pte, not return page}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjfNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj Mubj)}(h5``VM_FAULT_LOCKED`` ->fault locked the returned page h](j)}(h``VM_FAULT_LOCKED``h]jS)}(hjNh]hVM_FAULT_LOCKED}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjNubj)}(hhh]jM)}(h ->fault locked the returned pageh]h ->fault locked the returned page}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj Mubj)}(h/``VM_FAULT_RETRY`` ->fault blocked, must retry h](j)}(h``VM_FAULT_RETRY``h]jS)}(hjNh]hVM_FAULT_RETRY}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjNubj)}(hhh]jM)}(h->fault blocked, must retryh]h->fault blocked, must retry}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj Mubj)}(hA``VM_FAULT_FALLBACK`` huge page fault failed, fall back to small h](j)}(h``VM_FAULT_FALLBACK``h]jS)}(hjOh]hVM_FAULT_FALLBACK}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjOubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjOubj)}(hhh]jM)}(h*huge page fault failed, fall back to smallh]h*huge page fault failed, fall back to small}(hj0OhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,OhMhj-Oubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhj,OhMhj Mubj)}(h4``VM_FAULT_DONE_COW`` ->fault has fully handled COW h](j)}(h``VM_FAULT_DONE_COW``h]jS)}(hjPOh]hVM_FAULT_DONE_COW}(hjROhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNOubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjJOubj)}(hhh]jM)}(h->fault has fully handled COWh]h->fault has fully handled COW}(hjiOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjeOhMhjfOubah}(h]h ]h"]h$]h&]uh1jhjJOubeh}(h]h ]h"]h$]h&]uh1jhjeOhMhj Mubj)}(h}``VM_FAULT_NEEDDSYNC`` ->fault did not modify page tables and needs fsync() to complete (for synchronous page faults in DAX) h](j)}(h``VM_FAULT_NEEDDSYNC``h]jS)}(hjOh]hVM_FAULT_NEEDDSYNC}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjOubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjOubj)}(hhh]jM)}(he->fault did not modify page tables and needs fsync() to complete (for synchronous page faults in DAX)h]he->fault did not modify page tables and needs fsync() to complete (for synchronous page faults in DAX)}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj Mubj)}(hG``VM_FAULT_COMPLETED`` ->fault completed, meanwhile mmap lock released h](j)}(h``VM_FAULT_COMPLETED``h]jS)}(hjOh]hVM_FAULT_COMPLETED}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjOubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjOubj)}(hhh]jM)}(h/->fault completed, meanwhile mmap lock releasedh]h/->fault completed, meanwhile mmap lock released}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjOhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj Mubj)}(h*``VM_FAULT_HINDEX_MASK`` mask HINDEX valueh](j)}(h``VM_FAULT_HINDEX_MASK``h]jS)}(hjOh]hVM_FAULT_HINDEX_MASK}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjOubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjOubj)}(hhh]jM)}(hmask HINDEX valueh]hmask HINDEX value}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjPubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj Mubeh}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj<hNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfault_flag (C enum) c.fault_flaghNtauh1hhjhhhj<hNubh)}(hhh](h)}(h fault_flagh]h)}(henum fault_flagh](j5)}(hjEh]henum}(hjVPhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjRPhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMubj)}(h h]h }(hjdPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRPhhhjcPhMubh)}(h fault_flagh]j)}(hjPPh]h fault_flag}(hjvPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrPubah}(h]h ](jjeh"]h$]h&]jjuh1hhjRPhhhjcPhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjNPhhhjcPhMubah}(h]jIPah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjcPhMhjKPhhubj4)}(hhh]jM)}(hFault flag definitions.h]hFault flag definitions.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjPhhubah}(h]h ]h"]h$]h&]uh1j3hjKPhhhjcPhMubeh}(h]h ](jAenumeh"]h$]h&]jFjAjGjPjHjPjIjJjKuh1hhhhjhj<hNubj)}(hX**Constants** ``FAULT_FLAG_WRITE`` Fault was a write fault. ``FAULT_FLAG_MKWRITE`` Fault was mkwrite of existing PTE. ``FAULT_FLAG_ALLOW_RETRY`` Allow to retry the fault if blocked. ``FAULT_FLAG_RETRY_NOWAIT`` Don't drop mmap_lock and wait when retrying. ``FAULT_FLAG_KILLABLE`` The fault task is in SIGKILL killable region. ``FAULT_FLAG_TRIED`` The fault has been tried once. ``FAULT_FLAG_USER`` The fault originated in userspace. ``FAULT_FLAG_REMOTE`` The fault is not for current task/mm. ``FAULT_FLAG_INSTRUCTION`` The fault was during an instruction fetch. ``FAULT_FLAG_INTERRUPTIBLE`` The fault can be interrupted by non-fatal signals. ``FAULT_FLAG_UNSHARE`` The fault is an unsharing request to break COW in a COW mapping, making sure that an exclusive anon page is mapped after the fault. ``FAULT_FLAG_ORIG_PTE_VALID`` whether the fault has vmf->orig_pte cached. We should only access orig_pte if this flag set. ``FAULT_FLAG_VMA_LOCK`` The fault is handled under VMA lock.h](jM)}(h **Constants**h]j)}(hjPh]h Constants}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjPubj)}(hhh](j)}(h.``FAULT_FLAG_WRITE`` Fault was a write fault. h](j)}(h``FAULT_FLAG_WRITE``h]jS)}(hjPh]hFAULT_FLAG_WRITE}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjPubj)}(hhh]jM)}(hFault was a write fault.h]hFault was a write fault.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjPubj)}(h:``FAULT_FLAG_MKWRITE`` Fault was mkwrite of existing PTE. h](j)}(h``FAULT_FLAG_MKWRITE``h]jS)}(hjQh]hFAULT_FLAG_MKWRITE}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj Qubj)}(hhh]jM)}(h"Fault was mkwrite of existing PTE.h]h"Fault was mkwrite of existing PTE.}(hj+QhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'QhMhj(Qubah}(h]h ]h"]h$]h&]uh1jhj Qubeh}(h]h ]h"]h$]h&]uh1jhj'QhMhjPubj)}(h@``FAULT_FLAG_ALLOW_RETRY`` Allow to retry the fault if blocked. h](j)}(h``FAULT_FLAG_ALLOW_RETRY``h]jS)}(hjKQh]hFAULT_FLAG_ALLOW_RETRY}(hjMQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIQubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjEQubj)}(hhh]jM)}(h$Allow to retry the fault if blocked.h]h$Allow to retry the fault if blocked.}(hjdQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`QhMhjaQubah}(h]h ]h"]h$]h&]uh1jhjEQubeh}(h]h ]h"]h$]h&]uh1jhj`QhMhjPubj)}(hI``FAULT_FLAG_RETRY_NOWAIT`` Don't drop mmap_lock and wait when retrying. h](j)}(h``FAULT_FLAG_RETRY_NOWAIT``h]jS)}(hjQh]hFAULT_FLAG_RETRY_NOWAIT}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj~Qubj)}(hhh]jM)}(h,Don't drop mmap_lock and wait when retrying.h]h.Don’t drop mmap_lock and wait when retrying.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhj~Qubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjPubj)}(hF``FAULT_FLAG_KILLABLE`` The fault task is in SIGKILL killable region. h](j)}(h``FAULT_FLAG_KILLABLE``h]jS)}(hjQh]hFAULT_FLAG_KILLABLE}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjQubj)}(hhh]jM)}(h-The fault task is in SIGKILL killable region.h]h-The fault task is in SIGKILL killable region.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjPubj)}(h4``FAULT_FLAG_TRIED`` The fault has been tried once. h](j)}(h``FAULT_FLAG_TRIED``h]jS)}(hjQh]hFAULT_FLAG_TRIED}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjQubj)}(hhh]jM)}(hThe fault has been tried once.h]hThe fault has been tried once.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj RhMhj Rubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhj RhMhjPubj)}(h7``FAULT_FLAG_USER`` The fault originated in userspace. h](j)}(h``FAULT_FLAG_USER``h]jS)}(hj/Rh]hFAULT_FLAG_USER}(hj1RhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-Rubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj)Rubj)}(hhh]jM)}(h"The fault originated in userspace.h]h"The fault originated in userspace.}(hjHRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDRhMhjERubah}(h]h ]h"]h$]h&]uh1jhj)Rubeh}(h]h ]h"]h$]h&]uh1jhjDRhMhjPubj)}(h<``FAULT_FLAG_REMOTE`` The fault is not for current task/mm. h](j)}(h``FAULT_FLAG_REMOTE``h]jS)}(hjhRh]hFAULT_FLAG_REMOTE}(hjjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfRubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjbRubj)}(hhh]jM)}(h%The fault is not for current task/mm.h]h%The fault is not for current task/mm.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}RhMhj~Rubah}(h]h ]h"]h$]h&]uh1jhjbRubeh}(h]h ]h"]h$]h&]uh1jhj}RhMhjPubj)}(hF``FAULT_FLAG_INSTRUCTION`` The fault was during an instruction fetch. h](j)}(h``FAULT_FLAG_INSTRUCTION``h]jS)}(hjRh]hFAULT_FLAG_INSTRUCTION}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjRubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjRubj)}(hhh]jM)}(h*The fault was during an instruction fetch.h]h*The fault was during an instruction fetch.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjPubj)}(hP``FAULT_FLAG_INTERRUPTIBLE`` The fault can be interrupted by non-fatal signals. h](j)}(h``FAULT_FLAG_INTERRUPTIBLE``h]jS)}(hjRh]hFAULT_FLAG_INTERRUPTIBLE}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjRubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjRubj)}(hhh]jM)}(h2The fault can be interrupted by non-fatal signals.h]h2The fault can be interrupted by non-fatal signals.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjPubj)}(h``FAULT_FLAG_UNSHARE`` The fault is an unsharing request to break COW in a COW mapping, making sure that an exclusive anon page is mapped after the fault. h](j)}(h``FAULT_FLAG_UNSHARE``h]jS)}(hjSh]hFAULT_FLAG_UNSHARE}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj Subj)}(hhh]jM)}(hThe fault is an unsharing request to break COW in a COW mapping, making sure that an exclusive anon page is mapped after the fault.h]hThe fault is an unsharing request to break COW in a COW mapping, making sure that an exclusive anon page is mapped after the fault.}(hj,ShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj)Subah}(h]h ]h"]h$]h&]uh1jhj Subeh}(h]h ]h"]h$]h&]uh1jhj(ShMhjPubj)}(h{``FAULT_FLAG_ORIG_PTE_VALID`` whether the fault has vmf->orig_pte cached. We should only access orig_pte if this flag set. h](j)}(h``FAULT_FLAG_ORIG_PTE_VALID``h]jS)}(hjMSh]hFAULT_FLAG_ORIG_PTE_VALID}(hjOShhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKSubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjGSubj)}(hhh]jM)}(h\whether the fault has vmf->orig_pte cached. We should only access orig_pte if this flag set.h]h\whether the fault has vmf->orig_pte cached. We should only access orig_pte if this flag set.}(hjfShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjcSubah}(h]h ]h"]h$]h&]uh1jhjGSubeh}(h]h ]h"]h$]h&]uh1jhjbShMhjPubj)}(h<``FAULT_FLAG_VMA_LOCK`` The fault is handled under VMA lock.h](j)}(h``FAULT_FLAG_VMA_LOCK``h]jS)}(hjSh]hFAULT_FLAG_VMA_LOCK}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM hjSubj)}(hhh]jM)}(h$The fault is handled under VMA lock.h]h$The fault is handled under VMA lock.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM hjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShM hjPubeh}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj<hNubjM)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM hjhhubjM)}(hAbout **FAULT_FLAG_ALLOW_RETRY** and **FAULT_FLAG_TRIED**: we can specify whether we would allow page faults to retry by specifying these two fault flags correctly. Currently there can be three legal combinations:h](hAbout }(hjShhhNhNubj)}(h**FAULT_FLAG_ALLOW_RETRY**h]hFAULT_FLAG_ALLOW_RETRY}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh and }(hjShhhNhNubj)}(h**FAULT_FLAG_TRIED**h]hFAULT_FLAG_TRIED}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh: we can specify whether we would allow page faults to retry by specifying these two fault flags correctly. Currently there can be three legal combinations:}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjhhubj/)}(hhh](j/)}(htALLOW_RETRY and !TRIED: this means the page fault allows retry, and this is the first try h]j)}(hhh]j)}(h[ALLOW_RETRY and !TRIED: this means the page fault allows retry, and this is the first try h](j)}(hDALLOW_RETRY and !TRIED: this means the page fault allows retry, andh]hDALLOW_RETRY and !TRIED: this means the page fault allows retry, and}(hj!ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjTubj)}(hhh]jM)}(hthis is the first tryh]hthis is the first try}(hj3ThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/ThMhj0Tubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhj/ThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1j/hjTubj/)}(hALLOW_RETRY and TRIED: this means the page fault allows retry, and we've already tried at least once h]j)}(hhh]j)}(hgALLOW_RETRY and TRIED: this means the page fault allows retry, and we've already tried at least once h](j)}(hDALLOW_RETRY and TRIED: this means the page fault allows retry, andh]hDALLOW_RETRY and TRIED: this means the page fault allows retry, and}(hjdThhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj`Tubj)}(hhh]jM)}(h!we've already tried at least onceh]h#we’ve already tried at least once}(hjvThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrThMhjsTubah}(h]h ]h"]h$]h&]uh1jhj`Tubeh}(h]h ]h"]h$]h&]uh1jhjrThMhj]Tubah}(h]h ]h"]h$]h&]uh1jhjYTubah}(h]h ]h"]h$]h&]uh1j/hjTubj/)}(hH!ALLOW_RETRY and !TRIED: this means the page fault does not allow retry h]jM)}(hG!ALLOW_RETRY and !TRIED: this means the page fault does not allow retryh]hG!ALLOW_RETRY and !TRIED: this means the page fault does not allow retry}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjTubah}(h]h ]h"]h$]h&]uh1j/hjTubeh}(h]h ]h"]h$]h&]j[0 loweralphaj]0j!j^0j!uh1j/hjhhhj<hNubjM)}(hXThe unlisted combination (!ALLOW_RETRY && TRIED) is illegal and should never be used. Note that page faults can be allowed to retry for multiple times, in which case we'll have an initial fault with flags (a) then later on continuous faults with flags (b). We should always try to detect pending signals before a retry to make sure the continuous page faults can still be interrupted if necessary.h]hXThe unlisted combination (!ALLOW_RETRY && TRIED) is illegal and should never be used. Note that page faults can be allowed to retry for multiple times, in which case we’ll have an initial fault with flags (a) then later on continuous faults with flags (b). We should always try to detect pending signals before a retry to make sure the continuous page faults can still be interrupted if necessary.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjhhubjM)}(hThe combination FAULT_FLAG_WRITE|FAULT_FLAG_UNSHARE is illegal. FAULT_FLAG_UNSHARE is ignored and treated like an ordinary read fault when applied to mappings that are not COW mappings.h]hThe combination FAULT_FLAG_WRITE|FAULT_FLAG_UNSHARE is illegal. FAULT_FLAG_UNSHARE is ignored and treated like an ordinary read fault when applied to mappings that are not COW mappings.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_is_file_lru (C function)c.folio_is_file_lruhNtauh1hhjhhhNhNubh)}(hhh](h)}(h1int folio_is_file_lru (const struct folio *folio)h]h)}(h0int folio_is_file_lru(const struct folio *folio)h](j)}(hinth]hint}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjUhKubh)}(hfolio_is_file_lruh]j)}(hfolio_is_file_lruh]hfolio_is_file_lru}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1hhjThhhjUhKubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj0UhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj,Uubj)}(h h]h }(hj=UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Uubj5)}(hj8h]hstruct}(hjKUhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj,Uubj)}(h h]h }(hjXUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Uubh)}(hhh]j)}(hfolioh]hfolio}(hjiUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfUubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjkUmodnameN classnameNjpjs)}jv]jy)}jljUsbc.folio_is_file_lruasbuh1hhj,Uubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,UubjF )}(hjI h]h*}(hjUhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj,Uubj)}(hfolioh]hfolio}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Uubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(Uubah}(h]h ]h"]h$]h&]jjuh1j hjThhhjUhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjThhhjUhKubah}(h]jTah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjUhKhjThhubj4)}(hhh]jM)}(h.Should the folio be on a file LRU or anon LRU?h]h.Should the folio be on a file LRU or anon LRU?}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjUhhubah}(h]h ]h"]h$]h&]uh1j3hjThhhjUhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjUjHjUjIjJjKuh1hhhhjhNhNubj)}(hXX**Parameters** ``const struct folio *folio`` The folio to test. **Description** We would like to get this info without a page flag, but the state needs to survive until the folio is last deleted from the LRU, which could be as far down as __page_cache_release. **Return** An integer (not a boolean!) used to sort a folio onto the right LRU list and to account folios correctly. 1 if **folio** is a regular filesystem backed page cache folio or a lazily freed anonymous folio (e.g. via MADV_FREE). 0 if **folio** is a normal anonymous folio, a tmpfs folio or otherwise ram or swap backed folio.h](jM)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjUubj)}(hhh]j)}(h1``const struct folio *folio`` The folio to test. h](j)}(h``const struct folio *folio``h]jS)}(hjVh]hconst struct folio *folio}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj Vubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhj Vubj)}(hhh]jM)}(hThe folio to test.h]hThe folio to test.}(hj(VhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$VhKhj%Vubah}(h]h ]h"]h$]h&]uh1jhj Vubeh}(h]h ]h"]h$]h&]uh1jhj$VhKhjVubah}(h]h ]h"]h$]h&]uh1jhjUubjM)}(h**Description**h]j)}(hjJVh]h Description}(hjLVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHVubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjUubjM)}(hWe would like to get this info without a page flag, but the state needs to survive until the folio is last deleted from the LRU, which could be as far down as __page_cache_release.h]hWe would like to get this info without a page flag, but the state needs to survive until the folio is last deleted from the LRU, which could be as far down as __page_cache_release.}(hj`VhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjUubjM)}(h **Return**h]j)}(hjqVh]hReturn}(hjsVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoVubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjUubjM)}(hXAAn integer (not a boolean!) used to sort a folio onto the right LRU list and to account folios correctly. 1 if **folio** is a regular filesystem backed page cache folio or a lazily freed anonymous folio (e.g. via MADV_FREE). 0 if **folio** is a normal anonymous folio, a tmpfs folio or otherwise ram or swap backed folio.h](hoAn integer (not a boolean!) used to sort a folio onto the right LRU list and to account folios correctly. 1 if }(hjVhhhNhNubj)}(h **folio**h]hfolio}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhn is a regular filesystem backed page cache folio or a lazily freed anonymous folio (e.g. via MADV_FREE). 0 if }(hjVhhhNhNubj)}(h **folio**h]hfolio}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhR is a normal anonymous folio, a tmpfs folio or otherwise ram or swap backed folio.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$__folio_clear_lru_flags (C function)c.__folio_clear_lru_flagshNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void __folio_clear_lru_flags (struct folio *folio)h]h)}(h1void __folio_clear_lru_flags(struct folio *folio)h](j)}(hvoidh]hvoid}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK:ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhK:ubh)}(h__folio_clear_lru_flagsh]j)}(h__folio_clear_lru_flagsh]h__folio_clear_lru_flags}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1hhjVhhhjVhK:ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjWhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjWubj)}(h h]h }(hj$WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j)}(hfolioh]hfolio}(hj5WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Wubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7WmodnameN classnameNjpjs)}jv]jy)}jljVsbc.__folio_clear_lru_flagsasbuh1hhjWubj)}(h h]h }(hjUWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjF )}(hjI h]h*}(hjcWhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjWubj)}(hfolioh]hfolio}(hjpWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubah}(h]h ]h"]h$]h&]jjuh1j hjVhhhjVhK:ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjVhhhjVhK:ubah}(h]jVah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjVhK:hjVhhubj4)}(hhh]jM)}(h-Clear page lru flags before releasing a page.h]h-Clear page lru flags before releasing a page.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK:hjWhhubah}(h]h ]h"]h$]h&]uh1j3hjVhhhjVhK:ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjWjHjWjIjJjKuh1hhhhjhNhNubj)}(ha**Parameters** ``struct folio *folio`` The folio that was on lru and now has a zero reference.h](jM)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK>hjWubj)}(hhh]j)}(hO``struct folio *folio`` The folio that was on lru and now has a zero reference.h](j)}(h``struct folio *folio``h]jS)}(hjWh]hstruct folio *folio}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK@hjWubj)}(hhh]jM)}(h7The folio that was on lru and now has a zero reference.h]h7The folio that was on lru and now has a zero reference.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK;hjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhK@hjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_lru_list (C function)c.folio_lru_listhNtauh1hhjhhhNhNubh)}(hhh](h)}(h8enum lru_list folio_lru_list (const struct folio *folio)h]h)}(h7enum lru_list folio_lru_list(const struct folio *folio)h](j5)}(hjEh]henum}(hj5XhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj1XhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKLubj)}(h h]h }(hjCXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1XhhhjBXhKLubh)}(hhh]j)}(hlru_listh]hlru_list}(hjTXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQXubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjVXmodnameN classnameNjpjs)}jv]jy)}jlfolio_lru_listsbc.folio_lru_listasbuh1hhj1XhhhjBXhKLubj)}(h h]h }(hjuXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1XhhhjBXhKLubh)}(hfolio_lru_listh]j)}(hjrXh]hfolio_lru_list}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1hhj1XhhhjBXhKLubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj5)}(hj8h]hstruct}(hjXhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]j)}(hfolioh]hfolio}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjXmodnameN classnameNjpjs)}jv]jpXc.folio_lru_listasbuh1hhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjF )}(hjI h]h*}(hjYhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjXubj)}(hfolioh]hfolio}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjXubah}(h]h ]h"]h$]h&]jjuh1j hj1XhhhjBXhKLubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj-XhhhjBXhKLubah}(h]j(Xah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjBXhKLhj*Xhhubj4)}(hhh]jM)}(h$Which LRU list should a folio be on?h]h$Which LRU list should a folio be on?}(hj>YhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKLhj;Yhhubah}(h]h ]h"]h$]h&]uh1j3hj*XhhhjBXhKLubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjVYjHjVYjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct folio *folio`` The folio to test. **Return** The LRU list a folio should be on, as an index into the array of LRU lists.h](jM)}(h**Parameters**h]j)}(hj`Yh]h Parameters}(hjbYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Yubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKPhjZYubj)}(hhh]j)}(h1``const struct folio *folio`` The folio to test. h](j)}(h``const struct folio *folio``h]jS)}(hjYh]hconst struct folio *folio}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj}Yubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKMhjyYubj)}(hhh]jM)}(hThe folio to test.h]hThe folio to test.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYhKMhjYubah}(h]h ]h"]h$]h&]uh1jhjyYubeh}(h]h ]h"]h$]h&]uh1jhjYhKMhjvYubah}(h]h ]h"]h$]h&]uh1jhjZYubjM)}(h **Return**h]j)}(hjYh]hReturn}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKOhjZYubjM)}(hKThe LRU list a folio should be on, as an index into the array of LRU lists.h]hKThe LRU list a folio should be on, as an index into the array of LRU lists.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKOhjZYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!num_pages_contiguous (C function)c.num_pages_contiguoushNtauh1hhjhhhNhNubh)}(hhh](h)}(hBsize_t num_pages_contiguous (struct page **pages, size_t nr_pages)h]h)}(hAsize_t num_pages_contiguous(struct page **pages, size_t nr_pages)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjZmodnameN classnameNjpjs)}jv]jy)}jlnum_pages_contiguoussbc.num_pages_contiguousasbuh1hhjYhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhM{ubj)}(h h]h }(hj$ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhj#ZhM{ubh)}(hnum_pages_contiguoush]j)}(hj Zh]hnum_pages_contiguous}(hj6ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Zubah}(h]h ](jjeh"]h$]h&]jjuh1hhjYhhhj#ZhM{ubj )}(h&(struct page **pages, size_t nr_pages)h](j )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hjQZhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjMZubj)}(h h]h }(hj^ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMZubh)}(hhh]j)}(hpageh]hpage}(hjoZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjqZmodnameN classnameNjpjs)}jv]jZc.num_pages_contiguousasbuh1hhjMZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMZubjF )}(hjI h]h*}(hjZhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjMZubjF )}(hjI h]h*}(hjZhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjMZubj)}(hpagesh]hpages}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMZubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIZubj )}(hsize_t nr_pagesh](h)}(hhh]j)}(hsize_th]hsize_t}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjZmodnameN classnameNjpjs)}jv]jZc.num_pages_contiguousasbuh1hhjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hnr_pagesh]hnr_pages}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIZubeh}(h]h ]h"]h$]h&]jjuh1j hjYhhhj#ZhM{ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjYhhhj#ZhM{ubah}(h]jYah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj#ZhM{hjYhhubj4)}(hhh]jM)}(hGdetermine the number of contiguous pages that represent contiguous PFNsh]hGdetermine the number of contiguous pages that represent contiguous PFNs}(hj'[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhM{hj$[hhubah}(h]h ]h"]h$]h&]uh1j3hjYhhhj#ZhM{ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj?[jHj?[jIjJjKuh1hhhhjhNhNubj)}(hX6**Parameters** ``struct page **pages`` an array of page pointers ``size_t nr_pages`` length of the array, at least 1 **Description** Determine the number of contiguous pages that represent contiguous PFNs in **pages**, starting from the first page. In some kernel configs contiguous PFNs will not have contiguous struct pages. In these configurations num_pages_contiguous() will return a num smaller than ideal number. The caller should continue to check for pfn contiguity after each call to num_pages_contiguous(). Returns the number of contiguous pages.h](jM)}(h**Parameters**h]j)}(hjI[h]h Parameters}(hjK[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG[ubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMhjC[ubj)}(hhh](j)}(h2``struct page **pages`` an array of page pointers h](j)}(h``struct page **pages``h]jS)}(hjh[h]hstruct page **pages}(hjj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjf[ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhM}hjb[ubj)}(hhh]jM)}(han array of page pointersh]han array of page pointers}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}[hM}hj~[ubah}(h]h ]h"]h$]h&]uh1jhjb[ubeh}(h]h ]h"]h$]h&]uh1jhj}[hM}hj_[ubj)}(h4``size_t nr_pages`` length of the array, at least 1 h](j)}(h``size_t nr_pages``h]jS)}(hj[h]hsize_t nr_pages}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhM~hj[ubj)}(hhh]jM)}(hlength of the array, at least 1h]hlength of the array, at least 1}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hM~hj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hM~hj_[ubeh}(h]h ]h"]h$]h&]uh1jhjC[ubjM)}(h**Description**h]j)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMhjC[ubjM)}(hsDetermine the number of contiguous pages that represent contiguous PFNs in **pages**, starting from the first page.h](hKDetermine the number of contiguous pages that represent contiguous PFNs in }(hj[hhhNhNubj)}(h **pages**h]hpages}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh, starting from the first page.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMhjC[ubjM)}(hX In some kernel configs contiguous PFNs will not have contiguous struct pages. In these configurations num_pages_contiguous() will return a num smaller than ideal number. The caller should continue to check for pfn contiguity after each call to num_pages_contiguous().h]hX In some kernel configs contiguous PFNs will not have contiguous struct pages. In these configurations num_pages_contiguous() will return a num smaller than ideal number. The caller should continue to check for pfn contiguity after each call to num_pages_contiguous().}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMhjC[ubjM)}(h'Returns the number of contiguous pages.h]h'Returns the number of contiguous pages.}(hj"\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMhjC[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpage_folio (C macro) c.page_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(h page_folioh]h)}(h page_folioh]h)}(h page_folioh]j)}(hjK\h]h page_folio}(hjU\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ\ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjM\hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM ubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjI\hhhjh\hM ubah}(h]jD\ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjh\hM hjF\hhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjF\hhhjh\hM ubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGj\jHj\jIjJjKuh1hhhhjhNhNubjM)}(h``page_folio (p)``h]jS)}(hj\h]hpage_folio (p)}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM"hjhhubji)}(hConverts from page to folio. h]jM)}(hConverts from page to folio.h]hConverts from page to folio.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hj\ubah}(h]h ]h"]h$]h&]uh1jhhj\hM hjhhubj)}(hX**Parameters** ``p`` The page. **Description** Every page is part of a folio. This function cannot be called on a NULL pointer. **Context** No reference, nor lock is required on **page**. If the caller does not hold a reference, this call may race with a folio split, so it should re-check the folio still contains this page after gaining a reference on the folio. **Return** The folio which contains this page.h](jM)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM$hj\ubj)}(hhh]j)}(h``p`` The page. h](j)}(h``p``h]jS)}(hj\h]hp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM!hj\ubj)}(hhh]jM)}(h The page.h]h The page.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\hM!hj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hM!hj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubjM)}(h**Description**h]j)}(hj]h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM#hj\ubjM)}(hQEvery page is part of a folio. This function cannot be called on a NULL pointer.h]hQEvery page is part of a folio. This function cannot be called on a NULL pointer.}(hj,]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM"hj\ubjM)}(h **Context**h]j)}(hj=]h]hContext}(hj?]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;]ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM%hj\ubjM)}(hNo reference, nor lock is required on **page**. If the caller does not hold a reference, this call may race with a folio split, so it should re-check the folio still contains this page after gaining a reference on the folio.h](h&No reference, nor lock is required on }(hjS]hhhNhNubj)}(h**page**h]hpage}(hj[]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS]ubh. If the caller does not hold a reference, this call may race with a folio split, so it should re-check the folio still contains this page after gaining a reference on the folio.}(hjS]hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM&hj\ubjM)}(h **Return**h]j)}(hjv]h]hReturn}(hjx]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt]ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM+hj\ubjM)}(h#The folio which contains this page.h]h#The folio which contains this page.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM*hj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_page (C macro) c.folio_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h folio_pageh]h)}(h folio_pageh]h)}(h folio_pageh]j)}(hj]h]h folio_page}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj]hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM1ubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj]hhhj]hM1ubah}(h]j]ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj]hM1hj]hhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hj]hhhj]hM1ubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGj]jHj]jIjJjKuh1hhhhjhNhNubjM)}(h``folio_page (folio, n)``h]jS)}(hj]h]hfolio_page (folio, n)}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj]ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM3hjhhubji)}(hReturn a page from a folio. h]jM)}(hReturn a page from a folio.h]hReturn a page from a folio.}(hj ^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM1hj^ubah}(h]h ]h"]h$]h&]uh1jhhj^hM1hjhhubj)}(hX **Parameters** ``folio`` The folio. ``n`` The page number to return. **Description** **n** is relative to the start of the folio. This function does not check that the page number lies within **folio**; the caller is presumed to have a reference to the page.h](jM)}(h**Parameters**h]j)}(hj&^h]h Parameters}(hj(^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$^ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM5hj ^ubj)}(hhh](j)}(h``folio`` The folio. h](j)}(h ``folio``h]jS)}(hjE^h]hfolio}(hjG^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjC^ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM2hj?^ubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj^^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZ^hM2hj[^ubah}(h]h ]h"]h$]h&]uh1jhj?^ubeh}(h]h ]h"]h$]h&]uh1jhjZ^hM2hj<^ubj)}(h!``n`` The page number to return. h](j)}(h``n``h]jS)}(hj~^h]hn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj|^ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM3hjx^ubj)}(hhh]jM)}(hThe page number to return.h]hThe page number to return.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hM3hj^ubah}(h]h ]h"]h$]h&]uh1jhjx^ubeh}(h]h ]h"]h$]h&]uh1jhj^hM3hj<^ubeh}(h]h ]h"]h$]h&]uh1jhj ^ubjM)}(h**Description**h]j)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM5hj ^ubjM)}(h**n** is relative to the start of the folio. This function does not check that the page number lies within **folio**; the caller is presumed to have a reference to the page.h](j)}(h**n**h]hn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubhg is relative to the start of the folio. This function does not check that the page number lies within }(hj^hhhNhNubj)}(h **folio**h]hfolio}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh9; the caller is presumed to have a reference to the page.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM4hj ^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(folio_xor_flags_has_waiters (C function)c.folio_xor_flags_has_waitershNtauh1hhjhhhNhNubh)}(hhh](h)}(hJbool folio_xor_flags_has_waiters (struct folio *folio, unsigned long mask)h]h)}(hIbool folio_xor_flags_has_waiters(struct folio *folio, unsigned long mask)h](j)}(hj.h]hbool}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMubj)}(h h]h }(hj,_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhj+_hMubh)}(hfolio_xor_flags_has_waitersh]j)}(hfolio_xor_flags_has_waitersh]hfolio_xor_flags_has_waiters}(hj>_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:_ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj_hhhj+_hMubj )}(h)(struct folio *folio, unsigned long mask)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjZ_hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjV_ubj)}(h h]h }(hjg_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV_ubh)}(hhh]j)}(hfolioh]hfolio}(hjx_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjz_modnameN classnameNjpjs)}jv]jy)}jlj@_sbc.folio_xor_flags_has_waitersasbuh1hhjV_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV_ubjF )}(hjI h]h*}(hj_hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjV_ubj)}(hfolioh]hfolio}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV_ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjR_ubj )}(hunsigned long maskh](j)}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hmaskh]hmask}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjR_ubeh}(h]h ]h"]h$]h&]jjuh1j hj_hhhj+_hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj_hhhj+_hMubah}(h]j_ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj+_hMhj_hhubj4)}(hhh]jM)}(hChange some folio flags.h]hChange some folio flags.}(hj.`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj+`hhubah}(h]h ]h"]h$]h&]uh1j3hj_hhhj+_hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjF`jHjF`jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio. ``unsigned long mask`` Bits set in this word will be changed. **Description** This must only be used for flags which are changed with the folio lock held. For example, it is unsafe to use for PG_dirty as that can be set without the folio lock held. It can also only be used on flags which are in the range 0-6 as some of the implementations only affect those bits. **Return** Whether there are tasks waiting on the folio.h](jM)}(h**Parameters**h]j)}(hjP`h]h Parameters}(hjR`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN`ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjJ`ubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjo`h]hstruct folio *folio}(hjq`hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjm`ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhji`ubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jhji`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjf`ubj)}(h>``unsigned long mask`` Bits set in this word will be changed. h](j)}(h``unsigned long mask``h]jS)}(hj`h]hunsigned long mask}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj`ubj)}(hhh]jM)}(h&Bits set in this word will be changed.h]h&Bits set in this word will be changed.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjf`ubeh}(h]h ]h"]h$]h&]uh1jhjJ`ubjM)}(h**Description**h]j)}(hj`h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjJ`ubjM)}(hX This must only be used for flags which are changed with the folio lock held. For example, it is unsafe to use for PG_dirty as that can be set without the folio lock held. It can also only be used on flags which are in the range 0-6 as some of the implementations only affect those bits.h]hX This must only be used for flags which are changed with the folio lock held. For example, it is unsafe to use for PG_dirty as that can be set without the folio lock held. It can also only be used on flags which are in the range 0-6 as some of the implementations only affect those bits.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjJ`ubjM)}(h **Return**h]j)}(hj ah]hReturn}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjJ`ubjM)}(h-Whether there are tasks waiting on the folio.h]h-Whether there are tasks waiting on the folio.}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjJ`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_test_uptodate (C function)c.folio_test_uptodatehNtauh1hhjhhhNhNubh)}(hhh](h)}(h4bool folio_test_uptodate (const struct folio *folio)h]h)}(h3bool folio_test_uptodate(const struct folio *folio)h](j)}(hj.h]hbool}(hjOahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKahhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMubj)}(h h]h }(hj]ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKahhhj\ahMubh)}(hfolio_test_uptodateh]j)}(hfolio_test_uptodateh]hfolio_test_uptodate}(hjoahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkaubah}(h]h ](jjeh"]h$]h&]jjuh1hhjKahhhj\ahMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjahhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj5)}(hj8h]hstruct}(hjahhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j)}(hfolioh]hfolio}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjamodnameN classnameNjpjs)}jv]jy)}jljqasbc.folio_test_uptodateasbuh1hhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjF )}(hjI h]h*}(hjahhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjaubj)}(hfolioh]hfolio}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjaubah}(h]h ]h"]h$]h&]jjuh1j hjKahhhj\ahMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjGahhhj\ahMubah}(h]jBaah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj\ahMhjDahhubj4)}(hhh]jM)}(hIs this folio up to date?h]hIs this folio up to date?}(hj)bhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj&bhhubah}(h]h ]h"]h$]h&]uh1j3hjDahhhj\ahMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjAbjHjAbjIjJjKuh1hhhhjhNhNubj)}(hXn**Parameters** ``const struct folio *folio`` The folio. **Description** The uptodate flag is set on a folio when every byte in the folio is at least as new as the corresponding bytes on storage. Anonymous and CoW folios are always uptodate. If the folio is not uptodate, some of the bytes in it may be; see the is_partially_uptodate() address_space operation.h](jM)}(h**Parameters**h]j)}(hjKbh]h Parameters}(hjMbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIbubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hjEbubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjjbh]hconst struct folio *folio}(hjlbhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjhbubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjdbubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjdbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjabubah}(h]h ]h"]h$]h&]uh1jhjEbubjM)}(h**Description**h]j)}(hjbh]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hjEbubjM)}(hX!The uptodate flag is set on a folio when every byte in the folio is at least as new as the corresponding bytes on storage. Anonymous and CoW folios are always uptodate. If the folio is not uptodate, some of the bytes in it may be; see the is_partially_uptodate() address_space operation.h]hX!The uptodate flag is set on a folio when every byte in the folio is at least as new as the corresponding bytes on storage. Anonymous and CoW folios are always uptodate. If the folio is not uptodate, some of the bytes in it may be; see the is_partially_uptodate() address_space operation.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hjEbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_test_large (C function)c.folio_test_largehNtauh1hhjhhhNhNubh)}(hhh](h)}(h1bool folio_test_large (const struct folio *folio)h]h)}(h0bool folio_test_large(const struct folio *folio)h](j)}(hj.h]hbool}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMYubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhMYubh)}(hfolio_test_largeh]j)}(hfolio_test_largeh]hfolio_test_large}(hj chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1hhjbhhhjbhMYubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj&chhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj"cubj)}(h h]h }(hj3chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"cubj5)}(hj8h]hstruct}(hjAchhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj"cubj)}(h h]h }(hjNchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"cubh)}(hhh]j)}(hfolioh]hfolio}(hj_chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\cubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjacmodnameN classnameNjpjs)}jv]jy)}jlj csbc.folio_test_largeasbuh1hhj"cubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"cubjF )}(hjI h]h*}(hjchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj"cubj)}(hfolioh]hfolio}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"cubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubah}(h]h ]h"]h$]h&]jjuh1j hjbhhhjbhMYubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjbhhhjbhMYubah}(h]jbah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjbhMYhjbhhubj4)}(hhh]jM)}(h+Does this folio contain more than one page?h]h+Does this folio contain more than one page?}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMYhjchhubah}(h]h ]h"]h$]h&]uh1j3hjbhhhjbhMYubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjcjHjcjIjJjKuh1hhhhjhNhNubj)}(hz**Parameters** ``const struct folio *folio`` The folio to test. **Return** True if the folio is larger than one page.h](jM)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM]hjcubj)}(hhh]j)}(h1``const struct folio *folio`` The folio to test. h](j)}(h``const struct folio *folio``h]jS)}(hjdh]hconst struct folio *folio}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMZhjcubj)}(hhh]jM)}(hThe folio to test.h]hThe folio to test.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjdhMZhjdubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjdhMZhjcubah}(h]h ]h"]h$]h&]uh1jhjcubjM)}(h **Return**h]j)}(hj@dh]hReturn}(hjBdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>dubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM\hjcubjM)}(h*True if the folio is larger than one page.h]h*True if the folio is larger than one page.}(hjVdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM\hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hPageHuge (C function) c.PageHugehNtauh1hhjhhhNhNubh)}(hhh](h)}(h'bool PageHuge (const struct page *page)h]h)}(h&bool PageHuge(const struct page *page)h](j)}(hj.h]hbool}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM#ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhM#ubh)}(hPageHugeh]j)}(hPageHugeh]hPageHuge}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1hhjdhhhjdhM#ubj )}(h(const struct page *page)h]j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjdhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj5)}(hj8h]hstruct}(hjdhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j)}(hpageh]hpage}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]jy)}jljdsb c.PageHugeasbuh1hhjdubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjF )}(hjI h]h*}(hj(ehhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjdubj)}(hpageh]hpage}(hj5ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjdubah}(h]h ]h"]h$]h&]jjuh1j hjdhhhjdhM#ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj}dhhhjdhM#ubah}(h]jxdah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjdhM#hjzdhhubj4)}(hhh]jM)}(h*Determine if the page belongs to hugetlbfsh]h*Determine if the page belongs to hugetlbfs}(hj_ehhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM#hj\ehhubah}(h]h ]h"]h$]h&]uh1j3hjzdhhhjdhM#ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjwejHjwejIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct page *page`` The page to test. **Context** Any context. **Return** True for hugetlbfs pages, false for anon pages or pages belonging to other filesystems.h](jM)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM'hj{eubj)}(hhh]j)}(h.``const struct page *page`` The page to test. h](j)}(h``const struct page *page``h]jS)}(hjeh]hconst struct page *page}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM$hjeubj)}(hhh]jM)}(hThe page to test.h]hThe page to test.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehM$hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehM$hjeubah}(h]h ]h"]h$]h&]uh1jhj{eubjM)}(h **Context**h]j)}(hjeh]hContext}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM&hj{eubjM)}(h Any context.h]h Any context.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM&hj{eubjM)}(h **Return**h]j)}(hjfh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM(hj{eubjM)}(hWTrue for hugetlbfs pages, false for anon pages or pages belonging to other filesystems.h]hWTrue for hugetlbfs pages, false for anon pages or pages belonging to other filesystems.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM'hj{eubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!page_has_movable_ops (C function)c.page_has_movable_opshNtauh1hhjhhhNhNubh)}(hhh](h)}(h3bool page_has_movable_ops (const struct page *page)h]h)}(h2bool page_has_movable_ops(const struct page *page)h](j)}(hj.h]hbool}(hjGfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCfhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhubj)}(h h]h }(hjUfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCfhhhjTfhMhubh)}(hpage_has_movable_opsh]j)}(hpage_has_movable_opsh]hpage_has_movable_ops}(hjgfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcfubah}(h]h ](jjeh"]h$]h&]jjuh1hhjCfhhhjTfhMhubj )}(h(const struct page *page)h]j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjfhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj5)}(hj8h]hstruct}(hjfhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j)}(hpageh]hpage}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjfmodnameN classnameNjpjs)}jv]jy)}jljifsbc.page_has_movable_opsasbuh1hhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjF )}(hjI h]h*}(hjfhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjfubj)}(hpageh]hpage}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj{fubah}(h]h ]h"]h$]h&]jjuh1j hjCfhhhjTfhMhubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj?fhhhjTfhMhubah}(h]j:fah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjTfhMhhjunsigned long vma_kernel_pagesize (struct vm_area_struct *vma)h]h)}(h=unsigned long vma_kernel_pagesize(struct vm_area_struct *vma)h](j)}(hunsignedh]hunsigned}(hjAnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=nhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMGubj)}(h h]h }(hjPnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=nhhhjOnhMGubj)}(hlongh]hlong}(hj^nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=nhhhjOnhMGubj)}(h h]h }(hjlnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=nhhhjOnhMGubh)}(hvma_kernel_pagesizeh]j)}(hvma_kernel_pagesizeh]hvma_kernel_pagesize}(hj~nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjznubah}(h]h ](jjeh"]h$]h&]jjuh1hhj=nhhhjOnhMGubj )}(h(struct vm_area_struct *vma)h]j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjnhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jy)}jljnsbc.vma_kernel_pagesizeasbuh1hhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjF )}(hjI h]h*}(hjnhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjnubj)}(hvmah]hvma}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjnubah}(h]h ]h"]h$]h&]jjuh1j hj=nhhhjOnhMGubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj9nhhhjOnhMGubah}(h]j4nah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjOnhMGhj6nhhubj4)}(hhh]jM)}(h+Default page size granularity for this VMA.h]h+Default page size granularity for this VMA.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMGhjohhubah}(h]h ]h"]h$]h&]uh1j3hj6nhhhjOnhMGubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj5ojHj5ojIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` The user mapping. **Description** The kernel page size specifies in which granularity VMA modifications can be performed. Folios in this VMA will be aligned to, and at least the size of the number of bytes returned by this function. The default kernel page size is not affected by Transparent Huge Pages being in effect. **Return** The default page size granularity for this VMA.h](jM)}(h**Parameters**h]j)}(hj?oh]h Parameters}(hjAohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=oubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMKhj9oubj)}(hhh]j)}(h1``struct vm_area_struct *vma`` The user mapping. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj^oh]hstruct vm_area_struct *vma}(hj`ohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\oubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMHhjXoubj)}(hhh]jM)}(hThe user mapping.h]hThe user mapping.}(hjwohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjsohMHhjtoubah}(h]h ]h"]h$]h&]uh1jhjXoubeh}(h]h ]h"]h$]h&]uh1jhjsohMHhjUoubah}(h]h ]h"]h$]h&]uh1jhj9oubjM)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMJhj9oubjM)}(hThe kernel page size specifies in which granularity VMA modifications can be performed. Folios in this VMA will be aligned to, and at least the size of the number of bytes returned by this function.h]hThe kernel page size specifies in which granularity VMA modifications can be performed. Folios in this VMA will be aligned to, and at least the size of the number of bytes returned by this function.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMIhj9oubjM)}(hWThe default kernel page size is not affected by Transparent Huge Pages being in effect.h]hWThe default kernel page size is not affected by Transparent Huge Pages being in effect.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMMhj9oubjM)}(h **Return**h]j)}(hjoh]hReturn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMPhj9oubjM)}(h/The default page size granularity for this VMA.h]h/The default page size granularity for this VMA.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMQhj9oubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_order (C function) c.folio_orderhNtauh1hhjhhhNhNubh)}(hhh](h)}(h4unsigned int folio_order (const struct folio *folio)h]h)}(h3unsigned int folio_order(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj#phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhj"phMubj)}(hinth]hint}(hj1phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhj"phMubj)}(h h]h }(hj?phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhj"phMubh)}(h folio_orderh]j)}(h folio_orderh]h folio_order}(hjQphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMpubah}(h]h ](jjeh"]h$]h&]jjuh1hhjphhhj"phMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjmphhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjipubj)}(h h]h }(hjzphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjipubj5)}(hj8h]hstruct}(hjphhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjipubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjipubh)}(hhh]j)}(hfolioh]hfolio}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjpmodnameN classnameNjpjs)}jv]jy)}jljSpsb c.folio_orderasbuh1hhjipubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjipubjF )}(hjI h]h*}(hjphhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjipubj)}(hfolioh]hfolio}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjipubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjepubah}(h]h ]h"]h$]h&]jjuh1j hjphhhj"phMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj phhhj"phMubah}(h]jpah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj"phMhj phhubj4)}(hhh]jM)}(h The allocation order of a folio.h]h The allocation order of a folio.}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjqhhubah}(h]h ]h"]h$]h&]uh1j3hj phhhj"phMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj#qjHj#qjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct folio *folio`` The folio. **Description** A folio is composed of 2^order pages. See get_order() for the definition of order. **Return** The order of the folio.h](jM)}(h**Parameters**h]j)}(hj-qh]h Parameters}(hj/qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+qubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj'qubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjLqh]hconst struct folio *folio}(hjNqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJqubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjFqubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjeqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjaqhMhjbqubah}(h]h ]h"]h$]h&]uh1jhjFqubeh}(h]h ]h"]h$]h&]uh1jhjaqhMhjCqubah}(h]h ]h"]h$]h&]uh1jhj'qubjM)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj'qubjM)}(hSA folio is composed of 2^order pages. See get_order() for the definition of order.h]hSA folio is composed of 2^order pages. See get_order() for the definition of order.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj'qubjM)}(h **Return**h]j)}(hjqh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj'qubjM)}(hThe order of the folio.h]hThe order of the folio.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj'qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_reset_order (C function)c.folio_reset_orderhNtauh1hhjhhhNhNubh)}(hhh](h)}(h,void folio_reset_order (struct folio *folio)h]h)}(h+void folio_reset_order(struct folio *folio)h](j)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjrhMubh)}(hfolio_reset_orderh]j)}(hfolio_reset_orderh]hfolio_reset_order}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ](jjeh"]h$]h&]jjuh1hhjqhhhjrhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj0rhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj,rubj)}(h h]h }(hj=rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,rubh)}(hhh]j)}(hfolioh]hfolio}(hjNrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKrubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjPrmodnameN classnameNjpjs)}jv]jy)}jljrsbc.folio_reset_orderasbuh1hhj,rubj)}(h h]h }(hjnrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,rubjF )}(hjI h]h*}(hj|rhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj,rubj)}(hfolioh]hfolio}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,rubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(rubah}(h]h ]h"]h$]h&]jjuh1j hjqhhhjrhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjqhhhjrhMubah}(h]jqah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjrhMhjqhhubj4)}(hhh]jM)}(h+Reset the folio order and derived _nr_pagesh]h+Reset the folio order and derived _nr_pages}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjrhhubah}(h]h ]h"]h$]h&]uh1j3hjqhhhjrhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjrjHjrjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` The folio. **Description** Reset the order and derived _nr_pages to 0. Must only be used in the process of splitting large folios.h](jM)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjrubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjrh]hstruct folio *folio}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjrubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjrubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj shMhj subah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhj shMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubjM)}(h**Description**h]j)}(hj/sh]h Description}(hj1shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-subah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjrubjM)}(hgReset the order and derived _nr_pages to 0. Must only be used in the process of splitting large folios.h]hgReset the order and derived _nr_pages to 0. Must only be used in the process of splitting large folios.}(hjEshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mapcount (C function)c.folio_mapcounthNtauh1hhjhhhNhNubh)}(hhh](h)}(h.int folio_mapcount (const struct folio *folio)h]h)}(h-int folio_mapcount(const struct folio *folio)h](j)}(hinth]hint}(hjtshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpshhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMdubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpshhhjshMdubh)}(hfolio_mapcounth]j)}(hfolio_mapcounth]hfolio_mapcount}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1hhjpshhhjshMdubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj5)}(hj8h]hstruct}(hjshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j)}(hfolioh]hfolio}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjsmodnameN classnameNjpjs)}jv]jy)}jljssbc.folio_mapcountasbuh1hhjsubj)}(h h]h }(hj thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjF )}(hjI h]h*}(hjthhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsubj)}(hfolioh]hfolio}(hj%thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubah}(h]h ]h"]h$]h&]jjuh1j hjpshhhjshMdubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjlshhhjshMdubah}(h]jgsah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjshMdhjishhubj4)}(hhh]jM)}(h!Number of mappings of this folio.h]h!Number of mappings of this folio.}(hjOthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMdhjLthhubah}(h]h ]h"]h$]h&]uh1j3hjishhhjshMdubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjgtjHjgtjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``const struct folio *folio`` The folio. **Description** The folio mapcount corresponds to the number of present user page table entries that reference any part of a folio. Each such present user page table entry must be paired with exactly on folio reference. For ordindary folios, each user page table entry (PTE/PMD/PUD/...) counts exactly once. For hugetlb folios, each abstracted "hugetlb" user page table entry that references the entire folio counts exactly once, even when such special page table entries are comprised of multiple ordinary page table entries. Will report 0 for pages which cannot be mapped into userspace, such as slab, page tables and similar. **Return** The number of times this folio is mapped.h](jM)}(h**Parameters**h]j)}(hjqth]h Parameters}(hjsthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjotubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhhjktubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjth]hconst struct folio *folio}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMehjtubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjthMehjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMehjtubah}(h]h ]h"]h$]h&]uh1jhjktubjM)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMghjktubjM)}(hThe folio mapcount corresponds to the number of present user page table entries that reference any part of a folio. Each such present user page table entry must be paired with exactly on folio reference.h]hThe folio mapcount corresponds to the number of present user page table entries that reference any part of a folio. Each such present user page table entry must be paired with exactly on folio reference.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMfhjktubjM)}(hWFor ordindary folios, each user page table entry (PTE/PMD/PUD/...) counts exactly once.h]hWFor ordindary folios, each user page table entry (PTE/PMD/PUD/...) counts exactly once.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMjhjktubjM)}(hFor hugetlb folios, each abstracted "hugetlb" user page table entry that references the entire folio counts exactly once, even when such special page table entries are comprised of multiple ordinary page table entries.h]hFor hugetlb folios, each abstracted “hugetlb” user page table entry that references the entire folio counts exactly once, even when such special page table entries are comprised of multiple ordinary page table entries.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMmhjktubjM)}(heWill report 0 for pages which cannot be mapped into userspace, such as slab, page tables and similar.h]heWill report 0 for pages which cannot be mapped into userspace, such as slab, page tables and similar.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMqhjktubjM)}(h **Return**h]j)}(hjuh]hReturn}(hj!uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMthjktubjM)}(h)The number of times this folio is mapped.h]h)The number of times this folio is mapped.}(hj5uhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMuhjktubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mapped (C function)c.folio_mappedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h-bool folio_mapped (const struct folio *folio)h]h)}(h,bool folio_mapped(const struct folio *folio)h](j)}(hj.h]hbool}(hjduhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`uhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjruhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`uhhhjquhMubh)}(h folio_mappedh]j)}(h folio_mappedh]h folio_mapped}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1hhj`uhhhjquhMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjuhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj5)}(hj8h]hstruct}(hjuhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hhh]j)}(hfolioh]hfolio}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjumodnameN classnameNjpjs)}jv]jy)}jljusbc.folio_mappedasbuh1hhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjF )}(hjI h]h*}(hjvhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjuubj)}(hfolioh]hfolio}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubah}(h]h ]h"]h$]h&]jjuh1j hj`uhhhjquhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj\uhhhjquhMubah}(h]jWuah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjquhMhjYuhhubj4)}(hhh]jM)}(h$Is this folio mapped into userspace?h]h$Is this folio mapped into userspace?}(hj>vhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj;vhhubah}(h]h ]h"]h$]h&]uh1j3hjYuhhhjquhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjVvjHjVvjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct folio *folio`` The folio. **Return** True if any page in this folio is referenced by user page tables.h](jM)}(h**Parameters**h]j)}(hj`vh]h Parameters}(hjbvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^vubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjZvubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjvh]hconst struct folio *folio}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj}vubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjyvubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjyvubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjvvubah}(h]h ]h"]h$]h&]uh1jhjZvubjM)}(h **Return**h]j)}(hjvh]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjZvubjM)}(hATrue if any page in this folio is referenced by user page tables.h]hATrue if any page in this folio is referenced by user page tables.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjZvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hthp_order (C function) c.thp_orderhNtauh1hhjhhhNhNubh)}(hhh](h)}(h*unsigned int thp_order (struct page *page)h]h)}(h)unsigned int thp_order(struct page *page)h](j)}(hunsignedh]hunsigned}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhj whMubj)}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhj whMubj)}(h h]h }(hj*whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhj whMubh)}(h thp_orderh]j)}(h thp_orderh]h thp_order}(hjwsb c.thp_orderasbuh1hhjTwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTwubjF )}(hjI h]h*}(hjwhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjTwubj)}(hpageh]hpage}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPwubah}(h]h ]h"]h$]h&]jjuh1j hjvhhhj whMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjvhhhj whMubah}(h]jvah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj whMhjvhhubj4)}(hhh]jM)}(h!Order of a transparent huge page.h]h!Order of a transparent huge page.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjwhhubah}(h]h ]h"]h$]h&]uh1j3hjvhhhj whMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjwjHjwjIjJjKuh1hhhhjhNhNubj)}(hM**Parameters** ``struct page *page`` Head page of a transparent huge page.h](jM)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjwubj)}(hhh]j)}(h;``struct page *page`` Head page of a transparent huge page.h](j)}(h``struct page *page``h]jS)}(hjxh]hstruct page *page}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjxubj)}(hhh]jM)}(h%Head page of a transparent huge page.h]h%Head page of a transparent huge page.}(hj5xhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj2xubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhj1xhMhjxubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hthp_size (C function) c.thp_sizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h*unsigned long thp_size (struct page *page)h]h)}(h)unsigned long thp_size(struct page *page)h](j)}(hunsignedh]hunsigned}(hjvxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrxhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrxhhhjxhMubj)}(hlongh]hlong}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrxhhhjxhMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrxhhhjxhMubh)}(hthp_sizeh]j)}(hthp_sizeh]hthp_size}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1hhjrxhhhjxhMubj )}(h(struct page *page)h]j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjxhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]j)}(hpageh]hpage}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjxmodnameN classnameNjpjs)}jv]jy)}jljxsb c.thp_sizeasbuh1hhjxubj)}(h h]h }(hj yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjF )}(hjI h]h*}(hjyhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjxubj)}(hpageh]hpage}(hj(yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjxubah}(h]h ]h"]h$]h&]jjuh1j hjrxhhhjxhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjnxhhhjxhMubah}(h]jixah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjxhMhjkxhhubj4)}(hhh]jM)}(h Size of a transparent huge page.h]h Size of a transparent huge page.}(hjRyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjOyhhubah}(h]h ]h"]h$]h&]uh1j3hjkxhhhjxhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjyjHjjyjIjJjKuh1hhhhjhNhNubj)}(hx**Parameters** ``struct page *page`` Head page of a transparent huge page. **Return** Number of bytes in this page.h](jM)}(h**Parameters**h]j)}(hjtyh]h Parameters}(hjvyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjryubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjnyubj)}(hhh]j)}(h<``struct page *page`` Head page of a transparent huge page. h](j)}(h``struct page *page``h]jS)}(hjyh]hstruct page *page}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjyubj)}(hhh]jM)}(h%Head page of a transparent huge page.h]h%Head page of a transparent huge page.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjnyubjM)}(h **Return**h]j)}(hjyh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjnyubjM)}(hNumber of bytes in this page.h]hNumber of bytes in this page.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjnyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_get (C function) c.folio_gethNtauh1hhjhhhNhNubh)}(hhh](h)}(h$void folio_get (struct folio *folio)h]h)}(h#void folio_get(struct folio *folio)h](j)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj"zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhj!zhMubh)}(h folio_geth]j)}(h folio_geth]h folio_get}(hj4zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0zubah}(h]h ](jjeh"]h$]h&]jjuh1hhjzhhhj!zhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjPzhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjLzubj)}(h h]h }(hj]zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLzubh)}(hhh]j)}(hfolioh]hfolio}(hjnzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkzubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjpzmodnameN classnameNjpjs)}jv]jy)}jlj6zsb c.folio_getasbuh1hhjLzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLzubjF )}(hjI h]h*}(hjzhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjLzubj)}(hfolioh]hfolio}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLzubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHzubah}(h]h ]h"]h$]h&]jjuh1j hjzhhhj!zhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj zhhhj!zhMubah}(h]jzah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj!zhMhjzhhubj4)}(hhh]jM)}(h)Increment the reference count on a folio.h]h)Increment the reference count on a folio.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjzhhubah}(h]h ]h"]h$]h&]uh1j3hjzhhhj!zhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjzjHjzjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` The folio. **Context** May be called in any context, as long as you know that you have a refcount on the folio. If you do not already have one, folio_try_get() may be the right interface for you to use.h](jM)}(h**Parameters**h]j)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjzubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hj{h]hstruct folio *folio}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj{ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj{ubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj-{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj){hMhj*{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj){hMhj {ubah}(h]h ]h"]h$]h&]uh1jhjzubjM)}(h **Context**h]j)}(hjO{h]hContext}(hjQ{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM{ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjzubjM)}(hMay be called in any context, as long as you know that you have a refcount on the folio. If you do not already have one, folio_try_get() may be the right interface for you to use.h]hMay be called in any context, as long as you know that you have a refcount on the folio. If you do not already have one, folio_try_get() may be the right interface for you to use.}(hje{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_put (C function) c.folio_puthNtauh1hhjhhhNhNubh)}(hhh](h)}(h$void folio_put (struct folio *folio)h]h)}(h#void folio_put(struct folio *folio)h](j)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM=ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhj{hM=ubh)}(h folio_puth]j)}(h folio_puth]h folio_put}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj{hhhj{hM=ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]j)}(hfolioh]hfolio}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj{modnameN classnameNjpjs)}jv]jy)}jlj{sb c.folio_putasbuh1hhj{ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjF )}(hjI h]h*}(hj|hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj{ubj)}(hfolioh]hfolio}(hj*|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj{ubah}(h]h ]h"]h$]h&]jjuh1j hj{hhhj{hM=ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj{hhhj{hM=ubah}(h]j{ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj{hM=hj{hhubj4)}(hhh]jM)}(h)Decrement the reference count on a folio.h]h)Decrement the reference count on a folio.}(hjT|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM=hjQ|hhubah}(h]h ]h"]h$]h&]uh1j3hj{hhhj{hM=ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjl|jHjl|jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio. **Description** If the folio's reference count reaches zero, the memory will be released back to the page allocator and may be used by another allocation immediately. Do not access the memory or the struct folio after calling folio_put() unless you can be sure that it wasn't the last reference. **Context** May be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.h](jM)}(h**Parameters**h]j)}(hjv|h]h Parameters}(hjx|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt|ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMAhjp|ubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hj|h]hstruct folio *folio}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj|ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM>hj|ubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|hM>hj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hM>hj|ubah}(h]h ]h"]h$]h&]uh1jhjp|ubjM)}(h**Description**h]j)}(hj|h]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM@hjp|ubjM)}(hXIf the folio's reference count reaches zero, the memory will be released back to the page allocator and may be used by another allocation immediately. Do not access the memory or the struct folio after calling folio_put() unless you can be sure that it wasn't the last reference.h]hXIf the folio’s reference count reaches zero, the memory will be released back to the page allocator and may be used by another allocation immediately. Do not access the memory or the struct folio after calling folio_put() unless you can be sure that it wasn’t the last reference.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM?hjp|ubjM)}(h **Context**h]j)}(hj|h]hContext}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMEhjp|ubjM)}(hoMay be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.h]hoMay be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.}(hj }hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMFhjp|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_put_refs (C function)c.folio_put_refshNtauh1hhjhhhNhNubh)}(hhh](h)}(h3void folio_put_refs (struct folio *folio, int refs)h]h)}(h2void folio_put_refs(struct folio *folio, int refs)h](j)}(hvoidh]hvoid}(hj<}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8}hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMPubj)}(h h]h }(hjK}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8}hhhjJ}hMPubh)}(hfolio_put_refsh]j)}(hfolio_put_refsh]hfolio_put_refs}(hj]}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY}ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj8}hhhjJ}hMPubj )}(h(struct folio *folio, int refs)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjy}hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hju}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju}ubh)}(hhh]j)}(hfolioh]hfolio}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jy)}jlj_}sbc.folio_put_refsasbuh1hhju}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju}ubjF )}(hjI h]h*}(hj}hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hju}ubj)}(hfolioh]hfolio}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjq}ubj )}(hint refsh](j)}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hrefsh]hrefs}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjq}ubeh}(h]h ]h"]h$]h&]jjuh1j hj8}hhhjJ}hMPubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj4}hhhjJ}hMPubah}(h]j/}ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjJ}hMPhj1}hhubj4)}(hhh]jM)}(h&Reduce the reference count on a folio.h]h&Reduce the reference count on a folio.}(hj1~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMPhj.~hhubah}(h]h ]h"]h$]h&]uh1j3hj1}hhhjJ}hMPubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjI~jHjI~jIjJjKuh1hhhhjhNhNubj)}(hX0**Parameters** ``struct folio *folio`` The folio. ``int refs`` The amount to subtract from the folio's reference count. **Description** If the folio's reference count reaches zero, the memory will be released back to the page allocator and may be used by another allocation immediately. Do not access the memory or the struct folio after calling folio_put_refs() unless you can be sure that these weren't the last references. **Context** May be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.h](jM)}(h**Parameters**h]j)}(hjS~h]h Parameters}(hjU~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ~ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMThjM~ubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjr~h]hstruct folio *folio}(hjt~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjp~ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMQhjl~ubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hMQhj~ubah}(h]h ]h"]h$]h&]uh1jhjl~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMQhji~ubj)}(hF``int refs`` The amount to subtract from the folio's reference count. h](j)}(h ``int refs``h]jS)}(hj~h]hint refs}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj~ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMRhj~ubj)}(hhh]jM)}(h8The amount to subtract from the folio's reference count.h]h:The amount to subtract from the folio’s reference count.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hMRhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMRhji~ubeh}(h]h ]h"]h$]h&]uh1jhjM~ubjM)}(h**Description**h]j)}(hj~h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMThjM~ubjM)}(hX"If the folio's reference count reaches zero, the memory will be released back to the page allocator and may be used by another allocation immediately. Do not access the memory or the struct folio after calling folio_put_refs() unless you can be sure that these weren't the last references.h]hX&If the folio’s reference count reaches zero, the memory will be released back to the page allocator and may be used by another allocation immediately. Do not access the memory or the struct folio after calling folio_put_refs() unless you can be sure that these weren’t the last references.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMShjM~ubjM)}(h **Context**h]j)}(hj h]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMYhjM~ubjM)}(hoMay be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.h]hoMay be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMZhjM~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolios_put (C function) c.folios_puthNtauh1hhjhhhNhNubh)}(hhh](h)}(h,void folios_put (struct folio_batch *folios)h]h)}(h+void folios_put(struct folio_batch *folios)h](j)}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMyubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhj`hMyubh)}(h folios_puth]j)}(h folios_puth]h folios_put}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1hhjNhhhj`hMyubj )}(h(struct folio_batch *folios)h]j )}(hstruct folio_batch *foliosh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljusb c.folios_putasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfoliosh]hfolios}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjNhhhj`hMyubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjJhhhj`hMyubah}(h]jEah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj`hMyhjGhhubj4)}(hhh]jM)}(h4Decrement the reference count on an array of folios.h]h4Decrement the reference count on an array of folios.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMyhjhhubah}(h]h ]h"]h$]h&]uh1j3hjGhhhj`hMyubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj*jHj*jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio_batch *folios`` The folios. **Description** Like folio_put(), but for a batch of folios. This is more efficient than writing the loop yourself as it will optimise the locks which need to be taken if the folios are freed. The folios batch is returned empty and ready to be reused for another batch; there is no need to reinitialise it. **Context** May be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.h](jM)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM}hj.ubj)}(hhh]j)}(h+``struct folio_batch *folios`` The folios. h](j)}(h``struct folio_batch *folios``h]jS)}(hjSh]hstruct folio_batch *folios}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMzhjMubj)}(hhh]jM)}(h The folios.h]h The folios.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhMzhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMzhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM|hj.ubjM)}(hX$Like folio_put(), but for a batch of folios. This is more efficient than writing the loop yourself as it will optimise the locks which need to be taken if the folios are freed. The folios batch is returned empty and ready to be reused for another batch; there is no need to reinitialise it.h]hX$Like folio_put(), but for a batch of folios. This is more efficient than writing the loop yourself as it will optimise the locks which need to be taken if the folios are freed. The folios batch is returned empty and ready to be reused for another batch; there is no need to reinitialise it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM{hj.ubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj.ubjM)}(hoMay be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.h]hoMay be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.}(hjˀhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_pfn (C function) c.folio_pfnhNtauh1hhjhhhNhNubh)}(hhh](h)}(h3unsigned long folio_pfn (const struct folio *folio)h]h)}(h2unsigned long folio_pfn(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(h folio_pfnh]j)}(h folio_pfnh]h folio_pfn}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjShhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj5)}(hj8h]hstruct}(hjnhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjOubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj9sb c.folio_pfnasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjOubj)}(hfolioh]hfolio}(hjǁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjhhubj4)}(hhh]jM)}(h(Return the Page Frame Number of a folio.h]h(Return the Page Frame Number of a folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct folio *folio`` The folio. **Description** A folio may contain multiple pages. The pages have consecutive Page Frame Numbers. **Return** The Page Frame Number of the first page in the folio.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj ubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hj2h]hconst struct folio *folio}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj,ubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhM hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM hj)ubah}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj ubjM)}(hSA folio may contain multiple pages. The pages have consecutive Page Frame Numbers.h]hSA folio may contain multiple pages. The pages have consecutive Page Frame Numbers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj ubjM)}(h5The Page Frame Number of the first page in the folio.h]h5The Page Frame Number of the first page in the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mk_pte (C function)c.folio_mk_ptehNtauh1hhjhhhNhNubh)}(hhh](h)}(h?pte_t folio_mk_pte (const struct folio *folio, pgprot_t pgprot)h]h)}(h>pte_t folio_mk_pte(const struct folio *folio, pgprot_t pgprot)h](h)}(hhh]j)}(hpte_th]hpte_t}(hj܂hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjقubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjނmodnameN classnameNjpjs)}jv]jy)}jl folio_mk_ptesbc.folio_mk_pteasbuh1hhjՂhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՂhhhjhM ubh)}(h folio_mk_pteh]j)}(hjh]h folio_mk_pte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjՂhhhjhM ubj )}(h,(const struct folio *folio, pgprot_t pgprot)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj+hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj5)}(hj8h]hstruct}(hjFhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj'ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j)}(hfolioh]hfolio}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjfmodnameN classnameNjpjs)}jv]jc.folio_mk_pteasbuh1hhj'ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj'ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#ubj )}(hpgprot_t pgproth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_mk_pteasbuh1hhjubj)}(h h]h }(hj׃hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpgproth]hpgprot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#ubeh}(h]h ]h"]h$]h&]jjuh1j hjՂhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjтhhhjhM ubah}(h]ĵah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hj΂hhubj4)}(hhh]jM)}(hCreate a PTE for this folioh]hCreate a PTE for this folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj hhubah}(h]h ]h"]h$]h&]uh1j3hj΂hhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj'jHj'jIjJjKuh1hhhhjhNhNubj)}(hX?**Parameters** ``const struct folio *folio`` The folio to create a PTE for ``pgprot_t pgprot`` The page protection bits to use **Description** Create a page table entry for the first page of this folio. This is suitable for passing to set_ptes(). **Return** A page table entry suitable for mapping this folio.h](jM)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj+ubj)}(hhh](j)}(h<``const struct folio *folio`` The folio to create a PTE for h](j)}(h``const struct folio *folio``h]jS)}(hjPh]hconst struct folio *folio}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjJubj)}(hhh]jM)}(hThe folio to create a PTE forh]hThe folio to create a PTE for}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehM hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehM hjGubj)}(h4``pgprot_t pgprot`` The page protection bits to use h](j)}(h``pgprot_t pgprot``h]jS)}(hjh]hpgprot_t pgprot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubj)}(hhh]jM)}(hThe page protection bits to useh]hThe page protection bits to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubjM)}(h**Description**h]j)}(hjĄh]h Description}(hjƄhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj„ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj+ubjM)}(hgCreate a page table entry for the first page of this folio. This is suitable for passing to set_ptes().h]hgCreate a page table entry for the first page of this folio. This is suitable for passing to set_ptes().}(hjڄhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj+ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj+ubjM)}(h3A page table entry suitable for mapping this folio.h]h3A page table entry suitable for mapping this folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mk_pmd (C function)c.folio_mk_pmdhNtauh1hhjhhhNhNubh)}(hhh](h)}(h?pmd_t folio_mk_pmd (const struct folio *folio, pgprot_t pgprot)h]h)}(h>pmd_t folio_mk_pmd(const struct folio *folio, pgprot_t pgprot)h](h)}(hhh]j)}(hpmd_th]hpmd_t}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5modnameN classnameNjpjs)}jv]jy)}jl folio_mk_pmdsbc.folio_mk_pmdasbuh1hhj,hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM% ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhjThM% ubh)}(h folio_mk_pmdh]j)}(hjQh]h folio_mk_pmd}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1hhj,hhhjThM% ubj )}(h,(const struct folio *folio, pgprot_t pgprot)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jOc.folio_mk_pmdasbuh1hhj~ubj)}(h h]h }(hjمhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj~ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjzubj )}(hpgprot_t pgproth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jOc.folio_mk_pmdasbuh1hhj ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hpgproth]hpgprot}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjzubeh}(h]h ]h"]h$]h&]jjuh1j hj,hhhjThM% ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj(hhhjThM% ubah}(h]j#ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjThM% hj%hhubj4)}(hhh]jM)}(hCreate a PMD for this folioh]hCreate a PMD for this folio}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM% hjchhubah}(h]h ]h"]h$]h&]uh1j3hj%hhhjThM% ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj~jHj~jIjJjKuh1hhhhjhNhNubj)}(hXA**Parameters** ``const struct folio *folio`` The folio to create a PMD for ``pgprot_t pgprot`` The page protection bits to use **Description** Create a page table entry for the first page of this folio. This is suitable for passing to set_pmd_at(). **Return** A page table entry suitable for mapping this folio.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM) hjubj)}(hhh](j)}(h<``const struct folio *folio`` The folio to create a PMD for h](j)}(h``const struct folio *folio``h]jS)}(hjh]hconst struct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM& hjubj)}(hhh]jM)}(hThe folio to create a PMD forh]hThe folio to create a PMD for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM& hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM& hjubj)}(h4``pgprot_t pgprot`` The page protection bits to use h](j)}(h``pgprot_t pgprot``h]jS)}(hjh]hpgprot_t pgprot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjކubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM' hjچubj)}(hhh]jM)}(hThe page protection bits to useh]hThe page protection bits to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM' hjubah}(h]h ]h"]h$]h&]uh1jhjچubeh}(h]h ]h"]h$]h&]uh1jhjhM' hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM) hjubjM)}(hiCreate a page table entry for the first page of this folio. This is suitable for passing to set_pmd_at().h]hiCreate a page table entry for the first page of this folio. This is suitable for passing to set_pmd_at().}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM( hjubjM)}(h **Return**h]j)}(hjBh]hReturn}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM+ hjubjM)}(h3A page table entry suitable for mapping this folio.h]h3A page table entry suitable for mapping this folio.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM, hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mk_pud (C function)c.folio_mk_pudhNtauh1hhjhhhNhNubh)}(hhh](h)}(h?pud_t folio_mk_pud (const struct folio *folio, pgprot_t pgprot)h]h)}(h>pud_t folio_mk_pud(const struct folio *folio, pgprot_t pgprot)h](h)}(hhh]j)}(hpud_th]hpud_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jl folio_mk_pudsbc.folio_mk_pudasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM5 ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM5 ubh)}(h folio_mk_pudh]j)}(hjh]h folio_mk_pud}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM5 ubj )}(h,(const struct folio *folio, pgprot_t pgprot)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjهhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjՇubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՇubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjՇubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՇubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_mk_pudasbuh1hhjՇubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՇubjF )}(hjI h]h*}(hj>hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjՇubj)}(hfolioh]hfolio}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՇubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjчubj )}(hpgprot_t pgproth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjimodnameN classnameNjpjs)}jv]jc.folio_mk_pudasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hpgproth]hpgprot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjчubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM5 ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM5 ubah}(h]jzah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM5 hj|hhubj4)}(hhh]jM)}(hCreate a PUD for this folioh]hCreate a PUD for this folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM5 hjhhubah}(h]h ]h"]h$]h&]uh1j3hj|hhhjhM5 ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjՈjHjՈjIjJjKuh1hhhhjhNhNubj)}(hXA**Parameters** ``const struct folio *folio`` The folio to create a PUD for ``pgprot_t pgprot`` The page protection bits to use **Description** Create a page table entry for the first page of this folio. This is suitable for passing to set_pud_at(). **Return** A page table entry suitable for mapping this folio.h](jM)}(h**Parameters**h]j)}(hj߈h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj݈ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM9 hjوubj)}(hhh](j)}(h<``const struct folio *folio`` The folio to create a PUD for h](j)}(h``const struct folio *folio``h]jS)}(hjh]hconst struct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM6 hjubj)}(hhh]jM)}(hThe folio to create a PUD forh]hThe folio to create a PUD for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM6 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6 hjubj)}(h4``pgprot_t pgprot`` The page protection bits to use h](j)}(h``pgprot_t pgprot``h]jS)}(hj7h]hpgprot_t pgprot}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM7 hj1ubj)}(hhh]jM)}(hThe page protection bits to useh]hThe page protection bits to use}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhM7 hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhM7 hjubeh}(h]h ]h"]h$]h&]uh1jhjوubjM)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM9 hjوubjM)}(hiCreate a page table entry for the first page of this folio. This is suitable for passing to set_pud_at().h]hiCreate a page table entry for the first page of this folio. This is suitable for passing to set_pud_at().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM8 hjوubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM; hjوubjM)}(h3A page table entry suitable for mapping this folio.h]h3A page table entry suitable for mapping this folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM< hjوubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#folio_maybe_dma_pinned (C function)c.folio_maybe_dma_pinnedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h1bool folio_maybe_dma_pinned (struct folio *folio)h]h)}(h0bool folio_maybe_dma_pinned(struct folio *folio)h](j)}(hj.h]hbool}(hjމhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjډhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMN ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjډhhhjhMN ubh)}(hfolio_maybe_dma_pinnedh]j)}(hfolio_maybe_dma_pinnedh]hfolio_maybe_dma_pinned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjډhhhjhMN ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj:modnameN classnameNjpjs)}jv]jy)}jljsbc.folio_maybe_dma_pinnedasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjfhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjډhhhjhMN ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj։hhhjhMN ubah}(h]jщah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMN hjӉhhubj4)}(hhh]jM)}(h(Report if a folio may be pinned for DMA.h]h(Report if a folio may be pinned for DMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMN hjhhubah}(h]h ]h"]h$]h&]uh1j3hjӉhhhjhMN ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX **Parameters** ``struct folio *folio`` The folio. **Description** This function checks if a folio has been pinned via a call to a function in the pin_user_pages() family. For small folios, the return value is partially fuzzy: false is not fuzzy, because it means "definitely not pinned for DMA", but true means "probably pinned for DMA, but possibly a false positive due to having at least GUP_PIN_COUNTING_BIAS worth of normal folio references". False positives are OK, because: a) it's unlikely for a folio to get that many refcounts, and b) all the callers of this routine are expected to be able to deal gracefully with a false positive. For most large folios, the result will be exactly correct. That's because we have more tracking data available: the _pincount field is used instead of the GUP_PIN_COUNTING_BIAS scheme. For more information, please see Documentation/core-api/pin_user_pages.rst. **Return** True, if it is likely that the folio has been "dma-pinned". False, if the folio is definitely not dma-pinned.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMR hjubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjފh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj܊ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMO hj؊ubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMO hjubah}(h]h ]h"]h$]h&]uh1jhj؊ubeh}(h]h ]h"]h$]h&]uh1jhjhMO hjՊubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMQ hjubjM)}(hhThis function checks if a folio has been pinned via a call to a function in the pin_user_pages() family.h]hhThis function checks if a folio has been pinned via a call to a function in the pin_user_pages() family.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMP hjubjM)}(hXFor small folios, the return value is partially fuzzy: false is not fuzzy, because it means "definitely not pinned for DMA", but true means "probably pinned for DMA, but possibly a false positive due to having at least GUP_PIN_COUNTING_BIAS worth of normal folio references".h]hXFor small folios, the return value is partially fuzzy: false is not fuzzy, because it means “definitely not pinned for DMA”, but true means “probably pinned for DMA, but possibly a false positive due to having at least GUP_PIN_COUNTING_BIAS worth of normal folio references”.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMS hjubjM)}(hFalse positives are OK, because: a) it's unlikely for a folio to get that many refcounts, and b) all the callers of this routine are expected to be able to deal gracefully with a false positive.h]hFalse positives are OK, because: a) it’s unlikely for a folio to get that many refcounts, and b) all the callers of this routine are expected to be able to deal gracefully with a false positive.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMX hjubjM)}(hFor most large folios, the result will be exactly correct. That's because we have more tracking data available: the _pincount field is used instead of the GUP_PIN_COUNTING_BIAS scheme.h]hFor most large folios, the result will be exactly correct. That’s because we have more tracking data available: the _pincount field is used instead of the GUP_PIN_COUNTING_BIAS scheme.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM\ hjubjM)}(hKFor more information, please see Documentation/core-api/pin_user_pages.rst.h]hKFor more information, please see Documentation/core-api/pin_user_pages.rst.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM` hjubjM)}(h **Return**h]j)}(hj|h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMb hjubjM)}(hmTrue, if it is likely that the folio has been "dma-pinned". False, if the folio is definitely not dma-pinned.h]hqTrue, if it is likely that the folio has been “dma-pinned”. False, if the folio is definitely not dma-pinned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMc hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](his_zero_page (C function)c.is_zero_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h+bool is_zero_page (const struct page *page)h]h)}(h*bool is_zero_page(const struct page *page)h](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjϋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj΋hM ubh)}(h is_zero_pageh]j)}(h is_zero_pageh]h is_zero_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj݋ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj΋hM ubj )}(h(const struct page *page)h]j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj8modnameN classnameNjpjs)}jv]jy)}jljsbc.is_zero_pageasbuh1hhjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjdhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj΋hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj΋hM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj΋hM hjhhubj4)}(hhh]jM)}(hQuery if a page is a zero pageh]hQuery if a page is a zero page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj΋hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct page *page`` The page to query **Description** This returns true if **page** is one of the permanent zero pages.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubj)}(hhh]j)}(h.``const struct page *page`` The page to query h](j)}(h``const struct page *page``h]jS)}(hj܌h]hconst struct page *page}(hjތhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjڌubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj֌ubj)}(hhh]jM)}(hThe page to queryh]hThe page to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhj֌ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjӌubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(hAThis returns true if **page** is one of the permanent zero pages.h](hThis returns true if }(hj-hhhNhNubj)}(h**page**h]hpage}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh$ is one of the permanent zero pages.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](his_zero_folio (C function)c.is_zero_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(h.bool is_zero_folio (const struct folio *folio)h]h)}(h-bool is_zero_folio(const struct folio *folio)h](j)}(hj.h]hbool}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhj{hM ubh)}(h is_zero_folioh]j)}(h is_zero_folioh]h is_zero_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjjhhhj{hM ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hjōhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjҍhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.is_zero_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjjhhhj{hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjfhhhj{hM ubah}(h]jaah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj{hM hjchhubj4)}(hhh]jM)}(hQuery if a folio is a zero pageh]hQuery if a folio is a zero page}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjEhhubah}(h]h ]h"]h$]h&]uh1j3hjchhhj{hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj`jHj`jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct folio *folio`` The folio to query **Description** This returns true if **folio** is one of the permanent zero pages.h](jM)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjdubj)}(hhh]j)}(h1``const struct folio *folio`` The folio to query h](j)}(h``const struct folio *folio``h]jS)}(hjh]hconst struct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubj)}(hhh]jM)}(hThe folio to queryh]hThe folio to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjdubjM)}(h**Description**h]j)}(hjĎh]h Description}(hjƎhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŽubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjdubjM)}(hBThis returns true if **folio** is one of the permanent zero pages.h](hThis returns true if }(hjڎhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڎubh$ is one of the permanent zero pages.}(hjڎhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_nr_pages (C function)c.folio_nr_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h8unsigned long folio_nr_pages (const struct folio *folio)h]h)}(h7unsigned long folio_nr_pages(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hM ubj)}(hlongh]hlong}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hM ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hM ubh)}(hfolio_nr_pagesh]j)}(hfolio_nr_pagesh]hfolio_nr_pages}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj)hM ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjthhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljZsbc.folio_nr_pagesasbuh1hhjpubj)}(h h]h }(hj͏hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjF )}(hjI h]h*}(hjۏhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjpubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj)hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj)hM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj)hM hjhhubj4)}(hhh]jM)}(h!The number of pages in the folio.h]h!The number of pages in the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj)hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj*jHj*jIjJjKuh1hhhhjhNhNubj)}(h`**Parameters** ``const struct folio *folio`` The folio. **Return** A positive power of two.h](jM)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj.ubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjSh]hconst struct folio *folio}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjMubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhM hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhM hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj.ubjM)}(hA positive power of two.h]hA positive power of two.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_next (C function) c.folio_nexthNtauh1hhjhhhNhNubh)}(hhh](h)}(h/struct folio * folio_next (struct folio *folio)h]h)}(h-struct folio *folio_next(struct folio *folio)h](j5)}(hj8h]hstruct}(hjӐhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjϐhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϐhhhjhM ubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jl folio_nextsb c.folio_nextasbuh1hhjϐhhhjhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϐhhhjhM ubjF )}(hjI h]h*}(hj!hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjϐhhhjhM ubh)}(h folio_nexth]j)}(hjh]h folio_next}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjϐhhhjhM ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjMhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j)}(hfolioh]hfolio}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmmodnameN classnameNjpjs)}jv]j c.folio_nextasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjIubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjEubah}(h]h ]h"]h$]h&]jjuh1j hjϐhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjːhhhjhM ubah}(h]jƐah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjȐhhubj4)}(hhh]jM)}(h Move to the next physical folio.h]h Move to the next physical folio.}(hjΑhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjˑhhubah}(h]h ]h"]h$]h&]uh1j3hjȐhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXa**Parameters** ``struct folio *folio`` The folio we're currently operating on. **Description** If you have physically contiguous memory which may span more than one folio (eg a :c:type:`struct bio_vec `), use this function to move from one folio to the next. Do not use it if the memory is only virtually contiguous as the folios are almost certainly not adjacent to each other. This is the folio equivalent to writing ``page++``. **Context** We assume that the folios are refcounted and/or locked at a higher level and do not adjust the reference counts. **Return** The next struct folio.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubj)}(hhh]j)}(h@``struct folio *folio`` The folio we're currently operating on. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj ubj)}(hhh]jM)}(h'The folio we're currently operating on.h]h)The folio we’re currently operating on.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$hM hj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hM hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(hXZIf you have physically contiguous memory which may span more than one folio (eg a :c:type:`struct bio_vec `), use this function to move from one folio to the next. Do not use it if the memory is only virtually contiguous as the folios are almost certainly not adjacent to each other. This is the folio equivalent to writing ``page++``.h](hRIf you have physically contiguous memory which may span more than one folio (eg a }(hj`hhhNhNubh)}(h":c:type:`struct bio_vec `h]jS)}(hjjh]hstruct bio_vec}(hjlhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjhubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNbio_vecuh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj`ubh), use this function to move from one folio to the next. Do not use it if the memory is only virtually contiguous as the folios are almost certainly not adjacent to each other. This is the folio equivalent to writing }(hj`hhhNhNubjS)}(h ``page++``h]hpage++}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`ubh.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhM hjubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(hpWe assume that the folios are refcounted and/or locked at a higher level and do not adjust the reference counts.h]hpWe assume that the folios are refcounted and/or locked at a higher level and do not adjust the reference counts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(h **Return**h]j)}(hj͒h]hReturn}(hjϒhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˒ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(hThe next struct folio.h]hThe next struct folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_shift (C function) c.folio_shifthNtauh1hhjhhhNhNubh)}(hhh](h)}(h4unsigned int folio_shift (const struct folio *folio)h]h)}(h3unsigned int folio_shift(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM ubj)}(hinth]hint}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM ubh)}(h folio_shifth]j)}(h folio_shifth]h folio_shift}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hM ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljQsb c.folio_shiftasbuh1hhjgubj)}(h h]h }(hjēhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjF )}(hjI h]h*}(hjғhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjgubj)}(hfolioh]hfolio}(hjߓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj hM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hM hjhhubj4)}(hhh]jM)}(h/The size of the memory described by this folio.h]h/The size of the memory described by this folio.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj!jHj!jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``const struct folio *folio`` The folio. **Description** A folio represents a number of bytes which is a power-of-two in size. This function tells you which power-of-two the folio is. See also folio_size() and folio_order(). **Context** The caller should have a reference on the folio to prevent it from being split. It is not necessary for the folio to be locked. **Return** The base-2 logarithm of the size of this folio.h](jM)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj%ubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjJh]hconst struct folio *folio}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjDubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hM hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hM hjAubah}(h]h ]h"]h$]h&]uh1jhj%ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj%ubjM)}(hA folio represents a number of bytes which is a power-of-two in size. This function tells you which power-of-two the folio is. See also folio_size() and folio_order().h]hA folio represents a number of bytes which is a power-of-two in size. This function tells you which power-of-two the folio is. See also folio_size() and folio_order().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj%ubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj%ubjM)}(hThe caller should have a reference on the folio to prevent it from being split. It is not necessary for the folio to be locked.h]hThe caller should have a reference on the folio to prevent it from being split. It is not necessary for the folio to be locked.}(hj”hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj%ubjM)}(h **Return**h]j)}(hjӔh]hReturn}(hjՔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjєubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj%ubjM)}(h/The base-2 logarithm of the size of this folio.h]h/The base-2 logarithm of the size of this folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_size (C function) c.folio_sizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h-size_t folio_size (const struct folio *folio)h]h)}(h,size_t folio_size(const struct folio *folio)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jl folio_sizesb c.folio_sizeasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj<hM ubh)}(h folio_sizeh]j)}(hj9h]h folio_size}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj<hM ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j7 c.folio_sizeasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjF )}(hjI h]h*}(hjϕhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjfubj)}(hfolioh]hfolio}(hjܕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjbubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj<hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj<hM ubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj<hM hj hhubj4)}(hhh]jM)}(hThe number of bytes in a folio.h]hThe number of bytes in a folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj<hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct folio *folio`` The folio. **Context** The caller should have a reference on the folio to prevent it from being split. It is not necessary for the folio to be locked. **Return** The number of bytes in this folio.h](jM)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj"ubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjGh]hconst struct folio *folio}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjAubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\hM hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM hj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj"ubjM)}(hThe caller should have a reference on the folio to prevent it from being split. It is not necessary for the folio to be locked.h]hThe caller should have a reference on the folio to prevent it from being split. It is not necessary for the folio to be locked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj"ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj"ubjM)}(h"The number of bytes in this folio.h]h"The number of bytes in this folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&folio_maybe_mapped_shared (C function)c.folio_maybe_mapped_sharedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h4bool folio_maybe_mapped_shared (struct folio *folio)h]h)}(h3bool folio_maybe_mapped_shared(struct folio *folio)h](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM% ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM% ubh)}(hfolio_maybe_mapped_sharedh]j)}(hfolio_maybe_mapped_sharedh]hfolio_maybe_mapped_shared}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM% ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj*hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]j)}(hfolioh]hfolio}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjJmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_maybe_mapped_sharedasbuh1hhj&ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjF )}(hjI h]h*}(hjvhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj&ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj"ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM% ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM% ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM% hjhhubj4)}(hhh]jM)}(hDWhether the folio is mapped into the page tables of more than one MMh]hDWhether the folio is mapped into the page tables of more than one MM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM% hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM% ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjŗjHjŗjIjJjKuh1hhhhjhNhNubj)}(hXd**Parameters** ``struct folio *folio`` The folio. **Description** This function checks if the folio maybe currently mapped into more than one MM ("maybe mapped shared"), or if the folio is certainly mapped into a single MM ("mapped exclusively"). For KSM folios, this function also returns "mapped shared" when a folio is mapped multiple times into the same MM, because the individual page mappings are independent. For small anonymous folios and anonymous hugetlb folios, the return value will be exactly correct: non-KSM folios can only be mapped at most once into an MM, and they cannot be partially mapped. KSM folios are considered shared even if mapped multiple times into the same MM. For other folios, the result can be fuzzy: #. For partially-mappable large folios (THP), the return value can wrongly indicate "mapped shared" (false positive) if a folio was mapped by more than two MMs at one point in time. #. For pagecache folios (including hugetlb), the return value can wrongly indicate "mapped shared" (false positive) when two VMAs in the same MM cover the same file range. Further, this function only considers current page table mappings that are tracked using the folio mapcount(s). This function does not consider: #. If the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration). #. If the folio is mapped differently (VM_PFNMAP). #. If hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared(). **Return** Whether the folio is estimated to be mapped into more than one MM.h](jM)}(h**Parameters**h]j)}(hjϗh]h Parameters}(hjїhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͗ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM) hjɗubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM' hjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM' hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM' hjubah}(h]h ]h"]h$]h&]uh1jhjɗubjM)}(h**Description**h]j)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM) hjɗubjM)}(hThis function checks if the folio maybe currently mapped into more than one MM ("maybe mapped shared"), or if the folio is certainly mapped into a single MM ("mapped exclusively").h]hThis function checks if the folio maybe currently mapped into more than one MM (“maybe mapped shared”), or if the folio is certainly mapped into a single MM (“mapped exclusively”).}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM( hjɗubjM)}(hFor KSM folios, this function also returns "mapped shared" when a folio is mapped multiple times into the same MM, because the individual page mappings are independent.h]hFor KSM folios, this function also returns “mapped shared” when a folio is mapped multiple times into the same MM, because the individual page mappings are independent.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM, hjɗubjM)}(hXFor small anonymous folios and anonymous hugetlb folios, the return value will be exactly correct: non-KSM folios can only be mapped at most once into an MM, and they cannot be partially mapped. KSM folios are considered shared even if mapped multiple times into the same MM.h]hXFor small anonymous folios and anonymous hugetlb folios, the return value will be exactly correct: non-KSM folios can only be mapped at most once into an MM, and they cannot be partially mapped. KSM folios are considered shared even if mapped multiple times into the same MM.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM0 hjɗubj)}(hhh]j)}(hXFor other folios, the result can be fuzzy: #. For partially-mappable large folios (THP), the return value can wrongly indicate "mapped shared" (false positive) if a folio was mapped by more than two MMs at one point in time. #. For pagecache folios (including hugetlb), the return value can wrongly indicate "mapped shared" (false positive) when two VMAs in the same MM cover the same file range. h](j)}(h*For other folios, the result can be fuzzy:h]h*For other folios, the result can be fuzzy:}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM; hjoubj)}(hhh]j/)}(hhh](j/)}(hFor partially-mappable large folios (THP), the return value can wrongly indicate "mapped shared" (false positive) if a folio was mapped by more than two MMs at one point in time.h]jM)}(hFor partially-mappable large folios (THP), the return value can wrongly indicate "mapped shared" (false positive) if a folio was mapped by more than two MMs at one point in time.h]hFor partially-mappable large folios (THP), the return value can wrongly indicate “mapped shared” (false positive) if a folio was mapped by more than two MMs at one point in time.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM6 hjubah}(h]h ]h"]h$]h&]uh1j/hjubj/)}(hFor pagecache folios (including hugetlb), the return value can wrongly indicate "mapped shared" (false positive) when two VMAs in the same MM cover the same file range. h]jM)}(hFor pagecache folios (including hugetlb), the return value can wrongly indicate "mapped shared" (false positive) when two VMAs in the same MM cover the same file range.h]hFor pagecache folios (including hugetlb), the return value can wrongly indicate “mapped shared” (false positive) when two VMAs in the same MM cover the same file range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM9 hjubah}(h]h ]h"]h$]h&]uh1j/hjubeh}(h]h ]h"]h$]h&]j[0j\0j]0hj^0j_0uh1j/hjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhM; hjlubah}(h]h ]h"]h$]h&]uh1jhjɗubjM)}(hoFurther, this function only considers current page table mappings that are tracked using the folio mapcount(s).h]hoFurther, this function only considers current page table mappings that are tracked using the folio mapcount(s).}(hjҘhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM= hjɗubj)}(hhh]j)}(hX-This function does not consider: #. If the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration). #. If the folio is mapped differently (VM_PFNMAP). #. If hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared(). h](j)}(h This function does not consider:h]h This function does not consider:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhME hjubj)}(hhh]j/)}(hhh](j/)}(hsIf the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration).h]jM)}(hsIf the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration).h]hsIf the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMA hjubah}(h]h ]h"]h$]h&]uh1j/hjubj/)}(h/If the folio is mapped differently (VM_PFNMAP).h]jM)}(hjh]h/If the folio is mapped differently (VM_PFNMAP).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMC hjubah}(h]h ]h"]h$]h&]uh1j/hjubj/)}(hYIf hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared(). h]jM)}(hXIf hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared().h]hXIf hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared().}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMD hj.ubah}(h]h ]h"]h$]h&]uh1j/hjubeh}(h]h ]h"]h$]h&]j[0j\0j]0hj^0j_0uh1j/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhME hjubah}(h]h ]h"]h$]h&]uh1jhjɗubjM)}(h **Return**h]j)}(hjah]hReturn}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMG hjɗubjM)}(hBWhether the folio is estimated to be mapped into more than one MM.h]hBWhether the folio is estimated to be mapped into more than one MM.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMH hjɗubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%folio_expected_ref_count (C function)c.folio_expected_ref_counthNtauh1hhjhhhNhNubh)}(hhh](h)}(h8int folio_expected_ref_count (const struct folio *folio)h]h)}(h7int folio_expected_ref_count(const struct folio *folio)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMe ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMe ubh)}(hfolio_expected_ref_counth]j)}(hfolio_expected_ref_counth]hfolio_expected_ref_count}(hjǙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÙubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMe ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjߙubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߙubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjߙubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߙubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljəsbc.folio_expected_ref_countasbuh1hhjߙubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߙubjF )}(hjI h]h*}(hjJhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjߙubj)}(hfolioh]hfolio}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߙubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjۙubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMe ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMe ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMe hjhhubj4)}(hhh]jM)}(h%calculate the expected folio refcounth]h%calculate the expected folio refcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMe hj~hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMe ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX%**Parameters** ``const struct folio *folio`` the folio **Description** Calculate the expected folio refcount, taking references from the pagecache, swapcache, PG_private and page table mappings into account. Useful in combination with folio_ref_count() to detect unexpected references (e.g., GUP or other temporary references). Does currently not consider references from the LRU cache. If the folio was isolated from the LRU (which is the case during migration or split), the LRU cache does not apply. Calling this function on an unmapped folio -- !folio_mapped() -- that is locked will return a stable result. Calling this function on a mapped folio will not result in a stable result, because nothing stops additional page table mappings from coming (e.g., fork()) or going (e.g., munmap()). Calling this function without the folio lock will also not result in a stable result: for example, the folio might get dropped from the swapcache concurrently. However, even when called without the folio lock or on a mapped folio, this function can be used to detect unexpected references early (for example, if it makes sense to even lock the folio and unmap it). The caller must add any reference (e.g., from folio_try_get()) it might be holding itself to the result. **Return** the expected folio refcount.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMi hjubj)}(hhh]j)}(h(``const struct folio *folio`` the folio h](j)}(h``const struct folio *folio``h]jS)}(hjšh]hconst struct folio *folio}(hjĚhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMf hjubj)}(hhh]jM)}(h the folioh]h the folio}(hjۚhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjךhMf hjؚubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjךhMf hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMh hjubjM)}(hXCalculate the expected folio refcount, taking references from the pagecache, swapcache, PG_private and page table mappings into account. Useful in combination with folio_ref_count() to detect unexpected references (e.g., GUP or other temporary references).h]hXCalculate the expected folio refcount, taking references from the pagecache, swapcache, PG_private and page table mappings into account. Useful in combination with folio_ref_count() to detect unexpected references (e.g., GUP or other temporary references).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMg hjubjM)}(hDoes currently not consider references from the LRU cache. If the folio was isolated from the LRU (which is the case during migration or split), the LRU cache does not apply.h]hDoes currently not consider references from the LRU cache. If the folio was isolated from the LRU (which is the case during migration or split), the LRU cache does not apply.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMl hjubjM)}(hlCalling this function on an unmapped folio -- !folio_mapped() -- that is locked will return a stable result.h]hlCalling this function on an unmapped folio -- !folio_mapped() -- that is locked will return a stable result.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMp hjubjM)}(hCalling this function on a mapped folio will not result in a stable result, because nothing stops additional page table mappings from coming (e.g., fork()) or going (e.g., munmap()).h]hCalling this function on a mapped folio will not result in a stable result, because nothing stops additional page table mappings from coming (e.g., fork()) or going (e.g., munmap()).}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMs hjubjM)}(hCalling this function without the folio lock will also not result in a stable result: for example, the folio might get dropped from the swapcache concurrently.h]hCalling this function without the folio lock will also not result in a stable result: for example, the folio might get dropped from the swapcache concurrently.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMw hjubjM)}(hHowever, even when called without the folio lock or on a mapped folio, this function can be used to detect unexpected references early (for example, if it makes sense to even lock the folio and unmap it).h]hHowever, even when called without the folio lock or on a mapped folio, this function can be used to detect unexpected references early (for example, if it makes sense to even lock the folio and unmap it).}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM{ hjubjM)}(hhThe caller must add any reference (e.g., from folio_try_get()) it might be holding itself to the result.h]hhThe caller must add any reference (e.g., from folio_try_get()) it might be holding itself to the result.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(h **Return**h]j)}(hj~h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(hthe expected folio refcount.h]hthe expected folio refcount.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hzap_vma (C function) c.zap_vmahNtauh1hhjhhhNhNubh)}(hhh](h)}(h)void zap_vma (struct vm_area_struct *vma)h]h)}(h(void zap_vma(struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjÛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM. ubj)}(h h]h }(hjқhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjћhM. ubh)}(hzap_vmah]j)}(hzap_vmah]hzap_vma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjћhM. ubj )}(h(struct vm_area_struct *vma)h]j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljsb c.zap_vmaasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjLhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjћhM. ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjћhM. ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjћhM. hjhhubj4)}(hhh]jM)}(h#zap all page table entries in a vmah]h#zap all page table entries in a vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM. hjhhubah}(h]h b]h"]h$]h&]uh1j3hjhhhjћhM. ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h@**Parameters** ``struct vm_area_struct *vma`` The vma to zap.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM2 hjubj)}(hhh]j)}(h.``struct vm_area_struct *vma`` The vma to zap.h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjĜh]hstruct vm_area_struct *vma}(hjƜhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjœubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM4 hjubj)}(hhh]jM)}(hThe vma to zap.h]hThe vma to zap.}(hjݜhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM/ hjڜubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjٜhM4 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hptdesc_address (C function)c.ptdesc_addresshNtauh1hhjhhhNhNubh)}(hhh](h)}(h/void * ptdesc_address (const struct ptdesc *pt)h]h)}(h-void *ptdesc_address(const struct ptdesc *pt)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM"ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj,hM"ubjF )}(hjI h]h*}(hj;hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj,hM"ubh)}(hptdesc_addressh]j)}(hptdesc_addressh]hptdesc_address}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj,hM"ubj )}(h(const struct ptdesc *pt)h]j )}(hconst struct ptdesc *pth](j5)}(hjh]hconst}(hjhhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljNsbc.ptdesc_addressasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjF )}(hjI h]h*}(hjϝhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjdubj)}(hpth]hpt}(hjܝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj,hM"ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj,hM"ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj,hM"hjhhubj4)}(hhh]jM)}(hVirtual address of page table.h]hVirtual address of page table.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM"hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj,hM"ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct ptdesc *pt`` Page table descriptor. **Return** The first byte of the page table described by **pt**.h](jM)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM&hj"ubj)}(hhh]j)}(h3``const struct ptdesc *pt`` Page table descriptor. h](j)}(h``const struct ptdesc *pt``h]jS)}(hjGh]hconst struct ptdesc *pt}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM#hjAubj)}(hhh]jM)}(hPage table descriptor.h]hPage table descriptor.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\hM#hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM#hj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM%hj"ubjM)}(h5The first byte of the page table described by **pt**.h](h.The first byte of the page table described by }(hjhhhNhNubj)}(h**pt**h]hpt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM%hj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hptdesc_set_kernel (C function)c.ptdesc_set_kernelhNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void ptdesc_set_kernel (struct ptdesc *ptdesc)h]h)}(h-void ptdesc_set_kernel(struct ptdesc *ptdesc)h](j)}(hvoidh]hvoid}(hjٞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj՞hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM2ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj՞hhhjhM2ubh)}(hptdesc_set_kernelh]j)}(hptdesc_set_kernelh]hptdesc_set_kernel}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj՞hhhjhM2ubj )}(h(struct ptdesc *ptdesc)h]j )}(hstruct ptdesc *ptdesch](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hptdesch]hptdesc}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj6modnameN classnameNjpjs)}jv]jy)}jljsbc.ptdesc_set_kernelasbuh1hhjubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjbhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hptdesch]hptdesc}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hj՞hhhjhM2ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjўhhhjhM2ubah}(h]j̞ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM2hjΞhhubj4)}(hhh]jM)}(h$Mark a ptdesc used to map the kernelh]h$Mark a ptdesc used to map the kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM2hjhhubah}(h]h ]h"]h$]h&]uh1j3hjΞhhhjhM2ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct ptdesc *ptdesc`` The ptdesc to be marked **Description** Kernel page tables often need special handling. Set a flag so that the handling code knows this ptdesc will not be used for userspace.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM6hjubj)}(hhh]j)}(h2``struct ptdesc *ptdesc`` The ptdesc to be marked h](j)}(h``struct ptdesc *ptdesc``h]jS)}(hjڟh]hstruct ptdesc *ptdesc}(hjܟhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj؟ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM3hjԟubj)}(hhh]jM)}(hThe ptdesc to be markedh]hThe ptdesc to be marked}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjԟubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjџubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM5hjubjM)}(hKernel page tables often need special handling. Set a flag so that the handling code knows this ptdesc will not be used for userspace.h]hKernel page tables often need special handling. Set a flag so that the handling code knows this ptdesc will not be used for userspace.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h ptdesc_clear_kernel (C function)c.ptdesc_clear_kernelhNtauh1hhjhhhNhNubh)}(hhh](h)}(h0void ptdesc_clear_kernel (struct ptdesc *ptdesc)h]h)}(h/void ptdesc_clear_kernel(struct ptdesc *ptdesc)h](j)}(hvoidh]hvoid}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM>ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjhhM>ubh)}(hptdesc_clear_kernelh]j)}(hptdesc_clear_kernelh]hptdesc_clear_kernel}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1hhjVhhhjhhM>ubj )}(h(struct ptdesc *ptdesc)h]j )}(hstruct ptdesc *ptdesch](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj}sbc.ptdesc_clear_kernelasbuh1hhjubj)}(h h]h }(hjՠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjVhhhjhhM>ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjRhhhjhhM>ubah}(h]jMah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhhM>hjOhhubj4)}(hhh]jM)}(h1Mark a ptdesc as no longer used to map the kernelh]h1Mark a ptdesc as no longer used to map the kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM>hjhhubah}(h]h ]h"]h$]h&]uh1j3hjOhhhjhhM>ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj2jHj2jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct ptdesc *ptdesc`` The ptdesc to be unmarked **Description** Use when the ptdesc is no longer used to map the kernel and no longer needs special handling.h](jM)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMBhj6ubj)}(hhh]j)}(h4``struct ptdesc *ptdesc`` The ptdesc to be unmarked h](j)}(h``struct ptdesc *ptdesc``h]jS)}(hj[h]hstruct ptdesc *ptdesc}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM?hjUubj)}(hhh]jM)}(hThe ptdesc to be unmarkedh]hThe ptdesc to be unmarked}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphM?hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphM?hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMAhj6ubjM)}(h]Use when the ptdesc is no longer used to map the kernel and no longer needs special handling.h]h]Use when the ptdesc is no longer used to map the kernel and no longer needs special handling.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM@hj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hptdesc_test_kernel (C function)c.ptdesc_test_kernelhNtauh1hhjhhhNhNubh)}(hhh](h)}(h5bool ptdesc_test_kernel (const struct ptdesc *ptdesc)h]h)}(h4bool ptdesc_test_kernel(const struct ptdesc *ptdesc)h](j)}(hj.h]hbool}(hjۡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjסhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjסhhhjhMOubh)}(hptdesc_test_kernelh]j)}(hptdesc_test_kernelh]hptdesc_test_kernel}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjסhhhjhMOubj )}(h(const struct ptdesc *ptdesc)h]j )}(hconst struct ptdesc *ptdesch](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hj2hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hptdesch]hptdesc}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRmodnameN classnameNjpjs)}jv]jy)}jljsbc.ptdesc_test_kernelasbuh1hhjubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj~hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjסhhhjhMOubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjӡhhhjhMOubah}(h]jΡah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMOhjСhhubj4)}(hhh]jM)}(h+Check if a ptdesc is used to map the kernelh]h+Check if a ptdesc is used to map the kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMOhjhhubah}(h]h ]h"]h$]h&]uh1j3hjСhhhjhMOubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj͢jHj͢jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct ptdesc *ptdesc`` The ptdesc being tested **Description** Call to tell if the ptdesc used to map the kernel.h](jM)}(h**Parameters**h]j)}(hjעh]h Parameters}(hj٢hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjբubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMShjѢubj)}(hhh]j)}(h8``const struct ptdesc *ptdesc`` The ptdesc being tested h](j)}(h``const struct ptdesc *ptdesc``h]jS)}(hjh]hconst struct ptdesc *ptdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMPhjubj)}(hhh]jM)}(hThe ptdesc being testedh]hThe ptdesc being tested}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMPhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMPhjubah}(h]h ]h"]h$]h&]uh1jhjѢubjM)}(h**Description**h]j)}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMRhjѢubjM)}(h2Call to tell if the ptdesc used to map the kernel.h]h2Call to tell if the ptdesc used to map the kernel.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMQhjѢubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpagetable_alloc (C function)c.pagetable_allochNtauh1hhjhhhNhNubh)}(hhh](h)}(h?struct ptdesc * pagetable_alloc (gfp_t gfp, unsigned int order)h]h)}(h=struct ptdesc *pagetable_alloc(gfp_t gfp, unsigned int order)h](j5)}(hj8h]hstruct}(hjvhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjrhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhMZubh)}(hhh]j)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlpagetable_allocsbc.pagetable_allocasbuh1hhjrhhhjhMZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhMZubjF )}(hjI h]h*}(hjģhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjrhhhjhMZubh)}(hpagetable_alloch]j)}(hjh]hpagetable_alloc}(hjգhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѣubah}(h]h ](jjeh"]h$]h&]jjuh1hhjrhhhjhMZubj )}(h(gfp_t gfp, unsigned int order)h](j )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.pagetable_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hinth]hint}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(horderh]horder}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjrhhhjhMZubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjnhhhjhMZubah}(h]jiah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMZhjkhhubj4)}(hhh]jM)}(hAllocate pagetablesh]hAllocate pagetables}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMZhjhhubah}(h]h ]h"]h$]h&]uh1j3hjkhhhjhMZubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``gfp_t gfp`` GFP flags ``unsigned int order`` desired pagetable order **Description** pagetable_alloc allocates memory for page tables as well as a page table descriptor to describe that memory. **Return** The ptdesc describing the allocated page tables.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM^hjubj)}(hhh](j)}(h``gfp_t gfp`` GFP flags h](j)}(h ``gfp_t gfp``h]jS)}(hjۤh]h gfp_t gfp}(hjݤhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj٤ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM[hjդubj)}(hhh]jM)}(h GFP flagsh]h GFP flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjդubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjҤubj)}(h/``unsigned int order`` desired pagetable order h](j)}(h``unsigned int order``h]jS)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM\hjubj)}(hhh]jM)}(hdesired pagetable orderh]hdesired pagetable order}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)hM\hj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hM\hjҤubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM^hjubjM)}(hlpagetable_alloc allocates memory for page tables as well as a page table descriptor to describe that memory.h]hlpagetable_alloc allocates memory for page tables as well as a page table descriptor to describe that memory.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM]hjubjM)}(h **Return**h]j)}(hjvh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM`hjubjM)}(h0The ptdesc describing the allocated page tables.h]h0The ptdesc describing the allocated page tables.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMahjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpagetable_free (C function)c.pagetable_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(h'void pagetable_free (struct ptdesc *pt)h]h)}(h&void pagetable_free(struct ptdesc *pt)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM{ubj)}(h h]h }(hjʥhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjɥhM{ubh)}(hpagetable_freeh]j)}(hpagetable_freeh]hpagetable_free}(hjܥhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjإubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjɥhM{ubj )}(h(struct ptdesc *pt)h]j )}(hstruct ptdesc *pth](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljޥsbc.pagetable_freeasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpth]hpt}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjɥhM{ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjɥhM{ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjɥhM{hjhhubj4)}(hhh]jM)}(hFree pagetablesh]hFree pagetables}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM{hjxhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjɥhM{ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct ptdesc *pt`` The page table descriptor **Description** pagetable_free frees the memory of all page tables described by a page table descriptor and the memory for the descriptor itself.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh]j)}(h0``struct ptdesc *pt`` The page table descriptor h](j)}(h``struct ptdesc *pt``h]jS)}(hjh]hstruct ptdesc *pt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM|hjubj)}(hhh]jM)}(hThe page table descriptorh]hThe page table descriptor}(hjզhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjѦhM|hjҦubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjѦhM|hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM~hjubjM)}(hpagetable_free frees the memory of all page tables described by a page table descriptor and the memory for the descriptor itself.h]hpagetable_free frees the memory of all page tables described by a page table descriptor and the memory for the descriptor itself.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvma_lookup (C function) c.vma_lookuphNtauh1hhjhhhNhNubh)}(hhh](h)}(hMstruct vm_area_struct * vma_lookup (struct mm_struct *mm, unsigned long addr)h]h)}(hKstruct vm_area_struct *vma_lookup(struct mm_struct *mm, unsigned long addr)h](j5)}(hj8h]hstruct}(hj<hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj8hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhMubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj]modnameN classnameNjpjs)}jv]jy)}jl vma_lookupsb c.vma_lookupasbuh1hhj8hhhjIhMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj8hhhjIhMubh)}(h vma_lookuph]j)}(hjyh]h vma_lookup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj8hhhjIhMubj )}(h*(struct mm_struct *mm, unsigned long addr)h](j )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjçhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjԧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѧubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj֧modnameN classnameNjpjs)}jv]jw c.vma_lookupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmmh]hmm}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hlongh]hlong}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(haddrh]haddr}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj8hhhjIhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj4hhhjIhMubah}(h]j/ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjIhMhj1hhubj4)}(hhh]jM)}(h Find a VMA at a specific addressh]h Find a VMA at a specific address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj1hhhjIhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct mm_struct *mm`` The process address space. ``unsigned long addr`` The user address. **Return** The vm_area_struct at the given address, ``NULL`` otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh](j)}(h4``struct mm_struct *mm`` The process address space. h](j)}(h``struct mm_struct *mm``h]jS)}(hjɨh]hstruct mm_struct *mm}(hj˨hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjǨubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjèubj)}(hhh]jM)}(hThe process address space.h]hThe process address space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjިhMhjߨubah}(h]h ]h"]h$]h&]uh1jhjèubeh}(h]h ]h"]h$]h&]uh1jhjިhMhjubj)}(h)``unsigned long addr`` The user address. h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh]jM)}(hThe user address.h]hThe user address.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hj=h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubjM)}(hpage_prot for purposes of write-combine or similar.h](jM)}(h**Parameters**h]j)}(hjɴh]h Parameters}(hj˴hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǴubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjôubj)}(hhh](j)}(hN``struct vm_area_desc *desc`` The VMA descriptor for the VMA requiring remap. h](j)}(h``struct vm_area_desc *desc``h]jS)}(hjh]hstruct vm_area_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh]jM)}(h/The VMA descriptor for the VMA requiring remap.h]h/The VMA descriptor for the VMA requiring remap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjߴubj)}(hK``phys_addr_t start_phys_addr`` Start of the physical memory to be mapped. h](j)}(h``phys_addr_t start_phys_addr``h]jS)}(hj!h]hphys_addr_t start_phys_addr}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh]jM)}(h*Start of the physical memory to be mapped.h]h*Start of the physical memory to be mapped.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjߴubj)}(h0``unsigned long size`` Size of the area to map. h](j)}(h``unsigned long size``h]jS)}(hjZh]hunsigned long size}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjXubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjTubj)}(hhh]jM)}(hSize of the area to map.h]hSize of the area to map.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjߴubeh}(h]h ]h"]h$]h&]uh1jhjôubjM)}(h**NOTE**h]j)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjôubjM)}(hZSome drivers might want to tweak desc->page_prot for purposes of write-combine or similar.h]hZSome drivers might want to tweak desc->page_prot for purposes of write-combine or similar.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjôubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)mmap_action_map_kernel_pages (C function)c.mmap_action_map_kernel_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid mmap_action_map_kernel_pages (struct vm_area_desc *desc, unsigned long start, struct page **pages, unsigned long nr_pages)h]h)}(h~void mmap_action_map_kernel_pages(struct vm_area_desc *desc, unsigned long start, struct page **pages, unsigned long nr_pages)h](j)}(hvoidh]hvoid}(hjڵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֵhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֵhhhjhM$ubh)}(hmmap_action_map_kernel_pagesh]j)}(hmmap_action_map_kernel_pagesh]hmmap_action_map_kernel_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjֵhhhjhM$ubj )}(h](struct vm_area_desc *desc, unsigned long start, struct page **pages, unsigned long nr_pages)h](j )}(hstruct vm_area_desc *desch](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h vm_area_desch]h vm_area_desc}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7modnameN classnameNjpjs)}jv]jy)}jljsbc.mmap_action_map_kernel_pagesasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hdesch]hdesc}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hjڶhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjֶubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֶubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jQc.mmap_action_map_kernel_pagesasbuh1hhjֶubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֶubjF )}(hjI h]h*}(hj$hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjֶubjF )}(hjI h]h*}(hj1hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjֶubj)}(hpagesh]hpages}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֶubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hlongh]hlong}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjֵhhhjhM$ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjҵhhhjhM$ubah}(h]j͵ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM$hjϵhhubj4)}(hhh]jM)}(hhelper for mmap_prepare hook to specify that **num** kernel pages contained in the **pages** array should be mapped to userland starting at virtual address **start**.h](h-helper for mmap_prepare hook to specify that }(hjhhhNhNubj)}(h**num**h]hnum}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh kernel pages contained in the }(hjhhhNhNubj)}(h **pages**h]hpages}(hjӷhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh@ array should be mapped to userland starting at virtual address }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM$hjhhubah}(h]h ]h"]h$]h&]uh1j3hjϵhhhjhM$ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX^**Parameters** ``struct vm_area_desc *desc`` The VMA descriptor for the VMA requiring kernel pags to be mapped. ``unsigned long start`` The virtual address from which to map them. ``struct page **pages`` An array of struct page pointers describing the memory to map. ``unsigned long nr_pages`` The number of entries in the **pages** aray.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM(hj ubj)}(hhh](j)}(ha``struct vm_area_desc *desc`` The VMA descriptor for the VMA requiring kernel pags to be mapped. h](j)}(h``struct vm_area_desc *desc``h]jS)}(hj0h]hstruct vm_area_desc *desc}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM'hj*ubj)}(hhh]jM)}(hBThe VMA descriptor for the VMA requiring kernel pags to be mapped.h]hBThe VMA descriptor for the VMA requiring kernel pags to be mapped.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhM'hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM'hj'ubj)}(hD``unsigned long start`` The virtual address from which to map them. h](j)}(h``unsigned long start``h]jS)}(hjih]hunsigned long start}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM(hjcubj)}(hhh]jM)}(h+The virtual address from which to map them.h]h+The virtual address from which to map them.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hM(hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM(hj'ubj)}(hW``struct page **pages`` An array of struct page pointers describing the memory to map. h](j)}(h``struct page **pages``h]jS)}(hjh]hstruct page **pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM)hjubj)}(hhh]jM)}(h>An array of struct page pointers describing the memory to map.h]h>An array of struct page pointers describing the memory to map.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM)hj'ubj)}(hG``unsigned long nr_pages`` The number of entries in the **pages** aray.h](j)}(h``unsigned long nr_pages``h]jS)}(hj۸h]hunsigned long nr_pages}(hjݸhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjٸubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM+hjոubj)}(hhh]jM)}(h,The number of entries in the **pages** aray.h](hThe number of entries in the }(hjhhhNhNubj)}(h **pages**h]hpages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh aray.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM*hjubah}(h]h ]h"]h$]h&]uh1jhjոubeh}(h]h ]h"]h$]h&]uh1jhjhM+hj'ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.mmap_action_map_kernel_pages_full (C function)#c.mmap_action_map_kernel_pages_fullhNtauh1hhjhhhNhNubh)}(hhh](h)}(hWvoid mmap_action_map_kernel_pages_full (struct vm_area_desc *desc, struct page **pages)h]h)}(hVvoid mmap_action_map_kernel_pages_full(struct vm_area_desc *desc, struct page **pages)h](j)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM:ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjUhM:ubh)}(h!mmap_action_map_kernel_pages_fullh]j)}(h!mmap_action_map_kernel_pages_fullh]h!mmap_action_map_kernel_pages_full}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1hhjChhhjUhM:ubj )}(h0(struct vm_area_desc *desc, struct page **pages)h](j )}(hstruct vm_area_desc *desch](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h vm_area_desch]h vm_area_desc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljjsb#c.mmap_action_map_kernel_pages_fullasbuh1hhjubj)}(h h]h }(hj¹hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjйhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hdesch]hdesc}(hjݹhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|ubj )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j#c.mmap_action_map_kernel_pages_fullasbuh1hhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj@hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubjF )}(hjI h]h*}(hjMhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpagesh]hpages}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|ubeh}(h]h ]h"]h$]h&]jjuh1j hjChhhjUhM:ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj?hhhjUhM:ubah}(h]j:ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjUhM:hj<hhubj4)}(hhh]jM)}(hhelper for mmap_prepare hook to specify that kernel pages contained in the **pages** array should be mapped to userland from **desc->start** to **desc->end**.h](hKhelper for mmap_prepare hook to specify that kernel pages contained in the }(hjhhhNhNubj)}(h **pages**h]hpages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) array should be mapped to userland from }(hjhhhNhNubj)}(h**desc->start**h]h desc->start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h **desc->end**h]h desc->end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM:hjhhubah}(h]h ]h"]h$]h&]uh1j3hj<hhhjUhM:ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjҺjHjҺjIjJjKuh1hhhhjhNhNubj)}(hXQ**Parameters** ``struct vm_area_desc *desc`` The VMA descriptor for the VMA requiring kernel pags to be mapped. ``struct page **pages`` An array of struct page pointers describing the memory to map. **Description** The caller must ensure that **pages** contains sufficient entries to cover the entire range described by **desc**.h](jM)}(h**Parameters**h]j)}(hjܺh]h Parameters}(hj޺hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjںubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM>hjֺubj)}(hhh](j)}(ha``struct vm_area_desc *desc`` The VMA descriptor for the VMA requiring kernel pags to be mapped. h](j)}(h``struct vm_area_desc *desc``h]jS)}(hjh]hstruct vm_area_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM=hjubj)}(hhh]jM)}(hBThe VMA descriptor for the VMA requiring kernel pags to be mapped.h]hBThe VMA descriptor for the VMA requiring kernel pags to be mapped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjubj)}(hW``struct page **pages`` An array of struct page pointers describing the memory to map. h](j)}(h``struct page **pages``h]jS)}(hj4h]hstruct page **pages}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM>hj.ubj)}(hhh]jM)}(h>An array of struct page pointers describing the memory to map.h]h>An array of struct page pointers describing the memory to map.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhM>hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM>hjubeh}(h]h ]h"]h$]h&]uh1jhjֺubjM)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM@hjֺubjM)}(hrThe caller must ensure that **pages** contains sufficient entries to cover the entire range described by **desc**.h](hThe caller must ensure that }(hjhhhNhNubj)}(h **pages**h]hpages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhD contains sufficient entries to cover the entire range described by }(hjhhhNhNubj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM?hjֺubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_is_subset (C function)c.range_is_subsethNtauh1hhjhhhNhNubh)}(hhh](h)}(h}bool range_is_subset (unsigned long outer_start, unsigned long outer_end, unsigned long inner_start, unsigned long inner_end)h]h)}(h|bool range_is_subset(unsigned long outer_start, unsigned long outer_end, unsigned long inner_start, unsigned long inner_end)h](j)}(hj.h]hbool}(hjػhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԻhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԻhhhjhM[ubh)}(hrange_is_subseth]j)}(hrange_is_subseth]hrange_is_subset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjԻhhhjhM[ubj )}(hh(unsigned long outer_start, unsigned long outer_end, unsigned long inner_start, unsigned long inner_end)h](j )}(hunsigned long outer_starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h outer_starth]h outer_start}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hunsigned long outer_endh](j)}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h outer_endh]h outer_end}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hunsigned long inner_starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjļhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjҼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h inner_starth]h inner_start}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hunsigned long inner_endh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h inner_endh]h inner_end}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubeh}(h]h ]h"]h$]h&]jjuh1j hjԻhhhjhM[ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjлhhhjhM[ubah}(h]j˻ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM[hjͻhhubj4)}(hhh]jM)}(h9Is the specified inner range a subset of the outer range?h]h9Is the specified inner range a subset of the outer range?}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM[hjfhhubah}(h]h ]h"]h$]h&]uh1j3hjͻhhhjhM[ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long outer_start`` The start of the outer range. ``unsigned long outer_end`` The exclusive end of the outer range. ``unsigned long inner_start`` The start of the inner range. ``unsigned long inner_end`` The exclusive end of the inner range. **Return** ``true`` if [inner_start, inner_end) is a subset of [outer_start, outer_end), otherwise ``false``.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM_hjubj)}(hhh](j)}(h<``unsigned long outer_start`` The start of the outer range. h](j)}(h``unsigned long outer_start``h]jS)}(hjh]hunsigned long outer_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM\hjubj)}(hhh]jM)}(hThe start of the outer range.h]hThe start of the outer range.}(hjýhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjubj)}(hB``unsigned long outer_end`` The exclusive end of the outer range. h](j)}(h``unsigned long outer_end``h]jS)}(hjh]hunsigned long outer_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM]hjݽubj)}(hhh]jM)}(h%The exclusive end of the outer range.h]h%The exclusive end of the outer range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjݽubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjubj)}(h<``unsigned long inner_start`` The start of the inner range. h](j)}(h``unsigned long inner_start``h]jS)}(hjh]hunsigned long inner_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM^hjubj)}(hhh]jM)}(hThe start of the inner range.h]hThe start of the inner range.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hM^hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM^hjubj)}(hB``unsigned long inner_end`` The exclusive end of the inner range. h](j)}(h``unsigned long inner_end``h]jS)}(hjUh]hunsigned long inner_end}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM_hjOubj)}(hhh]jM)}(h%The exclusive end of the inner range.h]h%The exclusive end of the inner range.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjhM_hjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhM_hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMahjubjM)}(hb``true`` if [inner_start, inner_end) is a subset of [outer_start, outer_end), otherwise ``false``.h](jS)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhP if [inner_start, inner_end) is a subset of [outer_start, outer_end), otherwise }(hjhhhNhNubjS)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMahjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_in_vma (C function)c.range_in_vmahNtauh1hhjhhhNhNubh)}(hhh](h)}(h\bool range_in_vma (const struct vm_area_struct *vma, unsigned long start, unsigned long end)h]h)}(h[bool range_in_vma(const struct vm_area_struct *vma, unsigned long start, unsigned long end)h](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMmubh)}(h range_in_vmah]j)}(h range_in_vmah]h range_in_vma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMmubj )}(hJ(const struct vm_area_struct *vma, unsigned long start, unsigned long end)h](j )}(h const struct vm_area_struct *vmah](j5)}(hjh]hconst}(hj1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj5)}(hj8h]hstruct}(hjLhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlmodnameN classnameNjpjs)}jv]jy)}jljsbc.range_in_vmaasbuh1hhj-ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubj )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj̿hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjڿhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubj )}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hendh]hend}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMmubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMmubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMmhjhhubj4)}(hhh]jM)}(h@is the specified [**start**, **end**) range a subset of the VMA?h](his the specified [}(hjqhhhNhNubj)}(h **start**h]hstart}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh, }(hjqhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh) range a subset of the VMA?}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMmhjnhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMmubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXy**Parameters** ``const struct vm_area_struct *vma`` The VMA against which we want to check [**start**, **end**). ``unsigned long start`` The start of the range we wish to check. ``unsigned long end`` The exclusive end of the range we wish to check. **Return** ``true`` if [**start**, **end**) is a subset of [**vma->vm_start**, **vma->vm_end**), ``false`` otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMqhjubj)}(hhh](j)}(hb``const struct vm_area_struct *vma`` The VMA against which we want to check [**start**, **end**). h](j)}(h$``const struct vm_area_struct *vma``h]jS)}(hjh]h const struct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMnhjubj)}(hhh]jM)}(hvm_start**, **vma->vm_end**), ``false`` otherwise.h](jS)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if [}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) is a subset of [}(hjhhhNhNubj)}(h**vma->vm_start**h]h vma->vm_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**vma->vm_end**h]h vma->vm_end}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh), }(hjhhhNhNubjS)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMrhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_in_vma_desc (C function)c.range_in_vma_deschNtauh1hhjhhhNhNubh)}(hhh](h)}(h`bool range_in_vma_desc (const struct vm_area_desc *desc, unsigned long start, unsigned long end)h]h)}(h_bool range_in_vma_desc(const struct vm_area_desc *desc, unsigned long start, unsigned long end)h](j)}(hj.h]hbool}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjahMubh)}(hrange_in_vma_desch]j)}(hrange_in_vma_desch]hrange_in_vma_desc}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1hhjPhhhjahMubj )}(hI(const struct vm_area_desc *desc, unsigned long start, unsigned long end)h](j )}(hconst struct vm_area_desc *desch](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h vm_area_desch]h vm_area_desc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljvsbc.range_in_vma_descasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjPhhhjahMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjLhhhjahMubah}(h]jGah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjahMhjIhhubj4)}(hhh]jM)}(hhis the specified [**start**, **end**) range a subset of the VMA described by **desc**, a VMA descriptor?h](his the specified [}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh)) range a subset of the VMA described by }(hjhhhNhNubj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, a VMA descriptor?}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjIhhhjahMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``const struct vm_area_desc *desc`` The VMA descriptor against which we want to check [**start**, **end**). ``unsigned long start`` The start of the range we wish to check. ``unsigned long end`` The exclusive end of the range we wish to check. **Return** ``true`` if [**start**, **end**) is a subset of [**desc->start**, **desc->end**), ``false`` otherwise.h](jM)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj"ubj)}(hhh](j)}(hl``const struct vm_area_desc *desc`` The VMA descriptor against which we want to check [**start**, **end**). h](j)}(h#``const struct vm_area_desc *desc``h]jS)}(hjGh]hconst struct vm_area_desc *desc}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjAubj)}(hhh]jM)}(hGThe VMA descriptor against which we want to check [**start**, **end**).h](h3The VMA descriptor against which we want to check [}(hj`hhhNhNubj)}(h **start**h]hstart}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh, }(hj`hhhNhNubj)}(h**end**h]hend}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh).}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj>ubj)}(hA``unsigned long start`` The start of the range we wish to check. h](j)}(h``unsigned long start``h]jS)}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh]jM)}(h(The start of the range we wish to check.h]h(The start of the range we wish to check.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj>ubj)}(hG``unsigned long end`` The exclusive end of the range we wish to check. h](j)}(h``unsigned long end``h]jS)}(hjh]hunsigned long end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh]jM)}(h0The exclusive end of the range we wish to check.h]h0The exclusive end of the range we wish to check.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj>ubeh}(h]h ]h"]h$]h&]uh1jhj"ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj"ubjM)}(hf``true`` if [**start**, **end**) is a subset of [**desc->start**, **desc->end**), ``false`` otherwise.h](jS)}(h``true``h]htrue}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubh if [}(hj.hhhNhNubj)}(h **start**h]hstart}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh, }(hj.hhhNhNubj)}(h**end**h]hend}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh) is a subset of [}(hj.hhhNhNubj)}(h**desc->start**h]h desc->start}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh, }hj.sbj)}(h **desc->end**h]h desc->end}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh), }(hj.hhhNhNubjS)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubh otherwise.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_pages (C function) c.clear_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void clear_pages (void *addr, unsigned int npages)h]h)}(h1void clear_pages(void *addr, unsigned int npages)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h clear_pagesh]j)}(h clear_pagesh]h clear_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h!(void *addr, unsigned int npages)h](j )}(h void *addrh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(haddrh]haddr}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int npagesh](j)}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hnpagesh]hnpages}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h+clear a page range for kernel-internal use.h]h+clear a page range for kernel-internal use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``void *addr`` start address ``unsigned int npages`` number of pages **Description** Use clear_user_pages() instead when clearing a page range to be mapped to user space. Does absolutely no exception handling. Note that even though the clearing operation is preemptible, clear_pages() does not (and on architectures where it reduces to a few long-running instructions, might not be able to) call cond_resched() to check if rescheduling is required. When running under preemptible models this is not a problem. Under cooperatively scheduled models, however, the caller is expected to limit **npages** to no more than PROCESS_PAGES_NON_PREEMPT_BATCH.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh](j)}(h``void *addr`` start address h](j)}(h``void *addr``h]jS)}(hjh]h void *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh]jM)}(h start addressh]h start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``unsigned int npages`` number of pages h](j)}(h``unsigned int npages``h]jS)}(hj h]hunsigned int npages}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh]jM)}(hnumber of pagesh]hnumber of pages}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubjM)}(hUUse clear_user_pages() instead when clearing a page range to be mapped to user space.h]hUUse clear_user_pages() instead when clearing a page range to be mapped to user space.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubjM)}(h&Does absolutely no exception handling.h]h&Does absolutely no exception handling.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubjM)}(hNote that even though the clearing operation is preemptible, clear_pages() does not (and on architectures where it reduces to a few long-running instructions, might not be able to) call cond_resched() to check if rescheduling is required.h]hNote that even though the clearing operation is preemptible, clear_pages() does not (and on architectures where it reduces to a few long-running instructions, might not be able to) call cond_resched() to check if rescheduling is required.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubjM)}(hWhen running under preemptible models this is not a problem. Under cooperatively scheduled models, however, the caller is expected to limit **npages** to no more than PROCESS_PAGES_NON_PREEMPT_BATCH.h](hWhen running under preemptible models this is not a problem. Under cooperatively scheduled models, however, the caller is expected to limit }(hjhhhNhNubj)}(h **npages**h]hnpages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh1 to no more than PROCESS_PAGES_NON_PREEMPT_BATCH.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_ref_count (C function)c.folio_ref_counthNtauh1hhjhhhNhNubh)}(hhh](h)}(h/int folio_ref_count (const struct folio *folio)h]h)}(h.int folio_ref_count(const struct folio *folio)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKGubh)}(hfolio_ref_counth]j)}(hfolio_ref_counth]hfolio_ref_count}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKGubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hj7hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_ref_countasbuh1hhjubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKGubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKGubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKGhjhhubj4)}(hhh]jM)}(h"The reference count on this folio.h]h"The reference count on this folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKGhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKGubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``const struct folio *folio`` The folio. **Description** Folios contain a reference count. When that reference count reaches zero, the folio is referred to as frozen. At this point, it will usually be returned to the memory allocator, but some parts of the kernel freeze folios in order to perform unusual operations on them such as splitting or migration. The refcount is usually incremented by calls to folio_get() and decremented by calls to folio_put(). Some typical users of the folio refcount: - Each reference from a page table - The page cache - Filesystem private data - The LRU list - Pipes - Direct IO which references this page in the process address space The reference count has three components: expected, temporary and spurious. The expected reference count of a folio is that which we would logically expect it to be from just reading the code. Temporary refcounts are gained by threads which need a temporary reference to make sure the folio isn't reallocated while they use it. Spurious refcounts are gained by threads which, thanks to RCU walks of the page tables or file cache, find a stale pointer to a folio. These threads will drop the refcount after discoveering the pointer is stale, but it can surprise other users to see the spurious refcount on a freshly allocated folio (eg they may see a refcount of 2 instead of 1). **Return** The number of references to this folio.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKKhjubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjh]hconst struct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKHhjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKJhjubjM)}(hX-Folios contain a reference count. When that reference count reaches zero, the folio is referred to as frozen. At this point, it will usually be returned to the memory allocator, but some parts of the kernel freeze folios in order to perform unusual operations on them such as splitting or migration.h]hX-Folios contain a reference count. When that reference count reaches zero, the folio is referred to as frozen. At this point, it will usually be returned to the memory allocator, but some parts of the kernel freeze folios in order to perform unusual operations on them such as splitting or migration.L}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKIhjubjM)}(hThe refcount is usually incremented by calls to folio_get() and decremented by calls to folio_put(). Some typical users of the folio refcount:h]hThe refcount is usually incremented by calls to folio_get() and decremented by calls to folio_put(). Some typical users of the folio refcount:}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKOhjubj~W)}(hhh](j/)}(h Each reference from a page tableh]jM)}(hjoh]h Each reference from a page table}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKShjmubah}(h]h ]h"]h$]h&]uh1j/hjjubj/)}(hThe page cacheh]jM)}(hjh]hThe page cache}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKThjubah}(h]h ]h"]h$]h&]uh1j/hjjubj/)}(hFilesystem private datah]jM)}(hjh]hFilesystem private data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKUhjubah}(h]h ]h"]h$]h&]uh1j/hjjubj/)}(h The LRU listh]jM)}(hjh]h The LRU list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKVhjubah}(h]h ]h"]h$]h&]uh1j/hjjubj/)}(hPipesh]jM)}(hjh]hPipes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKWhjubah}(h]h ]h"]h$]h&]uh1j/hjjubj/)}(hBDirect IO which references this page in the process address space h]jM)}(hADirect IO which references this page in the process address spaceh]hADirect IO which references this page in the process address space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKXhjubah}(h]h ]h"]h$]h&]uh1j/hjjubeh}(h]h ]h"]h$]h&]jWjWuh1j}Whj~hKShjubjM)}(hXThe reference count has three components: expected, temporary and spurious. The expected reference count of a folio is that which we would logically expect it to be from just reading the code. Temporary refcounts are gained by threads which need a temporary reference to make sure the folio isn't reallocated while they use it. Spurious refcounts are gained by threads which, thanks to RCU walks of the page tables or file cache, find a stale pointer to a folio. These threads will drop the refcount after discoveering the pointer is stale, but it can surprise other users to see the spurious refcount on a freshly allocated folio (eg they may see a refcount of 2 instead of 1).h]hXThe reference count has three components: expected, temporary and spurious. The expected reference count of a folio is that which we would logically expect it to be from just reading the code. Temporary refcounts are gained by threads which need a temporary reference to make sure the folio isn’t reallocated while they use it. Spurious refcounts are gained by threads which, thanks to RCU walks of the page tables or file cache, find a stale pointer to a folio. These threads will drop the refcount after discoveering the pointer is stale, but it can surprise other users to see the spurious refcount on a freshly allocated folio (eg they may see a refcount of 2 instead of 1).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKZhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKfhjubjM)}(h'The number of references to this folio.h]h'The number of references to this folio.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_try_get (C function)c.folio_try_gethNtauh1hhjhhhNhNubh)}(hhh](h)}(h(bool folio_try_get (struct folio *folio)h]h)}(h'bool folio_try_get(struct folio *folio)h](j)}(hj.h]hbool}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjghMubh)}(h folio_try_geth]j)}(h folio_try_geth]h folio_try_get}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1hhjVhhhjghMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj|sbc.folio_try_getasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjVhhhjghMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjRhhhjghMubah}(h]jMah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjghMhjOhhubj4)}(hhh]jM)}(h,Attempt to increase the refcount on a folio.h]h,Attempt to increase the refcount on a folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjOhhhjghMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj1jHj1jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio. **Description** If you do not already have a reference to a folio, you can attempt to get one using this function. It may fail if, for example, the folio has been freed since you found a pointer to it, or it is frozen for the purposes of splitting or migration. **Return** True if the reference count was successfully incremented.h](jM)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhM hj5ubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjZh]hstruct folio *folio}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjXubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhM hjTubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjohM hjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohM hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhM hj5ubjM)}(hIf you do not already have a reference to a folio, you can attempt to get one using this function. It may fail if, for example, the folio has been freed since you found a pointer to it, or it is frozen for the purposes of splitting or migration.h]hIf you do not already have a reference to a folio, you can attempt to get one using this function. It may fail if, for example, the folio has been freed since you found a pointer to it, or it is frozen for the purposes of splitting or migration.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhM hj5ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhMhj5ubjM)}(h9True if the reference count was successfully incremented.h]h9True if the reference count was successfully incremented.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](his_highmem (C function) c.is_highmemhNtauh1hhjhhhNhNubh)}(hhh](h)}(h(int is_highmem (const struct zone *zone)h]h)}(h'int is_highmem(const struct zone *zone)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h is_highmemh]j)}(h is_highmemh]h is_highmem}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(const struct zone *zone)h]j )}(hconst struct zone *zoneh](j5)}(hjh]hconst}(hj>hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj5)}(hj8h]hstruct}(hjYhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(hzoneh]hzone}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjymodnameN classnameNjpjs)}jv]jy)}jlj$sb c.is_highmemasbuh1hhj:ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj:ubj)}(hzoneh]hzone}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hhelper function to quickly check if a struct zone is a highmem zone or not. This is an attempt to keep references to ZONE_{DMA/NORMAL/HIGHMEM/etc} in general code to a minimum.h]hhelper function to quickly check if a struct zone is a highmem zone or not. This is an attempt to keep references to ZONE_{DMA/NORMAL/HIGHMEM/etc} in general code to a minimum.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h|**Parameters** ``const struct zone *zone`` pointer to struct zone variable **Return** 1 for a highmem zone, 0 otherwiseh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j)}(h<``const struct zone *zone`` pointer to struct zone variable h](j)}(h``const struct zone *zone``h]jS)}(hjh]hconst struct zone *zone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]jM)}(hpointer to struct zone variableh]hpointer to struct zone variable}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjXh]hReturn}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubjM)}(h!1 for a highmem zone, 0 otherwiseh]h!1 for a highmem zone, 0 otherwise}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfor_each_online_pgdat (C macro)c.for_each_online_pgdathNtauh1hhjhhhNhNubh)}(hhh](h)}(hfor_each_online_pgdath]h)}(hfor_each_online_pgdath]h)}(hfor_each_online_pgdath]j)}(hjh]hfor_each_online_pgdat}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubjM)}(h!``for_each_online_pgdat (pgdat)``h]jS)}(hjh]hfor_each_online_pgdat (pgdat)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjhhubji)}(h.helper macro to iterate over all online nodes h]jM)}(h-helper macro to iterate over all online nodesh]h-helper macro to iterate over all online nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubah}(h]h ]h"]h$]h&]uh1jhhjhMhjhhubj)}(h;**Parameters** ``pgdat`` pointer to a pg_data_t variableh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j)}(h)``pgdat`` pointer to a pg_data_t variableh](j)}(h ``pgdat``h]jS)}(hj'h]hpgdat}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj!ubj)}(hhh]jM)}(hpointer to a pg_data_t variableh]hpointer to a pg_data_t variable}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfor_each_zone (C macro)c.for_each_zonehNtauh1hhjhhhNhNubh)}(hhh](h)}(h for_each_zoneh]h)}(h for_each_zoneh]h)}(h for_each_zoneh]j)}(hj{h]h for_each_zone}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj}hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjyhhhjhMubah}(h]jtah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjvhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjvhhhjhMubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubjM)}(h``for_each_zone (zone)``h]jS)}(hjh]hfor_each_zone (zone)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjhhubji)}(h.helper macro to iterate over all memory zones h]jM)}(h-helper macro to iterate over all memory zonesh]h-helper macro to iterate over all memory zones}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubah}(h]h ]h"]h$]h&]uh1jhhjhMhjhhubj)}(h**Parameters** ``zone`` pointer to struct zone variable **Description** The user only needs to declare the zone variable, for_each_zone fills it in.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j)}(h)``zone`` pointer to struct zone variable h](j)}(h``zone``h]jS)}(hj h]hzone}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]jM)}(hpointer to struct zone variableh]hpointer to struct zone variable}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubjM)}(hLThe user only needs to declare the zone variable, for_each_zone fills it in.h]hLThe user only needs to declare the zone variable, for_each_zone fills it in.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h next_zones_zonelist (C function)c.next_zones_zonelisthNtauh1hhjhhhNhNubh)}(hhh](h)}(hkstruct zoneref * next_zones_zonelist (struct zoneref *z, enum zone_type highest_zoneidx, nodemask_t *nodes)h]h)}(histruct zoneref *next_zones_zonelist(struct zoneref *z, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(hzonerefh]hzoneref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlnext_zones_zonelistsbc.next_zones_zonelistasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hnext_zones_zonelisth]j)}(hjh]hnext_zones_zonelist}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hF(struct zoneref *z, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j )}(hstruct zoneref *zh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hzonerefh]hzoneref}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj%modnameN classnameNjpjs)}jv]jc.next_zones_zonelistasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjOhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hzh]hz}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum zone_type highest_zoneidxh](j5)}(hjEh]henum}(hjuhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]j)}(h zone_typeh]h zone_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.next_zones_zonelistasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hhighest_zoneidxh]hhighest_zoneidx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hnodemask_t *nodesh](h)}(hhh]j)}(h nodemask_th]h nodemask_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.next_zones_zonelistasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnodesh]hnodes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]j~ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hReturns the next zone at or below highest_zoneidx within the allowed nodemask using a cursor within a zonelist as a starting pointh]hReturns the next zone at or below highest_zoneidx within the allowed nodemask using a cursor within a zonelist as a starting point}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj;hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjVjHjVjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct zoneref *z`` The cursor used as a starting point for the search ``enum zone_type highest_zoneidx`` The zone index of the highest zone to return ``nodemask_t *nodes`` An optional nodemask to filter the zonelist with **Description** This function returns the next zone at or below a given zone index that is within the allowed nodemask using a cursor as the starting point for the search. The zoneref returned is a cursor that represents the current zone being examined. It should be advanced by one before calling next_zones_zonelist again. **Return** the next zone at or below highest_zoneidx within the allowed nodemask using a cursor within a zonelist as a starting pointh](jM)}(h**Parameters**h]j)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM!hjZubj)}(hhh](j)}(hI``struct zoneref *z`` The cursor used as a starting point for the search h](j)}(h``struct zoneref *z``h]jS)}(hjh]hstruct zoneref *z}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj}ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjyubj)}(hhh]jM)}(h2The cursor used as a starting point for the searchh]h2The cursor used as a starting point for the search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(hP``enum zone_type highest_zoneidx`` The zone index of the highest zone to return h](j)}(h"``enum zone_type highest_zoneidx``h]jS)}(hjh]henum zone_type highest_zoneidx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]jM)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(hG``nodemask_t *nodes`` An optional nodemask to filter the zonelist with h](j)}(h``nodemask_t *nodes``h]jS)}(hjh]hnodemask_t *nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM hjubj)}(hhh]jM)}(h0An optional nodemask to filter the zonelist withh]h0An optional nodemask to filter the zonelist with}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjvubeh}(h]h ]h"]h$]h&]uh1jhjZubjM)}(h**Description**h]j)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM"hjZubjM)}(hX4This function returns the next zone at or below a given zone index that is within the allowed nodemask using a cursor as the starting point for the search. The zoneref returned is a cursor that represents the current zone being examined. It should be advanced by one before calling next_zones_zonelist again.h]hX4This function returns the next zone at or below a given zone index that is within the allowed nodemask using a cursor as the starting point for the search. The zoneref returned is a cursor that represents the current zone being examined. It should be advanced by one before calling next_zones_zonelist again.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM!hjZubjM)}(h **Return**h]j)}(hjSh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM'hjZubjM)}(hzthe next zone at or below highest_zoneidx within the allowed nodemask using a cursor within a zonelist as a starting pointh]hzthe next zone at or below highest_zoneidx within the allowed nodemask using a cursor within a zonelist as a starting point}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM(hjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!first_zones_zonelist (C function)c.first_zones_zonelisthNtauh1hhjhhhNhNubh)}(hhh](h)}(htstruct zoneref * first_zones_zonelist (struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes)h]h)}(hrstruct zoneref *first_zones_zonelist(struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM5ubh)}(hhh]j)}(hzonerefh]hzoneref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlfirst_zones_zonelistsbc.first_zones_zonelistasbuh1hhjhhhjhM5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM5ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM5ubh)}(hfirst_zones_zonelisth]j)}(hjh]hfirst_zones_zonelist}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM5ubj )}(hN(struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j )}(hstruct zonelist *zonelisth](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hzonelisth]hzonelist}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj2modnameN classnameNjpjs)}jv]jc.first_zones_zonelistasbuh1hhjubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj\hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hzonelisth]hzonelist}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(henum zone_type highest_zoneidxh](j5)}(hjEh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hhh]j)}(h zone_typeh]h zone_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.first_zones_zonelistasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hhighest_zoneidxh]hhighest_zoneidx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hnodemask_t *nodesh](h)}(hhh]j)}(h nodemask_th]h nodemask_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.first_zones_zonelistasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnodesh]hnodes}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM5ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM5ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM5hjhhubj4)}(hhh]jM)}(h\Returns the first zone at or below highest_zoneidx within the allowed nodemask in a zonelisth]h\Returns the first zone at or below highest_zoneidx within the allowed nodemask in a zonelist}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM5hjHhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM5ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjcjHjcjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct zonelist *zonelist`` The zonelist to search for a suitable zone ``enum zone_type highest_zoneidx`` The zone index of the highest zone to return ``nodemask_t *nodes`` An optional nodemask to filter the zonelist with **Description** This function returns the first zone at or below a given zone index that is within the allowed nodemask. The zoneref returned is a cursor that can be used to iterate the zonelist with next_zones_zonelist by advancing it by one before calling. When no eligible zone is found, zoneref->zone is NULL (zoneref itself is never NULL). This may happen either genuinely, or due to concurrent nodemask update due to cpuset modification. **Return** Zoneref pointer for the first suitable zone foundh](jM)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM9hjgubj)}(hhh](j)}(hI``struct zonelist *zonelist`` The zonelist to search for a suitable zone h](j)}(h``struct zonelist *zonelist``h]jS)}(hjh]hstruct zonelist *zonelist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM6hjubj)}(hhh]jM)}(h*The zonelist to search for a suitable zoneh]h*The zonelist to search for a suitable zone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubj)}(hP``enum zone_type highest_zoneidx`` The zone index of the highest zone to return h](j)}(h"``enum zone_type highest_zoneidx``h]jS)}(hjh]henum zone_type highest_zoneidx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM7hjubj)}(hhh]jM)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubj)}(hG``nodemask_t *nodes`` An optional nodemask to filter the zonelist with h](j)}(h``nodemask_t *nodes``h]jS)}(hjh]hnodemask_t *nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM8hjubj)}(hhh]jM)}(h0An optional nodemask to filter the zonelist withh]h0An optional nodemask to filter the zonelist with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubeh}(h]h ]h"]h$]h&]uh1jhjgubjM)}(h**Description**h]j)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM:hjgubjM)}(hThis function returns the first zone at or below a given zone index that is within the allowed nodemask. The zoneref returned is a cursor that can be used to iterate the zonelist with next_zones_zonelist by advancing it by one before calling.h]hThis function returns the first zone at or below a given zone index that is within the allowed nodemask. The zoneref returned is a cursor that can be used to iterate the zonelist with next_zones_zonelist by advancing it by one before calling.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM9hjgubjM)}(hWhen no eligible zone is found, zoneref->zone is NULL (zoneref itself is never NULL). This may happen either genuinely, or due to concurrent nodemask update due to cpuset modification.h]hWhen no eligible zone is found, zoneref->zone is NULL (zoneref itself is never NULL). This may happen either genuinely, or due to concurrent nodemask update due to cpuset modification.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM>hjgubjM)}(h **Return**h]j)}(hjoh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMBhjgubjM)}(h1Zoneref pointer for the first suitable zone foundh]h1Zoneref pointer for the first suitable zone found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMChjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)for_each_zone_zonelist_nodemask (C macro)!c.for_each_zone_zonelist_nodemaskhNtauh1hhjhhhNhNubh)}(hhh](h)}(hfor_each_zone_zonelist_nodemaskh]h)}(hfor_each_zone_zonelist_nodemaskh]h)}(hfor_each_zone_zonelist_nodemaskh]j)}(hjh]hfor_each_zone_zonelist_nodemask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMNubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMNubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMNhjhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjhhhjhMNubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubjM)}(hG``for_each_zone_zonelist_nodemask (zone, z, zlist, highidx, nodemask)``h]jS)}(hjh]hCfor_each_zone_zonelist_nodemask (zone, z, zlist, highidx, nodemask)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMPhjhhubji)}(hlhelper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemask h]jM)}(hkhelper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemaskh]hkhelper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMNhjubah}(h]h ]h"]h$]h&]uh1jhhjhMNhjhhubj)}(hX**Parameters** ``zone`` The current zone in the iterator ``z`` The current pointer within zonelist->_zonerefs being iterated ``zlist`` The zonelist being iterated ``highidx`` The zone index of the highest zone to return ``nodemask`` Nodemask allowed by the allocator **Description** This iterator iterates though all zones at or below a given zone index and within a given nodemaskh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMRhjubj)}(hhh](j)}(h*``zone`` The current zone in the iterator h](j)}(h``zone``h]jS)}(hj>h]hzone}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj<ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMOhj8ubj)}(hhh]jM)}(h The current zone in the iteratorh]h The current zone in the iterator}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjShMOhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMOhj5ubj)}(hD``z`` The current pointer within zonelist->_zonerefs being iterated h](j)}(h``z``h]jS)}(hjwh]hz}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMPhjqubj)}(hhh]jM)}(h=The current pointer within zonelist->_zonerefs being iteratedh]h=The current pointer within zonelist->_zonerefs being iterated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMPhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMPhj5ubj)}(h&``zlist`` The zonelist being iterated h](j)}(h ``zlist``h]jS)}(hjh]hzlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMQhjubj)}(hhh]jM)}(hThe zonelist being iteratedh]hThe zonelist being iterated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMQhj5ubj)}(h9``highidx`` The zone index of the highest zone to return h](j)}(h ``highidx``h]jS)}(hjh]hhighidx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMRhjubj)}(hhh]jM)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMRhj5ubj)}(h/``nodemask`` Nodemask allowed by the allocator h](j)}(h ``nodemask``h]jS)}(hj"h]hnodemask}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMShjubj)}(hhh]jM)}(h!Nodemask allowed by the allocatorh]h!Nodemask allowed by the allocator}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7hMShj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMShj5ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj]h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMUhjubjM)}(hbThis iterator iterates though all zones at or below a given zone index and within a given nodemaskh]hbThis iterator iterates though all zones at or below a given zone index and within a given nodemask}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMThjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h for_each_zone_zonelist (C macro)c.for_each_zone_zonelisthNtauh1hhjhhhNhNubh)}(hhh](h)}(hfor_each_zone_zonelisth]h)}(hfor_each_zone_zonelisth]h)}(hfor_each_zone_zonelisth]j)}(hjh]hfor_each_zone_zonelist}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMfubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMfubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMfhjhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjhhhjhMfubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubjM)}(h4``for_each_zone_zonelist (zone, z, zlist, highidx)``h]jS)}(hjh]h0for_each_zone_zonelist (zone, z, zlist, highidx)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhhjhhubji)}(hVhelper macro to iterate over valid zones in a zonelist at or below a given zone index h]jM)}(hUhelper macro to iterate over valid zones in a zonelist at or below a given zone indexh]hUhelper macro to iterate over valid zones in a zonelist at or below a given zone index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMfhjubah}(h]h ]h"]h$]h&]uh1jhhjhMfhjhhubj)}(hX=**Parameters** ``zone`` The current zone in the iterator ``z`` The current pointer within zonelist->zones being iterated ``zlist`` The zonelist being iterated ``highidx`` The zone index of the highest zone to return **Description** This iterator iterates though all zones at or below a given zone index.h](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMjhjubj)}(hhh](j)}(h*``zone`` The current zone in the iterator h](j)}(h``zone``h]jS)}(hj,h]hzone}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMghj&ubj)}(hhh]jM)}(h The current zone in the iteratorh]h The current zone in the iterator}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMghjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMghj#ubj)}(h@``z`` The current pointer within zonelist->zones being iterated h](j)}(h``z``h]jS)}(hjeh]hz}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhhj_ubj)}(hhh]jM)}(h9The current pointer within zonelist->zones being iteratedh]h9The current pointer within zonelist->zones being iterated}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzhMhhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhhj#ubj)}(h&``zlist`` The zonelist being iterated h](j)}(h ``zlist``h]jS)}(hjh]hzlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMihjubj)}(hhh]jM)}(hThe zonelist being iteratedh]hThe zonelist being iterated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMihjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMihj#ubj)}(h9``highidx`` The zone index of the highest zone to return h](j)}(h ``highidx``h]jS)}(hjh]hhighidx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMjhjubj)}(hhh]jM)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhj#ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMlhjubjM)}(hGThis iterator iterates though all zones at or below a given zone index.h]hGThis iterator iterates though all zones at or below a given zone index.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpfn_valid (C function) c.pfn_validhNtauh1hhjhhhNhNubh)}(hhh](h)}(h!int pfn_valid (unsigned long pfn)h]h)}(h int pfn_valid(unsigned long pfn)h](j)}(hinth]hint}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjehMubh)}(h pfn_validh]j)}(h pfn_validh]h pfn_valid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1hhjShhhjehMubj )}(h(unsigned long pfn)h]j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjShhhjehMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjOhhhjehMubah}(h]jJah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjehMhjLhhubj4)}(hhh]jM)}(h4check if there is a valid memory map entry for a PFNh]h4check if there is a valid memory map entry for a PFN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjLhhhjehMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long pfn`` the page frame number to check **Description** Check if there is a valid memory map entry aka struct page for the **pfn**. Note, that availability of the memory map entry does not imply that there is actual usable memory at that **pfn**. The struct page may represent a hole or an unusable page frame. **Return** 1 for PFNs that have memory map entries and 0 otherwiseh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j)}(h5``unsigned long pfn`` the page frame number to check h](j)}(h``unsigned long pfn``h]jS)}(hj7h]hunsigned long pfn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj1ubj)}(hhh]jM)}(hthe page frame number to checkh]hthe page frame number to check}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubjM)}(hCheck if there is a valid memory map entry aka struct page for the **pfn**. Note, that availability of the memory map entry does not imply that there is actual usable memory at that **pfn**. The struct page may represent a hole or an unusable page frame.h](hCCheck if there is a valid memory map entry aka struct page for the }(hjhhhNhNubj)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhl. Note, that availability of the memory map entry does not imply that there is actual usable memory at that }(hjhhhNhNubj)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA. The struct page may represent a hole or an unusable page frame.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubjM)}(h71 for PFNs that have memory map entries and 0 otherwiseh]h71 for PFNs that have memory map entries and 0 otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mapping (C function)c.folio_mappinghNtauh1hhjhhhNhNubh)}(hhh](h)}(h@struct address_space * folio_mapping (const struct folio *folio)h]h)}(h>struct address_space *folio_mapping(const struct folio *folio)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(h address_spaceh]h address_space}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj#modnameN classnameNjpjs)}jv]jy)}jl folio_mappingsbc.folio_mappingasbuh1hhjhhhjhMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjPhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(h folio_mappingh]j)}(hj?h]h folio_mapping}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j=c.folio_mappingasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjxubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjtubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h,Find the mapping where this folio is stored.h]h,Find the mapping where this folio is stored.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj0jHj0jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``const struct folio *folio`` The folio. **Description** For folios which are in the page cache, return the mapping that this page belongs to. Folios in the swap cache return the swap mapping this page is stored in (which is different from the mapping for the swap file or swap device where the data is stored). You can call this for folios which aren't in the swap cache or page cache and it will return NULL.h](jM)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhj4ubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjYh]hconst struct folio *folio}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjSubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhj4ubjM)}(hFor folios which are in the page cache, return the mapping that this page belongs to. Folios in the swap cache return the swap mapping this page is stored in (which is different from the mapping for the swap file or swap device where the data is stored).h]hFor folios which are in the page cache, return the mapping that this page belongs to. Folios in the swap cache return the swap mapping this page is stored in (which is different from the mapping for the swap file or swap device where the data is stored).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhj4ubjM)}(hbYou can call this for folios which aren't in the swap cache or page cache and it will return NULL.h]hdYou can call this for folios which aren’t in the swap cache or page cache and it will return NULL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__anon_vma_prepare (C function)c.__anon_vma_preparehNtauh1hhjhhhNhNubh)}(hhh](h)}(h3int __anon_vma_prepare (struct vm_area_struct *vma)h]h)}(h2int __anon_vma_prepare(struct vm_area_struct *vma)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(h__anon_vma_prepareh]j)}(h__anon_vma_prepareh]h__anon_vma_prepare}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubj )}(h(struct vm_area_struct *vma)h]j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj%hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjEmodnameN classnameNjpjs)}jv]jy)}jlj sbc.__anon_vma_prepareasbuh1hhj!ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjF )}(hjI h]h*}(hjqhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubj)}(hvmah]hvma}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjhhubj4)}(hhh]jM)}(h%attach an anon_vma to a memory regionh]h%attach an anon_vma to a memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` the memory region in question **Description** This makes sure the memory mapping described by 'vma' has an 'anon_vma' attached to it, so that we can associate the anonymous pages mapped into it with that anon_vma. The common case will be that we already have one, which is handled inline by anon_vma_prepare(). But if not we either need to find an adjacent mapping that we can re-use the anon_vma from (very common when the only reason for splitting a vma has been mprotect()), or we allocate a new one. Anon-vma allocations are very subtle, because we may have optimistically looked up an anon_vma in folio_lock_anon_vma_read() and that may actually touch the rwsem even in the newly allocated vma (it depends on RCU to make sure that the anon_vma isn't actually destroyed). As a result, we need to do proper anon_vma locking even for the new allocation. At the same time, we do not want to do any locking for the common case of already having an anon_vma.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjubj)}(hhh]j)}(h=``struct vm_area_struct *vma`` the memory region in question h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjubj)}(hhh]jM)}(hthe memory region in questionh]hthe memory region in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjubjM)}(hThis makes sure the memory mapping described by 'vma' has an 'anon_vma' attached to it, so that we can associate the anonymous pages mapped into it with that anon_vma.h]hThis makes sure the memory mapping described by ‘vma’ has an ‘anon_vma’ attached to it, so that we can associate the anonymous pages mapped into it with that anon_vma.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjubjM)}(hX!The common case will be that we already have one, which is handled inline by anon_vma_prepare(). But if not we either need to find an adjacent mapping that we can re-use the anon_vma from (very common when the only reason for splitting a vma has been mprotect()), or we allocate a new one.h]hX!The common case will be that we already have one, which is handled inline by anon_vma_prepare(). But if not we either need to find an adjacent mapping that we can re-use the anon_vma from (very common when the only reason for splitting a vma has been mprotect()), or we allocate a new one.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjubjM)}(hXAnon-vma allocations are very subtle, because we may have optimistically looked up an anon_vma in folio_lock_anon_vma_read() and that may actually touch the rwsem even in the newly allocated vma (it depends on RCU to make sure that the anon_vma isn't actually destroyed).h]hXAnon-vma allocations are very subtle, because we may have optimistically looked up an anon_vma in folio_lock_anon_vma_read() and that may actually touch the rwsem even in the newly allocated vma (it depends on RCU to make sure that the anon_vma isn’t actually destroyed).}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjubjM)}(hAs a result, we need to do proper anon_vma locking even for the new allocation. At the same time, we do not want to do any locking for the common case of already having an anon_vma.h]hAs a result, we need to do proper anon_vma locking even for the new allocation. At the same time, we do not want to do any locking for the common case of already having an anon_vma.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hanon_vma_clone (C function)c.anon_vma_clonehNtauh1hhjhhhNhNubh)}(hhh](h)}(hiint anon_vma_clone (struct vm_area_struct *dst, struct vm_area_struct *src, enum vma_operation operation)h]h)}(hhint anon_vma_clone(struct vm_area_struct *dst, struct vm_area_struct *src, enum vma_operation operation)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM%ubh)}(hanon_vma_cloneh]j)}(hanon_vma_cloneh]hanon_vma_clone}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM%ubj )}(hV(struct vm_area_struct *dst, struct vm_area_struct *src, enum vma_operation operation)h](j )}(hstruct vm_area_struct *dsth](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.anon_vma_cloneasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hdsth]hdst}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *srch](j5)}(hj8h]hstruct}(hjEhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjemodnameN classnameNjpjs)}jv]j c.anon_vma_cloneasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjAubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum vma_operation operationh](j5)}(hjEh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h vma_operationh]h vma_operation}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j c.anon_vma_cloneasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h operationh]h operation}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM%ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM%ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM%hjhhubj4)}(hhh]jM)}(hEstablishes new anon_vma_chain objects in **dst** linking to all of the anon_vma objects contained within **src** anon_vma_chain's.h](h*Establishes new anon_vma_chain objects in }(hj)hhhNhNubj)}(h**dst**h]hdst}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh9 linking to all of the anon_vma objects contained within }(hj)hhhNhNubj)}(h**src**h]hsrc}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh anon_vma_chain’s.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM%hj&hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM%ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjejHjejIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_area_struct *dst`` The destination VMA with an empty anon_vma_chain. ``struct vm_area_struct *src`` The source VMA we wish to duplicate. ``enum vma_operation operation`` The type of operation which resulted in the clone. **Description** This is the heart of the VMA side of the anon_vma implementation - we invoke this function whenever we need to set up a new VMA's anon_vma state. This is invoked for: - VMA Merge, but only when **dst** is unfaulted and **src** is faulted - meaning we clone **src** into **dst**. - VMA split. - VMA (m)remap. - Fork of faulted VMA. In all cases other than fork this is simply a duplication. Fork additionally adds a new active anon_vma. ONLY in the case of fork do we try to 'reuse' existing anon_vma's in an anon_vma hierarchy, reusing anon_vma's which have no VMA associated with them but do have a single child. This is to avoid waste of memory when repeatedly forking. **Return** 0 on success, -ENOMEM on failure.h](jM)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM)hjiubj)}(hhh](j)}(hQ``struct vm_area_struct *dst`` The destination VMA with an empty anon_vma_chain. h](j)}(h``struct vm_area_struct *dst``h]jS)}(hjh]hstruct vm_area_struct *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM'hjubj)}(hhh]jM)}(h1The destination VMA with an empty anon_vma_chain.h]h1The destination VMA with an empty anon_vma_chain.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM'hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjubj)}(hD``struct vm_area_struct *src`` The source VMA we wish to duplicate. h](j)}(h``struct vm_area_struct *src``h]jS)}(hjh]hstruct vm_area_struct *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM(hjubj)}(hhh]jM)}(h$The source VMA we wish to duplicate.h]h$The source VMA we wish to duplicate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjubj)}(hT``enum vma_operation operation`` The type of operation which resulted in the clone. h](j)}(h ``enum vma_operation operation``h]jS)}(hjh]henum vma_operation operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM)hjubj)}(hhh]jM)}(h2The type of operation which resulted in the clone.h]h2The type of operation which resulted in the clone.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjubeh}(h]h ]h"]h$]h&]uh1jhjiubjM)}(h**Description**h]j)}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM+hjiubjM)}(hThis is the heart of the VMA side of the anon_vma implementation - we invoke this function whenever we need to set up a new VMA's anon_vma state.h]hThis is the heart of the VMA side of the anon_vma implementation - we invoke this function whenever we need to set up a new VMA’s anon_vma state.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM*hjiubjM)}(hThis is invoked for:h]hThis is invoked for:}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM-hjiubj~W)}(hhh](j/)}(hmVMA Merge, but only when **dst** is unfaulted and **src** is faulted - meaning we clone **src** into **dst**.h]jM)}(hmVMA Merge, but only when **dst** is unfaulted and **src** is faulted - meaning we clone **src** into **dst**.h](hVMA Merge, but only when }(hjvhhhNhNubj)}(h**dst**h]hdst}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh is unfaulted and }(hjvhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh is faulted - meaning we clone }(hjvhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh into }(hjvhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM/hjrubah}(h]h ]h"]h$]h&]uh1j/hjoubj/)}(h VMA split.h]jM)}(hjh]h VMA split.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM1hjubah}(h]h ]h"]h$]h&]uh1j/hjoubj/)}(h VMA (m)remap.h]jM)}(hjh]h VMA (m)remap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM2hjubah}(h]h ]h"]h$]h&]uh1j/hjoubj/)}(hFork of faulted VMA. h]jM)}(hFork of faulted VMA.h]hFork of faulted VMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM3hjubah}(h]h ]h"]h$]h&]uh1j/hjoubeh}(h]h ]h"]h$]h&]jWjWuh1j}WhjhM/hjiubjM)}(hhIn all cases other than fork this is simply a duplication. Fork additionally adds a new active anon_vma.h]hhIn all cases other than fork this is simply a duplication. Fork additionally adds a new active anon_vma.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM5hjiubjM)}(hONLY in the case of fork do we try to 'reuse' existing anon_vma's in an anon_vma hierarchy, reusing anon_vma's which have no VMA associated with them but do have a single child. This is to avoid waste of memory when repeatedly forking.h]hONLY in the case of fork do we try to ‘reuse’ existing anon_vma’s in an anon_vma hierarchy, reusing anon_vma’s which have no VMA associated with them but do have a single child. This is to avoid waste of memory when repeatedly forking.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM8hjiubjM)}(h **Return**h]j)}(hjBh]hReturn}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM=hjiubjM)}(h!0 on success, -ENOMEM on failure.h]h!0 on success, -ENOMEM on failure.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM>hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hunlink_anon_vmas (C function)c.unlink_anon_vmashNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void unlink_anon_vmas (struct vm_area_struct *vma)h]h)}(h1void unlink_anon_vmas(struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hunlink_anon_vmash]j)}(hunlink_anon_vmash]hunlink_anon_vmas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(struct vm_area_struct *vma)h]j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.unlink_anon_vmasasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jzah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhj|hhubj4)}(hhh]jM)}(hNremove all links between a VMA and anon_vma's, freeing anon_vma_chain objects.h]hPremove all links between a VMA and anon_vma’s, freeing anon_vma_chain objects.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjDhhubah}(h]h ]h"]h$]h&]uh1j3hj|hhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj_jHj_jIjJjKuh1hhhhjhNhNubj)}(hXK**Parameters** ``struct vm_area_struct *vma`` The VMA whose links to anon_vma objects is to be severed. **Description** As part of the process anon_vma_chain's are freed, anon_vma->num_children,num_active_vmas is updated as required and, if the relevant anon_vma references no further VMAs, its reference count is decremented.h](jM)}(h**Parameters**h]j)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjcubj)}(hhh]j)}(hY``struct vm_area_struct *vma`` The VMA whose links to anon_vma objects is to be severed. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(h9The VMA whose links to anon_vma objects is to be severed.h]h9The VMA whose links to anon_vma objects is to be severed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjcubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjcubjM)}(hAs part of the process anon_vma_chain's are freed, anon_vma->num_children,num_active_vmas is updated as required and, if the relevant anon_vma references no further VMAs, its reference count is decremented.h]hAs part of the process anon_vma_chain’s are freed, anon_vma->num_children,num_active_vmas is updated as required and, if the relevant anon_vma references no further VMAs, its reference count is decremented.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h page_address_in_vma (C function)c.page_address_in_vmahNtauh1hhjhhhNhNubh)}(hhh](h)}(hxunsigned long page_address_in_vma (const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)h]h)}(hwunsigned long page_address_in_vma(const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMGubj)}(hlongh]hlong}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMGubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMGubh)}(hpage_address_in_vmah]j)}(hpage_address_in_vmah]hpage_address_in_vma}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMGubj )}(hV(const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjahhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj]ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj5)}(hj8h]hstruct}(hj|hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljGsbc.page_address_in_vmaasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj]ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj)modnameN classnameNjpjs)}jv]jc.page_address_in_vmaasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjShhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(h const struct vm_area_struct *vmah](j5)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.page_address_in_vmaasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjuubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMGubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMGubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMGhjhhubj4)}(hhh]jM)}(h*The virtual address of a page in this VMA.h]h*The virtual address of a page in this VMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMGhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMGubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj-jHj-jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``const struct folio *folio`` The folio containing the page. ``const struct page *page`` The page within the folio. ``const struct vm_area_struct *vma`` The VMA we need to know the address in. **Description** Calculates the user virtual address of this page in the specified VMA. It is the caller's responsibility to check the page is actually within the VMA. There may not currently be a PTE pointing at this page, but if a page fault occurs at this address, this is the page which will be accessed. **Context** Caller should hold a reference to the folio. Caller should hold a lock (eg the i_mmap_lock or the mmap_lock) which keeps the VMA from being altered. **Return** The virtual address corresponding to this page in the VMA.h](jM)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMKhj1ubj)}(hhh](j)}(h=``const struct folio *folio`` The folio containing the page. h](j)}(h``const struct folio *folio``h]jS)}(hjVh]hconst struct folio *folio}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjTubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMHhjPubj)}(hhh]jM)}(hThe folio containing the page.h]hThe folio containing the page.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjkhMHhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMHhjMubj)}(h7``const struct page *page`` The page within the folio. h](j)}(h``const struct page *page``h]jS)}(hjh]hconst struct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMIhjubj)}(hhh]jM)}(hThe page within the folio.h]hThe page within the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjMubj)}(hM``const struct vm_area_struct *vma`` The VMA we need to know the address in. h](j)}(h$``const struct vm_area_struct *vma``h]jS)}(hjh]h const struct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMJhjubj)}(hhh]jM)}(h'The VMA we need to know the address in.h]h'The VMA we need to know the address in.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjMubeh}(h]h ]h"]h$]h&]uh1jhj1ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMLhj1ubjM)}(hX$Calculates the user virtual address of this page in the specified VMA. It is the caller's responsibility to check the page is actually within the VMA. There may not currently be a PTE pointing at this page, but if a page fault occurs at this address, this is the page which will be accessed.h]hX&Calculates the user virtual address of this page in the specified VMA. It is the caller’s responsibility to check the page is actually within the VMA. There may not currently be a PTE pointing at this page, but if a page fault occurs at this address, this is the page which will be accessed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMKhj1ubjM)}(h **Context**h]j)}(hj*h]hContext}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMQhj1ubjM)}(hCaller should hold a reference to the folio. Caller should hold a lock (eg the i_mmap_lock or the mmap_lock) which keeps the VMA from being altered.h]hCaller should hold a reference to the folio. Caller should hold a lock (eg the i_mmap_lock or the mmap_lock) which keeps the VMA from being altered.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMRhj1ubjM)}(h **Return**h]j)}(hjQh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMVhj1ubjM)}(h:The virtual address corresponding to this page in the VMA.h]h:The virtual address corresponding to this page in the VMA.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMVhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_referenced (C function)c.folio_referencedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hiint folio_referenced (struct folio *folio, int is_locked, struct mem_cgroup *memcg, vm_flags_t *vm_flags)h]h)}(hhint folio_referenced(struct folio *folio, int is_locked, struct mem_cgroup *memcg, vm_flags_t *vm_flags)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_referencedh]j)}(hfolio_referencedh]hfolio_referenced}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hT(struct folio *folio, int is_locked, struct mem_cgroup *memcg, vm_flags_t *vm_flags)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_referencedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int is_lockedh](j)}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h is_lockedh]h is_locked}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hjzhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j c.folio_referencedasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjvubj)}(hmemcgh]hmemcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hvm_flags_t *vm_flagsh](h)}(hhh]j)}(h vm_flags_th]h vm_flags_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j c.folio_referencedasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvm_flagsh]hvm_flags}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h!Test if the folio was referenced.h]h!Test if the folio was referenced.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjMhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjhjHjhjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to test. ``int is_locked`` Caller holds lock on the folio. ``struct mem_cgroup *memcg`` target memory cgroup ``vm_flags_t *vm_flags`` A combination of all the vma->vm_flags which referenced the folio. **Description** Quick test_and_clear_referenced for all mappings of a folio, **Return** The number of mappings which referenced the folio. Return -1 if the function bailed out due to rmap lock contention.h](jM)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM!hjlubj)}(hhh](j)}(h+``struct folio *folio`` The folio to test. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hThe folio to test.h]hThe folio to test.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``int is_locked`` Caller holds lock on the folio. h](j)}(h``int is_locked``h]jS)}(hjh]h int is_locked}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hCaller holds lock on the folio.h]hCaller holds lock on the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``struct mem_cgroup *memcg`` target memory cgroup h](j)}(h``struct mem_cgroup *memcg``h]jS)}(hjh]hstruct mem_cgroup *memcg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubj)}(hhh]jM)}(htarget memory cgrouph]htarget memory cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h\``vm_flags_t *vm_flags`` A combination of all the vma->vm_flags which referenced the folio. h](j)}(h``vm_flags_t *vm_flags``h]jS)}(hj<h]hvm_flags_t *vm_flags}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM!hj6ubj)}(hhh]jM)}(hBA combination of all the vma->vm_flags which referenced the folio.h]hBA combination of all the vma->vm_flags which referenced the folio.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhM!hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM!hjubeh}(h]h ]h"]h$]h&]uh1jhjlubjM)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM#hjlubjM)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj@modnameN classnameNjpjs)}jv]jy)}jljsbc.mapping_wrprotect_rangeasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t pgoffh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jZc.mapping_wrprotect_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpgoffh]hpgoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hlongh]hlong}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hnr_pagesh]hnr_pages}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h0Write-protect all mappings in a specified range.h]h0Write-protect all mappings in a specified range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The mapping whose reverse mapping should be traversed. ``pgoff_t pgoff`` The page offset at which **pfn** is mapped within **mapping**. ``unsigned long pfn`` The PFN of the page mapped in **mapping** at **pgoff**. ``unsigned long nr_pages`` The number of physically contiguous base pages spanned. **Description** Traverses the reverse mapping, finding all VMAs which contain a shared mapping of the pages in the specified range in **mapping**, and write-protects them (that is, updates the page tables to mark the mappings read-only such that a write protection fault arises when the mappings are written to). The **pfn** value need not refer to a folio, but rather can reference a kernel allocation which is mapped into userland. We therefore do not require that the page maps to a folio with a valid mapping or index field, rather the caller specifies these in **mapping** and **pgoff**. **Return** the number of write-protected PTEs, or an error.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh](j)}(hY``struct address_space *mapping`` The mapping whose reverse mapping should be traversed. h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(h6The mapping whose reverse mapping should be traversed.h]h6The mapping whose reverse mapping should be traversed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hQ``pgoff_t pgoff`` The page offset at which **pfn** is mapped within **mapping**. h](j)}(h``pgoff_t pgoff``h]jS)}(hjh]h pgoff_t pgoff}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(h>The page offset at which **pfn** is mapped within **mapping**.h](hThe page offset at which }(hj hhhNhNubj)}(h**pfn**h]hpfn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is mapped within }(hj hhhNhNubj)}(h **mapping**h]hmapping}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hN``unsigned long pfn`` The PFN of the page mapped in **mapping** at **pgoff**. h](j)}(h``unsigned long pfn``h]jS)}(hjdh]hunsigned long pfn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj^ubj)}(hhh]jM)}(h7The PFN of the page mapped in **mapping** at **pgoff**.h](hThe PFN of the page mapped in }(hj}hhhNhNubj)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh at }(hj}hhhNhNubj)}(h **pgoff**h]hpgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubj)}(hS``unsigned long nr_pages`` The number of physically contiguous base pages spanned. h](j)}(h``unsigned long nr_pages``h]jS)}(hjh]hunsigned long nr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(h7The number of physically contiguous base pages spanned.h]h7The number of physically contiguous base pages spanned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubjM)}(hX(Traverses the reverse mapping, finding all VMAs which contain a shared mapping of the pages in the specified range in **mapping**, and write-protects them (that is, updates the page tables to mark the mappings read-only such that a write protection fault arises when the mappings are written to).h](hvTraverses the reverse mapping, finding all VMAs which contain a shared mapping of the pages in the specified range in }(hjhhhNhNubj)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, and write-protects them (that is, updates the page tables to mark the mappings read-only such that a write protection fault arises when the mappings are written to).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubjM)}(hXThe **pfn** value need not refer to a folio, but rather can reference a kernel allocation which is mapped into userland. We therefore do not require that the page maps to a folio with a valid mapping or index field, rather the caller specifies these in **mapping** and **pgoff**.h](hThe }(hj3hhhNhNubj)}(h**pfn**h]hpfn}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh value need not refer to a folio, but rather can reference a kernel allocation which is mapped into userland. We therefore do not require that the page maps to a folio with a valid mapping or index field, rather the caller specifies these in }(hj3hhhNhNubj)}(h **mapping**h]hmapping}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh and }(hj3hhhNhNubj)}(h **pgoff**h]hpgoff}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubjM)}(h **Return**h]j)}(hjzh]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubjM)}(h0the number of write-protected PTEs, or an error.h]h0the number of write-protected PTEs, or an error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpfn_mkclean_range (C function)c.pfn_mkclean_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hlint pfn_mkclean_range (unsigned long pfn, unsigned long nr_pages, pgoff_t pgoff, struct vm_area_struct *vma)h]h)}(hkint pfn_mkclean_range(unsigned long pfn, unsigned long nr_pages, pgoff_t pgoff, struct vm_area_struct *vma)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpfn_mkclean_rangeh]j)}(hpfn_mkclean_rangeh]hpfn_mkclean_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hV(unsigned long pfn, unsigned long nr_pages, pgoff_t pgoff, struct vm_area_struct *vma)h](j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hlongh]hlong}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t pgoffh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.pfn_mkclean_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpgoffh]hpgoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.pfn_mkclean_rangeasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj2hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hCleans the PTEs (including PMDs) mapped with range of [**pfn**, **pfn** + **nr_pages**) at the specific offset (**pgoff**) within the **vma** of shared mappings. And since clean PTEs should also be readonly, write protects them too.h](h7Cleans the PTEs (including PMDs) mapped with range of [}(hjihhhNhNubj)}(h**pfn**h]hpfn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh, }(hjihhhNhNubj)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh + }(hjihhhNhNubj)}(h **nr_pages**h]hnr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh) at the specific offset (}(hjihhhNhNubj)}(h **pgoff**h]hpgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh ) within the }(hjihhhNhNubj)}(h**vma**h]hvma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh[ of shared mappings. And since clean PTEs should also be readonly, write protects them too.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjfhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXU**Parameters** ``unsigned long pfn`` start pfn. ``unsigned long nr_pages`` number of physically contiguous pages srarting with **pfn**. ``pgoff_t pgoff`` page offset that the **pfn** mapped with. ``struct vm_area_struct *vma`` vma that **pfn** mapped within. **Description** Returns the number of cleaned PTEs (including PMDs).h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh](j)}(h!``unsigned long pfn`` start pfn. h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(h start pfn.h]h start pfn.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hX``unsigned long nr_pages`` number of physically contiguous pages srarting with **pfn**. h](j)}(h``unsigned long nr_pages``h]jS)}(hj=h]hunsigned long nr_pages}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj7ubj)}(hhh]jM)}(hhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj^modnameN classnameNjpjs)}jv]jc.__folio_set_anonasbuh1hhj:ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj:ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hbool exclusiveh](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h exclusiveh]h exclusive}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h'set up a new anonymous rmap for a folioh]h'set up a new anonymous rmap for a folio}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjAhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj\jHj\jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to set up the new anonymous rmap for. ``struct vm_area_struct *vma`` VM area to add the folio to. ``unsigned long address`` User virtual address of the mapping ``bool exclusive`` Whether the folio is exclusive to the process.h](jM)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj`ubj)}(hhh](j)}(hH``struct folio *folio`` The folio to set up the new anonymous rmap for. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(h/The folio to set up the new anonymous rmap for.h]h/The folio to set up the new anonymous rmap for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj|ubj)}(h<``struct vm_area_struct *vma`` VM area to add the folio to. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hVM area to add the folio to.h]hVM area to add the folio to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj|ubj)}(h>``unsigned long address`` User virtual address of the mapping h](j)}(h``unsigned long address``h]jS)}(hjh]hunsigned long address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(h#User virtual address of the mappingh]h#User virtual address of the mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj|ubj)}(hA``bool exclusive`` Whether the folio is exclusive to the process.h](j)}(h``bool exclusive``h]jS)}(hj0h]hbool exclusive}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj*ubj)}(hhh]jM)}(h.Whether the folio is exclusive to the process.h]h.Whether the folio is exclusive to the process.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj|ubeh}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__page_check_anon_rmap (C function)c.__page_check_anon_rmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid __page_check_anon_rmap (const struct folio *folio, const struct page *page, struct vm_area_struct *vma, unsigned long address)h]h)}(hvoid __page_check_anon_rmap(const struct folio *folio, const struct page *page, struct vm_area_struct *vma, unsigned long address)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h__page_check_anon_rmaph]j)}(h__page_check_anon_rmaph]h__page_check_anon_rmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hg(const struct folio *folio, const struct page *page, struct vm_area_struct *vma, unsigned long address)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.__page_check_anon_rmapasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj.hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjThhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj5)}(hj8h]hstruct}(hjohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjPubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__page_check_anon_rmapasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjPubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__page_check_anon_rmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj)hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hlongh]hlong}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]j}ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h$sanity check anonymous rmap additionh]h$sanity check anonymous rmap addition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``const struct folio *folio`` The folio containing **page**. ``const struct page *page`` the page to check the mapping of ``struct vm_area_struct *vma`` the vm area in which the mapping is added ``unsigned long address`` the user virtual address mappedh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh](j)}(h=``const struct folio *folio`` The folio containing **page**. h](j)}(h``const struct folio *folio``h]jS)}(hjh]hconst struct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hThe folio containing **page**.h](hThe folio containing }(hj hhhNhNubj)}(h**page**h]hpage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h=``const struct page *page`` the page to check the mapping of h](j)}(h``const struct page *page``h]jS)}(hj=h]hconst struct page *page}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj7ubj)}(hhh]jM)}(h the page to check the mapping ofh]h the page to check the mapping of}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubj)}(hI``struct vm_area_struct *vma`` the vm area in which the mapping is added h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjvh]hstruct vm_area_struct *vma}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjpubj)}(hhh]jM)}(h)the vm area in which the mapping is addedh]h)the vm area in which the mapping is added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``unsigned long address`` the user virtual address mappedh](j)}(h``unsigned long address``h]jS)}(hjh]hunsigned long address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hthe user virtual address mappedh]hthe user virtual address mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%folio_add_anon_rmap_ptes (C function)c.folio_add_anon_rmap_pteshNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid folio_add_anon_rmap_ptes (struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h]h)}(hvoid folio_add_anon_rmap_ptes(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM,ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM,ubh)}(hfolio_add_anon_rmap_ptesh]j)}(hfolio_add_anon_rmap_ptesh]hfolio_add_anon_rmap_ptes}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM,ubj )}(hw(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjFhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(hfolioh]hfolio}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjfmodnameN classnameNjpjs)}jv]jy)}jlj,sbc.folio_add_anon_rmap_ptesasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjBubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_add_anon_rmap_ptesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubj )}(h int nr_pagesh](j)}(hinth]hint}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hnr_pagesh]hnr_pages}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj]hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jc.folio_add_anon_rmap_ptesasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjYubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubj )}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubj )}(h rmap_t flagsh](h)}(hhh]j)}(hrmap_th]hrmap_t}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj#modnameN classnameNjpjs)}jv]jc.folio_add_anon_rmap_ptesasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM,ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM,ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM,hjhhubj4)}(hhh]jM)}(h1add PTE mappings to a page range of an anon folioh]h1add PTE mappings to a page range of an anon folio}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM,hjthhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM,ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to add the mappings to ``struct page *page`` The first page to add ``int nr_pages`` The number of pages which will be mapped ``struct vm_area_struct *vma`` The vm area in which the mappings are added ``unsigned long address`` The user virtual address of the first page to map ``rmap_t flags`` The rmap flags **Description** The page range of folio is defined by [first_page, first_page + nr_pages) The caller needs to hold the page table lock, and the page must be locked in the anon_vma case: to serialize mapping,index checking after setting, and to ensure that an anon folio is not being upgraded racily to a KSM folio (but KSM folios are never downgraded).h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM0hjubj)}(hhh](j)}(h9``struct folio *folio`` The folio to add the mappings to h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM-hjubj)}(hhh]jM)}(h The folio to add the mappings toh]h The folio to add the mappings to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM.hjubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjubj)}(h:``int nr_pages`` The number of pages which will be mapped h](j)}(h``int nr_pages``h]jS)}(hj*h]h int nr_pages}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM/hj$ubj)}(hhh]jM)}(h(The number of pages which will be mappedh]h(The number of pages which will be mapped}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj?hM/hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hM/hjubj)}(hK``struct vm_area_struct *vma`` The vm area in which the mappings are added h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjch]hstruct vm_area_struct *vma}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM0hj]ubj)}(hhh]jM)}(h+The vm area in which the mappings are addedh]h+The vm area in which the mappings are added}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhM0hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM0hjubj)}(hL``unsigned long address`` The user virtual address of the first page to map h](j)}(h``unsigned long address``h]jS)}(hjh]hunsigned long address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM1hjubj)}(hhh]jM)}(h1The user virtual address of the first page to maph]h1The user virtual address of the first page to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubj)}(h ``rmap_t flags`` The rmap flags h](j)}(h``rmap_t flags``h]jS)}(hjh]h rmap_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM2hjubj)}(hhh]jM)}(hThe rmap flagsh]hThe rmap flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM4hjubjM)}(hIThe page range of folio is defined by [first_page, first_page + nr_pages)h]hIThe page range of folio is defined by [first_page, first_page + nr_pages)}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM3hjubjM)}(hXThe caller needs to hold the page table lock, and the page must be locked in the anon_vma case: to serialize mapping,index checking after setting, and to ensure that an anon folio is not being upgraded racily to a KSM folio (but KSM folios are never downgraded).h]hXThe caller needs to hold the page table lock, and the page must be locked in the anon_vma case: to serialize mapping,index checking after setting, and to ensure that an anon folio is not being upgraded racily to a KSM folio (but KSM folios are never downgraded).}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM5hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_add_anon_rmap_pmd (C function)c.folio_add_anon_rmap_pmdhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid folio_add_anon_rmap_pmd (struct folio *folio, struct page *page, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h]h)}(hvoid folio_add_anon_rmap_pmd(struct folio *folio, struct page *page, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j)}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMDubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhjrhMDubh)}(hfolio_add_anon_rmap_pmdh]j)}(hfolio_add_anon_rmap_pmdh]hfolio_add_anon_rmap_pmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj`hhhjrhMDubj )}(hi(struct folio *folio, struct page *page, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_add_anon_rmap_pmdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3modnameN classnameNjpjs)}jv]jc.folio_add_anon_rmap_pmdasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj]hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_add_anon_rmap_pmdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddressh]haddress}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h rmap_t flagsh](h)}(hhh]j)}(hrmap_th]hrmap_t}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjImodnameN classnameNjpjs)}jv]jc.folio_add_anon_rmap_pmdasbuh1hhj@ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hflagsh]hflags}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj`hhhjrhMDubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj\hhhjrhMDubah}(h]jWah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjrhMDhjYhhubj4)}(hhh]jM)}(h2add a PMD mapping to a page range of an anon folioh]h2add a PMD mapping to a page range of an anon folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMDhjhhubah}(h]h ]h"]h$]h&]uh1j3hjYhhhjrhMDubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX***Parameters** ``struct folio *folio`` The folio to add the mapping to ``struct page *page`` The first page to add ``struct vm_area_struct *vma`` The vm area in which the mapping is added ``unsigned long address`` The user virtual address of the first page to map ``rmap_t flags`` The rmap flags **Description** The page range of folio is defined by [first_page, first_page + HPAGE_PMD_NR) The caller needs to hold the page table lock, and the page must be locked in the anon_vma case: to serialize mapping,index checking after setting.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMHhjubj)}(hhh](j)}(h8``struct folio *folio`` The folio to add the mapping to h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMEhjubj)}(hhh]jM)}(hThe folio to add the mapping toh]hThe folio to add the mapping to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMEhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMEhjubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMFhjubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,hMFhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMFhjubj)}(hI``struct vm_area_struct *vma`` The vm area in which the mapping is added h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjPh]hstruct vm_area_struct *vma}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMGhjJubj)}(hhh]jM)}(h)The vm area in which the mapping is addedh]h)The vm area in which the mapping is added}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehMGhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMGhjubj)}(hL``unsigned long address`` The user virtual address of the first page to map h](j)}(h``unsigned long address``h]jS)}(hjh]hunsigned long address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMHhjubj)}(hhh]jM)}(h1The user virtual address of the first page to maph]h1The user virtual address of the first page to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubj)}(h ``rmap_t flags`` The rmap flags h](j)}(h``rmap_t flags``h]jS)}(hjh]h rmap_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMIhjubj)}(hhh]jM)}(hThe rmap flagsh]hThe rmap flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMKhjubjM)}(hMThe page range of folio is defined by [first_page, first_page + HPAGE_PMD_NR)h]hMThe page range of folio is defined by [first_page, first_page + HPAGE_PMD_NR)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMJhjubjM)}(hThe caller needs to hold the page table lock, and the page must be locked in the anon_vma case: to serialize mapping,index checking after setting.h]hThe caller needs to hold the page table lock, and the page must be locked in the anon_vma case: to serialize mapping,index checking after setting.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMLhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_add_new_anon_rmap (C function)c.folio_add_new_anon_rmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hsvoid folio_add_new_anon_rmap (struct folio *folio, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h]h)}(hrvoid folio_add_new_anon_rmap(struct folio *folio, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j)}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM\ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj_hM\ubh)}(hfolio_add_new_anon_rmaph]j)}(hfolio_add_new_anon_rmaph]hfolio_add_new_anon_rmap}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1hhjMhhhj_hM\ubj )}(hV(struct folio *folio, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljtsbc.folio_add_new_anon_rmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jc.folio_add_new_anon_rmapasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjJhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h rmap_t flagsh](h)}(hhh]j)}(hrmap_th]hrmap_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_add_new_anon_rmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjMhhhj_hM\ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjIhhhj_hM\ubah}(h]jDah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj_hM\hjFhhubj4)}(hhh]jM)}(h%Add mapping to a new anonymous folio.h]h%Add mapping to a new anonymous folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM\hjhhubah}(h]h ]h"]h$]h&]uh1j3hjFhhhj_hM\ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj2jHj2jIjJjKuh1hhhhjhNhNubj)}(hXS**Parameters** ``struct folio *folio`` The folio to add the mapping to. ``struct vm_area_struct *vma`` the vm area in which the mapping is added ``unsigned long address`` the user virtual address mapped ``rmap_t flags`` The rmap flags **Description** Like folio_add_anon_rmap_*() but must only be called on *new* folios. This means the inc-and-test can be bypassed. The folio doesn't necessarily need to be locked while it's exclusive unless two threads map it concurrently. However, the folio must be locked if it's shared. If the folio is pmd-mappable, it is accounted as a THP.h](jM)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM`hj6ubj)}(hhh](j)}(h9``struct folio *folio`` The folio to add the mapping to. h](j)}(h``struct folio *folio``h]jS)}(hj[h]hstruct folio *folio}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM]hjUubj)}(hhh]jM)}(h The folio to add the mapping to.h]h The folio to add the mapping to.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphM]hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphM]hjRubj)}(hI``struct vm_area_struct *vma`` the vm area in which the mapping is added h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM^hjubj)}(hhh]jM)}(h)the vm area in which the mapping is addedh]h)the vm area in which the mapping is added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM^hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjRubj)}(h:``unsigned long address`` the user virtual address mapped h](j)}(h``unsigned long address``h]jS)}(hjh]hunsigned long address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM_hjubj)}(hhh]jM)}(hthe user virtual address mappedh]hthe user virtual address mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjRubj)}(h ``rmap_t flags`` The rmap flags h](j)}(h``rmap_t flags``h]jS)}(hjh]h rmap_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM`hjubj)}(hhh]jM)}(hThe rmap flagsh]hThe rmap flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubjM)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMbhj6ubjM)}(hXLike folio_add_anon_rmap_*() but must only be called on *new* folios. This means the inc-and-test can be bypassed. The folio doesn't necessarily need to be locked while it's exclusive unless two threads map it concurrently. However, the folio must be locked if it's shared.h](h8Like folio_add_anon_rmap_*() but must only be called on }(hjWhhhNhNubj_)}(h*new*h]hnew}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjWubh folios. This means the inc-and-test can be bypassed. The folio doesn’t necessarily need to be locked while it’s exclusive unless two threads map it concurrently. However, the folio must be locked if it’s shared.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMahj6ubjM)}(h7If the folio is pmd-mappable, it is accounted as a THP.h]h7If the folio is pmd-mappable, it is accounted as a THP.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMghj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%folio_add_file_rmap_ptes (C function)c.folio_add_file_rmap_pteshNtauh1hhjhhhNhNubh)}(hhh](h)}(hpvoid folio_add_file_rmap_ptes (struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h]h)}(hovoid folio_add_file_rmap_ptes(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_add_file_rmap_ptesh]j)}(hfolio_add_file_rmap_ptesh]hfolio_add_file_rmap_ptes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hR(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_add_file_rmap_ptesasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjVhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j)}(hpageh]hpage}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjvmodnameN classnameNjpjs)}jv]jc.folio_add_file_rmap_ptesasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjRubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int nr_pagesh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_add_file_rmap_ptesasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjEhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h+add PTE mappings to a page range of a folioh]h+add PTE mappings to a page range of a folio}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjyhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to add the mappings to ``struct page *page`` The first page to add ``int nr_pages`` The number of pages that will be mapped using PTEs ``struct vm_area_struct *vma`` The vm area in which the mappings are added **Description** The page range of the folio is defined by [page, page + nr_pages) The caller needs to hold the page table lock.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh](j)}(h9``struct folio *folio`` The folio to add the mappings to h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(h The folio to add the mappings toh]h The folio to add the mappings to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hD``int nr_pages`` The number of pages that will be mapped using PTEs h](j)}(h``int nr_pages``h]jS)}(hj/ h]h int nr_pages}(hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj- ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj) ubj)}(hhh]jM)}(h2The number of pages that will be mapped using PTEsh]h2The number of pages that will be mapped using PTEs}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjD hMhjE ubah}(h]h ]h"]h$]h&]uh1jhj) ubeh}(h]h ]h"]h$]h&]uh1jhjD hMhjubj)}(hK``struct vm_area_struct *vma`` The vm area in which the mappings are added h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh h]hstruct vm_area_struct *vma}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjf ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjb ubj)}(hhh]jM)}(h+The vm area in which the mappings are addedh]h+The vm area in which the mappings are added}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj} hMhj~ ubah}(h]h ]h"]h$]h&]uh1jhjb ubeh}(h]h ]h"]h$]h&]uh1jhj} hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubjM)}(hAThe page range of the folio is defined by [page, page + nr_pages)h]hAThe page range of the folio is defined by [page, page + nr_pages)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubjM)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_add_file_rmap_pmd (C function)c.folio_add_file_rmap_pmdhNtauh1hhjhhhNhNubh)}(hhh](h)}(havoid folio_add_file_rmap_pmd (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h`void folio_add_file_rmap_pmd(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubh)}(hfolio_add_file_rmap_pmdh]j)}(hfolio_add_file_rmap_pmdh]hfolio_add_file_rmap_pmd}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj hMubj )}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj4 hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj0 ubj)}(h h]h }(hjA hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0 ubh)}(hhh]j)}(hfolioh]hfolio}(hjR hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjT modnameN classnameNjpjs)}jv]jy)}jlj sbc.folio_add_file_rmap_pmdasbuh1hhj0 ubj)}(h h]h }(hjr hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0 ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj0 ubj)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0 ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj, ubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hpageh]hpage}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jn c.folio_add_file_rmap_pmdasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hpageh]hpage}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj, ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj# hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj4 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1 ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj6 modnameN classnameNjpjs)}jv]jn c.folio_add_file_rmap_pmdasbuh1hhj ubj)}(h h]h }(hjR hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hj` hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hvmah]hvma}(hjm hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj, ubeh}(h]h ]h"]h$]h&]jjuh1j hj hhhj hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj hMubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hMhj hhubj4)}(hhh]jM)}(h,add a PMD mapping to a page range of a folioh]h,add a PMD mapping to a page range of a folio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj hhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(hXK**Parameters** ``struct folio *folio`` The folio to add the mapping to ``struct page *page`` The first page to add ``struct vm_area_struct *vma`` The vm area in which the mapping is added **Description** The page range of the folio is defined by [page, page + HPAGE_PMD_NR) The caller needs to hold the page table lock.h](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj ubj)}(hhh](j)}(h8``struct folio *folio`` The folio to add the mapping to h](j)}(h``struct folio *folio``h]jS)}(hj h]hstruct folio *folio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj ubj)}(hhh]jM)}(hThe folio to add the mapping toh]hThe folio to add the mapping to}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hj h]hstruct page *page}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj ubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hj* hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj& hMhj' ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj& hMhj ubj)}(hI``struct vm_area_struct *vma`` The vm area in which the mapping is added h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjJ h]hstruct vm_area_struct *vma}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjH ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjD ubj)}(hhh]jM)}(h)The vm area in which the mapping is addedh]h)The vm area in which the mapping is added}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_ hMhj` ubah}(h]h ]h"]h$]h&]uh1jhjD ubeh}(h]h ]h"]h$]h&]uh1jhj_ hMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj ubjM)}(hEThe page range of the folio is defined by [page, page + HPAGE_PMD_NR)h]hEThe page range of the folio is defined by [page, page + HPAGE_PMD_NR)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj ubjM)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_add_file_rmap_pud (C function)c.folio_add_file_rmap_pudhNtauh1hhjhhhNhNubh)}(hhh](h)}(havoid folio_add_file_rmap_pud (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h`void folio_add_file_rmap_pud(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubh)}(hfolio_add_file_rmap_pudh]j)}(hfolio_add_file_rmap_pudh]hfolio_add_file_rmap_pud}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj hMubj )}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj# hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hfolioh]hfolio}(hj4 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1 ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj6 modnameN classnameNjpjs)}jv]jy)}jlj sbc.folio_add_file_rmap_pudasbuh1hhj ubj)}(h h]h }(hjT hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjb hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hfolioh]hfolio}(hjo hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hpageh]hpage}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jP c.folio_add_file_rmap_pudasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hpageh]hpage}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jP c.folio_add_file_rmap_pudasbuh1hhj ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hvmah]hvma}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubeh}(h]h ]h"]h$]h&]jjuh1j hj hhhj hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj hMubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hMhj hhubj4)}(hhh]jM)}(h,add a PUD mapping to a page range of a folioh]h,add a PUD mapping to a page range of a folio}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjvhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXK**Parameters** ``struct folio *folio`` The folio to add the mapping to ``struct page *page`` The first page to add ``struct vm_area_struct *vma`` The vm area in which the mapping is added **Description** The page range of the folio is defined by [page, page + HPAGE_PUD_NR) The caller needs to hold the page table lock.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh](j)}(h8``struct folio *folio`` The folio to add the mapping to h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hThe folio to add the mapping toh]hThe folio to add the mapping to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hI``struct vm_area_struct *vma`` The vm area in which the mapping is added h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj,h]hstruct vm_area_struct *vma}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj&ubj)}(hhh]jM)}(h)The vm area in which the mapping is addedh]h)The vm area in which the mapping is added}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubjM)}(hEThe page range of the folio is defined by [page, page + HPAGE_PUD_NR)h]hEThe page range of the folio is defined by [page, page + HPAGE_PUD_NR)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubjM)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#folio_remove_rmap_ptes (C function)c.folio_remove_rmap_pteshNtauh1hhjhhhNhNubh)}(hhh](h)}(hnvoid folio_remove_rmap_ptes (struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h]h)}(hmvoid folio_remove_rmap_ptes(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM_ubh)}(hfolio_remove_rmap_ptesh]j)}(hfolio_remove_rmap_ptesh]hfolio_remove_rmap_ptes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM_ubj )}(hR(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_remove_rmap_ptesasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j2c.folio_remove_rmap_ptesasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjfubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int nr_pagesh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj/modnameN classnameNjpjs)}jv]j2c.folio_remove_rmap_ptesasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjYhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hvmah]hvma}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM_ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM_ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM_hjhhubj4)}(hhh]jM)}(h0remove PTE mappings from a page range of a folioh]h0remove PTE mappings from a page range of a folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM_hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM_ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to remove the mappings from ``struct page *page`` The first page to remove ``int nr_pages`` The number of pages that will be removed from the mapping ``struct vm_area_struct *vma`` The vm area from which the mappings are removed **Description** The page range of the folio is defined by [page, page + nr_pages) The caller needs to hold the page table lock.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMchjubj)}(hhh](j)}(h>``struct folio *folio`` The folio to remove the mappings from h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM`hjubj)}(hhh]jM)}(h%The folio to remove the mappings fromh]h%The folio to remove the mappings from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjubj)}(h/``struct page *page`` The first page to remove h](j)}(h``struct page *page``h]jS)}(hj h]hstruct page *page}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMahjubj)}(hhh]jM)}(hThe first page to removeh]hThe first page to remove}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMahj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubj)}(hK``int nr_pages`` The number of pages that will be removed from the mapping h](j)}(h``int nr_pages``h]jS)}(hjCh]h int nr_pages}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMbhj=ubj)}(hhh]jM)}(h9The number of pages that will be removed from the mappingh]h9The number of pages that will be removed from the mapping}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXhMbhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMbhjubj)}(hO``struct vm_area_struct *vma`` The vm area from which the mappings are removed h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj|h]hstruct vm_area_struct *vma}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMchjvubj)}(hhh]jM)}(h/The vm area from which the mappings are removedh]h/The vm area from which the mappings are removed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMchjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMchjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMehjubjM)}(hAThe page range of the folio is defined by [page, page + nr_pages)h]hAThe page range of the folio is defined by [page, page + nr_pages)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMdhjubjM)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_remove_rmap_pmd (C function)c.folio_remove_rmap_pmdhNtauh1hhjhhhNhNubh)}(hhh](h)}(h_void folio_remove_rmap_pmd (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h^void folio_remove_rmap_pmd(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMpubh)}(hfolio_remove_rmap_pmdh]j)}(hfolio_remove_rmap_pmdh]hfolio_remove_rmap_pmd}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMpubj )}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjHhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j)}(hfolioh]hfolio}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjhmodnameN classnameNjpjs)}jv]jy)}jlj.sbc.folio_remove_rmap_pmdasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_remove_rmap_pmdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj*hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjJmodnameN classnameNjpjs)}jv]jc.folio_remove_rmap_pmdasbuh1hhj&ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjF )}(hjI h]h*}(hjthhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj&ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMpubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMpubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMphjhhubj4)}(hhh]jM)}(h1remove a PMD mapping from a page range of a folioh]h1remove a PMD mapping from a page range of a folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMphjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMpubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXW**Parameters** ``struct folio *folio`` The folio to remove the mapping from ``struct page *page`` The first page to remove ``struct vm_area_struct *vma`` The vm area from which the mapping is removed **Description** The page range of the folio is defined by [page, page + HPAGE_PMD_NR) The caller needs to hold the page table lock.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMthjubj)}(hhh](j)}(h=``struct folio *folio`` The folio to remove the mapping from h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMqhjubj)}(hhh]jM)}(h$The folio to remove the mapping fromh]h$The folio to remove the mapping from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjubj)}(h/``struct page *page`` The first page to remove h](j)}(h``struct page *page``h]jS)}(hj%h]hstruct page *page}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMrhjubj)}(hhh]jM)}(hThe first page to removeh]hThe first page to remove}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hMrhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMrhjubj)}(hM``struct vm_area_struct *vma`` The vm area from which the mapping is removed h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj^h]hstruct vm_area_struct *vma}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMshjXubj)}(hhh]jM)}(h-The vm area from which the mapping is removedh]h-The vm area from which the mapping is removed}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjshMshjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMshjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMuhjubjM)}(hEThe page range of the folio is defined by [page, page + HPAGE_PMD_NR)h]hEThe page range of the folio is defined by [page, page + HPAGE_PMD_NR)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMthjubjM)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMvhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_remove_rmap_pud (C function)c.folio_remove_rmap_pudhNtauh1hhjhhhNhNubh)}(hhh](h)}(h_void folio_remove_rmap_pud (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h^void folio_remove_rmap_pud(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_remove_rmap_pudh]j)}(hfolio_remove_rmap_pudh]hfolio_remove_rmap_pud}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj*hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]j)}(hfolioh]hfolio}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjJmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_remove_rmap_pudasbuh1hhj&ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjF )}(hjI h]h*}(hjvhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj&ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj"ubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jdc.folio_remove_rmap_pudasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj"ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,modnameN classnameNjpjs)}jv]jdc.folio_remove_rmap_pudasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjVhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj"ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h1remove a PUD mapping from a page range of a folioh]h1remove a PUD mapping from a page range of a folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXW**Parameters** ``struct folio *folio`` The folio to remove the mapping from ``struct page *page`` The first page to remove ``struct vm_area_struct *vma`` The vm area from which the mapping is removed **Description** The page range of the folio is defined by [page, page + HPAGE_PUD_NR) The caller needs to hold the page table lock.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh](j)}(h=``struct folio *folio`` The folio to remove the mapping from h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(h$The folio to remove the mapping fromh]h$The folio to remove the mapping from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``struct page *page`` The first page to remove h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hThe first page to removeh]hThe first page to remove}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hM``struct vm_area_struct *vma`` The vm area from which the mapping is removed h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj@h]hstruct vm_area_struct *vma}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj:ubj)}(hhh]jM)}(h-The vm area from which the mapping is removedh]h-The vm area from which the mapping is removed}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubjM)}(hEThe page range of the folio is defined by [page, page + HPAGE_PUD_NR)h]hEThe page range of the folio is defined by [page, page + HPAGE_PUD_NR)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubjM)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htry_to_unmap (C function)c.try_to_unmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(h=void try_to_unmap (struct folio *folio, enum ttu_flags flags)h]h)}(hvoid try_to_migrate(struct folio *folio, enum ttu_flags flags)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hM ubh)}(htry_to_migrateh]j)}(htry_to_migrateh]htry_to_migrate}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj!hM ubj )}(h+(struct folio *folio, enum ttu_flags flags)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjPhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]j)}(hfolioh]hfolio}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjpmodnameN classnameNjpjs)}jv]jy)}jlj6sbc.try_to_migrateasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjLubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubj )}(henum ttu_flags flagsh](j5)}(hjEh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h ttu_flagsh]h ttu_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.try_to_migrateasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj!hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj!hM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj!hM hjhhubj4)}(hhh]jM)}(h8try to replace all page table mappings with swap entriesh]h8try to replace all page table mappings with swap entries}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj3hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj!hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjNjHjNjIjJjKuh1hhhhjhNhNubj)}(hX)**Parameters** ``struct folio *folio`` the folio to replace page table entries for ``enum ttu_flags flags`` action and flags **Description** Tries to remove all the page table entries which are mapping this folio and replace them with special swap entries. Caller must hold the folio lock.h](jM)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjRubj)}(hhh](j)}(hD``struct folio *folio`` the folio to replace page table entries for h](j)}(h``struct folio *folio``h]jS)}(hjwh]hstruct folio *folio}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjqubj)}(hhh]jM)}(h+the folio to replace page table entries forh]h+the folio to replace page table entries for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhM hjnubj)}(h*``enum ttu_flags flags`` action and flags h](j)}(h``enum ttu_flags flags``h]jS)}(hjh]henum ttu_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubj)}(hhh]jM)}(haction and flagsh]haction and flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjnubeh}(h]h ]h"]h$]h&]uh1jhjRubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjRubjM)}(hTries to remove all the page table entries which are mapping this folio and replace them with special swap entries. Caller must hold the folio lock.h]hTries to remove all the page table entries which are mapping this folio and replace them with special swap entries. Caller must hold the folio lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"make_device_exclusive (C function)c.make_device_exclusivehNtauh1hhjhhhNhNubh)}(hhh](h)}(hrstruct page * make_device_exclusive (struct mm_struct *mm, unsigned long addr, void *owner, struct folio **foliop)h]h)}(hpstruct page *make_device_exclusive(struct mm_struct *mm, unsigned long addr, void *owner, struct folio **foliop)h](j5)}(hj8h]hstruct}(hj0hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj,hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj=hM ubh)}(hhh]j)}(hpageh]hpage}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjQmodnameN classnameNjpjs)}jv]jy)}jlmake_device_exclusivesbc.make_device_exclusiveasbuh1hhj,hhhj=hM ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj=hM ubjF )}(hjI h]h*}(hj~hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj,hhhj=hM ubh)}(hmake_device_exclusiveh]j)}(hjmh]hmake_device_exclusive}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj,hhhj=hM ubj )}(hN(struct mm_struct *mm, unsigned long addr, void *owner, struct folio **foliop)h](j )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jkc.make_device_exclusiveasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h void *ownerh](j)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjgubj)}(hownerh]howner}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio **folioph](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jkc.make_device_exclusiveasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioph]hfoliop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj,hhhj=hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj(hhhj=hM ubah}(h]j#ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj=hM hj%hhubj4)}(hhh]jM)}(h)Mark a page for exclusive use by a deviceh]h)Mark a page for exclusive use by a device}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj8hhubah}(h]h ]h"]h$]h&]uh1j3hj%hhhj=hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjSjHjSjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct mm_struct *mm`` mm_struct of associated target process ``unsigned long addr`` the virtual address to mark for exclusive device access ``void *owner`` passed to MMU_NOTIFY_EXCLUSIVE range notifier to allow filtering ``struct folio **foliop`` folio pointer will be stored here on success. **Description** This function looks up the page mapped at the given address, grabs a folio reference, locks the folio and replaces the PTE with special device-exclusive PFN swap entry, preventing access through the process page tables. The function will return with the folio locked and referenced. On fault, the device-exclusive entries are replaced with the original PTE under folio lock, after calling MMU notifiers. Only anonymous non-hugetlb folios are supported and the VMA must have write permissions such that we can fault in the anonymous page writable in order to mark it exclusive. The caller must hold the mmap_lock in read mode. A driver using this to program access from a device must use a mmu notifier critical section to hold a device specific lock during programming. Once programming is complete it should drop the folio lock and reference after which point CPU access to the page will revoke the exclusive access. **Notes** #. This function always operates on individual PTEs mapping individual pages. PMD-sized THPs are first remapped to be mapped by PTEs before the conversion happens on a single PTE corresponding to **addr**. #. While concurrent access through the process page tables is prevented, concurrent access through other page references (e.g., earlier GUP invocation) is not handled and not supported. #. device-exclusive entries are considered "clean" and "old" by core-mm. Device drivers must update the folio state when informed by MMU notifiers. **Return** pointer to mapped page on success, otherwise a negative error.h](jM)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjWubj)}(hhh](j)}(h@``struct mm_struct *mm`` mm_struct of associated target process h](j)}(h``struct mm_struct *mm``h]jS)}(hj|h]hstruct mm_struct *mm}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjvubj)}(hhh]jM)}(h&mm_struct of associated target processh]h&mm_struct of associated target process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhM hjsubj)}(hO``unsigned long addr`` the virtual address to mark for exclusive device access h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubj)}(hhh]jM)}(h7the virtual address to mark for exclusive device accessh]h7the virtual address to mark for exclusive device access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjsubj)}(hQ``void *owner`` passed to MMU_NOTIFY_EXCLUSIVE range notifier to allow filtering h](j)}(h``void *owner``h]jS)}(hjh]h void *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubj)}(hhh]jM)}(h@passed to MMU_NOTIFY_EXCLUSIVE range notifier to allow filteringh]h@passed to MMU_NOTIFY_EXCLUSIVE range notifier to allow filtering}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjsubj)}(hH``struct folio **foliop`` folio pointer will be stored here on success. h](j)}(h``struct folio **foliop``h]jS)}(hj' h]hstruct folio **foliop}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj% ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj! ubj)}(hhh]jM)}(h-folio pointer will be stored here on success.h]h-folio pointer will be stored here on success.}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj< hM hj= ubah}(h]h ]h"]h$]h&]uh1jhj! ubeh}(h]h ]h"]h$]h&]uh1jhj< hM hjsubeh}(h]h ]h"]h$]h&]uh1jhjWubjM)}(h**Description**h]j)}(hjb h]h Description}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj` ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjWubjM)}(hXThis function looks up the page mapped at the given address, grabs a folio reference, locks the folio and replaces the PTE with special device-exclusive PFN swap entry, preventing access through the process page tables. The function will return with the folio locked and referenced.h]hXThis function looks up the page mapped at the given address, grabs a folio reference, locks the folio and replaces the PTE with special device-exclusive PFN swap entry, preventing access through the process page tables. The function will return with the folio locked and referenced.}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjWubjM)}(hxOn fault, the device-exclusive entries are replaced with the original PTE under folio lock, after calling MMU notifiers.h]hxOn fault, the device-exclusive entries are replaced with the original PTE under folio lock, after calling MMU notifiers.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjWubjM)}(hOnly anonymous non-hugetlb folios are supported and the VMA must have write permissions such that we can fault in the anonymous page writable in order to mark it exclusive. The caller must hold the mmap_lock in read mode.h]hOnly anonymous non-hugetlb folios are supported and the VMA must have write permissions such that we can fault in the anonymous page writable in order to mark it exclusive. The caller must hold the mmap_lock in read mode.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjWubjM)}(hX#A driver using this to program access from a device must use a mmu notifier critical section to hold a device specific lock during programming. Once programming is complete it should drop the folio lock and reference after which point CPU access to the page will revoke the exclusive access.h]hX#A driver using this to program access from a device must use a mmu notifier critical section to hold a device specific lock during programming. Once programming is complete it should drop the folio lock and reference after which point CPU access to the page will revoke the exclusive access.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjWubjM)}(h **Notes**h]j)}(hj h]hNotes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjWubji)}(hX.#. This function always operates on individual PTEs mapping individual pages. PMD-sized THPs are first remapped to be mapped by PTEs before the conversion happens on a single PTE corresponding to **addr**. #. While concurrent access through the process page tables is prevented, concurrent access through other page references (e.g., earlier GUP invocation) is not handled and not supported. #. device-exclusive entries are considered "clean" and "old" by core-mm. Device drivers must update the folio state when informed by MMU notifiers. h]j/)}(hhh](j/)}(hThis function always operates on individual PTEs mapping individual pages. PMD-sized THPs are first remapped to be mapped by PTEs before the conversion happens on a single PTE corresponding to **addr**.h]jM)}(hThis function always operates on individual PTEs mapping individual pages. PMD-sized THPs are first remapped to be mapped by PTEs before the conversion happens on a single PTE corresponding to **addr**.h](hThis function always operates on individual PTEs mapping individual pages. PMD-sized THPs are first remapped to be mapped by PTEs before the conversion happens on a single PTE corresponding to }(hj hhhNhNubj)}(h**addr**h]haddr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj ubah}(h]h ]h"]h$]h&]uh1j/hj ubj/)}(hWhile concurrent access through the process page tables is prevented, concurrent access through other page references (e.g., earlier GUP invocation) is not handled and not supported.h]jM)}(hWhile concurrent access through the process page tables is prevented, concurrent access through other page references (e.g., earlier GUP invocation) is not handled and not supported.h]hWhile concurrent access through the process page tables is prevented, concurrent access through other page references (e.g., earlier GUP invocation) is not handled and not supported.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj ubah}(h]h ]h"]h$]h&]uh1j/hj ubj/)}(hdevice-exclusive entries are considered "clean" and "old" by core-mm. Device drivers must update the folio state when informed by MMU notifiers. h]jM)}(hdevice-exclusive entries are considered "clean" and "old" by core-mm. Device drivers must update the folio state when informed by MMU notifiers.h]hdevice-exclusive entries are considered “clean” and “old” by core-mm. Device drivers must update the folio state when informed by MMU notifiers.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj!ubah}(h]h ]h"]h$]h&]uh1j/hj ubeh}(h]h ]h"]h$]h&]j[0j\0j]0hj^0j_0uh1j/hj ubah}(h]h ]h"]h$]h&]uh1jhhj hM hjWubjM)}(h **Return**h]j)}(hj>!h]hReturn}(hj@!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpointer to mapped page on success, otherwise a negative error.h]h>pointer to mapped page on success, otherwise a negative error.}(hjT!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__rmap_walk_file (C function)c.__rmap_walk_filehNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid __rmap_walk_file (struct folio *folio, struct address_space *mapping, pgoff_t pgoff_start, unsigned long nr_pages, struct rmap_walk_control *rwc, bool locked)h]h)}(hvoid __rmap_walk_file(struct folio *folio, struct address_space *mapping, pgoff_t pgoff_start, unsigned long nr_pages, struct rmap_walk_control *rwc, bool locked)h](j)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj!hM ubh)}(h__rmap_walk_fileh]j)}(h__rmap_walk_fileh]h__rmap_walk_file}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj!hhhj!hM ubj )}(h(struct folio *folio, struct address_space *mapping, pgoff_t pgoff_start, unsigned long nr_pages, struct rmap_walk_control *rwc, bool locked)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj!hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hhh]j)}(hfolioh]hfolio}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj!modnameN classnameNjpjs)}jv]jy)}jlj!sbc.__rmap_walk_fileasbuh1hhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjF )}(hjI h]h*}(hj "hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubj)}(hfolioh]hfolio}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!ubj )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj2"hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj."ubj)}(h h]h }(hj?"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj."ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjP"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM"ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjR"modnameN classnameNjpjs)}jv]j!c.__rmap_walk_fileasbuh1hhj."ubj)}(h h]h }(hjn"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj."ubjF )}(hjI h]h*}(hj|"hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj."ubj)}(hmappingh]hmapping}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj."ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!ubj )}(hpgoff_t pgoff_starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj"modnameN classnameNjpjs)}jv]j!c.__rmap_walk_fileasbuh1hhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h pgoff_starth]h pgoff_start}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!ubj )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hlongh]hlong}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hnr_pagesh]hnr_pages}(hj"#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!ubj )}(hstruct rmap_walk_control *rwch](j5)}(hj8h]hstruct}(hj;#hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj7#ubj)}(h h]h }(hjH#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7#ubh)}(hhh]j)}(hrmap_walk_controlh]hrmap_walk_control}(hjY#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV#ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj[#modnameN classnameNjpjs)}jv]j!c.__rmap_walk_fileasbuh1hhj7#ubj)}(h h]h }(hjw#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7#ubjF )}(hjI h]h*}(hj#hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj7#ubj)}(hrwch]hrwc}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!ubj )}(h bool lockedh](j)}(hj.h]hbool}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hlockedh]hlocked}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!ubeh}(h]h ]h"]h$]h&]jjuh1j hj!hhhj!hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj{!hhhj!hM ubah}(h]jv!ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj!hM hjx!hhubj4)}(hhh]jM)}(hTraverse the reverse mapping for a file-backed mapping of a page mapped within a specified page cache object at a specified offset.h]hTraverse the reverse mapping for a file-backed mapping of a page mapped within a specified page cache object at a specified offset.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj#hhubah}(h]h ]h"]h$]h&]uh1j3hjx!hhhj!hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj$jHj$jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` Either the folio whose mappings to traverse, or if NULL, the callbacks specified in **rwc** will be configured such as to be able to look up mappings correctly. ``struct address_space *mapping`` The page cache object whose mapping VMAs we intend to traverse. If **folio** is non-NULL, this should be equal to folio_mapping(folio). ``pgoff_t pgoff_start`` The offset within **mapping** of the page which we are looking up. If **folio** is non-NULL, this should be equal to folio_pgoff(folio). ``unsigned long nr_pages`` The number of pages mapped by the mapping. If **folio** is non-NULL, this should be equal to folio_nr_pages(folio). ``struct rmap_walk_control *rwc`` The reverse mapping walk control object describing how the traversal should proceed. ``bool locked`` Is the **mapping** already locked? If not, we acquire the lock.h](jM)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj $ubj)}(hhh](j)}(h``struct folio *folio`` Either the folio whose mappings to traverse, or if NULL, the callbacks specified in **rwc** will be configured such as to be able to look up mappings correctly. h](j)}(h``struct folio *folio``h]jS)}(hj1$h]hstruct folio *folio}(hj3$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj/$ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj+$ubj)}(hhh]jM)}(hEither the folio whose mappings to traverse, or if NULL, the callbacks specified in **rwc** will be configured such as to be able to look up mappings correctly.h](hTEither the folio whose mappings to traverse, or if NULL, the callbacks specified in }(hjJ$hhhNhNubj)}(h**rwc**h]hrwc}(hjR$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ$ubhE will be configured such as to be able to look up mappings correctly.}(hjJ$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjG$ubah}(h]h ]h"]h$]h&]uh1jhj+$ubeh}(h]h ]h"]h$]h&]uh1jhjF$hM hj($ubj)}(h``struct address_space *mapping`` The page cache object whose mapping VMAs we intend to traverse. If **folio** is non-NULL, this should be equal to folio_mapping(folio). h](j)}(h!``struct address_space *mapping``h]jS)}(hj}$h]hstruct address_space *mapping}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj{$ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjw$ubj)}(hhh]jM)}(hThe page cache object whose mapping VMAs we intend to traverse. If **folio** is non-NULL, this should be equal to folio_mapping(folio).h](hCThe page cache object whose mapping VMAs we intend to traverse. If }(hj$hhhNhNubj)}(h **folio**h]hfolio}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh; is non-NULL, this should be equal to folio_mapping(folio).}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj$ubah}(h]h ]h"]h$]h&]uh1jhjw$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM hj($ubj)}(h``pgoff_t pgoff_start`` The offset within **mapping** of the page which we are looking up. If **folio** is non-NULL, this should be equal to folio_pgoff(folio). h](j)}(h``pgoff_t pgoff_start``h]jS)}(hj$h]hpgoff_t pgoff_start}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj$ubj)}(hhh]jM)}(hThe offset within **mapping** of the page which we are looking up. If **folio** is non-NULL, this should be equal to folio_pgoff(folio).h](hThe offset within }(hj$hhhNhNubj)}(h **mapping**h]hmapping}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh) of the page which we are looking up. If }(hj$hhhNhNubj)}(h **folio**h]hfolio}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh9 is non-NULL, this should be equal to folio_pgoff(folio).}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM hj($ubj)}(h``unsigned long nr_pages`` The number of pages mapped by the mapping. If **folio** is non-NULL, this should be equal to folio_nr_pages(folio). h](j)}(h``unsigned long nr_pages``h]jS)}(hj'%h]hunsigned long nr_pages}(hj)%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%%ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj!%ubj)}(hhh]jM)}(hsThe number of pages mapped by the mapping. If **folio** is non-NULL, this should be equal to folio_nr_pages(folio).h](h.The number of pages mapped by the mapping. If }(hj@%hhhNhNubj)}(h **folio**h]hfolio}(hjH%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@%ubh< is non-NULL, this should be equal to folio_nr_pages(folio).}(hj@%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj=%ubah}(h]h ]h"]h$]h&]uh1jhj!%ubeh}(h]h ]h"]h$]h&]uh1jhj<%hM hj($ubj)}(hw``struct rmap_walk_control *rwc`` The reverse mapping walk control object describing how the traversal should proceed. h](j)}(h!``struct rmap_walk_control *rwc``h]jS)}(hjs%h]hstruct rmap_walk_control *rwc}(hju%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjq%ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjm%ubj)}(hhh]jM)}(hTThe reverse mapping walk control object describing how the traversal should proceed.h]hTThe reverse mapping walk control object describing how the traversal should proceed.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj%ubah}(h]h ]h"]h$]h&]uh1jhjm%ubeh}(h]h ]h"]h$]h&]uh1jhj%hM hj($ubj)}(hO``bool locked`` Is the **mapping** already locked? If not, we acquire the lock.h](j)}(h``bool locked``h]jS)}(hj%h]h bool locked}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj%ubj)}(hhh]jM)}(h?Is the **mapping** already locked? If not, we acquire the lock.h](hIs the }(hj%hhhNhNubj)}(h **mapping**h]hmapping}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh- already locked? If not, we acquire the lock.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj%hM hj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hM hj($ubeh}(h]h ]h"]h$]h&]uh1jhj $ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%isolate_movable_ops_page (C function)c.isolate_movable_ops_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hFbool isolate_movable_ops_page (struct page *page, isolate_mode_t mode)h]h)}(hEbool isolate_movable_ops_page(struct page *page, isolate_mode_t mode)h](j)}(hj.h]hbool}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKdubj)}(h h]h }(hj&&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj%&hKdubh)}(hisolate_movable_ops_pageh]j)}(hisolate_movable_ops_pageh]hisolate_movable_ops_page}(hj8&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4&ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj&hhhj%&hKdubj )}(h((struct page *page, isolate_mode_t mode)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjT&hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjP&ubj)}(h h]h }(hja&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP&ubh)}(hhh]j)}(hpageh]hpage}(hjr&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo&ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjt&modnameN classnameNjpjs)}jv]jy)}jlj:&sbc.isolate_movable_ops_pageasbuh1hhjP&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP&ubjF )}(hjI h]h*}(hj&hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjP&ubj)}(hpageh]hpage}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjL&ubj )}(hisolate_mode_t modeh](h)}(hhh]j)}(hisolate_mode_th]hisolate_mode_t}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj&modnameN classnameNjpjs)}jv]j&c.isolate_movable_ops_pageasbuh1hhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hmodeh]hmode}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjL&ubeh}(h]h ]h"]h$]h&]jjuh1j hj&hhhj%&hKdubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj&hhhj%&hKdubah}(h]j &ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj%&hKdhj &hhubj4)}(hhh]jM)}(h(isolate a movable_ops page for migrationh]h(isolate a movable_ops page for migration}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKdhj'hhubah}(h]h ]h"]h$]h&]uh1j3hj &hhhj%&hKdubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj7'jHj7'jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct page *page`` The page. ``isolate_mode_t mode`` The isolation mode. **Description** Try to isolate a movable_ops page for migration. Will fail if the page is not a movable_ops page, if the page is already isolated for migration or if the page was just was released by its owner. Once isolated, the page cannot get freed until it is either putback or migrated. Returns true if isolation succeeded, otherwise false.h](jM)}(h**Parameters**h]j)}(hjA'h]h Parameters}(hjC'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?'ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhhj;'ubj)}(hhh](j)}(h ``struct page *page`` The page. h](j)}(h``struct page *page``h]jS)}(hj`'h]hstruct page *page}(hjb'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^'ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKehjZ'ubj)}(hhh]jM)}(h The page.h]h The page.}(hjy'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhju'hKehjv'ubah}(h]h ]h"]h$]h&]uh1jhjZ'ubeh}(h]h ]h"]h$]h&]uh1jhju'hKehjW'ubj)}(h,``isolate_mode_t mode`` The isolation mode. h](j)}(h``isolate_mode_t mode``h]jS)}(hj'h]hisolate_mode_t mode}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKfhj'ubj)}(hhh]jM)}(hThe isolation mode.h]hThe isolation mode.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'hKfhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hKfhjW'ubeh}(h]h ]h"]h$]h&]uh1jhj;'ubjM)}(h**Description**h]j)}(hj'h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhhj;'ubjM)}(hTry to isolate a movable_ops page for migration. Will fail if the page is not a movable_ops page, if the page is already isolated for migration or if the page was just was released by its owner.h]hTry to isolate a movable_ops page for migration. Will fail if the page is not a movable_ops page, if the page is already isolated for migration or if the page was just was released by its owner.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKghj;'ubjM)}(hPOnce isolated, the page cannot get freed until it is either putback or migrated.h]hPOnce isolated, the page cannot get freed until it is either putback or migrated.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKkhj;'ubjM)}(h5Returns true if isolation succeeded, otherwise false.h]h5Returns true if isolation succeeded, otherwise false.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKnhj;'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%putback_movable_ops_page (C function)c.putback_movable_ops_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h1void putback_movable_ops_page (struct page *page)h]h)}(h0void putback_movable_ops_page(struct page *page)h](j)}(hvoidh]hvoid}(hj7(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3(hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKubj)}(h h]h }(hjF(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3(hhhjE(hKubh)}(hputback_movable_ops_pageh]j)}(hputback_movable_ops_pageh]hputback_movable_ops_page}(hjX(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT(ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj3(hhhjE(hKubj )}(h(struct page *page)h]j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjt(hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjp(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp(ubh)}(hhh]j)}(hpageh]hpage}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj(modnameN classnameNjpjs)}jv]jy)}jljZ(sbc.putback_movable_ops_pageasbuh1hhjp(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp(ubjF )}(hjI h]h*}(hj(hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjp(ubj)}(hpageh]hpage}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjl(ubah}(h]h ]h"]h$]h&]jjuh1j hj3(hhhjE(hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj/(hhhjE(hKubah}(h]j*(ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjE(hKhj,(hhubj4)}(hhh]jM)}(h$putback an isolated movable_ops pageh]h$putback an isolated movable_ops page}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj(hhubah}(h]h ]h"]h$]h&]uh1j3hj,(hhhjE(hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj)jHj)jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct page *page`` The isolated page. **Description** Putback an isolated movable_ops page. After the page was putback, it might get freed instantly.h](jM)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj)ubj)}(hhh]j)}(h)``struct page *page`` The isolated page. h](j)}(h``struct page *page``h]jS)}(hj8)h]hstruct page *page}(hj:)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6)ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj2)ubj)}(hhh]jM)}(hThe isolated page.h]hThe isolated page.}(hjQ)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjM)hKhjN)ubah}(h]h ]h"]h$]h&]uh1jhj2)ubeh}(h]h ]h"]h$]h&]uh1jhjM)hKhj/)ubah}(h]h ]h"]h$]h&]uh1jhj)ubjM)}(h**Description**h]j)}(hjs)h]h Description}(hju)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq)ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj)ubjM)}(h%Putback an isolated movable_ops page.h]h%Putback an isolated movable_ops page.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj)ubjM)}(h9After the page was putback, it might get freed instantly.h]h9After the page was putback, it might get freed instantly.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%migrate_movable_ops_page (C function)c.migrate_movable_ops_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hYint migrate_movable_ops_page (struct page *dst, struct page *src, enum migrate_mode mode)h]h)}(hXint migrate_movable_ops_page(struct page *dst, struct page *src, enum migrate_mode mode)h](j)}(hinth]hint}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj)hKubh)}(hmigrate_movable_ops_pageh]j)}(hmigrate_movable_ops_pageh]hmigrate_movable_ops_page}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj)hhhj)hKubj )}(h<(struct page *dst, struct page *src, enum migrate_mode mode)h](j )}(hstruct page *dsth](j5)}(hj8h]hstruct}(hj*hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j)}(hpageh]hpage}(hj"*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj$*modnameN classnameNjpjs)}jv]jy)}jlj)sbc.migrate_movable_ops_pageasbuh1hhj*ubj)}(h h]h }(hjB*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjF )}(hjI h]h*}(hjP*hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj*ubj)}(hdsth]hdst}(hj]*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubj )}(hstruct page *srch](j5)}(hj8h]hstruct}(hjv*hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjr*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr*ubh)}(hhh]j)}(hpageh]hpage}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj*modnameN classnameNjpjs)}jv]j>*c.migrate_movable_ops_pageasbuh1hhjr*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr*ubjF )}(hjI h]h*}(hj*hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjr*ubj)}(hsrch]hsrc}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubj )}(henum migrate_mode modeh](j5)}(hjEh]henum}(hj*hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j)}(h migrate_modeh]h migrate_mode}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj+modnameN classnameNjpjs)}jv]j>*c.migrate_movable_ops_pageasbuh1hhj*ubj)}(h h]h }(hj"+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hmodeh]hmode}(hj0+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubeh}(h]h ]h"]h$]h&]jjuh1j hj)hhhj)hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj)hhhj)hKubah}(h]j)ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj)hKhj)hhubj4)}(hhh]jM)}(h$migrate an isolated movable_ops pageh]h$migrate an isolated movable_ops page}(hjZ+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjW+hhubah}(h]h ]h"]h$]h&]uh1j3hj)hhhj)hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjr+jHjr+jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct page *dst`` The destination page. ``struct page *src`` The source page. ``enum migrate_mode mode`` The migration mode. **Description** Migrate an isolated movable_ops page. If the src page was already released by its owner, the src page is un-isolated (putback) and migration succeeds; the migration core will be the owner of both pages. If the src page was not released by its owner and the migration was successful, the owner of the src page and the dst page are swapped and the src page is un-isolated. If migration fails, the ownership stays unmodified and the src page remains isolated: migration may be retried later or the page can be putback. TODO: migration core will treat both pages as folios and lock them before this call to unlock them after this call. Further, the folio refcounts on src and dst are also released by migration core. These pages will not be folios in the future, so that must be reworked. Returns 0 on success, otherwise a negative error code.h](jM)}(h**Parameters**h]j)}(hj|+h]h Parameters}(hj~+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz+ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjv+ubj)}(hhh](j)}(h+``struct page *dst`` The destination page. h](j)}(h``struct page *dst``h]jS)}(hj+h]hstruct page *dst}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj+ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj+ubj)}(hhh]jM)}(hThe destination page.h]hThe destination page.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+hKhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hKhj+ubj)}(h&``struct page *src`` The source page. h](j)}(h``struct page *src``h]jS)}(hj+h]hstruct page *src}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj+ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj+ubj)}(hhh]jM)}(hThe source page.h]hThe source page.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+hKhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hKhj+ubj)}(h/``enum migrate_mode mode`` The migration mode. h](j)}(h``enum migrate_mode mode``h]jS)}(hj ,h]henum migrate_mode mode}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ,ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj,ubj)}(hhh]jM)}(hThe migration mode.h]hThe migration mode.}(hj&,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj",hKhj#,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj",hKhj+ubeh}(h]h ]h"]h$]h&]uh1jhjv+ubjM)}(h**Description**h]j)}(hjH,h]h Description}(hjJ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF,ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjv+ubjM)}(h%Migrate an isolated movable_ops page.h]h%Migrate an isolated movable_ops page.}(hj^,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjv+ubjM)}(hIf the src page was already released by its owner, the src page is un-isolated (putback) and migration succeeds; the migration core will be the owner of both pages.h]hIf the src page was already released by its owner, the src page is un-isolated (putback) and migration succeeds; the migration core will be the owner of both pages.}(hjm,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjv+ubjM)}(hIf the src page was not released by its owner and the migration was successful, the owner of the src page and the dst page are swapped and the src page is un-isolated.h]hIf the src page was not released by its owner and the migration was successful, the owner of the src page and the dst page are swapped and the src page is un-isolated.}(hj|,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjv+ubjM)}(hIf migration fails, the ownership stays unmodified and the src page remains isolated: migration may be retried later or the page can be putback.h]hIf migration fails, the ownership stays unmodified and the src page remains isolated: migration may be retried later or the page can be putback.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjv+ubjM)}(hX TODO: migration core will treat both pages as folios and lock them before this call to unlock them after this call. Further, the folio refcounts on src and dst are also released by migration core. These pages will not be folios in the future, so that must be reworked.h]hX TODO: migration core will treat both pages as folios and lock them before this call to unlock them after this call. Further, the folio refcounts on src and dst are also released by migration core. These pages will not be folios in the future, so that must be reworked.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjv+ubjM)}(h6Returns 0 on success, otherwise a negative error code.h]h6Returns 0 on success, otherwise a negative error code.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjv+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmigrate_folio (C function)c.migrate_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hoint migrate_folio (struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h]h)}(hnint migrate_folio(struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hinth]hint}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMsubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj,hMsubh)}(h migrate_folioh]j)}(h migrate_folioh]h migrate_folio}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj,hhhj,hMsubj )}(h](struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj-hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-ubj)}(h h]h }(hj"-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj3-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0-ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5-modnameN classnameNjpjs)}jv]jy)}jlj,sbc.migrate_folioasbuh1hhj-ubj)}(h h]h }(hjS-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjF )}(hjI h]h*}(hja-hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-ubj)}(hmappingh]hmapping}(hjn-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj -ubj )}(hstruct folio *dsth](j5)}(hj8h]hstruct}(hj-hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(hfolioh]hfolio}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj-modnameN classnameNjpjs)}jv]jO-c.migrate_folioasbuh1hhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjF )}(hjI h]h*}(hj-hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-ubj)}(hdsth]hdst}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj -ubj )}(hstruct folio *srch](j5)}(hj8h]hstruct}(hj-hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(hfolioh]hfolio}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj.modnameN classnameNjpjs)}jv]jO-c.migrate_folioasbuh1hhj-ubj)}(h h]h }(hj3.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjF )}(hjI h]h*}(hjA.hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-ubj)}(hsrch]hsrc}(hjN.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj -ubj )}(henum migrate_mode modeh](j5)}(hjEh]henum}(hjg.hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjc.ubj)}(h h]h }(hjt.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc.ubh)}(hhh]j)}(h migrate_modeh]h migrate_mode}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj.modnameN classnameNjpjs)}jv]jO-c.migrate_folioasbuh1hhjc.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc.ubj)}(hmodeh]hmode}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc.ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj -ubeh}(h]h ]h"]h$]h&]jjuh1j hj,hhhj,hMsubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj,hhhj,hMsubah}(h]j,ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj,hMshj,hhubj4)}(hhh]jM)}(hSimple folio migration.h]hSimple folio migration.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMshj.hhubah}(h]h ]h"]h$]h&]uh1j3hj,hhhj,hMsubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj.jHj.jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The address_space containing the folio. ``struct folio *dst`` The folio to migrate the data to. ``struct folio *src`` The folio containing the current data. ``enum migrate_mode mode`` How to migrate the page. **Description** Common logic to directly migrate a single LRU folio suitable for folios that do not have private data. Folios are locked upon entry and exit.h](jM)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMwhj.ubj)}(hhh](j)}(hJ``struct address_space *mapping`` The address_space containing the folio. h](j)}(h!``struct address_space *mapping``h]jS)}(hj/h]hstruct address_space *mapping}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj/ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMthj/ubj)}(hhh]jM)}(h'The address_space containing the folio.h]h'The address_space containing the folio.}(hj5/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1/hMthj2/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj1/hMthj/ubj)}(h8``struct folio *dst`` The folio to migrate the data to. h](j)}(h``struct folio *dst``h]jS)}(hjU/h]hstruct folio *dst}(hjW/hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjS/ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMuhjO/ubj)}(hhh]jM)}(h!The folio to migrate the data to.h]h!The folio to migrate the data to.}(hjn/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjj/hMuhjk/ubah}(h]h ]h"]h$]h&]uh1jhjO/ubeh}(h]h ]h"]h$]h&]uh1jhjj/hMuhj/ubj)}(h=``struct folio *src`` The folio containing the current data. h](j)}(h``struct folio *src``h]jS)}(hj/h]hstruct folio *src}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj/ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMvhj/ubj)}(hhh]jM)}(h&The folio containing the current data.h]h&The folio containing the current data.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hMvhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMvhj/ubj)}(h4``enum migrate_mode mode`` How to migrate the page. h](j)}(h``enum migrate_mode mode``h]jS)}(hj/h]henum migrate_mode mode}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj/ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMwhj/ubj)}(hhh]jM)}(hHow to migrate the page.h]hHow to migrate the page.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hMwhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMwhj/ubeh}(h]h ]h"]h$]h&]uh1jhj.ubjM)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMyhj.ubjM)}(hfCommon logic to directly migrate a single LRU folio suitable for folios that do not have private data.h]hfCommon logic to directly migrate a single LRU folio suitable for folios that do not have private data.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMxhj.ubjM)}(h&Folios are locked upon entry and exit.h]h&Folios are locked upon entry and exit.}(hj'0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM{hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!buffer_migrate_folio (C function)c.buffer_migrate_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hvint buffer_migrate_folio (struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h]h)}(huint buffer_migrate_folio(struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hinth]hint}(hjV0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR0hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMubj)}(h h]h }(hje0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR0hhhjd0hMubh)}(hbuffer_migrate_folioh]j)}(hbuffer_migrate_folioh]hbuffer_migrate_folio}(hjw0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs0ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjR0hhhjd0hMubj )}(h](struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj0hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj0modnameN classnameNjpjs)}jv]jy)}jljy0sbc.buffer_migrate_folioasbuh1hhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj0ubj)}(hmappingh]hmapping}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubj )}(hstruct folio *dsth](j5)}(hj8h]hstruct}(hj1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(hfolioh]hfolio}(hj#1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj%1modnameN classnameNjpjs)}jv]j0c.buffer_migrate_folioasbuh1hhj1ubj)}(h h]h }(hjA1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjF )}(hjI h]h*}(hjO1hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1ubj)}(hdsth]hdst}(hj\1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubj )}(hstruct folio *srch](j5)}(hj8h]hstruct}(hju1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjq1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq1ubh)}(hhh]j)}(hfolioh]hfolio}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj1modnameN classnameNjpjs)}jv]j0c.buffer_migrate_folioasbuh1hhjq1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq1ubjF )}(hjI h]h*}(hj1hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjq1ubj)}(hsrch]hsrc}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubj )}(henum migrate_mode modeh](j5)}(hjEh]henum}(hj1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(h migrate_modeh]h migrate_mode}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj2modnameN classnameNjpjs)}jv]j0c.buffer_migrate_folioasbuh1hhj1ubj)}(h h]h }(hj!2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hmodeh]hmode}(hj/2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubeh}(h]h ]h"]h$]h&]jjuh1j hjR0hhhjd0hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjN0hhhjd0hMubah}(h]jI0ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjd0hMhjK0hhubj4)}(hhh]jM)}(h+Migration function for folios with buffers.h]h+Migration function for folios with buffers.}(hjY2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjV2hhubah}(h]h ]h"]h$]h&]uh1j3hjK0hhhjd0hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjq2jHjq2jIjJjKuh1hhhhjhNhNubj)}(hXi**Parameters** ``struct address_space *mapping`` The address space containing **src**. ``struct folio *dst`` The folio to migrate to. ``struct folio *src`` The folio to migrate from. ``enum migrate_mode mode`` How to migrate the folio. **Description** This function can only be used if the underlying filesystem guarantees that no other references to **src** exist. For example attached buffer heads are accessed only under the folio lock. If your filesystem cannot provide this guarantee, buffer_migrate_folio_norefs() may be more appropriate. **Return** 0 on success or a negative errno on failure.h](jM)}(h**Parameters**h]j)}(hj{2h]h Parameters}(hj}2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy2ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhju2ubj)}(hhh](j)}(hH``struct address_space *mapping`` The address space containing **src**. h](j)}(h!``struct address_space *mapping``h]jS)}(hj2h]hstruct address_space *mapping}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhj2ubj)}(hhh]jM)}(h%The address space containing **src**.h](hThe address space containing }(hj2hhhNhNubj)}(h**src**h]hsrc}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubj)}(h/``struct folio *dst`` The folio to migrate to. h](j)}(h``struct folio *dst``h]jS)}(hj2h]hstruct folio *dst}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhj2ubj)}(hhh]jM)}(hThe folio to migrate to.h]hThe folio to migrate to.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubj)}(h1``struct folio *src`` The folio to migrate from. h](j)}(h``struct folio *src``h]jS)}(hj3h]hstruct folio *src}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhj3ubj)}(hhh]jM)}(hThe folio to migrate from.h]hThe folio to migrate from.}(hj73hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj33hMhj43ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj33hMhj2ubj)}(h5``enum migrate_mode mode`` How to migrate the folio. h](j)}(h``enum migrate_mode mode``h]jS)}(hjW3h]henum migrate_mode mode}(hjY3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjU3ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjQ3ubj)}(hhh]jM)}(hHow to migrate the folio.h]hHow to migrate the folio.}(hjp3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjl3hMhjm3ubah}(h]h ]h"]h$]h&]uh1jhjQ3ubeh}(h]h ]h"]h$]h&]uh1jhjl3hMhj2ubeh}(h]h ]h"]h$]h&]uh1jhju2ubjM)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhju2ubjM)}(hX%This function can only be used if the underlying filesystem guarantees that no other references to **src** exist. For example attached buffer heads are accessed only under the folio lock. If your filesystem cannot provide this guarantee, buffer_migrate_folio_norefs() may be more appropriate.h](hcThis function can only be used if the underlying filesystem guarantees that no other references to }(hj3hhhNhNubj)}(h**src**h]hsrc}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh exist. For example attached buffer heads are accessed only under the folio lock. If your filesystem cannot provide this guarantee, buffer_migrate_folio_norefs() may be more appropriate.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhju2ubjM)}(h **Return**h]j)}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhju2ubjM)}(h,0 on success or a negative errno on failure.h]h,0 on success or a negative errno on failure.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhju2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(buffer_migrate_folio_norefs (C function)c.buffer_migrate_folio_norefshNtauh1hhjhhhNhNubh)}(hhh](h)}(h}int buffer_migrate_folio_norefs (struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h]h)}(h|int buffer_migrate_folio_norefs(struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 4hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 4hhhj4hMubh)}(hbuffer_migrate_folio_norefsh]j)}(hbuffer_migrate_folio_norefsh]hbuffer_migrate_folio_norefs}(hj14hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-4ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj 4hhhj4hMubj )}(h](struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjM4hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjI4ubj)}(h h]h }(hjZ4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI4ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjk4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh4ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjm4modnameN classnameNjpjs)}jv]jy)}jlj34sbc.buffer_migrate_folio_norefsasbuh1hhjI4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI4ubjF )}(hjI h]h*}(hj4hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjI4ubj)}(hmappingh]hmapping}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE4ubj )}(hstruct folio *dsth](j5)}(hj8h]hstruct}(hj4hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]j)}(hfolioh]hfolio}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4modnameN classnameNjpjs)}jv]j4c.buffer_migrate_folio_norefsasbuh1hhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjF )}(hjI h]h*}(hj 5hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj4ubj)}(hdsth]hdst}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE4ubj )}(hstruct folio *srch](j5)}(hj8h]hstruct}(hj/5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj+5ubj)}(h h]h }(hj<5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+5ubh)}(hhh]j)}(hfolioh]hfolio}(hjM5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ5ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjO5modnameN classnameNjpjs)}jv]j4c.buffer_migrate_folio_norefsasbuh1hhj+5ubj)}(h h]h }(hjk5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+5ubjF )}(hjI h]h*}(hjy5hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj+5ubj)}(hsrch]hsrc}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE4ubj )}(henum migrate_mode modeh](j5)}(hjEh]henum}(hj5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j)}(h migrate_modeh]h migrate_mode}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5modnameN classnameNjpjs)}jv]j4c.buffer_migrate_folio_norefsasbuh1hhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hmodeh]hmode}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE4ubeh}(h]h ]h"]h$]h&]jjuh1j hj 4hhhj4hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj4hhhj4hMubah}(h]j4ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj4hMhj4hhubj4)}(hhh]jM)}(h+Migration function for folios with buffers.h]h+Migration function for folios with buffers.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhj6hhubah}(h]h ]h"]h$]h&]uh1j3hj4hhhj4hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj+6jHj+6jIjJjKuh1hhhhjhNhNubj)}(hXH**Parameters** ``struct address_space *mapping`` The address space containing **src**. ``struct folio *dst`` The folio to migrate to. ``struct folio *src`` The folio to migrate from. ``enum migrate_mode mode`` How to migrate the folio. **Description** Like buffer_migrate_folio() except that this variant is more careful and checks that there are also no buffer head references. This function is the right one for mappings where buffer heads are directly looked up and referenced (such as block device mappings). **Return** 0 on success or a negative errno on failure.h](jM)}(h**Parameters**h]j)}(hj56h]h Parameters}(hj76hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj36ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM hj/6ubj)}(hhh](j)}(hH``struct address_space *mapping`` The address space containing **src**. h](j)}(h!``struct address_space *mapping``h]jS)}(hjT6h]hstruct address_space *mapping}(hjV6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjR6ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjN6ubj)}(hhh]jM)}(h%The address space containing **src**.h](hThe address space containing }(hjm6hhhNhNubj)}(h**src**h]hsrc}(hju6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm6ubh.}(hjm6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhji6hMhjj6ubah}(h]h ]h"]h$]h&]uh1jhjN6ubeh}(h]h ]h"]h$]h&]uh1jhji6hMhjK6ubj)}(h/``struct folio *dst`` The folio to migrate to. h](j)}(h``struct folio *dst``h]jS)}(hj6h]hstruct folio *dst}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhj6ubj)}(hhh]jM)}(hThe folio to migrate to.h]hThe folio to migrate to.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjK6ubj)}(h1``struct folio *src`` The folio to migrate from. h](j)}(h``struct folio *src``h]jS)}(hj6h]hstruct folio *src}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM hj6ubj)}(hhh]jM)}(hThe folio to migrate from.h]hThe folio to migrate from.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hM hj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hM hjK6ubj)}(h5``enum migrate_mode mode`` How to migrate the folio. h](j)}(h``enum migrate_mode mode``h]jS)}(hj7h]henum migrate_mode mode}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM hj 7ubj)}(hhh]jM)}(hHow to migrate the folio.h]hHow to migrate the folio.}(hj*7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&7hM hj'7ubah}(h]h ]h"]h$]h&]uh1jhj 7ubeh}(h]h ]h"]h$]h&]uh1jhj&7hM hjK6ubeh}(h]h ]h"]h$]h&]uh1jhj/6ubjM)}(h**Description**h]j)}(hjL7h]h Description}(hjN7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ7ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM hj/6ubjM)}(hXLike buffer_migrate_folio() except that this variant is more careful and checks that there are also no buffer head references. This function is the right one for mappings where buffer heads are directly looked up and referenced (such as block device mappings).h]hXLike buffer_migrate_folio() except that this variant is more careful and checks that there are also no buffer head references. This function is the right one for mappings where buffer heads are directly looked up and referenced (such as block device mappings).}(hjb7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM hj/6ubjM)}(h **Return**h]j)}(hjs7h]hReturn}(hju7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq7ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhj/6ubjM)}(h,0 on success or a negative errno on failure.h]h,0 on success or a negative errno on failure.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhj/6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdo_mmap (C function) c.do_mmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hunsigned long do_mmap (struct file *file, unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, vm_flags_t vm_flags, unsigned long pgoff, unsigned long *populate, struct list_head *uf)h]h)}(hunsigned long do_mmap(struct file *file, unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, vm_flags_t vm_flags, unsigned long pgoff, unsigned long *populate, struct list_head *uf)h](j)}(hunsignedh]hunsigned}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hMubj)}(hlongh]hlong}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hMubh)}(hdo_mmaph]j)}(hdo_mmaph]hdo_mmap}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj7hhhj7hMubj )}(h(struct file *file, unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, vm_flags_t vm_flags, unsigned long pgoff, unsigned long *populate, struct list_head *uf)h](j )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hj8hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj 8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubh)}(hhh]j)}(hfileh]hfile}(hj/8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,8ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj18modnameN classnameNjpjs)}jv]jy)}jlj7sb c.do_mmapasbuh1hhj 8ubj)}(h h]h }(hjO8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubjF )}(hjI h]h*}(hj]8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj 8ubj)}(hfileh]hfile}(hjj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj 8ubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hlongh]hlong}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(haddrh]haddr}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj 8ubj )}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hlongh]hlong}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hlenh]hlen}(hj 9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj 8ubj )}(hunsigned long proth](j)}(hunsignedh]hunsigned}(hj%9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!9ubj)}(h h]h }(hj39hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!9ubj)}(hlongh]hlong}(hjA9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!9ubj)}(h h]h }(hjO9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!9ubj)}(hproth]hprot}(hj]9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!9ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj 8ubj )}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjv9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr9ubj)}(hlongh]hlong}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr9ubj)}(hflagsh]hflags}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr9ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj 8ubj )}(hvm_flags_t vm_flagsh](h)}(hhh]j)}(h vm_flags_th]h vm_flags_t}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj9modnameN classnameNjpjs)}jv]jK8 c.do_mmapasbuh1hhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hvm_flagsh]hvm_flags}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj 8ubj )}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj :ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj :ubj)}(hlongh]hlong}(hj+:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj :ubj)}(h h]h }(hj9:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj :ubj)}(hpgoffh]hpgoff}(hjG:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj :ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj 8ubj )}(hunsigned long *populateh](j)}(hunsignedh]hunsigned}(hj`:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\:ubj)}(h h]h }(hjn:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\:ubj)}(hlongh]hlong}(hj|:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\:ubjF )}(hjI h]h*}(hj:hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj\:ubj)}(hpopulateh]hpopulate}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj 8ubj )}(hstruct list_head *ufh](j5)}(hj8h]hstruct}(hj:hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(h list_headh]h list_head}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj:modnameN classnameNjpjs)}jv]jK8 c.do_mmapasbuh1hhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjF )}(hjI h]h*}(hj;hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj:ubj)}(hufh]huf}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj 8ubeh}(h]h ]h"]h$]h&]jjuh1j hj7hhhj7hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj7hhhj7hMubah}(h]j7ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj7hMhj7hhubj4)}(hhh]jM)}(hX`Perform a userland memory mapping into the current process address space of length **len** with protection bits **prot**, mmap flags **flags** (from which VMA flags will be inferred), and any additional VMA flags to apply **vm_flags**. If this is a file-backed mapping then the file is specified in **file** and page offset into the file via **pgoff**.h](hSPerform a userland memory mapping into the current process address space of length }(hj?;hhhNhNubj)}(h**len**h]hlen}(hjG;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?;ubh with protection bits }(hj?;hhhNhNubj)}(h**prot**h]hprot}(hjY;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?;ubh , mmap flags }(hj?;hhhNhNubj)}(h **flags**h]hflags}(hjk;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?;ubhP (from which VMA flags will be inferred), and any additional VMA flags to apply }(hj?;hhhNhNubj)}(h **vm_flags**h]hvm_flags}(hj};hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?;ubhA. If this is a file-backed mapping then the file is specified in }(hj?;hhhNhNubj)}(h**file**h]hfile}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?;ubh# and page offset into the file via }(hj?;hhhNhNubj)}(h **pgoff**h]hpgoff}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?;ubh.}(hj?;hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj<;hhubah}(h]h ]h"]h$]h&]uh1j3hj7hhhj7hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj;jHj;jIjJjKuh1hhhhjhNhNubj)}(hX# **Parameters** ``struct file *file`` An optional struct file pointer describing the file which is to be mapped, if a file-backed mapping. ``unsigned long addr`` If non-zero, hints at (or if **flags** has MAP_FIXED set, specifies) the address at which to perform this mapping. See mmap (2) for details. Must be page-aligned. ``unsigned long len`` The length of the mapping. Will be page-aligned and must be at least 1 page in size. ``unsigned long prot`` Protection bits describing access required to the mapping. See mmap (2) for details. ``unsigned long flags`` Flags specifying how the mapping should be performed, see mmap (2) for details. ``vm_flags_t vm_flags`` VMA flags which should be set by default, or 0 otherwise. ``unsigned long pgoff`` Page offset into the **file** if file-backed, should be 0 otherwise. ``unsigned long *populate`` A pointer to a value which will be set to 0 if no population of the range is required, or the number of bytes to populate if it is. Must be non-NULL. See mmap (2) for details as to under what circumstances population of the range occurs. ``struct list_head *uf`` An optional pointer to a list head to track userfaultfd unmap events should unmapping events arise. If provided, it is up to the caller to manage this. **Description** This function does not perform security checks on the file and assumes, if **uf** is non-NULL, the caller has provided a list head to track unmap events for userfaultfd **uf**. It also simply indicates whether memory population is required by setting **populate**, which must be non-NULL, expecting the caller to actually perform this task itself if appropriate. This function will invoke architecture-specific (and if provided and relevant, file system-specific) logic to determine the most appropriate unmapped area in which to place the mapping if not MAP_FIXED. Callers which require userland mmap() behaviour should invoke vm_mmap(), which is also exported for module use. Those which require this behaviour less security checks, userfaultfd and populate behaviour, and who handle the mmap write lock themselves, should call this function. Note that the returned address may reside within a merged VMA if an appropriate merge were to take place, so it doesn't necessarily specify the start of a VMA, rather only the start of a valid mapped range of length **len** bytes, rounded down to the nearest page size. The caller must write-lock current->mm->mmap_lock. **Return** Either an error, or the address at which the requested mapping has been performed.h](jM)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj;ubj)}(hhh](j)}(h{``struct file *file`` An optional struct file pointer describing the file which is to be mapped, if a file-backed mapping. h](j)}(h``struct file *file``h]jS)}(hj;h]hstruct file *file}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM9hj;ubj)}(hhh]jM)}(hdAn optional struct file pointer describing the file which is to be mapped, if a file-backed mapping.h]hdAn optional struct file pointer describing the file which is to be mapped, if a file-backed mapping.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM8hj<ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj<hM9hj;ubj)}(h``unsigned long addr`` If non-zero, hints at (or if **flags** has MAP_FIXED set, specifies) the address at which to perform this mapping. See mmap (2) for details. Must be page-aligned. h](j)}(h``unsigned long addr``h]jS)}(hj&<h]hunsigned long addr}(hj(<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$<ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM<hj <ubj)}(hhh]jM)}(hIf non-zero, hints at (or if **flags** has MAP_FIXED set, specifies) the address at which to perform this mapping. See mmap (2) for details. Must be page-aligned.h](hIf non-zero, hints at (or if }(hj?<hhhNhNubj)}(h **flags**h]hflags}(hjG<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?<ubh| has MAP_FIXED set, specifies) the address at which to perform this mapping. See mmap (2) for details. Must be page-aligned.}(hj?<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM:hj<<ubah}(h]h ]h"]h$]h&]uh1jhj <ubeh}(h]h ]h"]h$]h&]uh1jhj;<hM<hj;ubj)}(hk``unsigned long len`` The length of the mapping. Will be page-aligned and must be at least 1 page in size. h](j)}(h``unsigned long len``h]jS)}(hjr<h]hunsigned long len}(hjt<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjp<ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM>hjl<ubj)}(hhh]jM)}(hTThe length of the mapping. Will be page-aligned and must be at least 1 page in size.h]hTThe length of the mapping. Will be page-aligned and must be at least 1 page in size.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM=hj<ubah}(h]h ]h"]h$]h&]uh1jhjl<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM>hj;ubj)}(hl``unsigned long prot`` Protection bits describing access required to the mapping. See mmap (2) for details. h](j)}(h``unsigned long prot``h]jS)}(hj<h]hunsigned long prot}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj<ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM@hj<ubj)}(hhh]jM)}(hTProtection bits describing access required to the mapping. See mmap (2) for details.h]hTProtection bits describing access required to the mapping. See mmap (2) for details.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM?hj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM@hj;ubj)}(hh``unsigned long flags`` Flags specifying how the mapping should be performed, see mmap (2) for details. h](j)}(h``unsigned long flags``h]jS)}(hj<h]hunsigned long flags}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj<ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMBhj<ubj)}(hhh]jM)}(hOFlags specifying how the mapping should be performed, see mmap (2) for details.h]hOFlags specifying how the mapping should be performed, see mmap (2) for details.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMAhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMBhj;ubj)}(hR``vm_flags_t vm_flags`` VMA flags which should be set by default, or 0 otherwise. h](j)}(h``vm_flags_t vm_flags``h]jS)}(hj =h]hvm_flags_t vm_flags}(hj"=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj=ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMChj=ubj)}(hhh]jM)}(h9VMA flags which should be set by default, or 0 otherwise.h]h9VMA flags which should be set by default, or 0 otherwise.}(hj9=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5=hMChj6=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj5=hMChj;ubj)}(h]``unsigned long pgoff`` Page offset into the **file** if file-backed, should be 0 otherwise. h](j)}(h``unsigned long pgoff``h]jS)}(hjY=h]hunsigned long pgoff}(hj[=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjW=ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMDhjS=ubj)}(hhh]jM)}(hDPage offset into the **file** if file-backed, should be 0 otherwise.h](hPage offset into the }(hjr=hhhNhNubj)}(h**file**h]hfile}(hjz=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr=ubh' if file-backed, should be 0 otherwise.}(hjr=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjn=hMDhjo=ubah}(h]h ]h"]h$]h&]uh1jhjS=ubeh}(h]h ]h"]h$]h&]uh1jhjn=hMDhj;ubj)}(hX ``unsigned long *populate`` A pointer to a value which will be set to 0 if no population of the range is required, or the number of bytes to populate if it is. Must be non-NULL. See mmap (2) for details as to under what circumstances population of the range occurs. h](j)}(h``unsigned long *populate``h]jS)}(hj=h]hunsigned long *populate}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj=ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMHhj=ubj)}(hhh]jM)}(hA pointer to a value which will be set to 0 if no population of the range is required, or the number of bytes to populate if it is. Must be non-NULL. See mmap (2) for details as to under what circumstances population of the range occurs.h]hA pointer to a value which will be set to 0 if no population of the range is required, or the number of bytes to populate if it is. Must be non-NULL. See mmap (2) for details as to under what circumstances population of the range occurs.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMEhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMHhj;ubj)}(h``struct list_head *uf`` An optional pointer to a list head to track userfaultfd unmap events should unmapping events arise. If provided, it is up to the caller to manage this. h](j)}(h``struct list_head *uf``h]jS)}(hj=h]hstruct list_head *uf}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj=ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMKhj=ubj)}(hhh]jM)}(hAn optional pointer to a list head to track userfaultfd unmap events should unmapping events arise. If provided, it is up to the caller to manage this.h]hAn optional pointer to a list head to track userfaultfd unmap events should unmapping events arise. If provided, it is up to the caller to manage this.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMIhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMKhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;ubjM)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMMhj;ubjM)}(hThis function does not perform security checks on the file and assumes, if **uf** is non-NULL, the caller has provided a list head to track unmap events for userfaultfd **uf**.h](hKThis function does not perform security checks on the file and assumes, if }(hj0>hhhNhNubj)}(h**uf**h]huf}(hj8>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0>ubhX is non-NULL, the caller has provided a list head to track unmap events for userfaultfd }(hj0>hhhNhNubj)}(h**uf**h]huf}(hjJ>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0>ubh.}(hj0>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj;ubjM)}(hIt also simply indicates whether memory population is required by setting **populate**, which must be non-NULL, expecting the caller to actually perform this task itself if appropriate.h](hJIt also simply indicates whether memory population is required by setting }(hjc>hhhNhNubj)}(h **populate**h]hpopulate}(hjk>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc>ubhc, which must be non-NULL, expecting the caller to actually perform this task itself if appropriate.}(hjc>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj;ubjM)}(hThis function will invoke architecture-specific (and if provided and relevant, file system-specific) logic to determine the most appropriate unmapped area in which to place the mapping if not MAP_FIXED.h]hThis function will invoke architecture-specific (and if provided and relevant, file system-specific) logic to determine the most appropriate unmapped area in which to place the mapping if not MAP_FIXED.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM!hj;ubjM)}(hoCallers which require userland mmap() behaviour should invoke vm_mmap(), which is also exported for module use.h]hoCallers which require userland mmap() behaviour should invoke vm_mmap(), which is also exported for module use.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM%hj;ubjM)}(hThose which require this behaviour less security checks, userfaultfd and populate behaviour, and who handle the mmap write lock themselves, should call this function.h]hThose which require this behaviour less security checks, userfaultfd and populate behaviour, and who handle the mmap write lock themselves, should call this function.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM(hj;ubjM)}(hX Note that the returned address may reside within a merged VMA if an appropriate merge were to take place, so it doesn't necessarily specify the start of a VMA, rather only the start of a valid mapped range of length **len** bytes, rounded down to the nearest page size.h](hNote that the returned address may reside within a merged VMA if an appropriate merge were to take place, so it doesn’t necessarily specify the start of a VMA, rather only the start of a valid mapped range of length }(hj>hhhNhNubj)}(h**len**h]hlen}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh. bytes, rounded down to the nearest page size.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM,hj;ubjM)}(h2The caller must write-lock current->mm->mmap_lock.h]h2The caller must write-lock current->mm->mmap_lock.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM1hj;ubjM)}(h **Return**h]j)}(hj>h]hReturn}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM3hj;ubjM)}(hREither an error, or the address at which the requested mapping has been performed.h]hREither an error, or the address at which the requested mapping has been performed.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMMhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"find_vma_intersection (C function)c.find_vma_intersectionhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvstruct vm_area_struct * find_vma_intersection (struct mm_struct *mm, unsigned long start_addr, unsigned long end_addr)h]h)}(htstruct vm_area_struct *find_vma_intersection(struct mm_struct *mm, unsigned long start_addr, unsigned long end_addr)h](j5)}(hj8h]hstruct}(hj(?hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj$?hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMlubj)}(h h]h }(hj6?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$?hhhj5?hMlubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjG?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD?ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjI?modnameN classnameNjpjs)}jv]jy)}jlfind_vma_intersectionsbc.find_vma_intersectionasbuh1hhj$?hhhj5?hMlubj)}(h h]h }(hjh?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$?hhhj5?hMlubjF )}(hjI h]h*}(hjv?hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj$?hhhj5?hMlubh)}(hfind_vma_intersectionh]j)}(hje?h]hfind_vma_intersection}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj$?hhhj5?hMlubj )}(hH(struct mm_struct *mm, unsigned long start_addr, unsigned long end_addr)h](j )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hj?hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hhh]j)}(h mm_structh]h mm_struct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj?modnameN classnameNjpjs)}jv]jc?c.find_vma_intersectionasbuh1hhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjF )}(hjI h]h*}(hj?hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj?ubj)}(hmmh]hmm}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj?ubj )}(hunsigned long start_addrh](j)}(hunsignedh]hunsigned}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hj @hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hlongh]hlong}(hj.@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hj<@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h start_addrh]h start_addr}(hjJ@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj?ubj )}(hunsigned long end_addrh](j)}(hunsignedh]hunsigned}(hjc@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_@ubj)}(h h]h }(hjq@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_@ubj)}(hlongh]hlong}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_@ubj)}(hend_addrh]hend_addr}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj?ubeh}(h]h ]h"]h$]h&]jjuh1j hj$?hhhj5?hMlubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj ?hhhj5?hMlubah}(h]j?ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj5?hMlhj?hhubj4)}(hhh]jM)}(h3Look up the first VMA which intersects the intervalh]h3Look up the first VMA which intersects the interval}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMlhj@hhubah}(h]h ]h"]h$]h&]uh1j3hj?hhhj5?hMlubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj@jHj@jIjJjKuh1hhhhjhNhNubj)}(hX/**Parameters** ``struct mm_struct *mm`` The process address space. ``unsigned long start_addr`` The inclusive start user address. ``unsigned long end_addr`` The exclusive end user address. **Return** The first VMA within the provided range, ``NULL`` otherwise. Assumes start_addr < end_addr.h](jM)}(h**Parameters**h]j)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMphj@ubj)}(hhh](j)}(h4``struct mm_struct *mm`` The process address space. h](j)}(h``struct mm_struct *mm``h]jS)}(hjAh]hstruct mm_struct *mm}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMmhjAubj)}(hhh]jM)}(hThe process address space.h]hThe process address space.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMmhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMmhj@ubj)}(h?``unsigned long start_addr`` The inclusive start user address. h](j)}(h``unsigned long start_addr``h]jS)}(hj?Ah]hunsigned long start_addr}(hjAAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj=Aubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMnhj9Aubj)}(hhh]jM)}(h!The inclusive start user address.h]h!The inclusive start user address.}(hjXAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjTAhMnhjUAubah}(h]h ]h"]h$]h&]uh1jhj9Aubeh}(h]h ]h"]h$]h&]uh1jhjTAhMnhj@ubj)}(h;``unsigned long end_addr`` The exclusive end user address. h](j)}(h``unsigned long end_addr``h]jS)}(hjxAh]hunsigned long end_addr}(hjzAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjvAubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMohjrAubj)}(hhh]jM)}(hThe exclusive end user address.h]hThe exclusive end user address.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMohjAubah}(h]h ]h"]h$]h&]uh1jhjrAubeh}(h]h ]h"]h$]h&]uh1jhjAhMohj@ubeh}(h]h ]h"]h$]h&]uh1jhj@ubjM)}(h **Return**h]j)}(hjAh]hReturn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMqhj@ubjM)}(h\The first VMA within the provided range, ``NULL`` otherwise. Assumes start_addr < end_addr.h](h)The first VMA within the provided range, }(hjAhhhNhNubjS)}(h``NULL``h]hNULL}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubh+ otherwise. Assumes start_addr < end_addr.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMqhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfind_vma (C function) c.find_vmahNtauh1hhjhhhNhNubh)}(hhh](h)}(hKstruct vm_area_struct * find_vma (struct mm_struct *mm, unsigned long addr)h]h)}(hIstruct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)h](j5)}(hj8h]hstruct}(hj BhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjBhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhMubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj)BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Bubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj+BmodnameN classnameNjpjs)}jv]jy)}jlfind_vmasb c.find_vmaasbuh1hhjBhhhjBhMubj)}(h h]h }(hjJBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhMubjF )}(hjI h]h*}(hjXBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjBhhhjBhMubh)}(hfind_vmah]j)}(hjGBh]hfind_vma}(hjiBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeBubah}(h]h ](jjeh"]h$]h&]jjuh1hhjBhhhjBhMubj )}(h*(struct mm_struct *mm, unsigned long addr)h](j )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hjBhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]jEB c.find_vmaasbuh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjF )}(hjI h]h*}(hjBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjBubj)}(hmmh]hmm}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|Bubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hlongh]hlong}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(haddrh]haddr}(hj,ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|Bubeh}(h]h ]h"]h$]h&]jjuh1j hjBhhhjBhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjBhhhjBhMubah}(h]jAah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjBhMhjAhhubj4)}(hhh]jM)}(h2Find the VMA for a given address, or the next VMA.h]h2Find the VMA for a given address, or the next VMA.}(hjVChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjSChhubah}(h]h ]h"]h$]h&]uh1j3hjAhhhjBhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjnCjHjnCjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct mm_struct *mm`` The mm_struct to check ``unsigned long addr`` The address **Return** The VMA associated with addr, or the next VMA. May return ``NULL`` in the case of no VMA at addr or above.h](jM)}(h**Parameters**h]j)}(hjxCh]h Parameters}(hjzChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvCubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjrCubj)}(hhh](j)}(h0``struct mm_struct *mm`` The mm_struct to check h](j)}(h``struct mm_struct *mm``h]jS)}(hjCh]hstruct mm_struct *mm}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjCubj)}(hhh]jM)}(hThe mm_struct to checkh]hThe mm_struct to check}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChMhjCubj)}(h#``unsigned long addr`` The address h](j)}(h``unsigned long addr``h]jS)}(hjCh]hunsigned long addr}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjCubj)}(hhh]jM)}(h The addressh]h The address}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChMhjCubeh}(h]h ]h"]h$]h&]uh1jhjrCubjM)}(h **Return**h]j)}(hj Dh]hReturn}(hj DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Dubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjrCubjM)}(hjThe VMA associated with addr, or the next VMA. May return ``NULL`` in the case of no VMA at addr or above.h](h:The VMA associated with addr, or the next VMA. May return }(hj!DhhhNhNubjS)}(h``NULL``h]hNULL}(hj)DhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!Dubh( in the case of no VMA at addr or above.}(hj!DhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjrCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfind_vma_prev (C function)c.find_vma_prevhNtauh1hhjhhhNhNubh)}(hhh](h)}(hostruct vm_area_struct * find_vma_prev (struct mm_struct *mm, unsigned long addr, struct vm_area_struct **pprev)h]h)}(hmstruct vm_area_struct *find_vma_prev(struct mm_struct *mm, unsigned long addr, struct vm_area_struct **pprev)h](j5)}(hj8h]hstruct}(hjbDhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj^DhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMubj)}(h h]h }(hjpDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^DhhhjoDhMubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Dubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDmodnameN classnameNjpjs)}jv]jy)}jl find_vma_prevsbc.find_vma_prevasbuh1hhj^DhhhjoDhMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^DhhhjoDhMubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj^DhhhjoDhMubh)}(h find_vma_prevh]j)}(hjDh]h find_vma_prev}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1hhj^DhhhjoDhMubj )}(hI(struct mm_struct *mm, unsigned long addr, struct vm_area_struct **pprev)h](j )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hjDhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDmodnameN classnameNjpjs)}jv]jDc.find_vma_prevasbuh1hhjDubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjF )}(hjI h]h*}(hj&EhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hmmh]hmm}(hj3EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjLEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHEubj)}(h h]h }(hjZEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHEubj)}(hlongh]hlong}(hjhEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHEubj)}(h h]h }(hjvEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHEubj)}(haddrh]haddr}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubj )}(hstruct vm_area_struct **pprevh](j5)}(hj8h]hstruct}(hjEhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjEmodnameN classnameNjpjs)}jv]jDc.find_vma_prevasbuh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjF )}(hjI h]h*}(hjEhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjEubjF )}(hjI h]h*}(hjEhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjEubj)}(hpprevh]hpprev}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubeh}(h]h ]h"]h$]h&]jjuh1j hj^DhhhjoDhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjZDhhhjoDhMubah}(h]jUDah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjoDhMhjWDhhubj4)}(hhh]jM)}(h`Find the VMA for a given address, or the next vma and set ``pprev`` to the previous VMA, if any.h](h:Find the VMA for a given address, or the next vma and set }(hj+FhhhNhNubjS)}(h ``pprev``h]hpprev}(hj3FhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj+Fubh to the previous VMA, if any.}(hj+FhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj(Fhhubah}(h]h ]h"]h$]h&]uh1j3hjWDhhhjoDhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjUFjHjUFjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct mm_struct *mm`` The mm_struct to check ``unsigned long addr`` The address ``struct vm_area_struct **pprev`` The pointer to set to the previous VMA **Description** Note that RCU lock is missing here since the external mmap_lock() is used instead. **Return** The VMA associated with **addr**, or the next vma. May return ``NULL`` in the case of no vma at addr or above.h](jM)}(h**Parameters**h]j)}(hj_Fh]h Parameters}(hjaFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Fubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjYFubj)}(hhh](j)}(h0``struct mm_struct *mm`` The mm_struct to check h](j)}(h``struct mm_struct *mm``h]jS)}(hj~Fh]hstruct mm_struct *mm}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj|Fubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjxFubj)}(hhh]jM)}(hThe mm_struct to checkh]hThe mm_struct to check}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjxFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjuFubj)}(h#``unsigned long addr`` The address h](j)}(h``unsigned long addr``h]jS)}(hjFh]hunsigned long addr}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjFubj)}(hhh]jM)}(h The addressh]h The address}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjuFubj)}(hI``struct vm_area_struct **pprev`` The pointer to set to the previous VMA h](j)}(h!``struct vm_area_struct **pprev``h]jS)}(hjFh]hstruct vm_area_struct **pprev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjFubj)}(hhh]jM)}(h&The pointer to set to the previous VMAh]h&The pointer to set to the previous VMA}(hj GhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjuFubeh}(h]h ]h"]h$]h&]uh1jhjYFubjM)}(h**Description**h]j)}(hj+Gh]h Description}(hj-GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)Gubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjYFubjM)}(hRNote that RCU lock is missing here since the external mmap_lock() is used instead.h]hRNote that RCU lock is missing here since the external mmap_lock() is used instead.}(hjAGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjYFubjM)}(h **Return**h]j)}(hjRGh]hReturn}(hjTGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPGubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjYFubjM)}(hnThe VMA associated with **addr**, or the next vma. May return ``NULL`` in the case of no vma at addr or above.h](hThe VMA associated with }(hjhGhhhNhNubj)}(h**addr**h]haddr}(hjpGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhGubh, or the next vma. May return }(hjhGhhhNhNubjS)}(h``NULL``h]hNULL}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjhGubh( in the case of no vma at addr or above.}(hjhGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjYFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_alloc (C function)c.kmemleak_allochNtauh1hhjhhhNhNubh)}(hhh](h)}(hRvoid __ref kmemleak_alloc (const void *ptr, size_t size, int min_count, gfp_t gfp)h]h)}(hQvoid __ref kmemleak_alloc(const void *ptr, size_t size, int min_count, gfp_t gfp)h](j)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM@ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjGhM@ubh__ref}(hjGhhhNhNubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjGhM@ubh)}(hkmemleak_alloch]j)}(hkmemleak_alloch]hkmemleak_alloc}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1hhjGhhhjGhM@ubj )}(h8(const void *ptr, size_t size, int min_count, gfp_t gfp)h](j )}(hconst void *ptrh](j5)}(hjh]hconst}(hj HhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hvoidh]hvoid}(hj%HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hj3HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjF )}(hjI h]h*}(hjAHhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjHubj)}(hptrh]hptr}(hjNHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgHubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlHmodnameN classnameNjpjs)}jv]jy)}jljGsbc.kmemleak_allocasbuh1hhjcHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcHubj)}(hsizeh]hsize}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubj )}(h int min_counth](j)}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h min_counth]h min_count}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjHmodnameN classnameNjpjs)}jv]jHc.kmemleak_allocasbuh1hhjHubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hgfph]hgfp}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubeh}(h]h ]h"]h$]h&]jjuh1j hjGhhhjGhM@ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjGhhhjGhM@ubah}(h]jGah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjGhM@hjGhhubj4)}(hhh]jM)}(h!register a newly allocated objecth]h!register a newly allocated object}(hj?IhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM@hjminimum number of references to this object. If during memory scanning a number of references less than **min_count** is found, the object is reported as a memory leak. If **min_count** is 0, the object is never reported as a leak. If **min_count** is -1, the object is ignored (not scanned and not reported as a leak)h](hhminimum number of references to this object. If during memory scanning a number of references less than }(hj JhhhNhNubj)}(h **min_count**h]h min_count}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Jubh7 is found, the object is reported as a memory leak. If }(hj JhhhNhNubj)}(h **min_count**h]h min_count}(hj%JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Jubh2 is 0, the object is never reported as a leak. If }(hj JhhhNhNubj)}(h **min_count**h]h min_count}(hj7JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj JubhF is -1, the object is ignored (not scanned and not reported as a leak)}(hj JhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMChjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjJhMGhjwIubj)}(hL``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]jS)}(hjbJh]h gfp_t gfp}(hjdJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`Jubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMHhj\Jubj)}(hhh]jM)}(h=kmalloc() flags used for kmemleak internal memory allocationsh]h=kmalloc() flags used for kmemleak internal memory allocations}(hj{JhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwJhMHhjxJubah}(h]h ]h"]h$]h&]uh1jhj\Jubeh}(h]h ]h"]h$]h&]uh1jhjwJhMHhjwIubeh}(h]h ]h"]h$]h&]uh1jhj[IubjM)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMJhj[IubjM)}(hThis function is called from the kernel allocators when a new object (memory block) is allocated (kmem_cache_alloc, kmalloc etc.).h]hThis function is called from the kernel allocators when a new object (memory block) is allocated (kmem_cache_alloc, kmalloc etc.).}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMIhj[Iubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"kmemleak_alloc_percpu (C function)c.kmemleak_alloc_percpuhNtauh1hhjhhhNhNubh)}(hhh](h)}(hSvoid __ref kmemleak_alloc_percpu (const void __percpu *ptr, size_t size, gfp_t gfp)h]h)}(hRvoid __ref kmemleak_alloc_percpu(const void __percpu *ptr, size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMXubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhjJhMXubh__ref}(hjJhhhNhNubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhjJhMXubh)}(hkmemleak_alloc_percpuh]j)}(hkmemleak_alloc_percpuh]hkmemleak_alloc_percpu}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1hhjJhhhjJhMXubj )}(h2(const void __percpu *ptr, size_t size, gfp_t gfp)h](j )}(hconst void __percpu *ptrh](j5)}(hjh]hconst}(hj1KhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-Kubj)}(h h]h }(hj>KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Kubj)}(hvoidh]hvoid}(hjLKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Kubj)}(h h]h }(hjZKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Kubh__percpu}(hj-KhhhNhNubj)}(h h]h }(hjlKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-KubjF )}(hjI h]h*}(hjzKhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-Kubj)}(hptrh]hptr}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Kubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)Kubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKmodnameN classnameNjpjs)}jv]jy)}jljKsbc.kmemleak_alloc_percpuasbuh1hhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hsizeh]hsize}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)Kubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKmodnameN classnameNjpjs)}jv]jKc.kmemleak_alloc_percpuasbuh1hhjKubj)}(h h]h }(hj LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hgfph]hgfp}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)Kubeh}(h]h ]h"]h$]h&]jjuh1j hjJhhhjJhMXubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjJhhhjJhMXubah}(h]jJah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjJhMXhjJhhubj4)}(hhh]jM)}(h*register a newly allocated __percpu objecth]h*register a newly allocated __percpu object}(hjCLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMXhj@Lhhubah}(h]h ]h"]h$]h&]uh1j3hjJhhhjJhMXubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj[LjHj[LjIjJjKuh1hhhhjhNhNubj)}(hXN**Parameters** ``const void __percpu *ptr`` __percpu pointer to beginning of the object ``size_t size`` size of the object ``gfp_t gfp`` flags used for kmemleak internal memory allocations **Description** This function is called from the kernel percpu allocator when a new object (memory block) is allocated (alloc_percpu).h](jM)}(h**Parameters**h]j)}(hjeLh]h Parameters}(hjgLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcLubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM\hj_Lubj)}(hhh](j)}(hI``const void __percpu *ptr`` __percpu pointer to beginning of the object h](j)}(h``const void __percpu *ptr``h]jS)}(hjLh]hconst void __percpu *ptr}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMYhj~Lubj)}(hhh]jM)}(h+__percpu pointer to beginning of the objecth]h+__percpu pointer to beginning of the object}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhMYhjLubah}(h]h ]h"]h$]h&]uh1jhj~Lubeh}(h]h ]h"]h$]h&]uh1jhjLhMYhj{Lubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]jS)}(hjLh]h size_t size}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMZhjLubj)}(hhh]jM)}(hsize of the objecth]hsize of the object}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhMZhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMZhj{Lubj)}(hB``gfp_t gfp`` flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]jS)}(hjLh]h gfp_t gfp}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM[hjLubj)}(hhh]jM)}(h3flags used for kmemleak internal memory allocationsh]h3flags used for kmemleak internal memory allocations}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj MhM[hj Mubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhj MhM[hj{Lubeh}(h]h ]h"]h$]h&]uh1jhj_LubjM)}(h**Description**h]j)}(hj1Mh]h Description}(hj3MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Mubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM]hj_LubjM)}(hvThis function is called from the kernel percpu allocator when a new object (memory block) is allocated (alloc_percpu).h]hvThis function is called from the kernel percpu allocator when a new object (memory block) is allocated (alloc_percpu).}(hjGMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM\hj_Lubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_vmalloc (C function)c.kmemleak_vmallochNtauh1hhjhhhNhNubh)}(hhh](h)}(hRvoid __ref kmemleak_vmalloc (const struct vm_struct *area, size_t size, gfp_t gfp)h]h)}(hQvoid __ref kmemleak_vmalloc(const struct vm_struct *area, size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hjvMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrMhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMkubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrMhhhjMhMkubh__ref}(hjrMhhhNhNubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrMhhhjMhMkubh)}(hkmemleak_vmalloch]j)}(hkmemleak_vmalloch]hkmemleak_vmalloc}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1hhjrMhhhjMhMkubj )}(h6(const struct vm_struct *area, size_t size, gfp_t gfp)h](j )}(hconst struct vm_struct *areah](j5)}(hjh]hconst}(hjMhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj5)}(hj8h]hstruct}(hjMhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(hhh]j)}(h vm_structh]h vm_struct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjNmodnameN classnameNjpjs)}jv]jy)}jljMsbc.kmemleak_vmallocasbuh1hhjMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjF )}(hjI h]h*}(hj,NhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjMubj)}(hareah]harea}(hj9NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjUNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRNubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWNmodnameN classnameNjpjs)}jv]jNc.kmemleak_vmallocasbuh1hhjNNubj)}(h h]h }(hjsNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNNubj)}(hsizeh]hsize}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNNubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjNmodnameN classnameNjpjs)}jv]jNc.kmemleak_vmallocasbuh1hhjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hgfph]hgfp}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubeh}(h]h ]h"]h$]h&]jjuh1j hjrMhhhjMhMkubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjnMhhhjMhMkubah}(h]jiMah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjMhMkhjkMhhubj4)}(hhh]jM)}(h"register a newly vmalloc'ed objecth]h$register a newly vmalloc’ed object}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMkhjNhhubah}(h]h ]h"]h$]h&]uh1j3hjkMhhhjMhMkubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj OjHj OjIjJjKuh1hhhhjhNhNubj)}(hX;**Parameters** ``const struct vm_struct *area`` pointer to vm_struct ``size_t size`` size of the object ``gfp_t gfp`` __vmalloc() flags used for kmemleak internal memory allocations **Description** This function is called from the vmalloc() kernel allocator when a new object (memory block) is allocated.h](jM)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMohjOubj)}(hhh](j)}(h6``const struct vm_struct *area`` pointer to vm_struct h](j)}(h ``const struct vm_struct *area``h]jS)}(hj4Oh]hconst struct vm_struct *area}(hj6OhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2Oubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMlhj.Oubj)}(hhh]jM)}(hpointer to vm_structh]hpointer to vm_struct}(hjMOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIOhMlhjJOubah}(h]h ]h"]h$]h&]uh1jhj.Oubeh}(h]h ]h"]h$]h&]uh1jhjIOhMlhj+Oubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]jS)}(hjmOh]h size_t size}(hjoOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjkOubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMmhjgOubj)}(hhh]jM)}(hsize of the objecth]hsize of the object}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjOhMmhjOubah}(h]h ]h"]h$]h&]uh1jhjgOubeh}(h]h ]h"]h$]h&]uh1jhjOhMmhj+Oubj)}(hN``gfp_t gfp`` __vmalloc() flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]jS)}(hjOh]h gfp_t gfp}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjOubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMnhjOubj)}(hhh]jM)}(h?__vmalloc() flags used for kmemleak internal memory allocationsh]h?__vmalloc() flags used for kmemleak internal memory allocations}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjOhMnhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMnhj+Oubeh}(h]h ]h"]h$]h&]uh1jhjOubjM)}(h**Description**h]j)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMphjOubjM)}(hjThis function is called from the vmalloc() kernel allocator when a new object (memory block) is allocated.h]hjThis function is called from the vmalloc() kernel allocator when a new object (memory block) is allocated.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMohjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_free (C function)c.kmemleak_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(h*void __ref kmemleak_free (const void *ptr)h]h)}(h)void __ref kmemleak_free(const void *ptr)h](j)}(hvoidh]hvoid}(hj&PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"PhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hj5PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Phhhj4PhMubh__ref}(hj"PhhhNhNubj)}(h h]h }(hjGPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Phhhj4PhMubh)}(h kmemleak_freeh]j)}(h kmemleak_freeh]h kmemleak_free}(hjYPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUPubah}(h]h ](jjeh"]h$]h&]jjuh1hhj"Phhhj4PhMubj )}(h(const void *ptr)h]j )}(hconst void *ptrh](j5)}(hjh]hconst}(hjuPhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjqPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqPubj)}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqPubjF )}(hjI h]h*}(hjPhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjqPubj)}(hptrh]hptr}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqPubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjmPubah}(h]h ]h"]h$]h&]jjuh1j hj"Phhhj4PhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjPhhhj4PhMubah}(h]jPah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj4PhMhjPhhubj4)}(hhh]jM)}(h)unregister a previously registered objecth]h)unregister a previously registered object}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjPhhubah}(h]h ]h"]h$]h&]uh1j3hjPhhhj4PhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjPjHjPjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const void *ptr`` pointer to beginning of the object **Description** This function is called from the kernel allocators when an object (memory block) is freed (kmem_cache_free, kfree, vfree etc.).h](jM)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjPubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hj$Qh]hconst void *ptr}(hj&QhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"Qubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjQubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hj=QhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9QhMhj:Qubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhj9QhMhjQubah}(h]h ]h"]h$]h&]uh1jhjPubjM)}(h**Description**h]j)}(hj_Qh]h Description}(hjaQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Qubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjPubjM)}(hThis function is called from the kernel allocators when an object (memory block) is freed (kmem_cache_free, kfree, vfree etc.).h]hThis function is called from the kernel allocators when an object (memory block) is freed (kmem_cache_free, kfree, vfree etc.).}(hjuQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_free_part (C function)c.kmemleak_free_parthNtauh1hhjhhhNhNubh)}(hhh](h)}(hThhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjSubj)}(hptrh]hptr}(hjKThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjSubah}(h]h ]h"]h$]h&]jjuh1j hjShhhjShMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjShhhjShMubah}(h]jSah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjShMhjShhubj4)}(hhh]jM)}(h2unregister a previously registered __percpu objecth]h2unregister a previously registered __percpu object}(hjuThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjrThhubah}(h]h ]h"]h$]h&]uh1j3hjShhhjShMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjTjHjTjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const void __percpu *ptr`` __percpu pointer to beginning of the object **Description** This function is called from the kernel percpu allocator when an object (memory block) is freed (free_percpu).h](jM)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjTubj)}(hhh]j)}(hI``const void __percpu *ptr`` __percpu pointer to beginning of the object h](j)}(h``const void __percpu *ptr``h]jS)}(hjTh]hconst void __percpu *ptr}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjTubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjTubj)}(hhh]jM)}(h+__percpu pointer to beginning of the objecth]h+__percpu pointer to beginning of the object}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubjM)}(h**Description**h]j)}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjTubjM)}(hnThis function is called from the kernel percpu allocator when an object (memory block) is freed (free_percpu).h]hnThis function is called from the kernel percpu allocator when an object (memory block) is freed (free_percpu).}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"kmemleak_update_trace (C function)c.kmemleak_update_tracehNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void __ref kmemleak_update_trace (const void *ptr)h]h)}(h1void __ref kmemleak_update_trace(const void *ptr)h](j)}(hvoidh]hvoid}(hj6UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2UhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjEUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2UhhhjDUhMubh__ref}(hj2UhhhNhNubj)}(h h]h }(hjWUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2UhhhjDUhMubh)}(hkmemleak_update_traceh]j)}(hkmemleak_update_traceh]hkmemleak_update_trace}(hjiUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeUubah}(h]h ](jjeh"]h$]h&]jjuh1hhj2UhhhjDUhMubj )}(h(const void *ptr)h]j )}(hconst void *ptrh](j5)}(hjh]hconst}(hjUhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjF )}(hjI h]h*}(hjUhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjUubj)}(hptrh]hptr}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}Uubah}(h]h ]h"]h$]h&]jjuh1j hj2UhhhjDUhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj.UhhhjDUhMubah}(h]j)Uah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjDUhMhj+Uhhubj4)}(hhh]jM)}(h$update object allocation stack traceh]h$update object allocation stack trace}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjUhhubah}(h]h ]h"]h$]h&]uh1j3hj+UhhhjDUhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj VjHj VjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const void *ptr`` pointer to beginning of the object **Description** Override the object allocation stack trace for cases where the actual allocation place is not always useful.h](jM)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjVubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hj4Vh]hconst void *ptr}(hj6VhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2Vubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj.Vubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjMVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIVhMhjJVubah}(h]h ]h"]h$]h&]uh1jhj.Vubeh}(h]h ]h"]h$]h&]uh1jhjIVhMhj+Vubah}(h]h ]h"]h$]h&]uh1jhjVubjM)}(h**Description**h]j)}(hjoVh]h Description}(hjqVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmVubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjVubjM)}(hlOverride the object allocation stack trace for cases where the actual allocation place is not always useful.h]hlOverride the object allocation stack trace for cases where the actual allocation place is not always useful.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_not_leak (C function)c.kmemleak_not_leakhNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void __ref kmemleak_not_leak (const void *ptr)h]h)}(h-void __ref kmemleak_not_leak(const void *ptr)h](j)}(hvoidh]hvoid}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhMubh__ref}(hjVhhhNhNubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhMubh)}(hkmemleak_not_leakh]j)}(hkmemleak_not_leakh]hkmemleak_not_leak}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1hhjVhhhjVhMubj )}(h(const void *ptr)h]j )}(hconst void *ptrh](j5)}(hjh]hconst}(hjWhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjVubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hvoidh]hvoid}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hj,WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjF )}(hjI h]h*}(hj:WhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVubj)}(hptrh]hptr}(hjGWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubah}(h]h ]h"]h$]h&]jjuh1j hjVhhhjVhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjVhhhjVhMubah}(h]jVah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjVhMhjVhhubj4)}(hhh]jM)}(h*mark an allocated object as false positiveh]h*mark an allocated object as false positive}(hjqWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjnWhhubah}(h]h ]h"]h$]h&]uh1j3hjVhhhjVhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjWjHjWjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const void *ptr`` pointer to beginning of the object **Description** Calling this function on an object will cause the memory block to no longer be reported as leak and always be scanned.h](jM)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjWubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hjWh]hconst void *ptr}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjWubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubjM)}(h**Description**h]j)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjWubjM)}(hvCalling this function on an object will cause the memory block to no longer be reported as leak and always be scanned.h]hvCalling this function on an object will cause the memory block to no longer be reported as leak and always be scanned.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$kmemleak_transient_leak (C function)c.kmemleak_transient_leakhNtauh1hhjhhhNhNubh)}(hhh](h)}(h4void __ref kmemleak_transient_leak (const void *ptr)h]h)}(h3void __ref kmemleak_transient_leak(const void *ptr)h](j)}(hvoidh]hvoid}(hj2XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.XhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjAXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Xhhhj@XhMubh__ref}(hj.XhhhNhNubj)}(h h]h }(hjSXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Xhhhj@XhMubh)}(hkmemleak_transient_leakh]j)}(hkmemleak_transient_leakh]hkmemleak_transient_leak}(hjeXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaXubah}(h]h ](jjeh"]h$]h&]jjuh1hhj.Xhhhj@XhMubj )}(h(const void *ptr)h]j )}(hconst void *ptrh](j5)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj}Xubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Xubj)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Xubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}XubjF )}(hjI h]h*}(hjXhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj}Xubj)}(hptrh]hptr}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Xubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjyXubah}(h]h ]h"]h$]h&]jjuh1j hj.Xhhhj@XhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj*Xhhhj@XhMubah}(h]j%Xah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj@XhMhj'Xhhubj4)}(hhh]jM)}(h4mark an allocated object as transient false positiveh]h4mark an allocated object as transient false positive}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjXhhubah}(h]h ]h"]h$]h&]uh1j3hj'Xhhhj@XhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjYjHjYjIjJjKuh1hhhhjhNhNubj)}(hX:**Parameters** ``const void *ptr`` pointer to beginning of the object **Description** Calling this function on an object will cause the memory block to not be reported as a leak temporarily. This may happen, for example, if the object is part of a singly linked list and the ->next reference to it is changed.h](jM)}(h**Parameters**h]j)}(hjYh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj Yubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hj0Yh]hconst void *ptr}(hj2YhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.Yubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj*Yubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjIYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEYhMhjFYubah}(h]h ]h"]h$]h&]uh1jhj*Yubeh}(h]h ]h"]h$]h&]uh1jhjEYhMhj'Yubah}(h]h ]h"]h$]h&]uh1jhj YubjM)}(h**Description**h]j)}(hjkYh]h Description}(hjmYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiYubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj YubjM)}(hCalling this function on an object will cause the memory block to not be reported as a leak temporarily. This may happen, for example, if the object is part of a singly linked list and the ->next reference to it is changed.h]hCalling this function on an object will cause the memory block to not be reported as a leak temporarily. This may happen, for example, if the object is part of a singly linked list and the ->next reference to it is changed.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj Yubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#kmemleak_ignore_percpu (C function)c.kmemleak_ignore_percpuhNtauh1hhjhhhNhNubh)}(hhh](h)}(h^ubah}(h]h ]h"]h$]h&]uh1jhj"^ubeh}(h]h ]h"]h$]h&]uh1jhj=^hMhj^ubj)}(h&``size_t size`` size of the scan area h](j)}(h``size_t size``h]jS)}(hjb^h]h size_t size}(hjd^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`^ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj\^ubj)}(hhh]jM)}(hsize of the scan areah]hsize of the scan area}(hj{^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjw^hMhjx^ubah}(h]h ]h"]h$]h&]uh1jhj\^ubeh}(h]h ]h"]h$]h&]uh1jhjw^hMhj^ubj)}(hL``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]jS)}(hj^h]h gfp_t gfp}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj^ubj)}(hhh]jM)}(h=kmalloc() flags used for kmemleak internal memory allocationsh]h=kmalloc() flags used for kmemleak internal memory allocations}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^ubjM)}(h**Description**h]j)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM!hj^ubjM)}(hThis function is used when it is known that only certain parts of an object contain references to other objects. Kmemleak will only scan these areas reducing the number false negatives.h]hThis function is used when it is known that only certain parts of an object contain references to other objects. Kmemleak will only scan these areas reducing the number false negatives.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM hj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_no_scan (C function)c.kmemleak_no_scanhNtauh1hhjhhhNhNubh)}(hhh](h)}(h-void __ref kmemleak_no_scan (const void *ptr)h]h)}(h,void __ref kmemleak_no_scan(const void *ptr)h](j)}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM/ubj)}(h h]h }(hj*_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhj)_hM/ubh__ref}(hj_hhhNhNubj)}(h h]h }(hj<_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhj)_hM/ubh)}(hkmemleak_no_scanh]j)}(hkmemleak_no_scanh]hkmemleak_no_scan}(hjN_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ_ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj_hhhj)_hM/ubj )}(h(const void *ptr)h]j )}(hconst void *ptrh](j5)}(hjh]hconst}(hjj_hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjf_ubj)}(h h]h }(hjw_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf_ubj)}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf_ubjF )}(hjI h]h*}(hj_hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjf_ubj)}(hptrh]hptr}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf_ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjb_ubah}(h]h ]h"]h$]h&]jjuh1j hj_hhhj)_hM/ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj_hhhj)_hM/ubah}(h]j_ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj)_hM/hj_hhubj4)}(hhh]jM)}(hdo not scan an allocated objecth]hdo not scan an allocated object}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM/hj_hhubah}(h]h ]h"]h$]h&]uh1j3hj_hhhj)_hM/ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj_jHj_jIjJjKuh1hhhhjhNhNubj)}(hXY**Parameters** ``const void *ptr`` pointer to beginning of the object **Description** This function notifies kmemleak not to scan the given memory block. Useful in situations where it is known that the given object does not contain any references to other objects. Kmemleak will not scan such objects reducing the number of false negatives.h](jM)}(h**Parameters**h]j)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM3hj_ubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hj`h]hconst void *ptr}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM0hj`ubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hj2`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.`hM0hj/`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj.`hM0hj`ubah}(h]h ]h"]h$]h&]uh1jhj_ubjM)}(h**Description**h]j)}(hjT`h]h Description}(hjV`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR`ubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM2hj_ubjM)}(hThis function notifies kmemleak not to scan the given memory block. Useful in situations where it is known that the given object does not contain any references to other objects. Kmemleak will not scan such objects reducing the number of false negatives.h]hThis function notifies kmemleak not to scan the given memory block. Useful in situations where it is known that the given object does not contain any references to other objects. Kmemleak will not scan such objects reducing the number of false negatives.}(hjj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM1hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h kmemleak_alloc_phys (C function)c.kmemleak_alloc_physhNtauh1hhjhhhNhNubh)}(hhh](h)}(hIvoid __ref kmemleak_alloc_phys (phys_addr_t phys, size_t size, gfp_t gfp)h]h)}(hHvoid __ref kmemleak_alloc_phys(phys_addr_t phys, size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMAubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hMAubh__ref}(hj`hhhNhNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hMAubh)}(hkmemleak_alloc_physh]j)}(hkmemleak_alloc_physh]hkmemleak_alloc_phys}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj`hhhj`hMAubj )}(h*(phys_addr_t phys, size_t size, gfp_t gfp)h](j )}(hphys_addr_t physh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj`modnameN classnameNjpjs)}jv]jy)}jlj`sbc.kmemleak_alloc_physasbuh1hhj`ubj)}(h h]h }(hj ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hphysh]hphys}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj5ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2aubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7amodnameN classnameNjpjs)}jv]jac.kmemleak_alloc_physasbuh1hhj.aubj)}(h h]h }(hjSahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.aubj)}(hsizeh]hsize}(hjaahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.aubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj}ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjamodnameN classnameNjpjs)}jv]jac.kmemleak_alloc_physasbuh1hhjvaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvaubj)}(hgfph]hgfp}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubeh}(h]h ]h"]h$]h&]jjuh1j hj`hhhj`hMAubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj`hhhj`hMAubah}(h]j`ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj`hMAhj`hhubj4)}(hhh]jM)}(h@similar to kmemleak_alloc but taking a physical address argumenth]h@similar to kmemleak_alloc but taking a physical address argument}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMAhjahhubah}(h]h ]h"]h$]h&]uh1j3hj`hhhj`hMAubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjajHjajIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``phys_addr_t phys`` physical address of the object ``size_t size`` size of the object ``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocationsh](jM)}(h**Parameters**h]j)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMEhjaubj)}(hhh](j)}(h4``phys_addr_t phys`` physical address of the object h](j)}(h``phys_addr_t phys``h]jS)}(hjbh]hphys_addr_t phys}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMChjbubj)}(hhh]jM)}(hphysical address of the objecth]hphysical address of the object}(hj-bhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)bhMChj*bubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj)bhMChj bubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]jS)}(hjMbh]h size_t size}(hjObhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKbubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMDhjGbubj)}(hhh]jM)}(hsize of the objecth]hsize of the object}(hjfbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbbhMDhjcbubah}(h]h ]h"]h$]h&]uh1jhjGbubeh}(h]h ]h"]h$]h&]uh1jhjbbhMDhj bubj)}(hK``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocationsh](j)}(h ``gfp_t gfp``h]jS)}(hjbh]h gfp_t gfp}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMFhjbubj)}(hhh]jM)}(h=kmalloc() flags used for kmemleak internal memory allocationsh]h=kmalloc() flags used for kmemleak internal memory allocations}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMEhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMFhj bubeh}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$kmemleak_free_part_phys (C function)c.kmemleak_free_part_physhNtauh1hhjhhhNhNubh)}(hhh](h)}(hBvoid __ref kmemleak_free_part_phys (phys_addr_t phys, size_t size)h]h)}(hAvoid __ref kmemleak_free_part_phys(phys_addr_t phys, size_t size)h](j)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMUubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhMUubh__ref}(hjbhhhNhNubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhMUubh)}(hkmemleak_free_part_physh]j)}(hkmemleak_free_part_physh]hkmemleak_free_part_phys}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1hhjbhhhjbhMUubj )}(h(phys_addr_t phys, size_t size)h](j )}(hphys_addr_t physh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj2chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/cubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4cmodnameN classnameNjpjs)}jv]jy)}jljcsbc.kmemleak_free_part_physasbuh1hhj+cubj)}(h h]h }(hjRchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+cubj)}(hphysh]hphys}(hj`chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+cubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj'cubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj|chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjycubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj~cmodnameN classnameNjpjs)}jv]jNcc.kmemleak_free_part_physasbuh1hhjucubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjucubj)}(hsizeh]hsize}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjucubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj'cubeh}(h]h ]h"]h$]h&]jjuh1j hjbhhhjbhMUubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjbhhhjbhMUubah}(h]jbah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjbhMUhjbhhubj4)}(hhh]jM)}(hDsimilar to kmemleak_free_part but taking a physical address argumenth]hDsimilar to kmemleak_free_part but taking a physical address argument}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMUhjchhubah}(h]h ]h"]h$]h&]uh1j3hjbhhhjbhMUubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjcjHjcjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``phys_addr_t phys`` physical address if the beginning or inside an object. This also represents the start of the range to be freed ``size_t size`` size to be unregisteredh](jM)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMYhjcubj)}(hhh](j)}(h``phys_addr_t phys`` physical address if the beginning or inside an object. This also represents the start of the range to be freed h](j)}(h``phys_addr_t phys``h]jS)}(hjdh]hphys_addr_t phys}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMXhj dubj)}(hhh]jM)}(hnphysical address if the beginning or inside an object. This also represents the start of the range to be freedh]hnphysical address if the beginning or inside an object. This also represents the start of the range to be freed}(hj,dhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMWhj)dubah}(h]h ]h"]h$]h&]uh1jhj dubeh}(h]h ]h"]h$]h&]uh1jhj(dhMXhj dubj)}(h'``size_t size`` size to be unregisteredh](j)}(h``size_t size``h]jS)}(hjMdh]h size_t size}(hjOdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKdubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMZhjGdubj)}(hhh]jM)}(hsize to be unregisteredh]hsize to be unregistered}(hjfdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMYhjcdubah}(h]h ]h"]h$]h&]uh1jhjGdubeh}(h]h ]h"]h$]h&]uh1jhjbdhMZhj dubeh}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!kmemleak_ignore_phys (C function)c.kmemleak_ignore_physhNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void __ref kmemleak_ignore_phys (phys_addr_t phys)h]h)}(h1void __ref kmemleak_ignore_phys(phys_addr_t phys)h](j)}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMeubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhMeubh__ref}(hjdhhhNhNubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhMeubh)}(hkmemleak_ignore_physh]j)}(hkmemleak_ignore_physh]hkmemleak_ignore_phys}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1hhjdhhhjdhMeubj )}(h(phys_addr_t phys)h]j )}(hphys_addr_t physh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]jy)}jljdsbc.kmemleak_ignore_physasbuh1hhjdubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hphysh]hphys}(hj'ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjdubah}(h]h ]h"]h$]h&]jjuh1j hjdhhhjdhMeubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjdhhhjdhMeubah}(h]jdah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjdhMehjdhhubj4)}(hhh]jM)}(hAsimilar to kmemleak_ignore but taking a physical address argumenth]hAsimilar to kmemleak_ignore but taking a physical address argument}(hjQehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMehjNehhubah}(h]h ]h"]h$]h&]uh1j3hjdhhhjdhMeubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjiejHjiejIjJjKuh1hhhhjhNhNubj)}(hE**Parameters** ``phys_addr_t phys`` physical address of the objecth](jM)}(h**Parameters**h]j)}(hjseh]h Parameters}(hjuehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqeubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMihjmeubj)}(hhh]j)}(h3``phys_addr_t phys`` physical address of the objecth](j)}(h``phys_addr_t phys``h]jS)}(hjeh]hphys_addr_t phys}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMkhjeubj)}(hhh]jM)}(hphysical address of the objecth]hphysical address of the object}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMghjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehMkhjeubah}(h]h ]h"]h$]h&]uh1jhjmeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubhcomment)}(h'#kernel-doc:: mm/hmm.c (build warnings)h]h'#kernel-doc:: mm/hmm.c (build warnings)}hjesbah}(h]h ]h"]h$]h&]jjuh1jehjhhhhhKuubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h devm_memremap_pages (C function)c.devm_memremap_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hJvoid * devm_memremap_pages (struct device *dev, struct dev_pagemap *pgmap)h]h)}(hHvoid *devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap)h](j)}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMcubj)}(h h]h }(hj fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhj fhMcubjF )}(hjI h]h*}(hjfhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjehhhj fhMcubh)}(hdevm_memremap_pagesh]j)}(hdevm_memremap_pagesh]hdevm_memremap_pages}(hj*fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&fubah}(h]h ](jjeh"]h$]h&]jjuh1hhjehhhj fhMcubj )}(h/(struct device *dev, struct dev_pagemap *pgmap)h](j )}(hstruct device *devh](j5)}(hj8h]hstruct}(hjFfhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjBfubj)}(h h]h }(hjSfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBfubh)}(hhh]j)}(hdeviceh]hdevice}(hjdfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjafubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjffmodnameN classnameNjpjs)}jv]jy)}jlj,fsbc.devm_memremap_pagesasbuh1hhjBfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBfubjF )}(hjI h]h*}(hjfhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjBfubj)}(hdevh]hdev}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBfubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>fubj )}(hstruct dev_pagemap *pgmaph](j5)}(hj8h]hstruct}(hjfhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j)}(h dev_pagemaph]h dev_pagemap}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjfmodnameN classnameNjpjs)}jv]jfc.devm_memremap_pagesasbuh1hhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjF )}(hjI h]h*}(hjghhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjfubj)}(hpgmaph]hpgmap}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>fubeh}(h]h ]h"]h$]h&]jjuh1j hjehhhj fhMcubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjehhhj fhMcubah}(h]jeah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj fhMchjehhubj4)}(hhh]jM)}(h7remap and provide memmap backing for the given resourceh]h7remap and provide memmap backing for the given resource}(hj9ghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMchj6ghhubah}(h]h ]h"]h$]h&]uh1j3hjehhhj fhMcubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjQgjHjQgjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` hosting device for **res** ``struct dev_pagemap *pgmap`` pointer to a struct dev_pagemap **Notes** 1/ At a minimum the range and type members of **pgmap** must be initialized by the caller before passing it to this function 2/ The altmap field may optionally be initialized, in which case PGMAP_ALTMAP_VALID must be set in pgmap->flags. 3/ The ref field may optionally be provided, in which pgmap->ref must be 'live' on entry and will be killed and reaped at devm_memremap_pages_release() time, or if this routine fails. 4/ range is expected to be a host memory range that could feasibly be treated as a "System RAM" range, i.e. not a device mmio range, but this is not enforced.h](jM)}(h**Parameters**h]j)}(hj[gh]h Parameters}(hj]ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYgubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMghjUgubj)}(hhh](j)}(h2``struct device *dev`` hosting device for **res** h](j)}(h``struct device *dev``h]jS)}(hjzgh]hstruct device *dev}(hj|ghhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxgubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMdhjtgubj)}(hhh]jM)}(hhosting device for **res**h](hhosting device for }(hjghhhNhNubj)}(h**res**h]hres}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jLhjghMdhjgubah}(h]h ]h"]h$]h&]uh1jhjtgubeh}(h]h ]h"]h$]h&]uh1jhjghMdhjqgubj)}(h>``struct dev_pagemap *pgmap`` pointer to a struct dev_pagemap h](j)}(h``struct dev_pagemap *pgmap``h]jS)}(hjgh]hstruct dev_pagemap *pgmap}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMehjgubj)}(hhh]jM)}(hpointer to a struct dev_pagemaph]hpointer to a struct dev_pagemap}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjghMehjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMehjqgubeh}(h]h ]h"]h$]h&]uh1jhjUgubjM)}(h **Notes**h]j)}(hjgh]hNotes}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMghjUgubj)}(hhh](j)}(h}1/ At a minimum the range and type members of **pgmap** must be initialized by the caller before passing it to this function h](j)}(hK1/ At a minimum the range and type members of **pgmap** must be initializedh](h.1/ At a minimum the range and type members of }(hjhhhhNhNubj)}(h **pgmap**h]hpgmap}(hj!hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh must be initialized}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhhjhubj)}(hhh]jM)}(h0by the caller before passing it to this functionh]h0by the caller before passing it to this function}(hj=hhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9hhMhhj:hubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhj9hhMhhjhubj)}(hq2/ The altmap field may optionally be initialized, in which case PGMAP_ALTMAP_VALID must be set in pgmap->flags. h](j)}(h@2/ The altmap field may optionally be initialized, in which caseh]h@2/ The altmap field may optionally be initialized, in which case}(hj[hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMkhjWhubj)}(hhh]jM)}(h/PGMAP_ALTMAP_VALID must be set in pgmap->flags.h]h/PGMAP_ALTMAP_VALID must be set in pgmap->flags.}(hjmhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjihhMkhjjhubah}(h]h ]h"]h$]h&]uh1jhjWhubeh}(h]h ]h"]h$]h&]uh1jhjihhMkhjhubj)}(h3/ The ref field may optionally be provided, in which pgmap->ref must be 'live' on entry and will be killed and reaped at devm_memremap_pages_release() time, or if this routine fails. h](j)}(hH3/ The ref field may optionally be provided, in which pgmap->ref must beh]hH3/ The ref field may optionally be provided, in which pgmap->ref must be}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMohjhubj)}(hhh]jM)}(hn'live' on entry and will be killed and reaped at devm_memremap_pages_release() time, or if this routine fails.h]hr‘live’ on entry and will be killed and reaped at devm_memremap_pages_release() time, or if this routine fails.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMnhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMohjhubj)}(h4/ range is expected to be a host memory range that could feasibly be treated as a "System RAM" range, i.e. not a device mmio range, but this is not enforced.h](j)}(hE4/ range is expected to be a host memory range that could feasibly beh]hE4/ range is expected to be a host memory range that could feasibly be}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMrhjhubj)}(hhh]jM)}(hXtreated as a "System RAM" range, i.e. not a device mmio range, but this is not enforced.h]h\treated as a “System RAM” range, i.e. not a device mmio range, but this is not enforced.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhMrhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMrhjhubeh}(h]h ]h"]h$]h&]uh1jhjUgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_dev_pagemap (C function)c.get_dev_pagemaphNtauh1hhjhhhNhNubh)}(hhh](h)}(h8struct dev_pagemap * get_dev_pagemap (unsigned long pfn)h]h)}(h6struct dev_pagemap *get_dev_pagemap(unsigned long pfn)h](j5)}(hj8h]hstruct}(hjihhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ihhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ihhhjihMubh)}(hhh]j)}(h dev_pagemaph]h dev_pagemap}(hj-ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*iubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj/imodnameN classnameNjpjs)}jv]jy)}jlget_dev_pagemapsbc.get_dev_pagemapasbuh1hhj ihhhjihMubj)}(h h]h }(hjNihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ihhhjihMubjF )}(hjI h]h*}(hj\ihhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ihhhjihMubh)}(hget_dev_pagemaph]j)}(hjKih]hget_dev_pagemap}(hjmihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiiubah}(h]h ](jjeh"]h$]h&]jjuh1hhj ihhhjihMubj )}(h(unsigned long pfn)h]j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hlongh]hlong}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hpfnh]hpfn}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjiubah}(h]h ]h"]h$]h&]jjuh1j hj ihhhjihMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjihhhjihMubah}(h]jiah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjihMhjihhubj4)}(hhh]jM)}(h8take a new live reference on the dev_pagemap for **pfn**h](h1take a new live reference on the dev_pagemap for }(hjihhhNhNubj)}(h**pfn**h]hpfn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjihhubah}(h]h ]h"]h$]h&]uh1j3hjihhhjihMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjjHjjjIjJjKuh1hhhhjhNhNubj)}(hL**Parameters** ``unsigned long pfn`` page frame number to lookup page_maph](jM)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjjubj)}(hhh]j)}(h:``unsigned long pfn`` page frame number to lookup page_maph](j)}(h``unsigned long pfn``h]jS)}(hj9jh]hunsigned long pfn}(hj;jhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7jubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhj3jubj)}(hhh]jM)}(h$page frame number to lookup page_maph]h$page frame number to lookup page_map}(hjRjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjOjubah}(h]h ]h"]h$]h&]uh1jhj3jubeh}(h]h ]h"]h$]h&]uh1jhjNjhMhj0jubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhuge_pmd_unshare (C function)c.huge_pmd_unsharehNtauh1hhjhhhNhNubh)}(hhh](h)}(hjint huge_pmd_unshare (struct mmu_gather *tlb, struct vm_area_struct *vma, unsigned long addr, pte_t *ptep)h]h)}(hiint huge_pmd_unshare(struct mmu_gather *tlb, struct vm_area_struct *vma, unsigned long addr, pte_t *ptep)h](j)}(hinth]hint}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhjjhMubh)}(hhuge_pmd_unshareh]j)}(hhuge_pmd_unshareh]hhuge_pmd_unshare}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjjhhhjjhMubj )}(hU(struct mmu_gather *tlb, struct vm_area_struct *vma, unsigned long addr, pte_t *ptep)h](j )}(hstruct mmu_gather *tlbh](j5)}(hj8h]hstruct}(hjjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j)}(h mmu_gatherh]h mmu_gather}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjjmodnameN classnameNjpjs)}jv]jy)}jljjsbc.huge_pmd_unshareasbuh1hhjjubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjF )}(hjI h]h*}(hjkhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjjubj)}(htlbh]htlb}(hj)khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjBkhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj>kubj)}(h h]h }(hjOkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>kubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj`khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]kubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbkmodnameN classnameNjpjs)}jv]j kc.huge_pmd_unshareasbuh1hhj>kubj)}(h h]h }(hj~khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>kubjF )}(hjI h]h*}(hjkhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj>kubj)}(hvmah]hvma}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>kubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hlongh]hlong}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(haddrh]haddr}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjjubj )}(h pte_t *pteph](h)}(hhh]j)}(hpte_th]hpte_t}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlmodnameN classnameNjpjs)}jv]j kc.huge_pmd_unshareasbuh1hhjkubj)}(h h]h }(hj$lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjF )}(hjI h]h*}(hj2lhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjkubj)}(hpteph]hptep}(hj?lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjjubeh}(h]h ]h"]h$]h&]jjuh1j hjjhhhjjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjjhhhjjhMubah}(h]jjah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjjhMhjjhhubj4)}(hhh]jM)}(h3Unmap a pmd table if it is shared by multiple usersh]h3Unmap a pmd table if it is shared by multiple users}(hjilhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjflhhubah}(h]h ]h"]h$]h&]uh1j3hjjhhhjjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjljHjljIjJjKuh1hhhhjhNhNubj)}(hXH**Parameters** ``struct mmu_gather *tlb`` the current mmu_gather. ``struct vm_area_struct *vma`` the vma covering the pmd table. ``unsigned long addr`` the address we are trying to unshare. ``pte_t *ptep`` pointer into the (pmd) page table. **Description** Called with the page table lock held, the i_mmap_rwsem held in write mode and the hugetlb vma lock held in write mode. **Note** The caller must call huge_pmd_unshare_flush() before dropping the i_mmap_rwsem. **Return** 1 if it was a shared PMD table and it got unmapped, or 0 if it was not a shared PMD table.h](jM)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjlubj)}(hhh](j)}(h3``struct mmu_gather *tlb`` the current mmu_gather. h](j)}(h``struct mmu_gather *tlb``h]jS)}(hjlh]hstruct mmu_gather *tlb}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjlubj)}(hhh]jM)}(hthe current mmu_gather.h]hthe current mmu_gather.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubj)}(h?``struct vm_area_struct *vma`` the vma covering the pmd table. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjlh]hstruct vm_area_struct *vma}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjlubj)}(hhh]jM)}(hthe vma covering the pmd table.h]hthe vma covering the pmd table.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubj)}(h=``unsigned long addr`` the address we are trying to unshare. h](j)}(h``unsigned long addr``h]jS)}(hjmh]hunsigned long addr}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjmubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjmubj)}(hhh]jM)}(h%the address we are trying to unshare.h]h%the address we are trying to unshare.}(hj5mhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1mhMhj2mubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhj1mhMhjlubj)}(h3``pte_t *ptep`` pointer into the (pmd) page table. h](j)}(h``pte_t *ptep``h]jS)}(hjUmh]h pte_t *ptep}(hjWmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSmubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjOmubj)}(hhh]jM)}(h"pointer into the (pmd) page table.h]h"pointer into the (pmd) page table.}(hjnmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjmhMhjkmubah}(h]h ]h"]h$]h&]uh1jhjOmubeh}(h]h ]h"]h$]h&]uh1jhjjmhMhjlubeh}(h]h ]h"]h$]h&]uh1jhjlubjM)}(h**Description**h]j)}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjlubjM)}(hvCalled with the page table lock held, the i_mmap_rwsem held in write mode and the hugetlb vma lock held in write mode.h]hvCalled with the page table lock held, the i_mmap_rwsem held in write mode and the hugetlb vma lock held in write mode.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjlubjM)}(h**Note**h]j)}(hjmh]hNote}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjlubjM)}(hOThe caller must call huge_pmd_unshare_flush() before dropping the i_mmap_rwsem.h]hOThe caller must call huge_pmd_unshare_flush() before dropping the i_mmap_rwsem.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjlubjM)}(h **Return**h]j)}(hjmh]hReturn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjlubjM)}(hZ1 if it was a shared PMD table and it got unmapped, or 0 if it was not a shared PMD table.h]hZ1 if it was a shared PMD table and it got unmapped, or 0 if it was not a shared PMD table.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_isolate_hugetlb (C function)c.folio_isolate_hugetlbhNtauh1hhjhhhNhNubh)}(hhh](h)}(hHbool folio_isolate_hugetlb (struct folio *folio, struct list_head *list)h]h)}(hGbool folio_isolate_hugetlb(struct folio *folio, struct list_head *list)h](j)}(hj.h]hbool}(hj#nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMubj)}(h h]h }(hj1nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhj0nhMubh)}(hfolio_isolate_hugetlbh]j)}(hfolio_isolate_hugetlbh]hfolio_isolate_hugetlb}(hjCnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?nubah}(h]h ](jjeh"]h$]h&]jjuh1hhjnhhhj0nhMubj )}(h-(struct folio *folio, struct list_head *list)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj_nhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj[nubj)}(h h]h }(hjlnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[nubh)}(hhh]j)}(hfolioh]hfolio}(hj}nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjznubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jy)}jljEnsbc.folio_isolate_hugetlbasbuh1hhj[nubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[nubjF )}(hjI h]h*}(hjnhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj[nubj)}(hfolioh]hfolio}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[nubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWnubj )}(hstruct list_head *listh](j5)}(hj8h]hstruct}(hjnhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j)}(h list_headh]h list_head}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jnc.folio_isolate_hugetlbasbuh1hhjnubj)}(h h]h }(hj ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjF )}(hjI h]h*}(hjohhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjnubj)}(hlisth]hlist}(hj(ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWnubeh}(h]h ]h"]h$]h&]jjuh1j hjnhhhj0nhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjnhhhj0nhMubah}(h]jnah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj0nhMhjnhhubj4)}(hhh]jM)}(h)try to isolate an allocated hugetlb folioh]h)try to isolate an allocated hugetlb folio}(hjRohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjOohhubah}(h]h ]h"]h$]h&]uh1j3hjnhhhj0nhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjojHjjojIjJjKuh1hhhhjhNhNubj)}(hXN**Parameters** ``struct folio *folio`` the folio to isolate ``struct list_head *list`` the list to add the folio to on success **Description** Isolate an allocated (refcount > 0) hugetlb folio, marking it as isolated/non-migratable, and moving it from the active list to the given list. Isolation will fail if **folio** is not an allocated hugetlb folio, or if it is already isolated/non-migratable. On success, an additional folio reference is taken that must be dropped using folio_putback_hugetlb() to undo the isolation. **Return** True if isolation worked, otherwise False.h](jM)}(h**Parameters**h]j)}(hjtoh]h Parameters}(hjvohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjroubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjnoubj)}(hhh](j)}(h-``struct folio *folio`` the folio to isolate h](j)}(h``struct folio *folio``h]jS)}(hjoh]hstruct folio *folio}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjoubj)}(hhh]jM)}(hthe folio to isolateh]hthe folio to isolate}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjoubj)}(hC``struct list_head *list`` the list to add the folio to on success h](j)}(h``struct list_head *list``h]jS)}(hjoh]hstruct list_head *list}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjoubj)}(hhh]jM)}(h'the list to add the folio to on successh]h'the list to add the folio to on success}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjoubeh}(h]h ]h"]h$]h&]uh1jhjnoubjM)}(h**Description**h]j)}(hjph]h Description}(hj phhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjnoubjM)}(hIsolate an allocated (refcount > 0) hugetlb folio, marking it as isolated/non-migratable, and moving it from the active list to the given list.h]hIsolate an allocated (refcount > 0) hugetlb folio, marking it as isolated/non-migratable, and moving it from the active list to the given list.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjnoubjM)}(hpIsolation will fail if **folio** is not an allocated hugetlb folio, or if it is already isolated/non-migratable.h](hIsolation will fail if }(hj,phhhNhNubj)}(h **folio**h]hfolio}(hj4phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,pubhP is not an allocated hugetlb folio, or if it is already isolated/non-migratable.}(hj,phhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjnoubjM)}(h|On success, an additional folio reference is taken that must be dropped using folio_putback_hugetlb() to undo the isolation.h]h|On success, an additional folio reference is taken that must be dropped using folio_putback_hugetlb() to undo the isolation.}(hjMphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjnoubjM)}(h **Return**h]j)}(hj^ph]hReturn}(hj`phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\pubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjnoubjM)}(h*True if isolation worked, otherwise False.h]h*True if isolation worked, otherwise False.}(hjtphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjnoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_putback_hugetlb (C function)c.folio_putback_hugetlbhNtauh1hhjhhhNhNubh)}(hhh](h)}(h0void folio_putback_hugetlb (struct folio *folio)h]h)}(h/void folio_putback_hugetlb(struct folio *folio)h](j)}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjphMubh)}(hfolio_putback_hugetlbh]j)}(hfolio_putback_hugetlbh]hfolio_putback_hugetlb}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1hhjphhhjphMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjphhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j)}(hfolioh]hfolio}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjqmodnameN classnameNjpjs)}jv]jy)}jljpsbc.folio_putback_hugetlbasbuh1hhjpubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjF )}(hjI h]h*}(hj,qhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjpubj)}(hfolioh]hfolio}(hj9qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpubah}(h]h ]h"]h$]h&]jjuh1j hjphhhjphMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjphhhjphMubah}(h]jpah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjphMhjphhubj4)}(hhh]jM)}(hunisolate a hugetlb folioh]hunisolate a hugetlb folio}(hjcqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj`qhhubah}(h]h ]h"]h$]h&]uh1j3hjphhhjphMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj{qjHj{qjIjJjKuh1hhhhjhNhNubj)}(hXV**Parameters** ``struct folio *folio`` the isolated hugetlb folio **Description** Putback/un-isolate the hugetlb folio that was previous isolated using folio_isolate_hugetlb(): marking it non-isolated/migratable and putting it back onto the active list. Will drop the additional folio reference obtained through folio_isolate_hugetlb().h](jM)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjqubj)}(hhh]j)}(h3``struct folio *folio`` the isolated hugetlb folio h](j)}(h``struct folio *folio``h]jS)}(hjqh]hstruct folio *folio}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjqubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjqubj)}(hhh]jM)}(hthe isolated hugetlb folioh]hthe isolated hugetlb folio}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jhjqubjM)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjqubjM)}(hPutback/un-isolate the hugetlb folio that was previous isolated using folio_isolate_hugetlb(): marking it non-isolated/migratable and putting it back onto the active list.h]hPutback/un-isolate the hugetlb folio that was previous isolated using folio_isolate_hugetlb(): marking it non-isolated/migratable and putting it back onto the active list.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjqubjM)}(hRWill drop the additional folio reference obtained through folio_isolate_hugetlb().h]hRWill drop the additional folio reference obtained through folio_isolate_hugetlb().}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_mark_accessed (C function)c.folio_mark_accessedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void folio_mark_accessed (struct folio *folio)h]h)}(h-void folio_mark_accessed(struct folio *folio)h](j)}(hvoidh]hvoid}(hj3rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/rhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjBrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/rhhhjArhMubh)}(hfolio_mark_accessedh]j)}(hfolio_mark_accessedh]hfolio_mark_accessed}(hjTrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPrubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/rhhhjArhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjprhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlrubj)}(h h]h }(hj}rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlrubh)}(hhh]j)}(hfolioh]hfolio}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrmodnameN classnameNjpjs)}jv]jy)}jljVrsbc.folio_mark_accessedasbuh1hhjlrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlrubjF )}(hjI h]h*}(hjrhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjlrubj)}(hfolioh]hfolio}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlrubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjhrubah}(h]h ]h"]h$]h&]jjuh1j hj/rhhhjArhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj+rhhhjArhMubah}(h]j&rah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjArhMhj(rhhubj4)}(hhh]jM)}(h%Mark a folio as having seen activity.h]h%Mark a folio as having seen activity.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjrhhubah}(h]h ]h"]h$]h&]uh1j3hj(rhhhjArhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj sjHj sjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to mark. **Description** This function will perform one of the following transitions: * inactive,unreferenced -> inactive,referenced * inactive,referenced -> active,unreferenced * active,unreferenced -> active,referenced When a newly allocated folio is not yet visible, so safe for non-atomic ops, __folio_set_referenced() may be substituted for folio_mark_accessed().h](jM)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjsubj)}(hhh]j)}(h+``struct folio *folio`` The folio to mark. h](j)}(h``struct folio *folio``h]jS)}(hj4sh]hstruct folio *folio}(hj6shhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2subah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj.subj)}(hhh]jM)}(hThe folio to mark.h]hThe folio to mark.}(hjMshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIshMhjJsubah}(h]h ]h"]h$]h&]uh1jhj.subeh}(h]h ]h"]h$]h&]uh1jhjIshMhj+subah}(h]h ]h"]h$]h&]uh1jhjsubjM)}(h**Description**h]j)}(hjosh]h Description}(hjqshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmsubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjsubjM)}(h inactive,referencedh]jM)}(hjsh]h6inactive,unreferenced -> inactive,referenced}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjsubah}(h]h ]h"]h$]h&]uh1j/hjsubj/)}(h6inactive,referenced -> active,unreferencedh]jM)}(hjsh]h6inactive,referenced -> active,unreferenced}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjsubah}(h]h ]h"]h$]h&]uh1j/hjsubj/)}(h5active,unreferenced -> active,referenced h]jM)}(h4active,unreferenced -> active,referencedh]h4active,unreferenced -> active,referenced}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjsubah}(h]h ]h"]h$]h&]uh1j/hjsubeh}(h]h ]h"]h$]h&]jWjI uh1j}WhjshMhjsubjM)}(hWhen a newly allocated folio is not yet visible, so safe for non-atomic ops, __folio_set_referenced() may be substituted for folio_mark_accessed().h]hWhen a newly allocated folio is not yet visible, so safe for non-atomic ops, __folio_set_referenced() may be substituted for folio_mark_accessed().}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_add_lru (C function)c.folio_add_lruhNtauh1hhjhhhNhNubh)}(hhh](h)}(h(void folio_add_lru (struct folio *folio)h]h)}(h'void folio_add_lru(struct folio *folio)h](j)}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hj$thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhj#thMubh)}(h folio_add_lruh]j)}(h folio_add_lruh]h folio_add_lru}(hj6thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2tubah}(h]h ](jjeh"]h$]h&]jjuh1hhjthhhj#thMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjRthhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjNtubj)}(h h]h }(hj_thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNtubh)}(hhh]j)}(hfolioh]hfolio}(hjpthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmtubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrtmodnameN classnameNjpjs)}jv]jy)}jlj8tsbc.folio_add_lruasbuh1hhjNtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNtubjF )}(hjI h]h*}(hjthhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjNtubj)}(hfolioh]hfolio}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJtubah}(h]h ]h"]h$]h&]jjuh1j hjthhhj#thMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj thhhj#thMubah}(h]jtah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj#thMhj thhubj4)}(hhh]jM)}(hAdd a folio to an LRU list.h]hAdd a folio to an LRU list.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjthhubah}(h]h ]h"]h$]h&]uh1j3hj thhhj#thMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjtjHjtjIjJjKuh1hhhhjhNhNubj)}(hXz**Parameters** ``struct folio *folio`` The folio to be added to the LRU. **Description** Queue the folio for addition to the LRU. The decision on whether to add the page to the [in]active [file|anon] list is deferred until the folio_batch is drained. This gives a chance for the caller of folio_add_lru() have the folio added to the active list using folio_mark_accessed().h](jM)}(h**Parameters**h]j)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjtubj)}(hhh]j)}(h:``struct folio *folio`` The folio to be added to the LRU. h](j)}(h``struct folio *folio``h]jS)}(hjuh]hstruct folio *folio}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjuubj)}(hhh]jM)}(h!The folio to be added to the LRU.h]h!The folio to be added to the LRU.}(hj/uhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+uhMhj,uubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhj+uhMhj uubah}(h]h ]h"]h$]h&]uh1jhjtubjM)}(h**Description**h]j)}(hjQuh]h Description}(hjSuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOuubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjtubjM)}(hXQueue the folio for addition to the LRU. The decision on whether to add the page to the [in]active [file|anon] list is deferred until the folio_batch is drained. This gives a chance for the caller of folio_add_lru() have the folio added to the active list using folio_mark_accessed().h]hXQueue the folio for addition to the LRU. The decision on whether to add the page to the [in]active [file|anon] list is deferred until the folio_batch is drained. This gives a chance for the caller of folio_add_lru() have the folio added to the active list using folio_mark_accessed().}(hjguhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_add_lru_vma (C function)c.folio_add_lru_vmahNtauh1hhjhhhNhNubh)}(hhh](h)}(hHvoid folio_add_lru_vma (struct folio *folio, struct vm_area_struct *vma)h]h)}(hGvoid folio_add_lru_vma(struct folio *folio, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM7ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjuhM7ubh)}(hfolio_add_lru_vmah]j)}(hfolio_add_lru_vmah]hfolio_add_lru_vma}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1hhjuhhhjuhM7ubj )}(h1(struct folio *folio, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjuhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hhh]j)}(hfolioh]hfolio}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjumodnameN classnameNjpjs)}jv]jy)}jljusbc.folio_add_lru_vmaasbuh1hhjuubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjF )}(hjI h]h*}(hjvhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjuubj)}(hfolioh]hfolio}(hj,vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjEvhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjAvubj)}(h h]h }(hjRvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAvubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjcvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`vubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjevmodnameN classnameNjpjs)}jv]j vc.folio_add_lru_vmaasbuh1hhjAvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAvubjF )}(hjI h]h*}(hjvhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjAvubj)}(hvmah]hvma}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubeh}(h]h ]h"]h$]h&]jjuh1j hjuhhhjuhM7ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjuhhhjuhM7ubah}(h]juah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjuhM7hjuhhubj4)}(hhh]jM)}(h5Add a folio to the appropriate LRU list for this VMA.h]h5Add a folio to the appropriate LRU list for this VMA.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM7hjvhhubah}(h]h ]h"]h$]h&]uh1j3hjuhhhjuhM7ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjvjHjvjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to be added to the LRU. ``struct vm_area_struct *vma`` VMA in which the folio is mapped. **Description** If the VMA is mlocked, **folio** is added to the unevictable list. Otherwise, it is treated the same way as folio_add_lru().h](jM)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM;hjvubj)}(hhh](j)}(h:``struct folio *folio`` The folio to be added to the LRU. h](j)}(h``struct folio *folio``h]jS)}(hjwh]hstruct folio *folio}(hj whhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM8hjwubj)}(hhh]jM)}(h!The folio to be added to the LRU.h]h!The folio to be added to the LRU.}(hj whhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwhM8hjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhM8hjvubj)}(hA``struct vm_area_struct *vma`` VMA in which the folio is mapped. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj@wh]hstruct vm_area_struct *vma}(hjBwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>wubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM9hj:wubj)}(hhh]jM)}(h!VMA in which the folio is mapped.h]h!VMA in which the folio is mapped.}(hjYwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUwhM9hjVwubah}(h]h ]h"]h$]h&]uh1jhj:wubeh}(h]h ]h"]h$]h&]uh1jhjUwhM9hjvubeh}(h]h ]h"]h$]h&]uh1jhjvubjM)}(h**Description**h]j)}(hj{wh]h Description}(hj}whhhNhNubah}(h]h ]h"]h$]h&]uh1jhjywubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM;hjvubjM)}(h|If the VMA is mlocked, **folio** is added to the unevictable list. Otherwise, it is treated the same way as folio_add_lru().h](hIf the VMA is mlocked, }(hjwhhhNhNubj)}(h **folio**h]hfolio}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh\ is added to the unevictable list. Otherwise, it is treated the same way as folio_add_lru().}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM:hjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"deactivate_file_folio (C function)c.deactivate_file_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(h0void deactivate_file_folio (struct folio *folio)h]h)}(h/void deactivate_file_folio(struct folio *folio)h](j)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjwhMubh)}(hdeactivate_file_folioh]j)}(hdeactivate_file_folioh]hdeactivate_file_folio}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1hhjwhhhjwhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjxhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj xubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj xubh)}(hhh]j)}(hfolioh]hfolio}(hj-xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*xubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj/xmodnameN classnameNjpjs)}jv]jy)}jljwsbc.deactivate_file_folioasbuh1hhj xubj)}(h h]h }(hjMxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj xubjF )}(hjI h]h*}(hj[xhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj xubj)}(hfolioh]hfolio}(hjhxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj xubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjxubah}(h]h ]h"]h$]h&]jjuh1j hjwhhhjwhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjwhhhjwhMubah}(h]jwah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjwhMhjwhhubj4)}(hhh]jM)}(hDeactivate a file folio.h]hDeactivate a file folio.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjxhhubah}(h]h ]h"]h$]h&]uh1j3hjwhhhjwhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjxjHjxjIjJjKuh1hhhhjhNhNubj)}(hX&**Parameters** ``struct folio *folio`` Folio to deactivate. **Description** This function hints to the VM that **folio** is a good reclaim candidate, for example if its invalidation fails due to the folio being dirty or under writeback. **Context** Caller holds a reference on the folio.h](jM)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjxubj)}(hhh]j)}(h-``struct folio *folio`` Folio to deactivate. h](j)}(h``struct folio *folio``h]jS)}(hjxh]hstruct folio *folio}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjxubj)}(hhh]jM)}(hFolio to deactivate.h]hFolio to deactivate.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjxubjM)}(h**Description**h]j)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj yubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjxubjM)}(hThis function hints to the VM that **folio** is a good reclaim candidate, for example if its invalidation fails due to the folio being dirty or under writeback.h](h#This function hints to the VM that }(hj$yhhhNhNubj)}(h **folio**h]hfolio}(hj,yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$yubht is a good reclaim candidate, for example if its invalidation fails due to the folio being dirty or under writeback.}(hj$yhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjxubjM)}(h **Context**h]j)}(hjGyh]hContext}(hjIyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEyubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjxubjM)}(h&Caller holds a reference on the folio.h]h&Caller holds a reference on the folio.}(hj]yhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_mark_lazyfree (C function)c.folio_mark_lazyfreehNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void folio_mark_lazyfree (struct folio *folio)h]h)}(h-void folio_mark_lazyfree(struct folio *folio)h](j)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjyhMubh)}(hfolio_mark_lazyfreeh]j)}(hfolio_mark_lazyfreeh]hfolio_mark_lazyfree}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1hhjyhhhjyhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjyhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j)}(hfolioh]hfolio}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjymodnameN classnameNjpjs)}jv]jy)}jljysbc.folio_mark_lazyfreeasbuh1hhjyubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjF )}(hjI h]h*}(hjzhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjyubj)}(hfolioh]hfolio}(hj"zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjyubah}(h]h ]h"]h$]h&]jjuh1j hjyhhhjyhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjyhhhjyhMubah}(h]jyah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjyhMhjyhhubj4)}(hhh]jM)}(hmake an anon folio lazyfreeh]hmake an anon folio lazyfree}(hjLzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjIzhhubah}(h]h ]h"]h$]h&]uh1j3hjyhhhjyhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjdzjHjdzjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` folio to deactivate **Description** folio_mark_lazyfree() moves **folio** to the inactive file list. This is done to accelerate the reclaim of **folio**.h](jM)}(h**Parameters**h]j)}(hjnzh]h Parameters}(hjpzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlzubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjhzubj)}(hhh]j)}(h,``struct folio *folio`` folio to deactivate h](j)}(h``struct folio *folio``h]jS)}(hjzh]hstruct folio *folio}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjzubj)}(hhh]jM)}(hfolio to deactivateh]hfolio to deactivate}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjhzubjM)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjhzubjM)}(hufolio_mark_lazyfree() moves **folio** to the inactive file list. This is done to accelerate the reclaim of **folio**.h](hfolio_mark_lazyfree() moves }(hjzhhhNhNubj)}(h **folio**h]hfolio}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubhF to the inactive file list. This is done to accelerate the reclaim of }(hjzhhhNhNubj)}(h **folio**h]hfolio}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjhzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolios_put_refs (C function)c.folios_put_refshNtauh1hhjhhhNhNubh)}(hhh](h)}(hEvoid folios_put_refs (struct folio_batch *folios, unsigned int *refs)h]h)}(hDvoid folios_put_refs(struct folio_batch *folios, unsigned int *refs)h](j)}(hvoidh]hvoid}(hj1{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-{hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hj@{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-{hhhj?{hMubh)}(hfolios_put_refsh]j)}(hfolios_put_refsh]hfolios_put_refs}(hjR{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN{ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj-{hhhj?{hMubj )}(h0(struct folio_batch *folios, unsigned int *refs)h](j )}(hstruct folio_batch *foliosh](j5)}(hj8h]hstruct}(hjn{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjj{ubj)}(h h]h }(hj{{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj{ubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj{modnameN classnameNjpjs)}jv]jy)}jljT{sbc.folios_put_refsasbuh1hhjj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj{ubjF )}(hjI h]h*}(hj{hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjj{ubj)}(hfoliosh]hfolios}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjf{ubj )}(hunsigned int *refsh](j)}(hunsignedh]hunsigned}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hinth]hint}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hj |hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjF )}(hjI h]h*}(hj|hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj{ubj)}(hrefsh]hrefs}(hj%|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjf{ubeh}(h]h ]h"]h$]h&]jjuh1j hj-{hhhj?{hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj){hhhj?{hMubah}(h]j${ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj?{hMhj&{hhubj4)}(hhh]jM)}(h0Reduce the reference count on a batch of folios.h]h0Reduce the reference count on a batch of folios.}(hjO|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjL|hhubah}(h]h ]h"]h$]h&]uh1j3hj&{hhhj?{hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjg|jHjg|jIjJjKuh1hhhhjhNhNubj)}(hX{**Parameters** ``struct folio_batch *folios`` The folios. ``unsigned int *refs`` The number of refs to subtract from each folio. **Description** Like folio_put(), but for a batch of folios. This is more efficient than writing the loop yourself as it will optimise the locks which need to be taken if the folios are freed. The folios batch is returned empty and ready to be reused for another batch; there is no need to reinitialise it. If **refs** is NULL, we subtract one from each folio refcount. **Context** May be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.h](jM)}(h**Parameters**h]j)}(hjq|h]h Parameters}(hjs|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo|ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjk|ubj)}(hhh](j)}(h+``struct folio_batch *folios`` The folios. h](j)}(h``struct folio_batch *folios``h]jS)}(hj|h]hstruct folio_batch *folios}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj|ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj|ubj)}(hhh]jM)}(h The folios.h]h The folios.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj|ubj)}(hG``unsigned int *refs`` The number of refs to subtract from each folio. h](j)}(h``unsigned int *refs``h]jS)}(hj|h]hunsigned int *refs}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj|ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj|ubj)}(hhh]jM)}(h/The number of refs to subtract from each folio.h]h/The number of refs to subtract from each folio.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj|ubeh}(h]h ]h"]h$]h&]uh1jhjk|ubjM)}(h**Description**h]j)}(hj}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjk|ubjM)}(hXdLike folio_put(), but for a batch of folios. This is more efficient than writing the loop yourself as it will optimise the locks which need to be taken if the folios are freed. The folios batch is returned empty and ready to be reused for another batch; there is no need to reinitialise it. If **refs** is NULL, we subtract one from each folio refcount.h](hX)Like folio_put(), but for a batch of folios. This is more efficient than writing the loop yourself as it will optimise the locks which need to be taken if the folios are freed. The folios batch is returned empty and ready to be reused for another batch; there is no need to reinitialise it. If }(hj}hhhNhNubj)}(h**refs**h]hrefs}(hj"}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh3 is NULL, we subtract one from each folio refcount.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjk|ubjM)}(h **Context**h]j)}(hj=}h]hContext}(hj?}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;}ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjk|ubjM)}(hoMay be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.h]hoMay be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.}(hjS}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjk|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelease_pages (C function)c.release_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void release_pages (release_pages_arg arg, int nr)h]h)}(h1void release_pages(release_pages_arg arg, int nr)h](j)}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~}hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM&ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~}hhhj}hM&ubh)}(h release_pagesh]j)}(h release_pagesh]h release_pages}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj~}hhhj}hM&ubj )}(h(release_pages_arg arg, int nr)h](j )}(hrelease_pages_arg argh](h)}(hhh]j)}(hrelease_pages_argh]hrelease_pages_arg}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jy)}jlj}sbc.release_pagesasbuh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hargh]harg}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}ubj )}(hint nrh](j)}(hinth]hint}(hj ~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hnrh]hnr}(hj%~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}ubeh}(h]h ]h"]h$]h&]jjuh1j hj~}hhhj}hM&ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjz}hhhj}hM&ubah}(h]ju}ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj}hM&hjw}hhubj4)}(hhh]jM)}(hbatched put_page()h]hbatched put_page()}(hjO~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM&hjL~hhubah}(h]h ]h"]h$]h&]uh1j3hjw}hhhj}hM&ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjg~jHjg~jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``release_pages_arg arg`` array of pages to release ``int nr`` number of pages **Description** Decrement the reference count on all the pages in **arg**. If it fell to zero, remove the page from the LRU and free it. Note that the argument can be an array of pages, encoded pages, or folio pointers. We ignore any encoded bits, and turn any of them into just a folio that gets free'd.h](jM)}(h**Parameters**h]j)}(hjq~h]h Parameters}(hjs~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo~ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM*hjk~ubj)}(hhh](j)}(h4``release_pages_arg arg`` array of pages to release h](j)}(h``release_pages_arg arg``h]jS)}(hj~h]hrelease_pages_arg arg}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj~ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM'hj~ubj)}(hhh]jM)}(harray of pages to releaseh]harray of pages to release}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hM'hj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hM'hj~ubj)}(h``int nr`` number of pages h](j)}(h ``int nr``h]jS)}(hj~h]hint nr}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj~ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM(hj~ubj)}(hhh]jM)}(hnumber of pagesh]hnumber of pages}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hM(hj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hM(hj~ubeh}(h]h ]h"]h$]h&]uh1jhjk~ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM*hjk~ubjM)}(hyDecrement the reference count on all the pages in **arg**. If it fell to zero, remove the page from the LRU and free it.h](h2Decrement the reference count on all the pages in }(hjhhhNhNubj)}(h**arg**h]harg}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh@. If it fell to zero, remove the page from the LRU and free it.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM)hjk~ubjM)}(hNote that the argument can be an array of pages, encoded pages, or folio pointers. We ignore any encoded bits, and turn any of them into just a folio that gets free'd.h]hNote that the argument can be an array of pages, encoded pages, or folio pointers. We ignore any encoded bits, and turn any of them into just a folio that gets free’d.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM,hjk~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,folio_batch_remove_exceptionals (C function)!c.folio_batch_remove_exceptionalshNtauh1hhjhhhNhNubh)}(hhh](h)}(hAvoid folio_batch_remove_exceptionals (struct folio_batch *fbatch)h]h)}(h@void folio_batch_remove_exceptionals(struct folio_batch *fbatch)h](j)}(hvoidh]hvoid}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMbubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjxhMbubh)}(hfolio_batch_remove_exceptionalsh]j)}(hfolio_batch_remove_exceptionalsh]hfolio_batch_remove_exceptionals}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjfhhhjxhMbubj )}(h(struct folio_batch *fbatch)h]j )}(hstruct folio_batch *fbatchh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsb!c.folio_batch_remove_exceptionalsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfbatchh]hfbatch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjfhhhjxhMbubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjbhhhjxhMbubah}(h]j]ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjxhMbhj_hhubj4)}(hhh]jM)}(hPrune non-folios from a batch.h]hPrune non-folios from a batch.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMbhj'hhubah}(h]h ]h"]h$]h&]uh1j3hj_hhhjxhMbubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjBjHjBjIjJjKuh1hhhhjhNhNubj)}(hX7**Parameters** ``struct folio_batch *fbatch`` The batch to prune **Description** find_get_entries() fills a batch with both folios and shadow/swap/DAX entries. This function prunes all the non-folio entries from **fbatch** without leaving holes, so that it can be passed on to folio-only batch operations.h](jM)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMfhjFubj)}(hhh]j)}(h2``struct folio_batch *fbatch`` The batch to prune h](j)}(h``struct folio_batch *fbatch``h]jS)}(hjkh]hstruct folio_batch *fbatch}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMchjeubj)}(hhh]jM)}(hThe batch to pruneh]hThe batch to prune}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMchjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMchjbubah}(h]h ]h"]h$]h&]uh1jhjFubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMehjFubjM)}(hfind_get_entries() fills a batch with both folios and shadow/swap/DAX entries. This function prunes all the non-folio entries from **fbatch** without leaving holes, so that it can be passed on to folio-only batch operations.h](hfind_get_entries() fills a batch with both folios and shadow/swap/DAX entries. This function prunes all the non-folio entries from }(hjhhhNhNubj)}(h **fbatch**h]hfbatch}(hjĀhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhS without leaving holes, so that it can be passed on to folio-only batch operations.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMdhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*get_mem_cgroup_css_from_folio (C function)c.get_mem_cgroup_css_from_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hPstruct cgroup_subsys_state * get_mem_cgroup_css_from_folio (struct folio *folio)h]h)}(hNstruct cgroup_subsys_state *get_mem_cgroup_css_from_folio(struct folio *folio)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM>ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM>ubh)}(hhh]j)}(hcgroup_subsys_stateh]hcgroup_subsys_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlget_mem_cgroup_css_from_foliosbc.get_mem_cgroup_css_from_folioasbuh1hhjhhhj hM>ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM>ubjF )}(hjI h]h*}(hjKhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj hM>ubh)}(hget_mem_cgroup_css_from_folioh]j)}(hj:h]hget_mem_cgroup_css_from_folio}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hM>ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjwhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j8c.get_mem_cgroup_css_from_folioasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsubj)}(hfolioh]hfolio}(hj΁hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj hM>ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj hM>ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hM>hjhhubj4)}(hhh]jM)}(h2acquire a css of the memcg associated with a folioh]h2acquire a css of the memcg associated with a folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM>hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hM>ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXR**Parameters** ``struct folio *folio`` folio of interest **Description** If memcg is bound to the default hierarchy, css of the memcg associated with **folio** is returned. The returned css remains associated with **folio** until it is released. If memcg is bound to a traditional hierarchy, the css of root_mem_cgroup is returned.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMBhjubj)}(hhh]j)}(h*``struct folio *folio`` folio of interest h](j)}(h``struct folio *folio``h]jS)}(hj9h]hstruct folio *folio}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM?hj3ubj)}(hhh]jM)}(hfolio of interesth]hfolio of interest}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhM?hjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhM?hj0ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMAhjubjM)}(hIf memcg is bound to the default hierarchy, css of the memcg associated with **folio** is returned. The returned css remains associated with **folio** until it is released.h](hMIf memcg is bound to the default hierarchy, css of the memcg associated with }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8 is returned. The returned css remains associated with }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh until it is released.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM@hjubjM)}(hUIf memcg is bound to a traditional hierarchy, the css of root_mem_cgroup is returned.h]hUIf memcg is bound to a traditional hierarchy, the css of root_mem_cgroup is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMDhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpage_cgroup_ino (C function)c.page_cgroup_inohNtauh1hhjhhhNhNubh)}(hhh](h)}(h)ino_t page_cgroup_ino (struct page *page)h]h)}(h(ino_t page_cgroup_ino(struct page *page)h](h)}(hhh]j)}(hino_th]hino_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlpage_cgroup_inosbc.page_cgroup_inoasbuh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMUubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMUubh)}(hpage_cgroup_inoh]j)}(hj h]hpage_cgroup_ino}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMUubj )}(h(struct page *page)h]j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hj>hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(hpageh]hpage}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj^modnameN classnameNjpjs)}jv]j c.page_cgroup_inoasbuh1hhj:ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj:ubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMUubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMUubah}(h]j߂ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMUhjhhubj4)}(hhh]jM)}(h5return inode number of the memcg a page is charged toh]h5return inode number of the memcg a page is charged to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMUhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMUubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj׃jHj׃jIjJjKuh1hhhhjhNhNubj)}(hX5**Parameters** ``struct page *page`` the page **Description** Look up the closest online ancestor of the memory cgroup **page** is charged to and return its inode number or 0 if **page** is not charged to any cgroup. It is safe to call this function without holding a reference to **page**. Note, this function is inherently racy, because there is nothing to prevent the cgroup inode from getting torn down and potentially reallocated a moment after page_cgroup_ino() returns, so it only should be used by callers that do not care (such as procfs interfaces).h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj߃ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMYhjۃubj)}(hhh]j)}(h``struct page *page`` the page h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMVhjubj)}(hhh]jM)}(hthe pageh]hthe page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMVhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMVhjubah}(h]h ]h"]h$]h&]uh1jhjۃubjM)}(h**Description**h]j)}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMXhjۃubjM)}(hLook up the closest online ancestor of the memory cgroup **page** is charged to and return its inode number or 0 if **page** is not charged to any cgroup. It is safe to call this function without holding a reference to **page**.h](h9Look up the closest online ancestor of the memory cgroup }(hjQhhhNhNubj)}(h**page**h]hpage}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh3 is charged to and return its inode number or 0 if }(hjQhhhNhNubj)}(h**page**h]hpage}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh_ is not charged to any cgroup. It is safe to call this function without holding a reference to }(hjQhhhNhNubj)}(h**page**h]hpage}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMWhjۃubjM)}(hX Note, this function is inherently racy, because there is nothing to prevent the cgroup inode from getting torn down and potentially reallocated a moment after page_cgroup_ino() returns, so it only should be used by callers that do not care (such as procfs interfaces).h]hX Note, this function is inherently racy, because there is nothing to prevent the cgroup inode from getting torn down and potentially reallocated a moment after page_cgroup_ino() returns, so it only should be used by callers that do not care (such as procfs interfaces).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM[hjۃubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmod_memcg_state (C function)c.mod_memcg_statehNtauh1hhjhhhNhNubh)}(hhh](h)}(hRvoid mod_memcg_state (struct mem_cgroup *memcg, enum memcg_stat_item idx, int val)h]h)}(hQvoid mod_memcg_state(struct mem_cgroup *memcg, enum memcg_stat_item idx, int val)h](j)}(hvoidh]hvoid}(hjńhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMbubj)}(h h]h }(hjԄhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjӄhMbubh)}(hmod_memcg_stateh]j)}(hmod_memcg_stateh]hmod_memcg_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjӄhMbubj )}(h=(struct mem_cgroup *memcg, enum memcg_stat_item idx, int val)h](j )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj"modnameN classnameNjpjs)}jv]jy)}jljsbc.mod_memcg_stateasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjNhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmemcgh]hmemcg}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum memcg_stat_item idxh](j5)}(hjEh]henum}(hjthhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j)}(hmemcg_stat_itemh]hmemcg_stat_item}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j<c.mod_memcg_stateasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hidxh]hidx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint valh](j)}(hinth]hint}(hjׅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӅubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӅubj)}(hvalh]hval}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӅubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjӄhMbubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjӄhMbubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjӄhMbhjhhubj4)}(hhh]jM)}(hupdate cgroup memory statisticsh]hupdate cgroup memory statistics}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMbhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjӄhMbubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj5jHj5jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct mem_cgroup *memcg`` the memory cgroup ``enum memcg_stat_item idx`` the stat item - can be enum memcg_stat_item or enum node_stat_item ``int val`` delta to add to the counter, can be negativeh](jM)}(h**Parameters**h]j)}(hj?h]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMfhj9ubj)}(hhh](j)}(h/``struct mem_cgroup *memcg`` the memory cgroup h](j)}(h``struct mem_cgroup *memcg``h]jS)}(hj^h]hstruct mem_cgroup *memcg}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMchjXubj)}(hhh]jM)}(hthe memory cgrouph]hthe memory cgroup}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjshMchjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMchjUubj)}(h```enum memcg_stat_item idx`` the stat item - can be enum memcg_stat_item or enum node_stat_item h](j)}(h``enum memcg_stat_item idx``h]jS)}(hjh]henum memcg_stat_item idx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMdhjubj)}(hhh]jM)}(hBthe stat item - can be enum memcg_stat_item or enum node_stat_itemh]hBthe stat item - can be enum memcg_stat_item or enum node_stat_item}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjUubj)}(h8``int val`` delta to add to the counter, can be negativeh](j)}(h ``int val``h]jS)}(hjІh]hint val}(hj҆hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjΆubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMfhjʆubj)}(hhh]jM)}(h,delta to add to the counter, can be negativeh]h,delta to add to the counter, can be negative}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMehjubah}(h]h ]h"]h$]h&]uh1jhjʆubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjUubeh}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmod_lruvec_state (C function)c.mod_lruvec_statehNtauh1hhjhhhNhNubh)}(hhh](h)}(hOvoid mod_lruvec_state (struct lruvec *lruvec, enum node_stat_item idx, int val)h]h)}(hNvoid mod_lruvec_state(struct lruvec *lruvec, enum node_stat_item idx, int val)h](j)}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj8hMubh)}(hmod_lruvec_stateh]j)}(hmod_lruvec_stateh]hmod_lruvec_state}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1hhj&hhhj8hMubj )}(h9(struct lruvec *lruvec, enum node_stat_item idx, int val)h](j )}(hstruct lruvec *lruvech](j5)}(hj8h]hstruct}(hjghhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hhh]j)}(hlruvech]hlruvec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljMsbc.mod_lruvec_stateasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjcubj)}(hlruvech]hlruvec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_ubj )}(henum node_stat_item idxh](j5)}(hjEh]henum}(hjهhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjՇubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՇubh)}(hhh]j)}(hnode_stat_itemh]hnode_stat_item}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mod_lruvec_stateasbuh1hhjՇubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՇubj)}(hidxh]hidx}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՇubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_ubj )}(hint valh](j)}(hinth]hint}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hvalh]hval}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_ubeh}(h]h ]h"]h$]h&]jjuh1j hj&hhhj8hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj"hhhj8hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj8hMhjhhubj4)}(hhh]jM)}(hupdate lruvec memory statisticsh]hupdate lruvec memory statistics}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj8hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXt**Parameters** ``struct lruvec *lruvec`` the lruvec ``enum node_stat_item idx`` the stat item ``int val`` delta to add to the counter, can be negative **Description** The lruvec is the intersection of the NUMA node and a cgroup. This function updates the all three counters that are affected by a change of state at this level: per-node, per-cgroup, per-lruvec.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh](j)}(h%``struct lruvec *lruvec`` the lruvec h](j)}(h``struct lruvec *lruvec``h]jS)}(hjÈh]hstruct lruvec *lruvec}(hjňhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(h the lruvech]h the lruvec}(hj܈hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj؈hMhjوubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj؈hMhjubj)}(h*``enum node_stat_item idx`` the stat item h](j)}(h``enum node_stat_item idx``h]jS)}(hjh]henum node_stat_item idx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(h the stat itemh]h the stat item}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``int val`` delta to add to the counter, can be negative h](j)}(h ``int val``h]jS)}(hj5h]hint val}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj/ubj)}(hhh]jM)}(h,delta to add to the counter, can be negativeh]h,delta to add to the counter, can be negative}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(hThe lruvec is the intersection of the NUMA node and a cgroup. This function updates the all three counters that are affected by a change of state at this level: per-node, per-cgroup, per-lruvec.h]hThe lruvec is the intersection of the NUMA node and a cgroup. This function updates the all three counters that are affected by a change of state at this level: per-node, per-cgroup, per-lruvec.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcount_memcg_events (C function)c.count_memcg_eventshNtauh1hhjhhhNhNubh)}(hhh](h)}(h_void count_memcg_events (struct mem_cgroup *memcg, enum vm_event_item idx, unsigned long count)h]h)}(h^void count_memcg_events(struct mem_cgroup *memcg, enum vm_event_item idx, unsigned long count)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjĉhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjÉhMubh)}(hcount_memcg_eventsh]j)}(hcount_memcg_eventsh]hcount_memcg_events}(hj։hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҉ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjÉhMubj )}(hG(struct mem_cgroup *memcg, enum vm_event_item idx, unsigned long count)h](j )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj؉sbc.count_memcg_eventsasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj>hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmemcgh]hmemcg}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum vm_event_item idxh](j5)}(hjEh]henum}(hjdhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]j)}(h vm_event_itemh]h vm_event_item}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j,c.count_memcg_eventsasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hidxh]hidx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long counth](j)}(hunsignedh]hunsigned}(hjNJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÊubj)}(h h]h }(hjՊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÊubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÊubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÊubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÊubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjÉhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjÉhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjÉhMhjhhubj4)}(hhh]jM)}(haccount VM events in a cgrouph]haccount VM events in a cgroup}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj&hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjÉhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjAjHjAjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct mem_cgroup *memcg`` the memory cgroup ``enum vm_event_item idx`` the event item ``unsigned long count`` the number of events that occurredh](jM)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjEubj)}(hhh](j)}(h/``struct mem_cgroup *memcg`` the memory cgroup h](j)}(h``struct mem_cgroup *memcg``h]jS)}(hjjh]hstruct mem_cgroup *memcg}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjhubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjdubj)}(hhh]jM)}(hthe memory cgrouph]hthe memory cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubj)}(h*``enum vm_event_item idx`` the event item h](j)}(h``enum vm_event_item idx``h]jS)}(hjh]henum vm_event_item idx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hthe event itemh]hthe event item}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubj)}(h:``unsigned long count`` the number of events that occurredh](j)}(h``unsigned long count``h]jS)}(hj܋h]hunsigned long count}(hjދhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjڋubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj֋ubj)}(hhh]jM)}(h"the number of events that occurredh]h"the number of events that occurred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubah}(h]h ]h"]h$]h&]uh1jhj֋ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubeh}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#get_mem_cgroup_from_mm (C function)c.get_mem_cgroup_from_mmhNtauh1hhjhhhNhNubh)}(hhh](h)}(hAstruct mem_cgroup * get_mem_cgroup_from_mm (struct mm_struct *mm)h]h)}(h?struct mem_cgroup *get_mem_cgroup_from_mm(struct mm_struct *mm)h](j5)}(hj8h]hstruct}(hj6hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj2hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMNubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjChMNubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWmodnameN classnameNjpjs)}jv]jy)}jlget_mem_cgroup_from_mmsbc.get_mem_cgroup_from_mmasbuh1hhj2hhhjChMNubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjChMNubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2hhhjChMNubh)}(hget_mem_cgroup_from_mmh]j)}(hjsh]hget_mem_cgroup_from_mm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj2hhhjChMNubj )}(h(struct mm_struct *mm)h]j )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjΌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjˌubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjЌmodnameN classnameNjpjs)}jv]jqc.get_mem_cgroup_from_mmasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hj2hhhjChMNubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj.hhhjChMNubah}(h]j)ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjChMNhj+hhubj4)}(hhh]jM)}(h.Obtain a reference on given mm_struct's memcg.h]h0Obtain a reference on given mm_struct’s memcg.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMNhj.hhubah}(h]h ]h"]h$]h&]uh1j3hj+hhhjChMNubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjIjHjIjIjJjKuh1hhhhjhNhNubj)}(hXc**Parameters** ``struct mm_struct *mm`` mm from which memcg should be extracted. It can be NULL. **Description** Obtain a reference on mm->memcg and returns it if successful. If mm is NULL, then the memcg is chosen as follows: 1) The active memcg, if set. 2) current->mm->memcg, if available 3) root memcg If mem_cgroup is disabled, NULL is returned.h](jM)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMRhjMubj)}(hhh]j)}(hR``struct mm_struct *mm`` mm from which memcg should be extracted. It can be NULL. h](j)}(h``struct mm_struct *mm``h]jS)}(hjrh]hstruct mm_struct *mm}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMOhjlubj)}(hhh]jM)}(h8mm from which memcg should be extracted. It can be NULL.h]h8mm from which memcg should be extracted. It can be NULL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMOhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjiubah}(h]h ]h"]h$]h&]uh1jhjMubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMQhjMubjM)}(hObtain a reference on mm->memcg and returns it if successful. If mm is NULL, then the memcg is chosen as follows: 1) The active memcg, if set. 2) current->mm->memcg, if available 3) root memcg If mem_cgroup is disabled, NULL is returned.h]hObtain a reference on mm->memcg and returns it if successful. If mm is NULL, then the memcg is chosen as follows: 1) The active memcg, if set. 2) current->mm->memcg, if available 3) root memcg If mem_cgroup is disabled, NULL is returned.}(hjÍhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMPhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(get_mem_cgroup_from_current (C function)c.get_mem_cgroup_from_currenthNtauh1hhjhhhNhNubh)}(hhh](h)}(h6struct mem_cgroup * get_mem_cgroup_from_current (void)h]h)}(h4struct mem_cgroup *get_mem_cgroup_from_current(void)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlget_mem_cgroup_from_currentsbc.get_mem_cgroup_from_currentasbuh1hhjhhhjhMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hj@hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hget_mem_cgroup_from_currenth]j)}(hj/h]hget_mem_cgroup_from_current}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(void)h]j )}(hvoidh]j)}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]noemphjjuh1j hjdubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h+Obtain a reference on current task's memcg.h]h-Obtain a reference on current task’s memcg.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h'**Parameters** ``void`` no argumentsh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]jS)}(hj׎h]hvoid}(hjَhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjՎubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjюubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chKhjubah}(h]h ]h"]h$]h&]uh1jhjюubeh}(h]h ]h"]h$]h&]uh1jhjhMhjΎubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&get_mem_cgroup_from_folio (C function)c.get_mem_cgroup_from_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hCstruct mem_cgroup * get_mem_cgroup_from_folio (struct folio *folio)h]h)}(hAstruct mem_cgroup *get_mem_cgroup_from_folio(struct folio *folio)h](j5)}(hj8h]hstruct}(hj1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj>hMubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRmodnameN classnameNjpjs)}jv]jy)}jlget_mem_cgroup_from_foliosbc.get_mem_cgroup_from_folioasbuh1hhj-hhhj>hMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj>hMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-hhhj>hMubh)}(hget_mem_cgroup_from_folioh]j)}(hjnh]hget_mem_cgroup_from_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj-hhhj>hMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjɏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƏubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjˏmodnameN classnameNjpjs)}jv]jlc.get_mem_cgroup_from_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hj-hhhj>hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj)hhhj>hMubah}(h]j$ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj>hMhj&hhubj4)}(hhh]jM)}(h,Obtain a reference on a given folio's memcg.h]h.Obtain a reference on a given folio’s memcg.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj)hhubah}(h]h ]h"]h$]h&]uh1j3hj&hhhj>hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjDjHjDjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` folio from which memcg should be extracted. **Description** See folio_memcg() for folio->objcg/memcg binding rules.h](jM)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjHubj)}(hhh]j)}(hD``struct folio *folio`` folio from which memcg should be extracted. h](j)}(h``struct folio *folio``h]jS)}(hjmh]hstruct folio *folio}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjkubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjgubj)}(hhh]jM)}(h+folio from which memcg should be extracted.h]h+folio from which memcg should be extracted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjHubjM)}(h7See folio_memcg() for folio->objcg/memcg binding rules.h]h7See folio_memcg() for folio->objcg/memcg binding rules.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmem_cgroup_iter (C function)c.mem_cgroup_iterhNtauh1hhjhhhNhNubh)}(hhh](h)}(hstruct mem_cgroup * mem_cgroup_iter (struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)h]h)}(hstruct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlmem_cgroup_itersbc.mem_cgroup_iterasbuh1hhjhhhjhMubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hj;hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hmem_cgroup_iterh]j)}(hj*h]hmem_cgroup_iter}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h](struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)h](j )}(hstruct mem_cgroup *rooth](j5)}(hj8h]hstruct}(hjghhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j(c.mem_cgroup_iterasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjcubj)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_ubj )}(hstruct mem_cgroup *prevh](j5)}(hj8h]hstruct}(hjבhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjӑubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӑubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j(c.mem_cgroup_iterasbuh1hhjӑubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӑubjF )}(hjI h]h*}(hj!hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjӑubj)}(hprevh]hprev}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӑubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_ubj )}(h)struct mem_cgroup_reclaim_cookie *reclaimh](j5)}(hj8h]hstruct}(hjGhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]j)}(hmem_cgroup_reclaim_cookieh]hmem_cgroup_reclaim_cookie}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjgmodnameN classnameNjpjs)}jv]j(c.mem_cgroup_iterasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjCubj)}(hreclaimh]hreclaim}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h$iterate over memory cgroup hierarchyh]h$iterate over memory cgroup hierarchy}(hjȒhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjŒhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct mem_cgroup *root`` hierarchy root ``struct mem_cgroup *prev`` previously returned memcg, NULL on first invocation ``struct mem_cgroup_reclaim_cookie *reclaim`` cookie for shared reclaim walks, NULL for full walks **Description** Returns references to children of the hierarchy below **root**, or **root** itself, or ``NULL`` after a full round-trip. Caller must pass the return value in **prev** on subsequent invocations for reference counting, or use mem_cgroup_iter_break() to cancel a hierarchy walk before the round-trip is complete. Reclaimers can specify a node in **reclaim** to divide up the memcgs in the hierarchy among all concurrent reclaimers operating on the same node.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh](j)}(h+``struct mem_cgroup *root`` hierarchy root h](j)}(h``struct mem_cgroup *root``h]jS)}(hj h]hstruct mem_cgroup *root}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hhierarchy rooth]hhierarchy root}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hP``struct mem_cgroup *prev`` previously returned memcg, NULL on first invocation h](j)}(h``struct mem_cgroup *prev``h]jS)}(hjBh]hstruct mem_cgroup *prev}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj<ubj)}(hhh]jM)}(h3previously returned memcg, NULL on first invocationh]h3previously returned memcg, NULL on first invocation}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjubj)}(hc``struct mem_cgroup_reclaim_cookie *reclaim`` cookie for shared reclaim walks, NULL for full walks h](j)}(h-``struct mem_cgroup_reclaim_cookie *reclaim``h]jS)}(hj{h]h)struct mem_cgroup_reclaim_cookie *reclaim}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjuubj)}(hhh]jM)}(h4cookie for shared reclaim walks, NULL for full walksh]h4cookie for shared reclaim walks, NULL for full walks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(hxReturns references to children of the hierarchy below **root**, or **root** itself, or ``NULL`` after a full round-trip.h](h6Returns references to children of the hierarchy below }(hj̓hhhNhNubj)}(h**root**h]hroot}(hjԓhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̓ubh, or }(hj̓hhhNhNubj)}(h**root**h]hroot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̓ubh itself, or }(hj̓hhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj̓ubh after a full round-trip.}(hj̓hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(hCaller must pass the return value in **prev** on subsequent invocations for reference counting, or use mem_cgroup_iter_break() to cancel a hierarchy walk before the round-trip is complete.h](h%Caller must pass the return value in }(hjhhhNhNubj)}(h**prev**h]hprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh on subsequent invocations for reference counting, or use mem_cgroup_iter_break() to cancel a hierarchy walk before the round-trip is complete.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(hReclaimers can specify a node in **reclaim** to divide up the memcgs in the hierarchy among all concurrent reclaimers operating on the same node.h](h!Reclaimers can specify a node in }(hj2hhhNhNubj)}(h **reclaim**h]hreclaim}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubhe to divide up the memcgs in the hierarchy among all concurrent reclaimers operating on the same node.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"mem_cgroup_iter_break (C function)c.mem_cgroup_iter_breakhNtauh1hhjhhhNhNubh)}(hhh](h)}(hMvoid mem_cgroup_iter_break (struct mem_cgroup *root, struct mem_cgroup *prev)h]h)}(hLvoid mem_cgroup_iter_break(struct mem_cgroup *root, struct mem_cgroup *prev)h](j)}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhMubh)}(hmem_cgroup_iter_breakh]j)}(hmem_cgroup_iter_breakh]hmem_cgroup_iter_break}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjohhhjhMubj )}(h2(struct mem_cgroup *root, struct mem_cgroup *prev)h](j )}(hstruct mem_cgroup *rooth](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjΔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˔ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjДmodnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_iter_breakasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hrooth]hroot}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mem_cgroup *prevh](j5)}(hj8h]hstruct}(hj"hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]jc.mem_cgroup_iter_breakasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hprevh]hprev}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjohhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjkhhhjhMubah}(h]jfah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhhubj4)}(hhh]jM)}(h"abort a hierarchy walk prematurelyh]h"abort a hierarchy walk prematurely}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct mem_cgroup *root`` hierarchy root ``struct mem_cgroup *prev`` last visited hierarchy member as returned by mem_cgroup_iter()h](jM)}(h**Parameters**h]j)}(hjŕh]h Parameters}(hjǕhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÕubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh](j)}(h+``struct mem_cgroup *root`` hierarchy root h](j)}(h``struct mem_cgroup *root``h]jS)}(hjh]hstruct mem_cgroup *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjޕubj)}(hhh]jM)}(hhierarchy rooth]hhierarchy root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjޕubeh}(h]h ]h"]h$]h&]uh1jhjhMhjەubj)}(hZ``struct mem_cgroup *prev`` last visited hierarchy member as returned by mem_cgroup_iter()h](j)}(h``struct mem_cgroup *prev``h]jS)}(hjh]hstruct mem_cgroup *prev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(h>last visited hierarchy member as returned by mem_cgroup_iter()h]h>last visited hierarchy member as returned by mem_cgroup_iter()}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjەubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"mem_cgroup_scan_tasks (C function)c.mem_cgroup_scan_taskshNtauh1hhjhhhNhNubh)}(hhh](h)}(hivoid mem_cgroup_scan_tasks (struct mem_cgroup *memcg, int (*fn)(struct task_struct *, void *), void *arg)h]h)}(hfvoid mem_cgroup_scan_tasks(struct mem_cgroup *memcg, int (*fn)(struct task_struct*, void*), void *arg)h](j)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjhMFubh)}(hmem_cgroup_scan_tasksh]j)}(hmem_cgroup_scan_tasksh]hmem_cgroup_scan_tasks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjshhhjhMFubj )}(hL(struct mem_cgroup *memcg, int (*fn)(struct task_struct*, void*), void *arg)h](j )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjҖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϖubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjԖmodnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_scan_tasksasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmemcgh]hmemcg}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h%int (*fn)(struct task_struct*, void*)h](j)}(hinth]hint}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjF )}(hj!h]h(}(hjBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj"ubjF )}(hjI h]h*}(hjOhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj"ubj)}(hfnh]hfn}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjF )}(hj!h]h)}(hjjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj"ubjF )}(hj!h]h(}(hjwhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj"ubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj"ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mem_cgroup_scan_tasksasbuh1hhj"ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj"ubjF )}(h,h]h,}(hj͗hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj"ubj)}(h h]h }(hjۗhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj"ubjF )}(hj!h]h)}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h void *argh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hargh]harg}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjshhhjhMFubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjohhhjhMFubah}(h]jjah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMFhjlhhubj4)}(hhh]jM)}(h/iterate over tasks of a memory cgroup hierarchyh]h/iterate over tasks of a memory cgroup hierarchy}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMFhjlhhubah}(h]h ]h"]h$]h&]uh1j3hjlhhhjhMFubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct mem_cgroup *memcg`` hierarchy root ``int (*fn)(struct task_struct *, void *)`` function to call for each task ``void *arg`` argument passed to **fn** **Description** This function iterates over tasks attached to **memcg** or to any of its descendants and calls **fn** for each task. If **fn** returns a non-zero value, the function breaks the iteration loop. Otherwise, it will iterate over all tasks and return 0. This function must not be called for the root memory cgroup.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMJhjubj)}(hhh](j)}(h,``struct mem_cgroup *memcg`` hierarchy root h](j)}(h``struct mem_cgroup *memcg``h]jS)}(hjh]hstruct mem_cgroup *memcg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMGhjubj)}(hhh]jM)}(hhierarchy rooth]hhierarchy root}(hjɘhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjŘhMGhjƘubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŘhMGhjubj)}(hK``int (*fn)(struct task_struct *, void *)`` function to call for each task h](j)}(h+``int (*fn)(struct task_struct *, void *)``h]jS)}(hjh]h'int (*fn)(struct task_struct *, void *)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMHhjubj)}(hhh]jM)}(hfunction to call for each taskh]hfunction to call for each task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubj)}(h(``void *arg`` argument passed to **fn** h](j)}(h ``void *arg``h]jS)}(hj"h]h void *arg}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMIhjubj)}(hhh]jM)}(hargument passed to **fn**h](hargument passed to }(hj;hhhNhNubj)}(h**fn**h]hfn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jLhj7hMIhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMIhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMKhjubjM)}(hThis function iterates over tasks attached to **memcg** or to any of its descendants and calls **fn** for each task. If **fn** returns a non-zero value, the function breaks the iteration loop. Otherwise, it will iterate over all tasks and return 0.h](h.This function iterates over tasks attached to }(hjhhhNhNubj)}(h **memcg**h]hmemcg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( or to any of its descendants and calls }(hjhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for each task. If }(hjhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhz returns a non-zero value, the function breaks the iteration loop. Otherwise, it will iterate over all tasks and return 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMJhjubjM)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj6ubj)}(hhh]jM)}(h(index of lru list the page is sitting onh]h(index of lru list the page is sitting on}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubj)}(h+``int zid`` zone id of the accounted pages h](j)}(h ``int zid``h]jS)}(hjuh]hint zid}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjsubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjoubj)}(hhh]jM)}(hzone id of the accounted pagesh]hzone id of the accounted pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``long nr_pages`` positive when adding or negative when removing h](j)}(h``long nr_pages``h]jS)}(hjh]h long nr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(h.positive when adding or negative when removingh]h.positive when adding or negative when removing}(hjǢhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjâhMhjĢubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjâhMhjubeh}(h]h ]h"]h$]h&]uh1jhjޡubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjޡubjM)}(h}This function must be called under lru_lock, just before a page is added to or just after a page is removed from an lru list.h]h}This function must be called under lru_lock, just before a page is added to or just after a page is removed from an lru list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjޡubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmem_cgroup_margin (C function)c.mem_cgroup_marginhNtauh1hhjhhhNhNubh)}(hhh](h)}(h:unsigned long mem_cgroup_margin (struct mem_cgroup *memcg)h]h)}(h9unsigned long mem_cgroup_margin(struct mem_cgroup *memcg)h](j)}(hunsignedh]hunsigned}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hMubj)}(hlongh]hlong}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hMubh)}(hmem_cgroup_marginh]j)}(hmem_cgroup_marginh]hmem_cgroup_margin}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1hhj*hhhj<hMubj )}(h(struct mem_cgroup *memcg)h]j )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljmsbc.mem_cgroup_marginasbuh1hhjubj)}(h h]h }(hjţhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjӣhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmemcgh]hmemcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hj*hhhj<hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj&hhhj<hMubah}(h]j!ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj<hMhj#hhubj4)}(hhh]jM)}(h-calculate chargeable space of a memory cgrouph]h-calculate chargeable space of a memory cgroup}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj#hhhj<hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj"jHj"jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct mem_cgroup *memcg`` the memory cgroup **Description** Returns the maximum amount of memory **mem** can be charged with, in pages.h](jM)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj&ubj)}(hhh]j)}(h/``struct mem_cgroup *memcg`` the memory cgroup h](j)}(h``struct mem_cgroup *memcg``h]jS)}(hjKh]hstruct mem_cgroup *memcg}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjEubj)}(hhh]jM)}(hthe memory cgrouph]hthe memory cgroup}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj&ubjM)}(hKReturns the maximum amount of memory **mem** can be charged with, in pages.h](h%Returns the maximum amount of memory }(hjhhhNhNubj)}(h**mem**h]hmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh can be charged with, in pages.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)mem_cgroup_print_oom_context (C function)c.mem_cgroup_print_oom_contexthNtauh1hhjhhhNhNubh)}(hhh](h)}(hSvoid mem_cgroup_print_oom_context (struct mem_cgroup *memcg, struct task_struct *p)h]h)}(hRvoid mem_cgroup_print_oom_context(struct mem_cgroup *memcg, struct task_struct *p)h](j)}(hvoidh]hvoid}(hjݤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj٤hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj٤hhhjhMubh)}(hmem_cgroup_print_oom_contexth]j)}(hmem_cgroup_print_oom_contexth]hmem_cgroup_print_oom_context}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj٤hhhjhMubj )}(h1(struct mem_cgroup *memcg, struct task_struct *p)h](j )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj:modnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_print_oom_contextasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjfhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmemcgh]hmemcg}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct task_struct *ph](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jTc.mem_cgroup_print_oom_contextasbuh1hhjubj)}(h h]h }(hjȥhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj֥hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hjR h]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj٤hhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjդhhhjhMubah}(h]jФah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjҤhhubj4)}(hhh]jM)}(h4Print OOM information relevant to memory controller.h]h4Print OOM information relevant to memory controller.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj hhubah}(h]h ]h"]h$]h&]uh1j3hjҤhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj$jHj$jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct mem_cgroup *memcg`` The memory cgroup that went over limit ``struct task_struct *p`` Task that is going to be killed **NOTE** **memcg** and **p**'s mem_cgroup can be different when hierarchy is enabledh](jM)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj(ubj)}(hhh](j)}(hD``struct mem_cgroup *memcg`` The memory cgroup that went over limit h](j)}(h``struct mem_cgroup *memcg``h]jS)}(hjMh]hstruct mem_cgroup *memcg}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjGubj)}(hhh]jM)}(h&The memory cgroup that went over limith]h&The memory cgroup that went over limit}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjDubj)}(h:``struct task_struct *p`` Task that is going to be killed h](j)}(h``struct task_struct *p``h]jS)}(hjh]hstruct task_struct *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hTask that is going to be killedh]hTask that is going to be killed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubeh}(h]h ]h"]h$]h&]uh1jhj(ubjM)}(h**NOTE**h]j)}(hjh]hNOTE}(hjæhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj(ubjM)}(hK**memcg** and **p**'s mem_cgroup can be different when hierarchy is enabledh](j)}(h **memcg**h]hmemcg}(hjۦhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjצubh and }(hjצhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjצubh:’s mem_cgroup can be different when hierarchy is enabled}(hjצhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)mem_cgroup_print_oom_meminfo (C function)c.mem_cgroup_print_oom_meminfohNtauh1hhjhhhNhNubh)}(hhh](h)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjQmodnameN classnameNjpjs)}jv]jy)}jljsbc.consume_stockasbuh1hhj-ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjF )}(hjI h]h*}(hj}hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-ubj)}(hmemcgh]hmemcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubj )}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjͫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hj۫hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h*Try to consume stocked charge on this cpu.h]h*Try to consume stocked charge on this cpu.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX|**Parameters** ``struct mem_cgroup *memcg`` memcg to consume from. ``unsigned int nr_pages`` how many pages to charge. **Description** Consume the cached charge if enough nr_pages are present otherwise return failure. Also return failure for charge request larger than MEMCG_CHARGE_BATCH or if the local lock is already taken. returns true if successful, false otherwise.h](jM)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj!ubj)}(hhh](j)}(h4``struct mem_cgroup *memcg`` memcg to consume from. h](j)}(h``struct mem_cgroup *memcg``h]jS)}(hjFh]hstruct mem_cgroup *memcg}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj@ubj)}(hhh]jM)}(hmemcg to consume from.h]hmemcg to consume from.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj=ubj)}(h4``unsigned int nr_pages`` how many pages to charge. h](j)}(h``unsigned int nr_pages``h]jS)}(hjh]hunsigned int nr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjyubj)}(hhh]jM)}(hhow many pages to charge.h]hhow many pages to charge.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubeh}(h]h ]h"]h$]h&]uh1jhj!ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj!ubjM)}(hConsume the cached charge if enough nr_pages are present otherwise return failure. Also return failure for charge request larger than MEMCG_CHARGE_BATCH or if the local lock is already taken.h]hConsume the cached charge if enough nr_pages are present otherwise return failure. Also return failure for charge request larger than MEMCG_CHARGE_BATCH or if the local lock is already taken.}(hjЬhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj!ubjM)}(h,returns true if successful, false otherwise.h]h,returns true if successful, false otherwise.}(hj߬hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%__memcg_kmem_charge_page (C function)c.__memcg_kmem_charge_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hFint __memcg_kmem_charge_page (struct page *page, gfp_t gfp, int order)h]h)}(hEint __memcg_kmem_charge_page(struct page *page, gfp_t gfp, int order)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM7 ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhM7 ubh)}(h__memcg_kmem_charge_pageh]j)}(h__memcg_kmem_charge_pageh]h__memcg_kmem_charge_page}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhjhM7 ubj )}(h)(struct page *page, gfp_t gfp, int order)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjKhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubh)}(hhh]j)}(hpageh]hpage}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjkmodnameN classnameNjpjs)}jv]jy)}jlj1sbc.__memcg_kmem_charge_pageasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjGubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj­modnameN classnameNjpjs)}jv]jc.__memcg_kmem_charge_pageasbuh1hhjubj)}(h h]h }(hjޭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCubj )}(h int orderh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(horderh]horder}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCubeh}(h]h ]h"]h$]h&]jjuh1j hj hhhjhM7 ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM7 ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM7 hjhhubj4)}(hhh]jM)}(h/charge a kmem page to the current memory cgrouph]h/charge a kmem page to the current memory cgroup}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM7 hjHhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM7 ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjcjHjcjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct page *page`` page to charge ``gfp_t gfp`` reclaim mode ``int order`` allocation order **Description** Returns 0 on success, an error code on failure.h](jM)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM; hjgubj)}(hhh](j)}(h%``struct page *page`` page to charge h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM8 hjubj)}(hhh]jM)}(hpage to chargeh]hpage to charge}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM8 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8 hjubj)}(h``gfp_t gfp`` reclaim mode h](j)}(h ``gfp_t gfp``h]jS)}(hjŮh]h gfp_t gfp}(hjǮhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjîubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM9 hjubj)}(hhh]jM)}(h reclaim modeh]h reclaim mode}(hjޮhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjڮhM9 hjۮubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjڮhM9 hjubj)}(h``int order`` allocation order h](j)}(h ``int order``h]jS)}(hjh]h int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM: hjubj)}(hhh]jM)}(hallocation orderh]hallocation order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM: hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM: hjubeh}(h]h ]h"]h$]h&]uh1jhjgubjM)}(h**Description**h]j)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM< hjgubjM)}(h/Returns 0 on success, an error code on failure.h]h/Returns 0 on success, an error code on failure.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM; hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'__memcg_kmem_uncharge_page (C function)c.__memcg_kmem_uncharge_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h>void __memcg_kmem_uncharge_page (struct page *page, int order)h]h)}(h=void __memcg_kmem_uncharge_page(struct page *page, int order)h](j)}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMP ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjhMP ubh)}(h__memcg_kmem_uncharge_pageh]j)}(h__memcg_kmem_uncharge_pageh]h__memcg_kmem_uncharge_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjzhhhjhMP ubj )}(h(struct page *page, int order)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjȯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjٯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֯ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjۯmodnameN classnameNjpjs)}jv]jy)}jljsbc.__memcg_kmem_uncharge_pageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int orderh](j)}(hinth]hint}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(horderh]horder}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjzhhhjhMP ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjvhhhjhMP ubah}(h]jqah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMP hjshhubj4)}(hhh]jM)}(huncharge a kmem pageh]huncharge a kmem page}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMP hjphhubah}(h]h ]h"]h$]h&]uh1j3hjshhhjhMP ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hZ**Parameters** ``struct page *page`` page to uncharge ``int order`` allocation orderh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMT hjubj)}(hhh](j)}(h'``struct page *page`` page to uncharge h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMQ hjubj)}(hhh]jM)}(hpage to unchargeh]hpage to uncharge}(hjͰhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjɰhMQ hjʰubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɰhMQ hjubj)}(h``int order`` allocation orderh](j)}(h ``int order``h]jS)}(hjh]h int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMS hjubj)}(hhh]jM)}(hallocation orderh]hallocation order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMR hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMS hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h mem_cgroup_wb_stats (C function)c.mem_cgroup_wb_statshNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid mem_cgroup_wb_stats (struct bdi_writeback *wb, unsigned long *pfilepages, unsigned long *pheadroom, unsigned long *pdirty, unsigned long *pwriteback)h]h)}(hvoid mem_cgroup_wb_stats(struct bdi_writeback *wb, unsigned long *pfilepages, unsigned long *pheadroom, unsigned long *pdirty, unsigned long *pwriteback)h](j)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjUhMubh)}(hmem_cgroup_wb_statsh]j)}(hmem_cgroup_wb_statsh]hmem_cgroup_wb_stats}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1hhjChhhjUhMubj )}(h(struct bdi_writeback *wb, unsigned long *pfilepages, unsigned long *pheadroom, unsigned long *pdirty, unsigned long *pwriteback)h](j )}(hstruct bdi_writeback *wbh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h bdi_writebackh]h bdi_writeback}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljjsbc.mem_cgroup_wb_statsasbuh1hhjubj)}(h h]h }(hj±hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjбhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hwbh]hwb}(hjݱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|ubj )}(hunsigned long *pfilepagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj.hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h pfilepagesh]h pfilepages}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|ubj )}(hunsigned long *pheadroomh](j)}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hlongh]hlong}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjPubj)}(h pheadroomh]h pheadroom}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|ubj )}(hunsigned long *pdirtyh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjβhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjܲhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpdirtyh]hpdirty}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|ubj )}(hunsigned long *pwritebackh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjHhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(h pwritebackh]h pwriteback}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|ubeh}(h]h ]h"]h$]h&]jjuh1j hjChhhjUhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj?hhhjUhMubah}(h]j:ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjUhMhj<hhubj4)}(hhh]jM)}(h/retrieve writeback related stats from its memcgh]h/retrieve writeback related stats from its memcg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj|hhubah}(h]h ]h"]h$]h&]uh1j3hj<hhhjUhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXh**Parameters** ``struct bdi_writeback *wb`` bdi_writeback in question ``unsigned long *pfilepages`` out parameter for number of file pages ``unsigned long *pheadroom`` out parameter for number of allocatable pages according to memcg ``unsigned long *pdirty`` out parameter for number of dirty pages ``unsigned long *pwriteback`` out parameter for number of pages under writeback **Description** Determine the numbers of file, headroom, dirty, and writeback pages in **wb**'s memcg. File, dirty and writeback are self-explanatory. Headroom is a bit more involved. A memcg's headroom is "min(max, high) - used". In the hierarchy, the headroom is calculated as the lowest headroom of itself and the ancestors. Note that this doesn't consider the actual amount of available memory in the system. The caller should further cap ***pheadroom** accordingly.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh](j)}(h7``struct bdi_writeback *wb`` bdi_writeback in question h](j)}(h``struct bdi_writeback *wb``h]jS)}(hjh]hstruct bdi_writeback *wb}(hj³hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hbdi_writeback in questionh]hbdi_writeback in question}(hjٳhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjճhMhjֳubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjճhMhjubj)}(hE``unsigned long *pfilepages`` out parameter for number of file pages h](j)}(h``unsigned long *pfilepages``h]jS)}(hjh]hunsigned long *pfilepages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(h&out parameter for number of file pagesh]h&out parameter for number of file pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h^``unsigned long *pheadroom`` out parameter for number of allocatable pages according to memcg h](j)}(h``unsigned long *pheadroom``h]jS)}(hj2h]hunsigned long *pheadroom}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj,ubj)}(hhh]jM)}(h@out parameter for number of allocatable pages according to memcgh]h@out parameter for number of allocatable pages according to memcg}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjubj)}(hB``unsigned long *pdirty`` out parameter for number of dirty pages h](j)}(h``unsigned long *pdirty``h]jS)}(hjkh]hunsigned long *pdirty}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjeubj)}(hhh]jM)}(h'out parameter for number of dirty pagesh]h'out parameter for number of dirty pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hP``unsigned long *pwriteback`` out parameter for number of pages under writeback h](j)}(h``unsigned long *pwriteback``h]jS)}(hjh]hunsigned long *pwriteback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(h1out parameter for number of pages under writebackh]h1out parameter for number of pages under writeback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjߴh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݴubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(hDetermine the numbers of file, headroom, dirty, and writeback pages in **wb**'s memcg. File, dirty and writeback are self-explanatory. Headroom is a bit more involved.h](hGDetermine the numbers of file, headroom, dirty, and writeback pages in }(hjhhhNhNubj)}(h**wb**h]hwb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh^’s memcg. File, dirty and writeback are self-explanatory. Headroom is a bit more involved.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(hX!A memcg's headroom is "min(max, high) - used". In the hierarchy, the headroom is calculated as the lowest headroom of itself and the ancestors. Note that this doesn't consider the actual amount of available memory in the system. The caller should further cap ***pheadroom** accordingly.h](hXA memcg’s headroom is “min(max, high) - used”. In the hierarchy, the headroom is calculated as the lowest headroom of itself and the ancestors. Note that this doesn’t consider the actual amount of available memory in the system. The caller should further cap }(hjhhhNhNubj)}(h***pheadroom**h]h *pheadroom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh accordingly.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'mem_cgroup_from_private_id (C function)c.mem_cgroup_from_private_idhNtauh1hhjhhhNhNubh)}(hhh](h)}(hBstruct mem_cgroup * mem_cgroup_from_private_id (unsigned short id)h]h)}(h@struct mem_cgroup *mem_cgroup_from_private_id(unsigned short id)h](j5)}(hj8h]hstruct}(hjWhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjShhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjdhMubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjxmodnameN classnameNjpjs)}jv]jy)}jlmem_cgroup_from_private_idsbc.mem_cgroup_from_private_idasbuh1hhjShhhjdhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjdhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjShhhjdhMubh)}(hmem_cgroup_from_private_idh]j)}(hjh]hmem_cgroup_from_private_id}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjShhhjdhMubj )}(h(unsigned short id)h]j )}(hunsigned short idh](j)}(hunsignedh]hunsigned}(hjѵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͵ubj)}(h h]h }(hjߵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͵ubj)}(hshorth]hshort}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͵ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͵ubj)}(hidh]hid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͵ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjɵubah}(h]h ]h"]h$]h&]jjuh1j hjShhhjdhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjOhhhjdhMubah}(h]jJah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjdhMhjLhhubj4)}(hhh]jM)}(hlook up a memcg from a memcg idh]hlook up a memcg from a memcg id}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj0hhubah}(h]h ]h"]h$]h&]uh1j3hjLhhhjdhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjKjHjKjIjJjKuh1hhhhjhNhNubj)}(hs**Parameters** ``unsigned short id`` the memcg id to look up **Description** Caller must hold rcu_read_lock().h](jM)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjOubj)}(hhh]j)}(h.``unsigned short id`` the memcg id to look up h](j)}(h``unsigned short id``h]jS)}(hjth]hunsigned short id}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjrubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjnubj)}(hhh]jM)}(hthe memcg id to look uph]hthe memcg id to look up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjOubjM)}(h!Caller must hold rcu_read_lock().h]h!Caller must hold rcu_read_lock().}(hjŶhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!mem_cgroup_css_reset (C function)c.mem_cgroup_css_resethNtauh1hhjhhhNhNubh)}(hhh](h)}(h;void mem_cgroup_css_reset (struct cgroup_subsys_state *css)h]h)}(h:void mem_cgroup_css_reset(struct cgroup_subsys_state *css)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmem_cgroup_css_reseth]j)}(hmem_cgroup_css_reseth]hmem_cgroup_css_reset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h!(struct cgroup_subsys_state *css)h]j )}(hstruct cgroup_subsys_state *cssh](j5)}(hj8h]hstruct}(hj1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(hcgroup_subsys_stateh]hcgroup_subsys_state}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjQmodnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_css_resetasbuh1hhj-ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjF )}(hjI h]h*}(hj}hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-ubj)}(hcssh]hcss}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h reset the states of a mem_cgrouph]h reset the states of a mem_cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj̷jHj̷jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct cgroup_subsys_state *css`` the target css **Description** Reset the states of the mem_cgroup associated with **css**. This is invoked when the userland requests disabling on the default hierarchy but the memcg is pinned through dependency. The memcg should stop applying policies and should revert to the vanilla state as it may be made visible again. The current implementation only resets the essential configurations. This needs to be expanded to cover all the visible parts.h](jM)}(h**Parameters**h]j)}(hjַh]h Parameters}(hjطhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԷubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjзubj)}(hhh]j)}(h3``struct cgroup_subsys_state *css`` the target css h](j)}(h#``struct cgroup_subsys_state *css``h]jS)}(hjh]hstruct cgroup_subsys_state *css}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hthe target cssh]hthe target css}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjзubjM)}(h**Description**h]j)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjзubjM)}(hX'Reset the states of the mem_cgroup associated with **css**. This is invoked when the userland requests disabling on the default hierarchy but the memcg is pinned through dependency. The memcg should stop applying policies and should revert to the vanilla state as it may be made visible again.h](h3Reset the states of the mem_cgroup associated with }(hjFhhhNhNubj)}(h**css**h]hcss}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh. This is invoked when the userland requests disabling on the default hierarchy but the memcg is pinned through dependency. The memcg should stop applying policies and should revert to the vanilla state as it may be made visible again.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjзubjM)}(h~The current implementation only resets the essential configurations. This needs to be expanded to cover all the visible parts.h]h~The current implementation only resets the essential configurations. This needs to be expanded to cover all the visible parts.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjзubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,mem_cgroup_calculate_protection (C function)!c.mem_cgroup_calculate_protectionhNtauh1hhjhhhNhNubh)}(hhh](h)}(hXvoid mem_cgroup_calculate_protection (struct mem_cgroup *root, struct mem_cgroup *memcg)h]h)}(hWvoid mem_cgroup_calculate_protection(struct mem_cgroup *root, struct mem_cgroup *memcg)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmem_cgroup_calculate_protectionh]j)}(hmem_cgroup_calculate_protectionh]hmem_cgroup_calculate_protection}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h3(struct mem_cgroup *root, struct mem_cgroup *memcg)h](j )}(hstruct mem_cgroup *rooth](j5)}(hj8h]hstruct}(hjӸhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjϸubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϸubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsb!c.mem_cgroup_calculate_protectionasbuh1hhjϸubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϸubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjϸubj)}(hrooth]hroot}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϸubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj˸ubj )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hjEhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjemodnameN classnameNjpjs)}jv]j !c.mem_cgroup_calculate_protectionasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjAubj)}(hmemcgh]hmemcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj˸ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h2check if memory consumption is in the normal rangeh]h2check if memory consumption is in the normal range}(hjƹhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjùhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj޹jHj޹jIjJjKuh1hhhhjhNhNubj)}(hX/**Parameters** ``struct mem_cgroup *root`` the top ancestor of the sub-tree being checked ``struct mem_cgroup *memcg`` the memory cgroup to check **Description** WARNING: This function is not stateless! It can only be used as part of a top-down tree iteration, not for isolated queries.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh](j)}(hK``struct mem_cgroup *root`` the top ancestor of the sub-tree being checked h](j)}(h``struct mem_cgroup *root``h]jS)}(hjh]hstruct mem_cgroup *root}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(h.the top ancestor of the sub-tree being checkedh]h.the top ancestor of the sub-tree being checked}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h8``struct mem_cgroup *memcg`` the memory cgroup to check h](j)}(h``struct mem_cgroup *memcg``h]jS)}(hj@h]hstruct mem_cgroup *memcg}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj:ubj)}(hhh]jM)}(hthe memory cgroup to checkh]hthe memory cgroup to check}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]j)}(h|WARNING: This function is not stateless! It can only be used as part of a top-down tree iteration, not for isolated queries.h](j)}(hDWARNING: This function is not stateless! It can only be used as parth]hDWARNING: This function is not stateless! It can only be used as part}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(h7of a top-down tree iteration, not for isolated queries.h]h7of a top-down tree iteration, not for isolated queries.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&mem_cgroup_charge_hugetlb (C function)c.mem_cgroup_charge_hugetlbhNtauh1hhjhhhNhNubh)}(hhh](h)}(h>int mem_cgroup_charge_hugetlb (struct folio *folio, gfp_t gfp)h]h)}(h=int mem_cgroup_charge_hugetlb(struct folio *folio, gfp_t gfp)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmem_cgroup_charge_hugetlbh]j)}(hmem_cgroup_charge_hugetlbh]hmem_cgroup_charge_hugetlb}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h (struct folio *folio, gfp_t gfp)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj(hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]j)}(hfolioh]hfolio}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjHmodnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_charge_hugetlbasbuh1hhj$ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjF )}(hjI h]h*}(hjthhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj$ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jbc.mem_cgroup_charge_hugetlbasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfph]hgfp}(hjɻhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]j޺ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h$charge the memcg for a hugetlb folioh]h$charge the memcg for a hugetlb folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` folio being charged ``gfp_t gfp`` reclaim mode **Description** This function is called when allocating a huge page folio, after the page has already been obtained and charged to the appropriate hugetlb cgroup controller (if it is enabled). Returns ENOMEM if the memcg is already full. Returns 0 if either the charge was successful, or if we skip the charging.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM"hjubj)}(hhh](j)}(h,``struct folio *folio`` folio being charged h](j)}(h``struct folio *folio``h]jS)}(hj4h]hstruct folio *folio}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj.ubj)}(hhh]jM)}(hfolio being chargedh]hfolio being charged}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubj)}(h``gfp_t gfp`` reclaim mode h](j)}(h ``gfp_t gfp``h]jS)}(hjmh]h gfp_t gfp}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjkubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjgubj)}(hhh]jM)}(h reclaim modeh]h reclaim mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhM hj+ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM"hjubjM)}(hThis function is called when allocating a huge page folio, after the page has already been obtained and charged to the appropriate hugetlb cgroup controller (if it is enabled).h]hThis function is called when allocating a huge page folio, after the page has already been obtained and charged to the appropriate hugetlb cgroup controller (if it is enabled).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM!hjubjM)}(hwReturns ENOMEM if the memcg is already full. Returns 0 if either the charge was successful, or if we skip the charging.h]hwReturns ENOMEM if the memcg is already full. Returns 0 if either the charge was successful, or if we skip the charging.}(hjͼhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+mem_cgroup_swapin_charge_folio (C function) c.mem_cgroup_swapin_charge_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hlint mem_cgroup_swapin_charge_folio (struct folio *folio, unsigned short id, struct mm_struct *mm, gfp_t gfp)h]h)}(hkint mem_cgroup_swapin_charge_folio(struct folio *folio, unsigned short id, struct mm_struct *mm, gfp_t gfp)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM@ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM@ubh)}(hmem_cgroup_swapin_charge_folioh]j)}(hmem_cgroup_swapin_charge_folioh]hmem_cgroup_swapin_charge_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hM@ubj )}(hI(struct folio *folio, unsigned short id, struct mm_struct *mm, gfp_t gfp)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj9hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j)}(hfolioh]hfolio}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYmodnameN classnameNjpjs)}jv]jy)}jljsb c.mem_cgroup_swapin_charge_folioasbuh1hhj5ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hunsigned short idh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshorth]hshort}(hjǽhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjսhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]js c.mem_cgroup_swapin_charge_folioasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjFhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmmh]hmm}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjqmodnameN classnameNjpjs)}jv]js c.mem_cgroup_swapin_charge_folioasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj hM@ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj hM@ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hM@hjhhubj4)}(hhh]jM)}(h*Charge a newly allocated folio for swapin.h]h*Charge a newly allocated folio for swapin.}(hjžhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM@hj¾hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hM@ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjݾjHjݾjIjJjKuh1hhhhjhNhNubj)}(hXx**Parameters** ``struct folio *folio`` the folio to charge ``unsigned short id`` memory cgroup id ``struct mm_struct *mm`` mm context of the victim ``gfp_t gfp`` reclaim mode **Description** This function charges a folio allocated for swapin. Please call this before adding the folio to the swapcache. Returns 0 on success. Otherwise, an error code is returned.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMDhjubj)}(hhh](j)}(h,``struct folio *folio`` the folio to charge h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMAhjubj)}(hhh]jM)}(hthe folio to chargeh]hthe folio to charge}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMAhjubj)}(h'``unsigned short id`` memory cgroup id h](j)}(h``unsigned short id``h]jS)}(hj?h]hunsigned short id}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj=ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMBhj9ubj)}(hhh]jM)}(hmemory cgroup idh]hmemory cgroup id}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjThMBhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMBhjubj)}(h2``struct mm_struct *mm`` mm context of the victim h](j)}(h``struct mm_struct *mm``h]jS)}(hjxh]hstruct mm_struct *mm}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjvubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMChjrubj)}(hhh]jM)}(hmm context of the victimh]hmm context of the victim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubj)}(h``gfp_t gfp`` reclaim mode h](j)}(h ``gfp_t gfp``h]jS)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMDhjubj)}(hhh]jM)}(h reclaim modeh]h reclaim mode}(hjʿhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjƿhMDhjǿubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƿhMDhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMFhjubjM)}(hnThis function charges a folio allocated for swapin. Please call this before adding the folio to the swapcache.h]hnThis function charges a folio allocated for swapin. Please call this before adding the folio to the swapcache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMEhjubjM)}(h;Returns 0 on success. Otherwise, an error code is returned.h]h;Returns 0 on success. Otherwise, an error code is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMHhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%mem_cgroup_replace_folio (C function)c.mem_cgroup_replace_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hDvoid mem_cgroup_replace_folio (struct folio *old, struct folio *new)h]h)}(hCvoid mem_cgroup_replace_folio(struct folio *old, struct folio *new)h](j)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhjNhMubh)}(hmem_cgroup_replace_folioh]j)}(hmem_cgroup_replace_folioh]hmem_cgroup_replace_folio}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj<hhhjNhMubj )}(h&(struct folio *old, struct folio *new)h](j )}(hstruct folio *oldh](j5)}(hj8h]hstruct}(hj}hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljcsbc.mem_cgroup_replace_folioasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjyubj)}(holdh]hold}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubj )}(hstruct folio *newh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mem_cgroup_replace_folioasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj9hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnewh]hnew}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubeh}(h]h ]h"]h$]h&]jjuh1j hj<hhhjNhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj8hhhjNhMubah}(h]j3ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjNhMhj5hhubj4)}(hhh]jM)}(hCharge a folio's replacement.h]hCharge a folio’s replacement.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjmhhubah}(h]h ]h"]h$]h&]uh1j3hj5hhhjNhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *old`` Currently circulating folio. ``struct folio *new`` Replacement folio. **Description** Charge **new** as a replacement folio for **old**. **old** will be uncharged upon free. Both folios must be locked, **new->mapping** must be set up.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh](j)}(h3``struct folio *old`` Currently circulating folio. h](j)}(h``struct folio *old``h]jS)}(hjh]hstruct folio *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hCurrently circulating folio.h]hCurrently circulating folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``struct folio *new`` Replacement folio. h](j)}(h``struct folio *new``h]jS)}(hjh]hstruct folio *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hReplacement folio.h]hReplacement folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(hWCharge **new** as a replacement folio for **old**. **old** will be uncharged upon free.h](hCharge }(hj;hhhNhNubj)}(h**new**h]hnew}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh as a replacement folio for }(hj;hhhNhNubj)}(h**old**h]hold}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh. }(hj;hhhNhNubj)}(h**old**h]hold}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh will be uncharged upon free.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(hmapping** must be set up.h](hBoth folios must be locked, }(hjhhhNhNubj)}(h**new->mapping**h]h new->mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be set up.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmem_cgroup_migrate (C function)c.mem_cgroup_migratehNtauh1hhjhhhNhNubh)}(hhh](h)}(h>void mem_cgroup_migrate (struct folio *old, struct folio *new)h]h)}(h=void mem_cgroup_migrate(struct folio *old, struct folio *new)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmem_cgroup_migrateh]j)}(hmem_cgroup_migrateh]hmem_cgroup_migrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h&(struct folio *old, struct folio *new)h](j )}(hstruct folio *oldh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_migrateasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjJhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(holdh]hold}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio *newh](j5)}(hj8h]hstruct}(hjphhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j8c.mem_cgroup_migrateasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjlubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h6Transfer the memcg data from the old to the new folio.h]h6Transfer the memcg data from the old to the new folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *old`` Currently circulating folio. ``struct folio *new`` Replacement folio. **Description** Transfer the memcg data from the old folio to the new folio for migration. The old folio's data info will be cleared. Note that the memory counters will remain unchanged throughout the process. Both folios must be locked, **new->mapping** must be set up.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj ubj)}(hhh](j)}(h3``struct folio *old`` Currently circulating folio. h](j)}(h``struct folio *old``h]jS)}(hj2h]hstruct folio *old}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj,ubj)}(hhh]jM)}(hCurrently circulating folio.h]hCurrently circulating folio.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj)ubj)}(h)``struct folio *new`` Replacement folio. h](j)}(h``struct folio *new``h]jS)}(hjkh]hstruct folio *new}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjeubj)}(hhh]jM)}(hReplacement folio.h]hReplacement folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhj)ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj ubjM)}(hTransfer the memcg data from the old folio to the new folio for migration. The old folio's data info will be cleared. Note that the memory counters will remain unchanged throughout the process.h]hTransfer the memcg data from the old folio to the new folio for migration. The old folio’s data info will be cleared. Note that the memory counters will remain unchanged throughout the process.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj ubjM)}(hmapping** must be set up.h](hBoth folios must be locked, }(hjhhhNhNubj)}(h**new->mapping**h]h new->mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be set up.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!mem_cgroup_sk_charge (C function)c.mem_cgroup_sk_chargehNtauh1hhjhhhNhNubh)}(hhh](h)}(hXbool mem_cgroup_sk_charge (const struct sock *sk, unsigned int nr_pages, gfp_t gfp_mask)h]h)}(hWbool mem_cgroup_sk_charge(const struct sock *sk, unsigned int nr_pages, gfp_t gfp_mask)h](j)}(hj.h]hbool}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMWubh)}(hmem_cgroup_sk_chargeh]j)}(hmem_cgroup_sk_chargeh]hmem_cgroup_sk_charge}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMWubj )}(h>(const struct sock *sk, unsigned int nr_pages, gfp_t gfp_mask)h](j )}(hconst struct sock *skh](j5)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj5)}(hj8h]hstruct}(hjchhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj.sbc.mem_cgroup_sk_chargeasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj+modnameN classnameNjpjs)}jv]jc.mem_cgroup_sk_chargeasbuh1hhj"ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hgfp_maskh]hgfp_mask}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMWubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMWubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMWhjhhubj4)}(hhh]jM)}(hcharge socket memoryh]hcharge socket memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMWhj|hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMWubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX5**Parameters** ``const struct sock *sk`` socket in memcg to charge ``unsigned int nr_pages`` number of pages to charge ``gfp_t gfp_mask`` reclaim mode **Description** Charges **nr_pages** to **memcg**. Returns ``true`` if the charge fit within **memcg**'s configured limit, ``false`` if it doesn't.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM[hjubj)}(hhh](j)}(h4``const struct sock *sk`` socket in memcg to charge h](j)}(h``const struct sock *sk``h]jS)}(hjh]hconst struct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMXhjubj)}(hhh]jM)}(hsocket in memcg to chargeh]hsocket in memcg to charge}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMXhjubj)}(h4``unsigned int nr_pages`` number of pages to charge h](j)}(h``unsigned int nr_pages``h]jS)}(hjh]hunsigned int nr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMYhjubj)}(hhh]jM)}(hnumber of pages to chargeh]hnumber of pages to charge}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjubj)}(h ``gfp_t gfp_mask`` reclaim mode h](j)}(h``gfp_t gfp_mask``h]jS)}(hj2h]hgfp_t gfp_mask}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMZhj,ubj)}(hhh]jM)}(h reclaim modeh]h reclaim mode}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhMZhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMZhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM\hjubjM)}(hCharges **nr_pages** to **memcg**. Returns ``true`` if the charge fit within **memcg**'s configured limit, ``false`` if it doesn't.h](hCharges }(hjhhhNhNubj)}(h **nr_pages**h]hnr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h **memcg**h]hmemcg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh . Returns }(hjhhhNhNubjS)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if the charge fit within }(hjhhhNhNubj)}(h **memcg**h]hmemcg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’s configured limit, }(hjhhhNhNubjS)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if it doesn’t.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM[hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#mem_cgroup_sk_uncharge (C function)c.mem_cgroup_sk_unchargehNtauh1hhjhhhNhNubh)}(hhh](h)}(hJvoid mem_cgroup_sk_uncharge (const struct sock *sk, unsigned int nr_pages)h]h)}(hIvoid mem_cgroup_sk_uncharge(const struct sock *sk, unsigned int nr_pages)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMpubh)}(hmem_cgroup_sk_unchargeh]j)}(hmem_cgroup_sk_unchargeh]hmem_cgroup_sk_uncharge}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMpubj )}(h.(const struct sock *sk, unsigned int nr_pages)h](j )}(hconst struct sock *skh](j5)}(hjh]hconst}(hjIhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj5)}(hj8h]hstruct}(hjdhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjEubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj/sbc.mem_cgroup_sk_unchargeasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjEubj)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMpubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMpubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMphjhhubj4)}(hhh]jM)}(huncharge socket memoryh]huncharge socket memory}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMphj5hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMpubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjPjHjPjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const struct sock *sk`` socket in memcg to uncharge ``unsigned int nr_pages`` number of pages to unchargeh](jM)}(h**Parameters**h]j)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMthjTubj)}(hhh](j)}(h6``const struct sock *sk`` socket in memcg to uncharge h](j)}(h``const struct sock *sk``h]jS)}(hjyh]hconst struct sock *sk}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMqhjsubj)}(hhh]jM)}(hsocket in memcg to unchargeh]hsocket in memcg to uncharge}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjpubj)}(h5``unsigned int nr_pages`` number of pages to unchargeh](j)}(h``unsigned int nr_pages``h]jS)}(hjh]hunsigned int nr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMshjubj)}(hhh]jM)}(hnumber of pages to unchargeh]hnumber of pages to uncharge}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjpubeh}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)__mem_cgroup_try_charge_swap (C function)c.__mem_cgroup_try_charge_swaphNtauh1hhjhhhNhNubh)}(hhh](h)}(h6int __mem_cgroup_try_charge_swap (struct folio *folio)h]h)}(h5int __mem_cgroup_try_charge_swap(struct folio *folio)h](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h__mem_cgroup_try_charge_swaph]j)}(h__mem_cgroup_try_charge_swaph]h__mem_cgroup_try_charge_swap}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjIhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(hfolioh]hfolio}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjimodnameN classnameNjpjs)}jv]jy)}jlj/sbc.__mem_cgroup_try_charge_swapasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjEubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h#try charging swap space for a folioh]h#try charging swap space for a folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` folio being added to swap **Description** Try to charge **folio**'s memcg for the swap space at folio->swap. Returns 0 on success, -ENOMEM on failure.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]j)}(h2``struct folio *folio`` folio being added to swap h](j)}(h``struct folio *folio``h]jS)}(hj h]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hfolio being added to swaph]hfolio being added to swap}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(hBTry to charge **folio**'s memcg for the swap space at folio->swap.h](hTry to charge }(hj^hhhNhNubj)}(h **folio**h]hfolio}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh-’s memcg for the swap space at folio->swap.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(h)Returns 0 on success, -ENOMEM on failure.h]h)Returns 0 on success, -ENOMEM on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'__mem_cgroup_uncharge_swap (C function)c.__mem_cgroup_uncharge_swaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hJvoid __mem_cgroup_uncharge_swap (unsigned short id, unsigned int nr_pages)h]h)}(hIvoid __mem_cgroup_uncharge_swap(unsigned short id, unsigned int nr_pages)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h__mem_cgroup_uncharge_swaph]j)}(h__mem_cgroup_uncharge_swaph]h__mem_cgroup_uncharge_swap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h*(unsigned short id, unsigned int nr_pages)h](j )}(hunsigned short idh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshorth]hshort}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hinth]hint}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hnr_pagesh]hnr_pages}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(huncharge swap spaceh]huncharge swap space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned short id`` cgroup id to uncharge ``unsigned int nr_pages`` the amount of swap space to unchargeh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh](j)}(h,``unsigned short id`` cgroup id to uncharge h](j)}(h``unsigned short id``h]jS)}(hjh]hunsigned short id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hcgroup id to unchargeh]hcgroup id to uncharge}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``unsigned int nr_pages`` the amount of swap space to unchargeh](j)}(h``unsigned int nr_pages``h]jS)}(hjh]hunsigned int nr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(h$the amount of swap space to unchargeh]h$the amount of swap space to uncharge}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!obj_cgroup_may_zswap (C function)c.obj_cgroup_may_zswaphNtauh1hhjhhhNhNubh)}(hhh](h)}(h4bool obj_cgroup_may_zswap (struct obj_cgroup *objcg)h]h)}(h3bool obj_cgroup_may_zswap(struct obj_cgroup *objcg)h](j)}(hj.h]hbool}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjhMubh)}(hobj_cgroup_may_zswaph]j)}(hobj_cgroup_may_zswaph]hobj_cgroup_may_zswap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjnhhhjhMubj )}(h(struct obj_cgroup *objcg)h]j )}(hstruct obj_cgroup *objcgh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h obj_cgrouph]h obj_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.obj_cgroup_may_zswapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hobjcgh]hobjcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjnhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjjhhhjhMubah}(h]jeah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjghhubj4)}(hhh]jM)}(hcheck if this cgroup can zswaph]hcheck if this cgroup can zswap}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj.hhubah}(h]h ]h"]h$]h&]uh1j3hjghhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjIjHjIjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct obj_cgroup *objcg`` the object cgroup **Description** Check if the hierarchical zswap limit has been reached. This doesn't check for specific headroom, and it is not atomic either. But with zswap, the size of the allocation is only known once compression has occurred, and this optimistic pre-check avoids spending cycles on compression when there is already no room left or zswap is disabled altogether somewhere in the hierarchy.h](jM)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjMubj)}(hhh]j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]jS)}(hjrh]hstruct obj_cgroup *objcg}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjlubj)}(hhh]jM)}(hthe object cgrouph]hthe object cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjMubjM)}(h7Check if the hierarchical zswap limit has been reached.h]h7Check if the hierarchical zswap limit has been reached.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjMubjM)}(hXAThis doesn't check for specific headroom, and it is not atomic either. But with zswap, the size of the allocation is only known once compression has occurred, and this optimistic pre-check avoids spending cycles on compression when there is already no room left or zswap is disabled altogether somewhere in the hierarchy.h]hXCThis doesn’t check for specific headroom, and it is not atomic either. But with zswap, the size of the allocation is only known once compression has occurred, and this optimistic pre-check avoids spending cycles on compression when there is already no room left or zswap is disabled altogether somewhere in the hierarchy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$obj_cgroup_charge_zswap (C function)c.obj_cgroup_charge_zswaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hDvoid obj_cgroup_charge_zswap (struct obj_cgroup *objcg, size_t size)h]h)}(hCvoid obj_cgroup_charge_zswap(struct obj_cgroup *objcg, size_t size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hobj_cgroup_charge_zswaph]j)}(hobj_cgroup_charge_zswaph]hobj_cgroup_charge_zswap}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h'(struct obj_cgroup *objcg, size_t size)h](j )}(hstruct obj_cgroup *objcgh](j5)}(hj8h]hstruct}(hj>hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(h obj_cgrouph]h obj_cgroup}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj^modnameN classnameNjpjs)}jv]jy)}jlj$sbc.obj_cgroup_charge_zswapasbuh1hhj:ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj:ubj)}(hobjcgh]hobjcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6ubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jxc.obj_cgroup_charge_zswapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h!charge compression backend memoryh]h!charge compression backend memory}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj!jHj!jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct obj_cgroup *objcg`` the object cgroup ``size_t size`` size of compressed object **Description** This forces the charge after obj_cgroup_may_zswap() allowed compression and storage in zswap for this cgroup to go ahead.h](jM)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj%ubj)}(hhh](j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]jS)}(hjJh]hstruct obj_cgroup *objcg}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjDubj)}(hhh]jM)}(hthe object cgrouph]hthe object cgroup}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubj)}(h*``size_t size`` size of compressed object h](j)}(h``size_t size``h]jS)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj}ubj)}(hhh]jM)}(hsize of compressed objecth]hsize of compressed object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjAubeh}(h]h ]h"]h$]h&]uh1jhj%ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj%ubjM)}(hyThis forces the charge after obj_cgroup_may_zswap() allowed compression and storage in zswap for this cgroup to go ahead.h]hyThis forces the charge after obj_cgroup_may_zswap() allowed compression and storage in zswap for this cgroup to go ahead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&obj_cgroup_uncharge_zswap (C function)c.obj_cgroup_uncharge_zswaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hFvoid obj_cgroup_uncharge_zswap (struct obj_cgroup *objcg, size_t size)h]h)}(hEvoid obj_cgroup_uncharge_zswap(struct obj_cgroup *objcg, size_t size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hobj_cgroup_uncharge_zswaph]j)}(hobj_cgroup_uncharge_zswaph]hobj_cgroup_uncharge_zswap}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h'(struct obj_cgroup *objcg, size_t size)h](j )}(hstruct obj_cgroup *objcgh](j5)}(hj8h]hstruct}(hj@hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj<ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j)}(h obj_cgrouph]h obj_cgroup}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj`modnameN classnameNjpjs)}jv]jy)}jlj&sbc.obj_cgroup_uncharge_zswapasbuh1hhj<ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj<ubj)}(hobjcgh]hobjcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj8ubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jzc.obj_cgroup_uncharge_zswapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj8ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h#uncharge compression backend memoryh]h#uncharge compression backend memory}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj#jHj#jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct obj_cgroup *objcg`` the object cgroup ``size_t size`` size of compressed object **Description** Uncharges zswap memory on page in.h](jM)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj'ubj)}(hhh](j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]jS)}(hjLh]hstruct obj_cgroup *objcg}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjFubj)}(hhh]jM)}(hthe object cgrouph]hthe object cgroup}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjCubj)}(h*``size_t size`` size of compressed object h](j)}(h``size_t size``h]jS)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hsize of compressed objecth]hsize of compressed object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjCubeh}(h]h ]h"]h$]h&]uh1jhj'ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj'ubjM)}(h"Uncharges zswap memory on page in.h]h"Uncharges zswap memory on page in.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubje)}(h0#kernel-doc:: mm/memory-tiers.c (build warnings)h]h0#kernel-doc:: mm/memory-tiers.c (build warnings)}hjsbah}(h]h ]h"]h$]h&]jjuh1jehjhhhhhKzubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_recalc_inode (C function)c.shmem_recalc_inodehNtauh1hhjhhhNhNubh)}(hhh](h)}(hIbool shmem_recalc_inode (struct inode *inode, long alloced, long swapped)h]h)}(hHbool shmem_recalc_inode(struct inode *inode, long alloced, long swapped)h](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubh)}(hshmem_recalc_inodeh]j)}(hshmem_recalc_inodeh]hshmem_recalc_inode}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hMubj )}(h1(struct inode *inode, long alloced, long swapped)h](j )}(hstruct inode *inodeh](j5)}(hj8h]hstruct}(hjOhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hhh]j)}(hinodeh]hinode}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjomodnameN classnameNjpjs)}jv]jy)}jlj5sbc.shmem_recalc_inodeasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjKubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjGubj )}(h long allocedh](j)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hallocedh]halloced}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjGubj )}(h long swappedh](j)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hswappedh]hswapped}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjGubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hMhjhhubj4)}(hhh]jM)}(h'recalculate the block usage of an inodeh]h'recalculate the block usage of an inode}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj9hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjTjHjTjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct inode *inode`` inode to recalc ``long alloced`` the change in number of pages allocated to inode ``long swapped`` the change in number of pages swapped from inode **Description** We have to calculate the free blocks since the mm can drop undirtied hole pages behind our back. But normally info->alloced == inode->i_mapping->nrpages + info->swapped So mm freed is info->alloced - (inode->i_mapping->nrpages + info->swapped) **Return** true if swapped was incremented from 0, for shmem_writeout().h](jM)}(h**Parameters**h]j)}(hj^h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjXubj)}(hhh](j)}(h(``struct inode *inode`` inode to recalc h](j)}(h``struct inode *inode``h]jS)}(hj}h]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj{ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjwubj)}(hhh]jM)}(hinode to recalch]hinode to recalc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubj)}(hB``long alloced`` the change in number of pages allocated to inode h](j)}(h``long alloced``h]jS)}(hjh]h long alloced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh]jM)}(h0the change in number of pages allocated to inodeh]h0the change in number of pages allocated to inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubj)}(hB``long swapped`` the change in number of pages swapped from inode h](j)}(h``long swapped``h]jS)}(hjh]h long swapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh]jM)}(h0the change in number of pages swapped from inodeh]h0the change in number of pages swapped from inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubeh}(h]h ]h"]h$]h&]uh1jhjXubjM)}(h**Description**h]j)}(hj*h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjXubjM)}(h`We have to calculate the free blocks since the mm can drop undirtied hole pages behind our back.h]h`We have to calculate the free blocks since the mm can drop undirtied hole pages behind our back.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjXubjM)}(hBut normally info->alloced == inode->i_mapping->nrpages + info->swapped So mm freed is info->alloced - (inode->i_mapping->nrpages + info->swapped)h]hBut normally info->alloced == inode->i_mapping->nrpages + info->swapped So mm freed is info->alloced - (inode->i_mapping->nrpages + info->swapped)}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjXubjM)}(h **Return**h]j)}(hj`h]hReturn}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjXubjM)}(h=true if swapped was incremented from 0, for shmem_writeout().h]h=true if swapped was incremented from 0, for shmem_writeout().}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_writeout (C function)c.shmem_writeouthNtauh1hhjhhhNhNubh)}(hhh](h)}(h_int shmem_writeout (struct folio *folio, struct swap_iocb **plug, struct list_head *folio_list)h]h)}(h^int shmem_writeout(struct folio *folio, struct swap_iocb **plug, struct list_head *folio_list)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM0ubh)}(hshmem_writeouth]j)}(hshmem_writeouth]hshmem_writeout}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM0ubj )}(hL(struct folio *folio, struct swap_iocb **plug, struct list_head *folio_list)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.shmem_writeoutasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj.hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct swap_iocb **plugh](j5)}(hj8h]hstruct}(hjThhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]j)}(h swap_iocbh]h swap_iocb}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjtmodnameN classnameNjpjs)}jv]jc.shmem_writeoutasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjPubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjPubj)}(hplugh]hplug}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct list_head *folio_listh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.shmem_writeoutasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h folio_listh]h folio_list}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM0ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM0ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM0hjhhubj4)}(hhh]jM)}(hWrite the folio to swaph]hWrite the folio to swap}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM0hjOhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM0ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjjHjjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` The folio to write ``struct swap_iocb **plug`` swap plug ``struct list_head *folio_list`` list to put back folios on split **Description** Move the folio from the page cache to the swap cache.h](jM)}(h**Parameters**h]j)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM4hjnubj)}(hhh](j)}(h+``struct folio *folio`` The folio to write h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM1hjubj)}(hhh]jM)}(hThe folio to writeh]hThe folio to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubj)}(h&``struct swap_iocb **plug`` swap plug h](j)}(h``struct swap_iocb **plug``h]jS)}(hjh]hstruct swap_iocb **plug}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM2hjubj)}(hhh]jM)}(h swap plugh]h swap plug}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubj)}(hB``struct list_head *folio_list`` list to put back folios on split h](j)}(h ``struct list_head *folio_list``h]jS)}(hjh]hstruct list_head *folio_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM3hjubj)}(hhh]jM)}(h list to put back folios on splith]h list to put back folios on split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubeh}(h]h ]h"]h$]h&]uh1jhjnubjM)}(h**Description**h]j)}(hj@h]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM5hjnubjM)}(h5Move the folio from the page cache to the swap cache.h]h5Move the folio from the page cache to the swap cache.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM4hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_get_folio (C function)c.shmem_get_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(htint shmem_get_folio (struct inode *inode, pgoff_t index, loff_t write_end, struct folio **foliop, enum sgp_type sgp)h]h)}(hsint shmem_get_folio(struct inode *inode, pgoff_t index, loff_t write_end, struct folio **foliop, enum sgp_type sgp)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hshmem_get_folioh]j)}(hshmem_get_folioh]hshmem_get_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h`(struct inode *inode, pgoff_t index, loff_t write_end, struct folio **foliop, enum sgp_type sgp)h](j )}(hstruct inode *inodeh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.shmem_get_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj9modnameN classnameNjpjs)}jv]jc.shmem_get_folioasbuh1hhj0ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hindexh]hindex}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t write_endh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.shmem_get_folioasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h write_endh]h write_end}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio **folioph](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.shmem_get_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioph]hfoliop}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum sgp_type sgph](j5)}(hjEh]henum}(hjAhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]j)}(hsgp_typeh]hsgp_type}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjamodnameN classnameNjpjs)}jv]jc.shmem_get_folioasbuh1hhj=ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hsgph]hsgp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj}hhhjhM ubah}(h]jxah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjzhhubj4)}(hhh]jM)}(hfind, and lock a shmem folio.h]hfind, and lock a shmem folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjzhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct inode *inode`` inode to search ``pgoff_t index`` the page index. ``loff_t write_end`` end of a write, could extend inode size ``struct folio **foliop`` pointer to the folio if found ``enum sgp_type sgp`` SGP_* flags to control behavior **Description** Looks up the page cache entry at **inode** & **index**. If a folio is present, it is returned locked with an increased refcount. If the caller modifies data in the folio, it must call folio_mark_dirty() before unlocking the folio to ensure that the folio is not reclaimed. There is no need to reserve space before calling folio_mark_dirty(). When no folio is found, the behavior depends on **sgp**: - for SGP_READ, ***foliop** is ``NULL`` and 0 is returned - for SGP_NOALLOC, ***foliop** is ``NULL`` and -ENOENT is returned - for all other flags a new folio is allocated, inserted into the page cache and returned locked in **foliop**. **Context** May sleep. **Return** 0 if successful, else a negative error code.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjubj)}(hhh](j)}(h(``struct inode *inode`` inode to search h](j)}(h``struct inode *inode``h]jS)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjubj)}(hhh]jM)}(hinode to searchh]hinode to search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h"``pgoff_t index`` the page index. h](j)}(h``pgoff_t index``h]jS)}(hj/h]h pgoff_t index}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hj)ubj)}(hhh]jM)}(hthe page index.h]hthe page index.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhM hjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhM hjubj)}(h=``loff_t write_end`` end of a write, could extend inode size h](j)}(h``loff_t write_end``h]jS)}(hjhh]hloff_t write_end}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjbubj)}(hhh]jM)}(h'end of a write, could extend inode sizeh]h'end of a write, could extend inode size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}hM hj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hM hjubj)}(h8``struct folio **foliop`` pointer to the folio if found h](j)}(h``struct folio **foliop``h]jS)}(hjh]hstruct folio **foliop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjubj)}(hhh]jM)}(hpointer to the folio if foundh]hpointer to the folio if found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h6``enum sgp_type sgp`` SGP_* flags to control behavior h](j)}(h``enum sgp_type sgp``h]jS)}(hjh]henum sgp_type sgp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjubj)}(hhh]jM)}(hSGP_* flags to control behaviorh]hSGP_* flags to control behavior}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjubjM)}(hLooks up the page cache entry at **inode** & **index**. If a folio is present, it is returned locked with an increased refcount.h](h!Looks up the page cache entry at }(hj+hhhNhNubj)}(h **inode**h]hinode}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh & }(hj+hhhNhNubj)}(h **index**h]hindex}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubhK. If a folio is present, it is returned locked with an increased refcount.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjubjM)}(hIf the caller modifies data in the folio, it must call folio_mark_dirty() before unlocking the folio to ensure that the folio is not reclaimed. There is no need to reserve space before calling folio_mark_dirty().h]hIf the caller modifies data in the folio, it must call folio_mark_dirty() before unlocking the folio to ensure that the folio is not reclaimed. There is no need to reserve space before calling folio_mark_dirty().}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjubj)}(hhh]j)}(hX(When no folio is found, the behavior depends on **sgp**: - for SGP_READ, ***foliop** is ``NULL`` and 0 is returned - for SGP_NOALLOC, ***foliop** is ``NULL`` and -ENOENT is returned - for all other flags a new folio is allocated, inserted into the page cache and returned locked in **foliop**. h](j)}(h8When no folio is found, the behavior depends on **sgp**:h](h0When no folio is found, the behavior depends on }(hjthhhNhNubj)}(h**sgp**h]hsgp}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh:}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM' hjpubj)}(hhh]j~W)}(hhh](j/)}(h7for SGP_READ, ***foliop** is ``NULL`` and 0 is returnedh]jM)}(hjh](hfor SGP_READ, }(hjhhhNhNubj)}(h ***foliop**h]h*foliop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and 0 is returned}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM$ hjubah}(h]h ]h"]h$]h&]uh1j/hjubj/)}(h@for SGP_NOALLOC, ***foliop** is ``NULL`` and -ENOENT is returnedh]jM)}(hjh](hfor SGP_NOALLOC, }(hjhhhNhNubj)}(h ***foliop**h]h*foliop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and -ENOENT is returned}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM% hjubah}(h]h ]h"]h$]h&]uh1j/hjubj/)}(hnfor all other flags a new folio is allocated, inserted into the page cache and returned locked in **foliop**. h]jM)}(hmfor all other flags a new folio is allocated, inserted into the page cache and returned locked in **foliop**.h](hbfor all other flags a new folio is allocated, inserted into the page cache and returned locked in }(hjhhhNhNubj)}(h **foliop**h]hfoliop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM& hjubah}(h]h ]h"]h$]h&]uh1j/hjubeh}(h]h ]h"]h$]h&]jWjWuh1j}WhjhM$ hjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhM' hjmubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Context**h]j)}(hjXh]hContext}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM) hjubjM)}(h May sleep.h]h May sleep.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM* hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM, hjubjM)}(h,0 if successful, else a negative error code.h]h,0 if successful, else a negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM+ hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$shmem_kernel_file_setup (C function)c.shmem_kernel_file_setuphNtauh1hhjhhhNhNubh)}(hhh](h)}(hXstruct file * shmem_kernel_file_setup (const char *name, loff_t size, vma_flags_t flags)h]h)}(hVstruct file *shmem_kernel_file_setup(const char *name, loff_t size, vma_flags_t flags)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlshmem_kernel_file_setupsbc.shmem_kernel_file_setupasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hshmem_kernel_file_setuph]j)}(hjh]hshmem_kernel_file_setup}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h2(const char *name, loff_t size, vma_flags_t flags)h](j )}(hconst char *nameh](j5)}(hjh]hconst}(hj>hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hcharh]hchar}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjF )}(hjI h]h*}(hjuhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj:ubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6ubj )}(h loff_t sizeh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.shmem_kernel_file_setupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6ubj )}(hvma_flags_t flagsh](h)}(hhh]j)}(h vma_flags_th]h vma_flags_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.shmem_kernel_file_setupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hXCget an unlinked file living in tmpfs which must be kernel internal. There will be NO LSM permission checks against the underlying inode. So users of this interface must do LSM checks at a higher layer. The users are the big_key and shm implementations. LSM checks are provided at the key or shm level rather than the inode.h]hXCget an unlinked file living in tmpfs which must be kernel internal. There will be NO LSM permission checks against the underlying inode. So users of this interface must do LSM checks at a higher layer. The users are the big_key and shm implementations. LSM checks are provided at the key or shm level rather than the inode.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj9hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjTjHjTjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const char *name`` name for dentry (to be seen in /proc//maps) ``loff_t size`` size to be set for the file ``vma_flags_t flags`` VMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh](jM)}(h**Parameters**h]j)}(hj^h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjXubj)}(hhh](j)}(hF``const char *name`` name for dentry (to be seen in /proc//maps) h](j)}(h``const char *name``h]jS)}(hj}h]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj{ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjwubj)}(hhh]jM)}(h0name for dentry (to be seen in /proc//maps)h]h0name for dentry (to be seen in /proc//maps)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubj)}(h,``loff_t size`` size to be set for the file h](j)}(h``loff_t size``h]jS)}(hjh]h loff_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh]jM)}(hsize to be set for the fileh]hsize to be set for the file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubj)}(h[``vma_flags_t flags`` VMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh](j)}(h``vma_flags_t flags``h]jS)}(hjh]hvma_flags_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh]jM)}(hEVMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh]hEVMA_NORESERVE_BIT suppresses pre-accounting of the entire object size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubeh}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_file_setup (C function)c.shmem_file_setuphNtauh1hhjhhhNhNubh)}(hhh](h)}(hQstruct file * shmem_file_setup (const char *name, loff_t size, vma_flags_t flags)h]h)}(hOstruct file *shmem_file_setup(const char *name, loff_t size, vma_flags_t flags)h](j5)}(hj8h]hstruct}(hjIhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjEhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjVhMubh)}(hhh]j)}(hfileh]hfile}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjjmodnameN classnameNjpjs)}jv]jy)}jlshmem_file_setupsbc.shmem_file_setupasbuh1hhjEhhhjVhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjVhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjEhhhjVhMubh)}(hshmem_file_setuph]j)}(hjh]hshmem_file_setup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjEhhhjVhMubj )}(h2(const char *name, loff_t size, vma_flags_t flags)h](j )}(hconst char *nameh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t sizeh](h)}(hhh]j)}(hloff_th]hloff_t}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj%modnameN classnameNjpjs)}jv]jc.shmem_file_setupasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hvma_flags_t flagsh](h)}(hhh]j)}(h vma_flags_th]h vma_flags_t}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmmodnameN classnameNjpjs)}jv]jc.shmem_file_setupasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjEhhhjVhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjAhhhjVhMubah}(h]j<ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjVhMhj>hhubj4)}(hhh]jM)}(h$get an unlinked file living in tmpfsh]h$get an unlinked file living in tmpfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj>hhhjVhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const char *name`` name for dentry (to be seen in /proc//maps) ``loff_t size`` size to be set for the file ``vma_flags_t flags`` VMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh](j)}(hF``const char *name`` name for dentry (to be seen in /proc//maps) h](j)}(h``const char *name``h]jS)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh]jM)}(h0name for dentry (to be seen in /proc//maps)h]h0name for dentry (to be seen in /proc//maps)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``loff_t size`` size to be set for the file h](j)}(h``loff_t size``h]jS)}(hj;h]h loff_t size}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj5ubj)}(hhh]jM)}(hsize to be set for the fileh]hsize to be set for the file}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjubj)}(h[``vma_flags_t flags`` VMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh](j)}(h``vma_flags_t flags``h]jS)}(hjth]hvma_flags_t flags}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjrubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjnubj)}(hhh]jM)}(hEVMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh]hEVMA_NORESERVE_BIT suppresses pre-accounting of the entire object size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&shmem_file_setup_with_mnt (C function)c.shmem_file_setup_with_mnthNtauh1hhjhhhNhNubh)}(hhh](h)}(hpstruct file * shmem_file_setup_with_mnt (struct vfsmount *mnt, const char *name, loff_t size, vma_flags_t flags)h]h)}(hnstruct file *shmem_file_setup_with_mnt(struct vfsmount *mnt, const char *name, loff_t size, vma_flags_t flags)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlshmem_file_setup_with_mntsbc.shmem_file_setup_with_mntasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hshmem_file_setup_with_mnth]j)}(hj h]hshmem_file_setup_with_mnt}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hH(struct vfsmount *mnt, const char *name, loff_t size, vma_flags_t flags)h](j )}(hstruct vfsmount *mnth](j5)}(hj8h]hstruct}(hjHhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j)}(hvfsmounth]hvfsmount}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjhmodnameN classnameNjpjs)}jv]j c.shmem_file_setup_with_mntasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hmnth]hmnt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(hconst char *nameh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(h loff_t sizeh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j c.shmem_file_setup_with_mntasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(hvma_flags_t flagsh](h)}(hhh]j)}(h vma_flags_th]h vma_flags_t}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbmodnameN classnameNjpjs)}jv]j c.shmem_file_setup_with_mntasbuh1hhjYubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h$get an unlinked file living in tmpfsh]h$get an unlinked file living in tmpfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX0**Parameters** ``struct vfsmount *mnt`` the tmpfs mount where the file will be created ``const char *name`` name for dentry (to be seen in /proc//maps) ``loff_t size`` size to be set for the file ``vma_flags_t flags`` VMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh](j)}(hH``struct vfsmount *mnt`` the tmpfs mount where the file will be created h](j)}(h``struct vfsmount *mnt``h]jS)}(hjh]hstruct vfsmount *mnt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh]jM)}(h.the tmpfs mount where the file will be createdh]h.the tmpfs mount where the file will be created}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hF``const char *name`` name for dentry (to be seen in /proc//maps) h](j)}(h``const char *name``h]jS)}(hj0h]hconst char *name}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj*ubj)}(hhh]jM)}(h0name for dentry (to be seen in /proc//maps)h]h0name for dentry (to be seen in /proc//maps)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjubj)}(h,``loff_t size`` size to be set for the file h](j)}(h``loff_t size``h]jS)}(hjih]h loff_t size}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjcubj)}(hhh]jM)}(hsize to be set for the fileh]hsize to be set for the file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhjubj)}(h[``vma_flags_t flags`` VMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh](j)}(h``vma_flags_t flags``h]jS)}(hjh]hvma_flags_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh]jM)}(hEVMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh]hEVMA_NORESERVE_BIT suppresses pre-accounting of the entire object size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_zero_setup (C function)c.shmem_zero_setuphNtauh1hhjhhhNhNubh)}(hhh](h)}(h1int shmem_zero_setup (struct vm_area_struct *vma)h]h)}(h0int shmem_zero_setup(struct vm_area_struct *vma)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubh)}(hshmem_zero_setuph]j)}(hshmem_zero_setuph]hshmem_zero_setup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hMubj )}(h(struct vm_area_struct *vma)h]j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj9hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYmodnameN classnameNjpjs)}jv]jy)}jljsbc.shmem_zero_setupasbuh1hhj5ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hMhjhhubj4)}(hhh]jM)}(h setup a shared anonymous mappingh]h setup a shared anonymous mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct vm_area_struct *vma`` the vma to be mmapped is prepared by do_mmap **Return** 0 on success, or errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh]j)}(hL``struct vm_area_struct *vma`` the vma to be mmapped is prepared by do_mmap h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh]jM)}(h,the vma to be mmapped is prepared by do_mmaph]h,the vma to be mmapped is prepared by do_mmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hj8h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubjM)}(h0 on success, or errorh]h0 on success, or error}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"shmem_zero_setup_desc (C function)c.shmem_zero_setup_deschNtauh1hhjhhhNhNubh)}(hhh](h)}(h5int shmem_zero_setup_desc (struct vm_area_desc *desc)h]h)}(h4int shmem_zero_setup_desc(struct vm_area_desc *desc)h](j)}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhMubh)}(hshmem_zero_setup_desch]j)}(hshmem_zero_setup_desch]hshmem_zero_setup_desc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjyhhhjhMubj )}(h(struct vm_area_desc *desc)h]j )}(hstruct vm_area_desc *desch](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h vm_area_desch]h vm_area_desc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.shmem_zero_setup_descasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjyhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjuhhhjhMubah}(h]jpah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjrhhubj4)}(hhh]jM)}(hKsame as shmem_zero_setup, but determined by VMA descriptor for convenience.h]hKsame as shmem_zero_setup, but determined by VMA descriptor for convenience.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj:hhubah}(h]h ]h"]h$]h&]uh1j3hjrhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjUjHjUjIjJjKuh1hhhhjhNhNubj)}(ha**Parameters** ``struct vm_area_desc *desc`` Describes VMA **Return** 0 on success, or errorh](jM)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjYubj)}(hhh]j)}(h,``struct vm_area_desc *desc`` Describes VMA h](j)}(h``struct vm_area_desc *desc``h]jS)}(hj~h]hstruct vm_area_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj|ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjxubj)}(hhh]jM)}(h Describes VMAh]h Describes VMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjYubjM)}(h0 on success, or errorh]h0 on success, or error}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!shmem_read_folio_gfp (C function)c.shmem_read_folio_gfphNtauh1hhjhhhNhNubh)}(hhh](h)}(h]struct folio * shmem_read_folio_gfp (struct address_space *mapping, pgoff_t index, gfp_t gfp)h]h)}(h[struct folio *shmem_read_folio_gfp(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlshmem_read_folio_gfpsbc.shmem_read_folio_gfpasbuh1hhjhhhj hMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubjF )}(hjI h]h*}(hjLhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj hMubh)}(hshmem_read_folio_gfph]j)}(hj;h]hshmem_read_folio_gfp}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hMubj )}(h9(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjxhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j9c.shmem_read_folio_gfpasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjtubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j9c.shmem_read_folio_gfpasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5modnameN classnameNjpjs)}jv]j9c.shmem_read_folio_gfpasbuh1hhj,ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hgfph]hgfp}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hMhjhhubj4)}(hhh]jM)}(hread_folio() method: which does not suit tmpfs, since it may have pages in swapcache, and needs to find those for itself; although drivers/gpu/drm i915 and ttm rely upon this support. i915_gem_object_get_pages_gtt() mixes __GFP_NORETRY | __GFP_NOWARN in with the mapping_gfp_mask(), to avoid OOMing the machine unnecessarily.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh](j)}(h<``struct address_space *mapping`` the folio's address_space h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh]jM)}(hthe folio's address_spaceh]hthe folio’s address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``pgoff_t index`` the folio index h](j)}(h``pgoff_t index``h]jS)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh]jM)}(hthe folio indexh]hthe folio index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``gfp_t gfp`` the page allocator flags to use if allocating h](j)}(h ``gfp_t gfp``h]jS)}(hj<h]h gfp_t gfp}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj6ubj)}(hhh]jM)}(h-the page allocator flags to use if allocatingh]h-the page allocator flags to use if allocating}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubjM)}(hXiThis behaves as a tmpfs "read_cache_page_gfp(mapping, index, gfp)", with any new page allocations done using the specified allocation flags. But read_cache_page_gfp() uses the ->read_folio() method: which does not suit tmpfs, since it may have pages in swapcache, and needs to find those for itself; although drivers/gpu/drm i915 and ttm rely upon this support.h]hXmThis behaves as a tmpfs “read_cache_page_gfp(mapping, index, gfp)”, with any new page allocations done using the specified allocation flags. But read_cache_page_gfp() uses the ->read_folio() method: which does not suit tmpfs, since it may have pages in swapcache, and needs to find those for itself; although drivers/gpu/drm i915 and ttm rely upon this support.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubjM)}(hi915_gem_object_get_pages_gtt() mixes __GFP_NORETRY | __GFP_NOWARN in with the mapping_gfp_mask(), to avoid OOMing the machine unnecessarily.h]hi915_gem_object_get_pages_gtt() mixes __GFP_NORETRY | __GFP_NOWARN in with the mapping_gfp_mask(), to avoid OOMing the machine unnecessarily.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$migrate_vma_split_folio (C function)c.migrate_vma_split_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hJint migrate_vma_split_folio (struct folio *folio, struct page *fault_page)h]h)}(hIint migrate_vma_split_folio(struct folio *folio, struct page *fault_page)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chKLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKLubh)}(hmigrate_vma_split_folioh]j)}(hmigrate_vma_split_folioh]hmigrate_vma_split_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKLubj )}(h.(struct folio *folio, struct page *fault_page)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj(modnameN classnameNjpjs)}jv]jy)}jljsbc.migrate_vma_split_folioasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjThhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *fault_pageh](j5)}(hj8h]hstruct}(hjzhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jBc.migrate_vma_split_folioasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjvubj)}(h fault_pageh]h fault_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKLubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKLubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKLhjhhubj4)}(hhh]jM)}(h$Helper function to split a THP folioh]h$Helper function to split a THP folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chKLhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKLubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` the folio to split ``struct page *fault_page`` struct page associated with the fault if any **Description** Returns 0 on successh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chKPhjubj)}(hhh](j)}(h+``struct folio *folio`` the folio to split h](j)}(h``struct folio *folio``h]jS)}(hj<h]hstruct folio *folio}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chKMhj6ubj)}(hhh]jM)}(hthe folio to splith]hthe folio to split}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhKMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKMhj3ubj)}(hI``struct page *fault_page`` struct page associated with the fault if any h](j)}(h``struct page *fault_page``h]jS)}(hjuh]hstruct page *fault_page}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjsubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chKNhjoubj)}(hhh]jM)}(h,struct page associated with the fault if anyh]h,struct page associated with the fault if any}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhKNhj3ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chKPhjubjM)}(hReturns 0 on successh]hReturns 0 on success}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chKOhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmigrate_vma_setup (C function)c.migrate_vma_setuphNtauh1hhjhhhNhNubh)}(hhh](h)}(h0int migrate_vma_setup (struct migrate_vma *args)h]h)}(h/int migrate_vma_setup(struct migrate_vma *args)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmigrate_vma_setuph]j)}(hmigrate_vma_setuph]hmigrate_vma_setup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(struct migrate_vma *args)h]j )}(hstruct migrate_vma *argsh](j5)}(hj8h]hstruct}(hj2hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj.ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(hhh]j)}(h migrate_vmah]h migrate_vma}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRmodnameN classnameNjpjs)}jv]jy)}jljsbc.migrate_vma_setupasbuh1hhj.ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjF )}(hjI h]h*}(hj~hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj.ubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj*ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h$prepare to migrate a range of memoryh]h$prepare to migrate a range of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX **Parameters** ``struct migrate_vma *args`` contains the vma, start, and pfns arrays for the migration **Return** negative errno on failures, 0 when 0 or more pages were migrated without an error. **Description** Prepare to migrate a range of memory virtual address range by collecting all the pages backing each virtual address in the range, saving them inside the src array. Then lock those pages and unmap them. Once the pages are locked and unmapped, check whether each page is pinned or not. Pages that aren't pinned have the MIGRATE_PFN_MIGRATE flag set (by this function) in the corresponding src array entry. Then restores any pages that are pinned, by remapping and unlocking those pages. The caller should then allocate destination memory and copy source memory to it for all those entries (ie with MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set). Once these are allocated and copied, the caller must update each corresponding entry in the dst array with the pfn value of the destination page and with MIGRATE_PFN_VALID. Destination pages must be locked via lock_page(). Note that the caller does not have to migrate all the pages that are marked with MIGRATE_PFN_MIGRATE flag in src array unless this is a migration from device memory to system memory. If the caller cannot migrate a device page back to system memory, then it must return VM_FAULT_SIGBUS, which has severe consequences for the userspace process, so it must be avoided if at all possible. For empty entries inside CPU page table (pte_none() or pmd_none() is true) we do set MIGRATE_PFN_MIGRATE flag inside the corresponding source array thus allowing the caller to allocate device memory for those unbacked virtual addresses. For this the caller simply has to allocate device memory and properly set the destination entry like for regular migration. Note that this can still fail, and thus inside the device driver you must check if the migration was successful for those entries after calling migrate_vma_pages(), just like for regular migration. After that, the callers must call migrate_vma_pages() to go over each entry in the src array that has the MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set. If the corresponding entry in dst array has MIGRATE_PFN_VALID flag set, then migrate_vma_pages() to migrate struct page information from the source struct page to the destination struct page. If it fails to migrate the struct page information, then it clears the MIGRATE_PFN_MIGRATE flag in the src array. At this point all successfully migrated pages have an entry in the src array with MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set and the dst array entry with MIGRATE_PFN_VALID flag set. Once migrate_vma_pages() returns the caller may inspect which pages were successfully migrated, and which were not. Successfully migrated pages will have the MIGRATE_PFN_MIGRATE flag set for their src array entry. It is safe to update device page table after migrate_vma_pages() because both destination and source page are still locked, and the mmap_lock is held in read mode (hence no one can unmap the range being migrated). Once the caller is done cleaning up things and updating its page table (if it chose to do so, this is not an obligation) it finally calls migrate_vma_finalize() to update the CPU page table to point to new pages for successfully migrated pages or otherwise restore the CPU page table to point to the original source pages.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]j)}(hX``struct migrate_vma *args`` contains the vma, start, and pfns arrays for the migration h](j)}(h``struct migrate_vma *args``h]jS)}(hjh]hstruct migrate_vma *args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(h:contains the vma, start, and pfns arrays for the migrationh]h:contains the vma, start, and pfns arrays for the migration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hj1h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hRnegative errno on failures, 0 when 0 or more pages were migrated without an error.h]hRnegative errno on failures, 0 when 0 or more pages were migrated without an error.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(h**Description**h]j)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hXPrepare to migrate a range of memory virtual address range by collecting all the pages backing each virtual address in the range, saving them inside the src array. Then lock those pages and unmap them. Once the pages are locked and unmapped, check whether each page is pinned or not. Pages that aren't pinned have the MIGRATE_PFN_MIGRATE flag set (by this function) in the corresponding src array entry. Then restores any pages that are pinned, by remapping and unlocking those pages.h]hXPrepare to migrate a range of memory virtual address range by collecting all the pages backing each virtual address in the range, saving them inside the src array. Then lock those pages and unmap them. Once the pages are locked and unmapped, check whether each page is pinned or not. Pages that aren’t pinned have the MIGRATE_PFN_MIGRATE flag set (by this function) in the corresponding src array entry. Then restores any pages that are pinned, by remapping and unlocking those pages.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hXThe caller should then allocate destination memory and copy source memory to it for all those entries (ie with MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set). Once these are allocated and copied, the caller must update each corresponding entry in the dst array with the pfn value of the destination page and with MIGRATE_PFN_VALID. Destination pages must be locked via lock_page().h]hXThe caller should then allocate destination memory and copy source memory to it for all those entries (ie with MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set). Once these are allocated and copied, the caller must update each corresponding entry in the dst array with the pfn value of the destination page and with MIGRATE_PFN_VALID. Destination pages must be locked via lock_page().}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hXNote that the caller does not have to migrate all the pages that are marked with MIGRATE_PFN_MIGRATE flag in src array unless this is a migration from device memory to system memory. If the caller cannot migrate a device page back to system memory, then it must return VM_FAULT_SIGBUS, which has severe consequences for the userspace process, so it must be avoided if at all possible.h]hXNote that the caller does not have to migrate all the pages that are marked with MIGRATE_PFN_MIGRATE flag in src array unless this is a migration from device memory to system memory. If the caller cannot migrate a device page back to system memory, then it must return VM_FAULT_SIGBUS, which has severe consequences for the userspace process, so it must be avoided if at all possible.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hX0For empty entries inside CPU page table (pte_none() or pmd_none() is true) we do set MIGRATE_PFN_MIGRATE flag inside the corresponding source array thus allowing the caller to allocate device memory for those unbacked virtual addresses. For this the caller simply has to allocate device memory and properly set the destination entry like for regular migration. Note that this can still fail, and thus inside the device driver you must check if the migration was successful for those entries after calling migrate_vma_pages(), just like for regular migration.h]hX0For empty entries inside CPU page table (pte_none() or pmd_none() is true) we do set MIGRATE_PFN_MIGRATE flag inside the corresponding source array thus allowing the caller to allocate device memory for those unbacked virtual addresses. For this the caller simply has to allocate device memory and properly set the destination entry like for regular migration. Note that this can still fail, and thus inside the device driver you must check if the migration was successful for those entries after calling migrate_vma_pages(), just like for regular migration.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hXAfter that, the callers must call migrate_vma_pages() to go over each entry in the src array that has the MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set. If the corresponding entry in dst array has MIGRATE_PFN_VALID flag set, then migrate_vma_pages() to migrate struct page information from the source struct page to the destination struct page. If it fails to migrate the struct page information, then it clears the MIGRATE_PFN_MIGRATE flag in the src array.h]hXAfter that, the callers must call migrate_vma_pages() to go over each entry in the src array that has the MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set. If the corresponding entry in dst array has MIGRATE_PFN_VALID flag set, then migrate_vma_pages() to migrate struct page information from the source struct page to the destination struct page. If it fails to migrate the struct page information, then it clears the MIGRATE_PFN_MIGRATE flag in the src array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hAt this point all successfully migrated pages have an entry in the src array with MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set and the dst array entry with MIGRATE_PFN_VALID flag set.h]hAt this point all successfully migrated pages have an entry in the src array with MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set and the dst array entry with MIGRATE_PFN_VALID flag set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hOnce migrate_vma_pages() returns the caller may inspect which pages were successfully migrated, and which were not. Successfully migrated pages will have the MIGRATE_PFN_MIGRATE flag set for their src array entry.h]hOnce migrate_vma_pages() returns the caller may inspect which pages were successfully migrated, and which were not. Successfully migrated pages will have the MIGRATE_PFN_MIGRATE flag set for their src array entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hIt is safe to update device page table after migrate_vma_pages() because both destination and source page are still locked, and the mmap_lock is held in read mode (hence no one can unmap the range being migrated).h]hIt is safe to update device page table after migrate_vma_pages() because both destination and source page are still locked, and the mmap_lock is held in read mode (hence no one can unmap the range being migrated).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hXBOnce the caller is done cleaning up things and updating its page table (if it chose to do so, this is not an obligation) it finally calls migrate_vma_finalize() to update the CPU page table to point to new pages for successfully migrated pages or otherwise restore the CPU page table to point to the original source pages.h]hXBOnce the caller is done cleaning up things and updating its page table (if it chose to do so, this is not an obligation) it finally calls migrate_vma_finalize() to update the CPU page table to point to new pages for successfully migrated pages or otherwise restore the CPU page table to point to the original source pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h-migrate_vma_insert_huge_pmd_page (C function)"c.migrate_vma_insert_huge_pmd_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hint migrate_vma_insert_huge_pmd_page (struct migrate_vma *migrate, unsigned long addr, struct page *page, unsigned long *src, pmd_t *pmdp)h]h)}(hint migrate_vma_insert_huge_pmd_page(struct migrate_vma *migrate, unsigned long addr, struct page *page, unsigned long *src, pmd_t *pmdp)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hMubh)}(h migrate_vma_insert_huge_pmd_pageh]j)}(h migrate_vma_insert_huge_pmd_pageh]h migrate_vma_insert_huge_pmd_page}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj#hMubj )}(he(struct migrate_vma *migrate, unsigned long addr, struct page *page, unsigned long *src, pmd_t *pmdp)h](j )}(hstruct migrate_vma *migrateh](j5)}(hj8h]hstruct}(hjRhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hhh]j)}(h migrate_vmah]h migrate_vma}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrmodnameN classnameNjpjs)}jv]jy)}jlj8sb"c.migrate_vma_insert_huge_pmd_pageasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjNubj)}(hmigrateh]hmigrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5modnameN classnameNjpjs)}jv]j"c.migrate_vma_insert_huge_pmd_pageasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj_hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubj )}(hunsigned long *srch](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubj )}(h pmd_t *pmdph](h)}(hhh]j)}(hpmd_th]hpmd_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j"c.migrate_vma_insert_huge_pmd_pageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpmdph]hpmdp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj#hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj#hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj#hMhj hhubj4)}(hhh]jM)}(hInsert a huge folio into **migrate->vma->vm_mm** at **addr**. folio is already allocated as a part of the migration process with large page.h](hInsert a huge folio into }(hjIhhhNhNubj)}(h**migrate->vma->vm_mm**h]hmigrate->vma->vm_mm}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh at }(hjIhhhNhNubj)}(h**addr**h]haddr}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubhP. folio is already allocated as a part of the migration process with large page.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjFhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj#hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct migrate_vma *migrate`` migrate_vma arguments ``unsigned long addr`` address where the folio will be inserted ``struct page *page`` page to be inserted at **addr** ``unsigned long *src`` src pfn which is being migrated ``pmd_t *pmdp`` pointer to the pmd **Description** **page** needs to be initialized and setup after it's allocated. The code bits here follow closely the code in __do_huge_pmd_anonymous_page(). This API does not support THP zero pages.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM hjubj)}(hhh](j)}(h6``struct migrate_vma *migrate`` migrate_vma arguments h](j)}(h``struct migrate_vma *migrate``h]jS)}(hjh]hstruct migrate_vma *migrate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM hjubj)}(hhh]jM)}(hmigrate_vma argumentsh]hmigrate_vma arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h@``unsigned long addr`` address where the folio will be inserted h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(h(address where the folio will be insertedh]h(address where the folio will be inserted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h6``struct page *page`` page to be inserted at **addr** h](j)}(h``struct page *page``h]jS)}(hj h]hstruct page *page}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(hpage to be inserted at **addr**h](hpage to be inserted at }(hj9hhhNhNubj)}(h**addr**h]haddr}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jLhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(h7``unsigned long *src`` src pfn which is being migrated h](j)}(h``unsigned long *src``h]jS)}(hjgh]hunsigned long *src}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjaubj)}(hhh]jM)}(hsrc pfn which is being migratedh]hsrc pfn which is being migrated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjubj)}(h#``pmd_t *pmdp`` pointer to the pmd h](j)}(h``pmd_t *pmdp``h]jS)}(hjh]h pmd_t *pmdp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(hpointer to the pmdh]hpointer to the pmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(h**page** needs to be initialized and setup after it's allocated. The code bits here follow closely the code in __do_huge_pmd_anonymous_page(). This API does not support THP zero pages.h](j)}(h**page**h]hpage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh needs to be initialized and setup after it’s allocated. The code bits here follow closely the code in __do_huge_pmd_anonymous_page(). This API does not support THP zero pages.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!migrate_device_pages (C function)c.migrate_device_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hbvoid migrate_device_pages (unsigned long *src_pfns, unsigned long *dst_pfns, unsigned long npages)h]h)}(havoid migrate_device_pages(unsigned long *src_pfns, unsigned long *dst_pfns, unsigned long npages)h](j)}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hMubh)}(hmigrate_device_pagesh]j)}(hmigrate_device_pagesh]hmigrate_device_pages}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1hhj*hhhj<hMubj )}(hH(unsigned long *src_pfns, unsigned long *dst_pfns, unsigned long npages)h](j )}(hunsigned long *src_pfnsh](j)}(hunsignedh]hunsigned}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjgubj)}(hsrc_pfnsh]hsrc_pfns}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubj )}(hunsigned long *dst_pfnsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hdst_pfnsh]hdst_pfns}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubj )}(hunsigned long npagesh](j)}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hlongh]hlong}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hnpagesh]hnpages}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubeh}(h]h ]h"]h$]h&]jjuh1j hj*hhhj<hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj&hhhj<hMubah}(h]j!ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj<hMhj#hhubj4)}(hhh]jM)}(h+migrate meta-data from src page to dst pageh]h+migrate meta-data from src page to dst page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj#hhhj<hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX{**Parameters** ``unsigned long *src_pfns`` src_pfns returned from migrate_device_range() ``unsigned long *dst_pfns`` array of pfns allocated by the driver to migrate memory to ``unsigned long npages`` number of pages in the range **Description** Equivalent to migrate_vma_pages(). This is called to migrate struct page meta-data from source struct page to destination.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh](j)}(hJ``unsigned long *src_pfns`` src_pfns returned from migrate_device_range() h](j)}(h``unsigned long *src_pfns``h]jS)}(hjh]hunsigned long *src_pfns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(h-src_pfns returned from migrate_device_range()h]h-src_pfns returned from migrate_device_range()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hW``unsigned long *dst_pfns`` array of pfns allocated by the driver to migrate memory to h](j)}(h``unsigned long *dst_pfns``h]jS)}(hjh]hunsigned long *dst_pfns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(h:array of pfns allocated by the driver to migrate memory toh]h:array of pfns allocated by the driver to migrate memory to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h6``unsigned long npages`` number of pages in the range h](j)}(h``unsigned long npages``h]jS)}(hj<h]hunsigned long npages}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhj6ubj)}(hhh]jM)}(hnumber of pages in the rangeh]hnumber of pages in the range}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hzEquivalent to migrate_vma_pages(). This is called to migrate struct page meta-data from source struct page to destination.h]hzEquivalent to migrate_vma_pages(). This is called to migrate struct page meta-data from source struct page to destination.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmigrate_vma_pages (C function)c.migrate_vma_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h4void migrate_vma_pages (struct migrate_vma *migrate)h]h)}(h3void migrate_vma_pages(struct migrate_vma *migrate)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmigrate_vma_pagesh]j)}(hmigrate_vma_pagesh]hmigrate_vma_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(struct migrate_vma *migrate)h]j )}(hstruct migrate_vma *migrateh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h migrate_vmah]h migrate_vma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.migrate_vma_pagesasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjEhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmigrateh]hmigrate}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h+migrate meta-data from src page to dst pageh]h+migrate meta-data from src page to dst page}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjyhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX!**Parameters** ``struct migrate_vma *migrate`` migrate struct containing all migration information **Description** This migrates struct page meta-data from source struct page to destination struct page. This effectively finishes the migration from source page to the destination page.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]j)}(hT``struct migrate_vma *migrate`` migrate struct containing all migration information h](j)}(h``struct migrate_vma *migrate``h]jS)}(hjh]hstruct migrate_vma *migrate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(h3migrate struct containing all migration informationh]h3migrate struct containing all migration information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hThis migrates struct page meta-data from source struct page to destination struct page. This effectively finishes the migration from source page to the destination page.h]hThis migrates struct page meta-data from source struct page to destination struct page. This effectively finishes the migration from source page to the destination page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!migrate_vma_finalize (C function)c.migrate_vma_finalizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h7void migrate_vma_finalize (struct migrate_vma *migrate)h]h)}(h6void migrate_vma_finalize(struct migrate_vma *migrate)h](j)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhjKhM:ubh)}(hmigrate_vma_finalizeh]j)}(hmigrate_vma_finalizeh]hmigrate_vma_finalize}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1hhj9hhhjKhM:ubj )}(h(struct migrate_vma *migrate)h]j )}(hstruct migrate_vma *migrateh](j5)}(hj8h]hstruct}(hjzhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j)}(h migrate_vmah]h migrate_vma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj`sbc.migrate_vma_finalizeasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjvubj)}(hmigrateh]hmigrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubah}(h]h ]h"]h$]h&]jjuh1j hj9hhhjKhM:ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj5hhhjKhM:ubah}(h]j0ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjKhM:hj2hhubj4)}(hhh]jM)}(hrestore CPU page table entryh]hrestore CPU page table entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM:hjhhubah}(h]h ]h"]h$]h&]uh1j3hj2hhhjKhM:ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct migrate_vma *migrate`` migrate struct containing all migration information **Description** This replaces the special migration pte entry with either a mapping to the new page if migration was successful for that page, or to the original page otherwise. This also unlocks the pages and puts them back on the lru, or drops the extra refcount, for device pages.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM>hjubj)}(hhh]j)}(hT``struct migrate_vma *migrate`` migrate struct containing all migration information h](j)}(h``struct migrate_vma *migrate``h]jS)}(hj>h]hstruct migrate_vma *migrate}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj<ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM;hj8ubj)}(hhh]jM)}(h3migrate struct containing all migration informationh]h3migrate struct containing all migration information}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjShM;hjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShM;hj5ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjyh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM=hjubjM)}(hThis replaces the special migration pte entry with either a mapping to the new page if migration was successful for that page, or to the original page otherwise.h]hThis replaces the special migration pte entry with either a mapping to the new page if migration was successful for that page, or to the original page otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM<hjubjM)}(hiThis also unlocks the pages and puts them back on the lru, or drops the extra refcount, for device pages.h]hiThis also unlocks the pages and puts them back on the lru, or drops the extra refcount, for device pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM@hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!migrate_device_range (C function)c.migrate_device_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(h]int migrate_device_range (unsigned long *src_pfns, unsigned long start, unsigned long npages)h]h)}(h\int migrate_device_range(unsigned long *src_pfns, unsigned long start, unsigned long npages)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM\ubh)}(hmigrate_device_rangeh]j)}(hmigrate_device_rangeh]hmigrate_device_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM\ubj )}(hD(unsigned long *src_pfns, unsigned long start, unsigned long npages)h](j )}(hunsigned long *src_pfnsh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hsrc_pfnsh]hsrc_pfns}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long npagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnpagesh]hnpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM\ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM\ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM\hjhhubj4)}(hhh]jM)}(h-migrate device private pfns to normal memory.h]h-migrate device private pfns to normal memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM\hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM\ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj3jHj3jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long *src_pfns`` array large enough to hold migrating source device private pfns. ``unsigned long start`` starting pfn in the range to migrate. ``unsigned long npages`` number of pages to migrate. **Description** migrate_vma_setup() is similar in concept to migrate_vma_setup() except that instead of looking up pages based on virtual address mappings a range of device pfns that should be migrated to system memory is used instead. This is useful when a driver needs to free device memory but doesn't know the virtual mappings of every page that may be in device memory. For example this is often the case when a driver is being unloaded or unbound from a device. Like migrate_vma_setup() this function will take a reference and lock any migrating pages that aren't free before unmapping them. Drivers may then allocate destination pages and start copying data from the device to CPU memory before calling migrate_device_pages().h](jM)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM`hj7ubj)}(hhh](j)}(h]``unsigned long *src_pfns`` array large enough to hold migrating source device private pfns. h](j)}(h``unsigned long *src_pfns``h]jS)}(hj\h]hunsigned long *src_pfns}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM]hjVubj)}(hhh]jM)}(h@array large enough to hold migrating source device private pfns.h]h@array large enough to hold migrating source device private pfns.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjqhM]hjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhM]hjSubj)}(h>``unsigned long start`` starting pfn in the range to migrate. h](j)}(h``unsigned long start``h]jS)}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM^hjubj)}(hhh]jM)}(h%starting pfn in the range to migrate.h]h%starting pfn in the range to migrate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM^hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjSubj)}(h5``unsigned long npages`` number of pages to migrate. h](j)}(h``unsigned long npages``h]jS)}(hjh]hunsigned long npages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM_hjubj)}(hhh]jM)}(hnumber of pages to migrate.h]hnumber of pages to migrate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjSubeh}(h]h ]h"]h$]h&]uh1jhj7ubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMahj7ubjM)}(hmigrate_vma_setup() is similar in concept to migrate_vma_setup() except that instead of looking up pages based on virtual address mappings a range of device pfns that should be migrated to system memory is used instead.h]hmigrate_vma_setup() is similar in concept to migrate_vma_setup() except that instead of looking up pages based on virtual address mappings a range of device pfns that should be migrated to system memory is used instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM`hj7ubjM)}(hThis is useful when a driver needs to free device memory but doesn't know the virtual mappings of every page that may be in device memory. For example this is often the case when a driver is being unloaded or unbound from a device.h]hThis is useful when a driver needs to free device memory but doesn’t know the virtual mappings of every page that may be in device memory. For example this is often the case when a driver is being unloaded or unbound from a device.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMdhj7ubjM)}(hX Like migrate_vma_setup() this function will take a reference and lock any migrating pages that aren't free before unmapping them. Drivers may then allocate destination pages and start copying data from the device to CPU memory before calling migrate_device_pages().h]hX Like migrate_vma_setup() this function will take a reference and lock any migrating pages that aren’t free before unmapping them. Drivers may then allocate destination pages and start copying data from the device to CPU memory before calling migrate_device_pages().}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h migrate_device_pfns (C function)c.migrate_device_pfnshNtauh1hhjhhhNhNubh)}(hhh](h)}(hGint migrate_device_pfns (unsigned long *src_pfns, unsigned long npages)h]h)}(hFint migrate_device_pfns(unsigned long *src_pfns, unsigned long npages)h](j)}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjzhMubh)}(hmigrate_device_pfnsh]j)}(hmigrate_device_pfnsh]hmigrate_device_pfns}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhhjzhMubj )}(h/(unsigned long *src_pfns, unsigned long npages)h](j )}(hunsigned long *src_pfnsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hsrc_pfnsh]hsrc_pfns}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long npagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnpagesh]hnpages}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhhjzhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjdhhhjzhMubah}(h]j_ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjzhMhjahhubj4)}(hhh]jM)}(h-migrate device private pfns to normal memory.h]h-migrate device private pfns to normal memory.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjfhhubah}(h]h ]h"]h$]h&]uh1j3hjahhhjzhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX#**Parameters** ``unsigned long *src_pfns`` pre-populated array of source device private pfns to migrate. ``unsigned long npages`` number of pages to migrate. **Description** Similar to migrate_device_range() but supports non-contiguous pre-populated array of device pages to migrate.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh](j)}(hZ``unsigned long *src_pfns`` pre-populated array of source device private pfns to migrate. h](j)}(h``unsigned long *src_pfns``h]jS)}(hjh]hunsigned long *src_pfns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(h=pre-populated array of source device private pfns to migrate.h]h=pre-populated array of source device private pfns to migrate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h5``unsigned long npages`` number of pages to migrate. h](j)}(h``unsigned long npages``h]jS)}(hjh]hunsigned long npages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(hnumber of pages to migrate.h]hnumber of pages to migrate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hmSimilar to migrate_device_range() but supports non-contiguous pre-populated array of device pages to migrate.h]hmSimilar to migrate_device_range() but supports non-contiguous pre-populated array of device pages to migrate.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubje)}(hA#kernel-doc:: mm/nommu.c (duplicates kernel-doc from other files)h]hA#kernel-doc:: mm/nommu.c (duplicates kernel-doc from other files)}hjJsbah}(h]h ]h"]h$]h&]jjuh1jehjhhhhhK}ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwp_walk (C struct) c.wp_walkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hwp_walkh]h)}(hstruct wp_walkh](j5)}(hj8h]hstruct}(hjqhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjmhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhj~hKubh)}(hwp_walkh]j)}(hjkh]hwp_walk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjmhhhj~hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjihhhj~hKubah}(h]jdah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj~hKhjfhhubj4)}(hhh]jM)}(h+Private struct for pagetable walk callbacksh]h+Private struct for pagetable walk callbacks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK hjhhubah}(h]h ]h"]h$]h&]uh1j3hjfhhhj~hKubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXw**Definition**:: struct wp_walk { struct mmu_notifier_range range; unsigned long tlbflush_start; unsigned long tlbflush_end; unsigned long total; }; **Members** ``range`` Range for mmu notifiers ``tlbflush_start`` Address of first modified pte ``tlbflush_end`` Address of last modified pte + 1 ``total`` Total number of modified ptesh](jM)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj()}(hstruct wp_walk { struct mmu_notifier_range range; unsigned long tlbflush_start; unsigned long tlbflush_end; unsigned long total; };h]hstruct wp_walk { struct mmu_notifier_range range; unsigned long tlbflush_start; unsigned long tlbflush_end; unsigned long total; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubjM)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh](j)}(h"``range`` Range for mmu notifiers h](j)}(h ``range``h]jS)}(hj h]hrange}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK hjubj)}(hhh]jM)}(hRange for mmu notifiersh]hRange for mmu notifiers}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hK hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hK hjubj)}(h1``tlbflush_start`` Address of first modified pte h](j)}(h``tlbflush_start``h]jS)}(hjYh]htlbflush_start}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjSubj)}(hhh]jM)}(hAddress of first modified pteh]hAddress of first modified pte}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjnhKhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjubj)}(h2``tlbflush_end`` Address of last modified pte + 1 h](j)}(h``tlbflush_end``h]jS)}(hjh]h tlbflush_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]jM)}(h Address of last modified pte + 1h]h Address of last modified pte + 1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h'``total`` Total number of modified ptesh](j)}(h ``total``h]jS)}(hjh]htotal}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]jM)}(hTotal number of modified ptesh]hTotal number of modified ptes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwp_pte (C function)c.wp_ptehNtauh1hhjhhhNhNubh)}(hhh](h)}(hTint wp_pte (pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h]h)}(hSint wp_pte(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h](j)}(hinth]hint}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj3hKubh)}(hwp_pteh]j)}(hwp_pteh]hwp_pte}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1hhj!hhhj3hKubj )}(hI(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h](j )}(h pte_t *pteh](h)}(hhh]j)}(hpte_th]hpte_t}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjgmodnameN classnameNjpjs)}jv]jy)}jljHsbc.wp_pteasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj^ubj)}(hpteh]hpte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjZubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjZubj )}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendh]hend}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjZubj )}(hstruct mm_walk *walkh](j5)}(hj8h]hstruct}(hj[hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j)}(hmm_walkh]hmm_walk}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj{modnameN classnameNjpjs)}jv]jc.wp_pteasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjWubj)}(hwalkh]hwalk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjZubeh}(h]h ]h"]h$]h&]jjuh1j hj!hhhj3hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj3hKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj3hKhjhhubj4)}(hhh]jM)}(hWrite-protect a pteh]hWrite-protect a pte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj3hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``pte_t *pte`` Pointer to the pte ``unsigned long addr`` The start of protecting virtual address ``unsigned long end`` The end of protecting virtual address ``struct mm_walk *walk`` pagetable walk callback argument **Description** The function write-protects a pte and records the range in virtual address space of touched ptes for efficient range TLB flushes.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh](j)}(h"``pte_t *pte`` Pointer to the pte h](j)}(h``pte_t *pte``h]jS)}(hjh]h pte_t *pte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]jM)}(hPointer to the pteh]hPointer to the pte}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2hKhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hKhjubj)}(h?``unsigned long addr`` The start of protecting virtual address h](j)}(h``unsigned long addr``h]jS)}(hjVh]hunsigned long addr}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjTubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjPubj)}(hhh]jM)}(h'The start of protecting virtual addressh]h'The start of protecting virtual address}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjkhKhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKhjubj)}(h<``unsigned long end`` The end of protecting virtual address h](j)}(h``unsigned long end``h]jS)}(hjh]hunsigned long end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]jM)}(h%The end of protecting virtual addressh]h%The end of protecting virtual address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h:``struct mm_walk *walk`` pagetable walk callback argument h](j)}(h``struct mm_walk *walk``h]jS)}(hjh]hstruct mm_walk *walk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]jM)}(h pagetable walk callback argumenth]h pagetable walk callback argument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubjM)}(hThe function write-protects a pte and records the range in virtual address space of touched ptes for efficient range TLB flushes.h]hThe function write-protects a pte and records the range in virtual address space of touched ptes for efficient range TLB flushes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclean_walk (C struct) c.clean_walkhNtauh1hhjhhhNhNubh)}(hhh](h)}(h clean_walkh]h)}(hstruct clean_walkh](j5)}(hj8h]hstruct}(hjHhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK$ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjUhK$ubh)}(h clean_walkh]j)}(hjBh]h clean_walk}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1hhjDhhhjUhK$ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj@hhhjUhK$ubah}(h]j;ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjUhK$hj=hhubj4)}(hhh]jM)}(h1Private struct for the clean_record_pte function.h]h1Private struct for the clean_record_pte function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK7hjhhubah}(h]h ]h"]h$]h&]uh1j3hj=hhhjUhK$ubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX>**Definition**:: struct clean_walk { struct wp_walk base; pgoff_t bitmap_pgoff; unsigned long *bitmap; pgoff_t start; pgoff_t end; }; **Members** ``base`` struct wp_walk we derive from ``bitmap_pgoff`` Address_space Page offset of the first bit in **bitmap** ``bitmap`` Bitmap with one bit for each page offset in the address_space range covered. ``start`` Address_space page offset of first modified pte relative to **bitmap_pgoff** ``end`` Address_space page offset of last modified pte relative to **bitmap_pgoff**h](jM)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK;hjubj()}(hstruct clean_walk { struct wp_walk base; pgoff_t bitmap_pgoff; unsigned long *bitmap; pgoff_t start; pgoff_t end; };h]hstruct clean_walk { struct wp_walk base; pgoff_t bitmap_pgoff; unsigned long *bitmap; pgoff_t start; pgoff_t end; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK=hjubjM)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKEhjubj)}(hhh](j)}(h'``base`` struct wp_walk we derive from h](j)}(h``base``h]jS)}(hjh]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK9hjubj)}(hhh]jM)}(hstruct wp_walk we derive fromh]hstruct wp_walk we derive from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hK9hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK9hjubj)}(hJ``bitmap_pgoff`` Address_space Page offset of the first bit in **bitmap** h](j)}(h``bitmap_pgoff``h]jS)}(hj0h]h bitmap_pgoff}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK:hj*ubj)}(hhh]jM)}(h8Address_space Page offset of the first bit in **bitmap**h](h.Address_space Page offset of the first bit in }(hjIhhhNhNubj)}(h **bitmap**h]hbitmap}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jLhjEhK:hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhK:hjubj)}(hX``bitmap`` Bitmap with one bit for each page offset in the address_space range covered. h](j)}(h ``bitmap``h]jS)}(hjwh]hbitmap}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]jM)}(hLAddress_space page offset of first modified pte relative to **bitmap_pgoff**h](hhjubj)}(hS``end`` Address_space page offset of last modified pte relative to **bitmap_pgoff**h](j)}(h``end``h]jS)}(hjh]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK?hjubj)}(hhh]jM)}(hKAddress_space page offset of last modified pte relative to **bitmap_pgoff**h](h;Address_space page offset of last modified pte relative to }(hjhhhNhNubj)}(h**bitmap_pgoff**h]h bitmap_pgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jLhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclean_record_pte (C function)c.clean_record_ptehNtauh1hhjhhhNhNubh)}(hhh](h)}(h^int clean_record_pte (pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h]h)}(h]int clean_record_pte(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h](j)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKLubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhjnhKLubh)}(hclean_record_pteh]j)}(hclean_record_pteh]hclean_record_pte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj\hhhjnhKLubj )}(hI(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h](j )}(h pte_t *pteh](h)}(hhh]j)}(hpte_th]hpte_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.clean_record_pteasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpteh]hpte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hlongh]hlong}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hendh]hend}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mm_walk *walkh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hmm_walkh]hmm_walk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.clean_record_pteasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hwalkh]hwalk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj\hhhjnhKLubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjXhhhjnhKLubah}(h]jSah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjnhKLhjUhhubj4)}(hhh]jM)}(h;Clean a pte and record its address space offset in a bitmaph]h;Clean a pte and record its address space offset in a bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKLhjhhubah}(h]h ]h"]h$]h&]uh1j3hjUhhhjnhKLubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj/jHj/jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``pte_t *pte`` Pointer to the pte ``unsigned long addr`` The start of virtual address to be clean ``unsigned long end`` The end of virtual address to be clean ``struct mm_walk *walk`` pagetable walk callback argument **Description** The function cleans a pte and records the range in virtual address space of touched ptes for efficient TLB flushes. It also records dirty ptes in a bitmap representing page offsets in the address_space, as well as the first and last of the bits touched.h](jM)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKPhj3ubj)}(hhh](j)}(h"``pte_t *pte`` Pointer to the pte h](j)}(h``pte_t *pte``h]jS)}(hjXh]h pte_t *pte}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKNhjRubj)}(hhh]jM)}(hPointer to the pteh]hPointer to the pte}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmhKNhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhKNhjOubj)}(h@``unsigned long addr`` The start of virtual address to be clean h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKOhjubj)}(hhh]jM)}(h(The start of virtual address to be cleanh]h(The start of virtual address to be clean}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjOubj)}(h=``unsigned long end`` The end of virtual address to be clean h](j)}(h``unsigned long end``h]jS)}(hjh]hunsigned long end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKPhjubj)}(hhh]jM)}(h&The end of virtual address to be cleanh]h&The end of virtual address to be clean}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKPhjOubj)}(h:``struct mm_walk *walk`` pagetable walk callback argument h](j)}(h``struct mm_walk *walk``h]jS)}(hjh]hstruct mm_walk *walk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKQhjubj)}(hhh]jM)}(h pagetable walk callback argumenth]h pagetable walk callback argument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubjM)}(h**Description**h]j)}(hj>h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKShj3ubjM)}(hThe function cleans a pte and records the range in virtual address space of touched ptes for efficient TLB flushes. It also records dirty ptes in a bitmap representing page offsets in the address_space, as well as the first and last of the bits touched.h]hThe function cleans a pte and records the range in virtual address space of touched ptes for efficient TLB flushes. It also records dirty ptes in a bitmap representing page offsets in the address_space, as well as the first and last of the bits touched.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKRhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$wp_shared_mapping_range (C function)c.wp_shared_mapping_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hfunsigned long wp_shared_mapping_range (struct address_space *mapping, pgoff_t first_index, pgoff_t nr)h]h)}(heunsigned long wp_shared_mapping_range(struct address_space *mapping, pgoff_t first_index, pgoff_t nr)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hwp_shared_mapping_rangeh]j)}(hwp_shared_mapping_rangeh]hwp_shared_mapping_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubj )}(h@(struct address_space *mapping, pgoff_t first_index, pgoff_t nr)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.wp_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj( hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hj5 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hpgoff_t first_indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjQ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjS modnameN classnameNjpjs)}jv]j c.wp_shared_mapping_rangeasbuh1hhjJ ubj)}(h h]h }(hjo hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubj)}(h first_indexh]h first_index}(hj} hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t nrh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]j c.wp_shared_mapping_rangeasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hnrh]hnr}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj{hhhjhKubah}(h]jvah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjxhhubj4)}(hhh]jM)}(h0Write-protect all ptes in an address space rangeh]h0Write-protect all ptes in an address space range}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj hhubah}(h]h ]h"]h$]h&]uh1j3hjxhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(hXE**Parameters** ``struct address_space *mapping`` The address_space we want to write protect ``pgoff_t first_index`` The first page offset in the range ``pgoff_t nr`` Number of incremental page offsets to cover **Note** This function currently skips transhuge page-table entries, since it's intended for dirty-tracking on the PTE level. It will warn on encountering transhuge write-enabled entries, though, and can easily be extended to handle them as well. **Return** The number of ptes actually write-protected. Note that already write-protected ptes are not counted.h](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj ubj)}(hhh](j)}(hM``struct address_space *mapping`` The address_space we want to write protect h](j)}(h!``struct address_space *mapping``h]jS)}(hj0 h]hstruct address_space *mapping}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj. ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj* ubj)}(hhh]jM)}(h*The address_space we want to write protecth]h*The address_space we want to write protect}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjE hKhjF ubah}(h]h ]h"]h$]h&]uh1jhj* ubeh}(h]h ]h"]h$]h&]uh1jhjE hKhj' ubj)}(h;``pgoff_t first_index`` The first page offset in the range h](j)}(h``pgoff_t first_index``h]jS)}(hji h]hpgoff_t first_index}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjg ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjc ubj)}(hhh]jM)}(h"The first page offset in the rangeh]h"The first page offset in the range}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~ hKhj ubah}(h]h ]h"]h$]h&]uh1jhjc ubeh}(h]h ]h"]h$]h&]uh1jhj~ hKhj' ubj)}(h;``pgoff_t nr`` Number of incremental page offsets to cover h](j)}(h``pgoff_t nr``h]jS)}(hj h]h pgoff_t nr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj ubj)}(hhh]jM)}(h+Number of incremental page offsets to coverh]h+Number of incremental page offsets to cover}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj' ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Note**h]j)}(hj h]hNote}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj ubjM)}(hThis function currently skips transhuge page-table entries, since it's intended for dirty-tracking on the PTE level. It will warn on encountering transhuge write-enabled entries, though, and can easily be extended to handle them as well.h]hThis function currently skips transhuge page-table entries, since it’s intended for dirty-tracking on the PTE level. It will warn on encountering transhuge write-enabled entries, though, and can easily be extended to handle them as well.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj ubjM)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhj ubjM)}(hdThe number of ptes actually write-protected. Note that already write-protected ptes are not counted.h]hdThe number of ptes actually write-protected. Note that already write-protected ptes are not counted.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.clean_record_shared_mapping_range (C function)#c.clean_record_shared_mapping_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hunsigned long clean_record_shared_mapping_range (struct address_space *mapping, pgoff_t first_index, pgoff_t nr, pgoff_t bitmap_pgoff, unsigned long *bitmap, pgoff_t *start, pgoff_t *end)h]h)}(hunsigned long clean_record_shared_mapping_range(struct address_space *mapping, pgoff_t first_index, pgoff_t nr, pgoff_t bitmap_pgoff, unsigned long *bitmap, pgoff_t *start, pgoff_t *end)h](j)}(hunsignedh]hunsigned}(hjI hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMubj)}(h h]h }(hjX hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE hhhjW hMubj)}(hlongh]hlong}(hjf hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE hhhjW hMubj)}(h h]h }(hjt hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE hhhjW hMubh)}(h!clean_record_shared_mapping_rangeh]j)}(h!clean_record_shared_mapping_rangeh]h!clean_record_shared_mapping_range}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjE hhhjW hMubj )}(h(struct address_space *mapping, pgoff_t first_index, pgoff_t nr, pgoff_t bitmap_pgoff, unsigned long *bitmap, pgoff_t *start, pgoff_t *end)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jlj sb#c.clean_record_shared_mapping_rangeasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hmappingh]hmapping}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hpgoff_t first_indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]j #c.clean_record_shared_mapping_rangeasbuh1hhj ubj)}(h h]h }(hj5 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h first_indexh]h first_index}(hjC hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(h pgoff_t nrh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj_ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetja modnameN classnameNjpjs)}jv]j #c.clean_record_shared_mapping_rangeasbuh1hhjX ubj)}(h h]h }(hj} hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX ubj)}(hnrh]hnr}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hpgoff_t bitmap_pgoffh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]j #c.clean_record_shared_mapping_rangeasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h bitmap_pgoffh]h bitmap_pgoff}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hunsigned long *bitmaph](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hj$ hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hbitmaph]hbitmap}(hj1 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hpgoff_t *starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjM hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjO modnameN classnameNjpjs)}jv]j #c.clean_record_shared_mapping_rangeasbuh1hhjF ubj)}(h h]h }(hjk hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF ubjF )}(hjI h]h*}(hjy hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjF ubj)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(h pgoff_t *endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]j #c.clean_record_shared_mapping_rangeasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hendh]hend}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubeh}(h]h ]h"]h$]h&]jjuh1j hjE hhhjW hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjA hhhjW hMubah}(h]j< ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjW hMhj> hhubj4)}(hhh]jM)}(h3Clean and record all ptes in an address space rangeh]h3Clean and record all ptes in an address space range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj> hhhjW hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The address_space we want to clean ``pgoff_t first_index`` The first page offset in the range ``pgoff_t nr`` Number of incremental page offsets to cover ``pgoff_t bitmap_pgoff`` The page offset of the first bit in **bitmap** ``unsigned long *bitmap`` Pointer to a bitmap of at least **nr** bits. The bitmap needs to cover the whole range **first_index**..**first_index** + **nr**. ``pgoff_t *start`` Pointer to number of the first set bit in **bitmap**. is modified as new bits are set by the function. ``pgoff_t *end`` Pointer to the number of the last set bit in **bitmap**. none set. The value is modified as new bits are set by the function. **Description** When this function returns there is no guarantee that a CPU has not already dirtied new ptes. However it will not clean any ptes not reported in the bitmap. The guarantees are as follows: * All ptes dirty when the function starts executing will end up recorded in the bitmap. * All ptes dirtied after that will either remain dirty, be recorded in the bitmap or both. If a caller needs to make sure all dirty ptes are picked up and none additional are added, it first needs to write-protect the address-space range and make sure new writers are blocked in page_mkwrite() or pfn_mkwrite(). And then after a TLB flush following the write-protection pick up all dirty bits. This function currently skips transhuge page-table entries, since it's intended for dirty-tracking on the PTE level. It will warn on encountering transhuge dirty entries, though, and can easily be extended to handle them as well. **Return** The number of dirty ptes actually cleaned.h](jM)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhj!ubj)}(hhh](j)}(hE``struct address_space *mapping`` The address_space we want to clean h](j)}(h!``struct address_space *mapping``h]jS)}(hjFh]hstruct address_space *mapping}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhj@ubj)}(hhh]jM)}(h"The address_space we want to cleanh]h"The address_space we want to clean}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj=ubj)}(h;``pgoff_t first_index`` The first page offset in the range h](j)}(h``pgoff_t first_index``h]jS)}(hjh]hpgoff_t first_index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj}ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjyubj)}(hhh]jM)}(h"The first page offset in the rangeh]h"The first page offset in the range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubj)}(h;``pgoff_t nr`` Number of incremental page offsets to cover h](j)}(h``pgoff_t nr``h]jS)}(hjh]h pgoff_t nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjubj)}(hhh]jM)}(h+Number of incremental page offsets to coverh]h+Number of incremental page offsets to cover}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubj)}(hH``pgoff_t bitmap_pgoff`` The page offset of the first bit in **bitmap** h](j)}(h``pgoff_t bitmap_pgoff``h]jS)}(hjh]hpgoff_t bitmap_pgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjubj)}(hhh]jM)}(h.The page offset of the first bit in **bitmap**h](h$The page offset of the first bit in }(hj hhhNhNubj)}(h **bitmap**h]hbitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubj)}(h``unsigned long *bitmap`` Pointer to a bitmap of at least **nr** bits. The bitmap needs to cover the whole range **first_index**..**first_index** + **nr**. h](j)}(h``unsigned long *bitmap``h]jS)}(hj8h]hunsigned long *bitmap}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhj2ubj)}(hhh]jM)}(hPointer to a bitmap of at least **nr** bits. The bitmap needs to cover the whole range **first_index**..**first_index** + **nr**.h](h Pointer to a bitmap of at least }(hjQhhhNhNubj)}(h**nr**h]hnr}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh1 bits. The bitmap needs to cover the whole range }(hjQhhhNhNubj)}(h**first_index**h]h first_index}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh..**first_index** + }(hjQhhhNhNubj)}(h**nr**h]hnr}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj=ubj)}(hz``pgoff_t *start`` Pointer to number of the first set bit in **bitmap**. is modified as new bits are set by the function. h](j)}(h``pgoff_t *start``h]jS)}(hjh]hpgoff_t *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjubj)}(hhh]jM)}(hfPointer to number of the first set bit in **bitmap**. is modified as new bits are set by the function.h](h*Pointer to number of the first set bit in }(hjhhhNhNubj)}(h **bitmap**h]hbitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2. is modified as new bits are set by the function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubj)}(h``pgoff_t *end`` Pointer to the number of the last set bit in **bitmap**. none set. The value is modified as new bits are set by the function. h](j)}(h``pgoff_t *end``h]jS)}(hjh]h pgoff_t *end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM!hjubj)}(hhh]jM)}(h}Pointer to the number of the last set bit in **bitmap**. none set. The value is modified as new bits are set by the function.h](h-Pointer to the number of the last set bit in }(hj hhhNhNubj)}(h **bitmap**h]hbitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhF. none set. The value is modified as new bits are set by the function.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM!hj=ubeh}(h]h ]h"]h$]h&]uh1jhj!ubjM)}(h**Description**h]j)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM#hj!ubjM)}(hWhen this function returns there is no guarantee that a CPU has not already dirtied new ptes. However it will not clean any ptes not reported in the bitmap. The guarantees are as follows:h]hWhen this function returns there is no guarantee that a CPU has not already dirtied new ptes. However it will not clean any ptes not reported in the bitmap. The guarantees are as follows:}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM"hj!ubj~W)}(hhh](j/)}(hUAll ptes dirty when the function starts executing will end up recorded in the bitmap.h]jM)}(hUAll ptes dirty when the function starts executing will end up recorded in the bitmap.h]hUAll ptes dirty when the function starts executing will end up recorded in the bitmap.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM&hjjubah}(h]h ]h"]h$]h&]uh1j/hjgubj/)}(hYAll ptes dirtied after that will either remain dirty, be recorded in the bitmap or both. h]jM)}(hXAll ptes dirtied after that will either remain dirty, be recorded in the bitmap or both.h]hXAll ptes dirtied after that will either remain dirty, be recorded in the bitmap or both.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM(hjubah}(h]h ]h"]h$]h&]uh1j/hjgubeh}(h]h ]h"]h$]h&]jWjI uh1j}Whj|hM&hj!ubjM)}(hX.If a caller needs to make sure all dirty ptes are picked up and none additional are added, it first needs to write-protect the address-space range and make sure new writers are blocked in page_mkwrite() or pfn_mkwrite(). And then after a TLB flush following the write-protection pick up all dirty bits.h]hX.If a caller needs to make sure all dirty ptes are picked up and none additional are added, it first needs to write-protect the address-space range and make sure new writers are blocked in page_mkwrite() or pfn_mkwrite(). And then after a TLB flush following the write-protection pick up all dirty bits.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM+hj!ubjM)}(hThis function currently skips transhuge page-table entries, since it's intended for dirty-tracking on the PTE level. It will warn on encountering transhuge dirty entries, though, and can easily be extended to handle them as well.h]hThis function currently skips transhuge page-table entries, since it’s intended for dirty-tracking on the PTE level. It will warn on encountering transhuge dirty entries, though, and can easily be extended to handle them as well.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM1hj!ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM6hj!ubjM)}(h*The number of dirty ptes actually cleaned.h]h*The number of dirty ptes actually cleaned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM7hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubje)}(h2#kernel-doc:: mm/memory-failure.c (build warnings)h]h2#kernel-doc:: mm/memory-failure.c (build warnings)}hjsbah}(h]h ]h"]h$]h&]jjuh1jehjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_addr_in_chunk (C function)c.pcpu_addr_in_chunkhNtauh1hhjhhhNhNubh)}(hhh](h)}(h>bool pcpu_addr_in_chunk (struct pcpu_chunk *chunk, void *addr)h]h)}(h=bool pcpu_addr_in_chunk(struct pcpu_chunk *chunk, void *addr)h](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hKubh)}(hpcpu_addr_in_chunkh]j)}(hpcpu_addr_in_chunkh]hpcpu_addr_in_chunk}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj"hKubj )}(h&(struct pcpu_chunk *chunk, void *addr)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hjQhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjqmodnameN classnameNjpjs)}jv]jy)}jlj7sbc.pcpu_addr_in_chunkasbuh1hhjMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjMubj)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubj )}(h void *addrh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj"hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj"hKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj"hKhj hhubj4)}(hhh]jM)}(h.check if the address is served from this chunkh]h.check if the address is served from this chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhjhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj"hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj.jHj.jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``void *addr`` percpu address **Return** True if the address is served from this chunk.h](jM)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhj2ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hjWh]hstruct pcpu_chunk *chunk}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjUubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhjQubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhKhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhKhjNubj)}(h``void *addr`` percpu address h](j)}(h``void *addr``h]jS)}(hjh]h void *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhjubj)}(hhh]jM)}(hpercpu addressh]hpercpu address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhj2ubjM)}(h.True if the address is served from this chunk.h]h.True if the address is served from this chunk.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"pcpu_check_block_hint (C function)c.pcpu_check_block_hinthNtauh1hhjhhhNhNubh)}(hhh](h)}(hPbool pcpu_check_block_hint (struct pcpu_block_md *block, int bits, size_t align)h]h)}(hObool pcpu_check_block_hint(struct pcpu_block_md *block, int bits, size_t align)h](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM4ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhM4ubh)}(hpcpu_check_block_hinth]j)}(hpcpu_check_block_hinth]hpcpu_check_block_hint}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhjhM4ubj )}(h5(struct pcpu_block_md *block, int bits, size_t align)h](j )}(hstruct pcpu_block_md *blockh](j5)}(hj8h]hstruct}(hjLhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjHubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]j)}(h pcpu_block_mdh]h pcpu_block_md}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlmodnameN classnameNjpjs)}jv]jy)}jlj2sbc.pcpu_check_block_hintasbuh1hhjHubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjHubj)}(hblockh]hblock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubj )}(hint bitsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubj )}(h size_t alignh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.pcpu_check_block_hintasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(halignh]halign}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubeh}(h]h ]h"]h$]h&]jjuh1j hj hhhjhM4ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM4ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM4hjhhubj4)}(hhh]jM)}(hcheck against the contig hinth]hcheck against the contig hint}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM4hjIhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM4ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjdjHjdjIjJjKuh1hhhhjhNhNubj)}(hXV**Parameters** ``struct pcpu_block_md *block`` block of interest ``int bits`` size of allocation ``size_t align`` alignment of area (max PAGE_SIZE) **Description** Check to see if the allocation can fit in the block's contig hint. Note, a chunk uses the same hints as a block so this can also check against the chunk's contig hint.h](jM)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM8hjhubj)}(hhh](j)}(h2``struct pcpu_block_md *block`` block of interest h](j)}(h``struct pcpu_block_md *block``h]jS)}(hjh]hstruct pcpu_block_md *block}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM5hjubj)}(hhh]jM)}(hblock of interesth]hblock of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubj)}(h ``int bits`` size of allocation h](j)}(h ``int bits``h]jS)}(hjh]hint bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM6hjubj)}(hhh]jM)}(hsize of allocationh]hsize of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubj)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]jS)}(hjh]h size_t align}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM7hjubj)}(hhh]jM)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubeh}(h]h ]h"]h$]h&]uh1jhjhubjM)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM9hjhubjM)}(hCheck to see if the allocation can fit in the block's contig hint. Note, a chunk uses the same hints as a block so this can also check against the chunk's contig hint.h]hCheck to see if the allocation can fit in the block’s contig hint. Note, a chunk uses the same hints as a block so this can also check against the chunk’s contig hint.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM8hjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%pcpu_next_md_free_region (C function)c.pcpu_next_md_free_regionhNtauh1hhjhhhNhNubh)}(hhh](h)}(hQvoid pcpu_next_md_free_region (struct pcpu_chunk *chunk, int *bit_off, int *bits)h]h)}(hPvoid pcpu_next_md_free_region(struct pcpu_chunk *chunk, int *bit_off, int *bits)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhjhMcubh)}(hpcpu_next_md_free_regionh]j)}(hpcpu_next_md_free_regionh]hpcpu_next_md_free_region}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj{hhhjhMcubj )}(h3(struct pcpu_chunk *chunk, int *bit_off, int *bits)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.pcpu_next_md_free_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int *bit_offh](j)}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjF )}(hjI h]h*}(hjJhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj*ubj)}(hbit_offh]hbit_off}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int *bitsh](j)}(hinth]hint}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjlubj)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj{hhhjhMcubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjwhhhjhMcubah}(h]jrah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMchjthhubj4)}(hhh]jM)}(hfinds the next hint free areah]hfinds the next hint free area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMchjhhubah}(h]h ]h"]h$]h&]uh1j3hjthhhjhMcubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXg**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int *bit_off`` chunk offset ``int *bits`` size of free area **Description** Helper function for pcpu_for_each_md_free_region. It checks block->contig_hint and performs aggregation across blocks to find the next hint. It modifies bit_off and bits in-place to be consumed in the loop.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMghjubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hjh]hstruct pcpu_chunk *chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMdhjubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjubj)}(h``int *bit_off`` chunk offset h](j)}(h``int *bit_off``h]jS)}(hj=h]h int *bit_off}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMehj7ubj)}(hhh]jM)}(h chunk offseth]h chunk offset}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjRhMehjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMehjubj)}(h ``int *bits`` size of free area h](j)}(h ``int *bits``h]jS)}(hjvh]h int *bits}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMfhjpubj)}(hhh]jM)}(hsize of free areah]hsize of free area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhhjubjM)}(hHelper function for pcpu_for_each_md_free_region. It checks block->contig_hint and performs aggregation across blocks to find the next hint. It modifies bit_off and bits in-place to be consumed in the loop.h]hHelper function for pcpu_for_each_md_free_region. It checks block->contig_hint and performs aggregation across blocks to find the next hint. It modifies bit_off and bits in-place to be consumed in the loop.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!pcpu_next_fit_region (C function)c.pcpu_next_fit_regionhNtauh1hhjhhhNhNubh)}(hhh](h)}(hhvoid pcpu_next_fit_region (struct pcpu_chunk *chunk, int alloc_bits, int align, int *bit_off, int *bits)h]h)}(hgvoid pcpu_next_fit_region(struct pcpu_chunk *chunk, int alloc_bits, int align, int *bit_off, int *bits)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_next_fit_regionh]j)}(hpcpu_next_fit_regionh]hpcpu_next_fit_region}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hN(struct pcpu_chunk *chunk, int alloc_bits, int align, int *bit_off, int *bits)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hj3hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjSmodnameN classnameNjpjs)}jv]jy)}jljsbc.pcpu_next_fit_regionasbuh1hhj/ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj/ubj)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj+ubj )}(hint alloc_bitsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h alloc_bitsh]h alloc_bits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj+ubj )}(h int alignh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(halignh]halign}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj+ubj )}(h int *bit_offh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hj+hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hbit_offh]hbit_off}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj+ubj )}(h int *bitsh](j)}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjF )}(hjI h]h*}(hjmhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjMubj)}(hbitsh]hbits}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj+ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h.finds fit areas for a given allocation requesth]h.finds fit areas for a given allocation request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX!**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int alloc_bits`` size of allocation ``int align`` alignment of area (max PAGE_SIZE) ``int *bit_off`` chunk offset ``int *bits`` size of free area **Description** Finds the next free region that is viable for use with a given size and alignment. This only returns if there is a valid area to be used for this allocation. block->first_free is returned if the allocation request fits within the block to see if the request can be fulfilled prior to the contig hint.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hjh]hstruct pcpu_chunk *chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``int alloc_bits`` size of allocation h](j)}(h``int alloc_bits``h]jS)}(hjh]hint alloc_bits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj)}(hhh]jM)}(hsize of allocationh]hsize of allocation}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(h0``int align`` alignment of area (max PAGE_SIZE) h](j)}(h ``int align``h]jS)}(hjWh]h int align}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjUubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjQubj)}(hhh]jM)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjubj)}(h``int *bit_off`` chunk offset h](j)}(h``int *bit_off``h]jS)}(hjh]h int *bit_off}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj)}(hhh]jM)}(h chunk offseth]h chunk offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``int *bits`` size of free area h](j)}(h ``int *bits``h]jS)}(hjh]h int *bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj)}(hhh]jM)}(hsize of free areah]hsize of free area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubjM)}(hX.Finds the next free region that is viable for use with a given size and alignment. This only returns if there is a valid area to be used for this allocation. block->first_free is returned if the allocation request fits within the block to see if the request can be fulfilled prior to the contig hint.h]hX.Finds the next free region that is viable for use with a given size and alignment. This only returns if there is a valid area to be used for this allocation. block->first_free is returned if the allocation request fits within the block to see if the request can be fulfilled prior to the contig hint.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_mem_zalloc (C function)c.pcpu_mem_zallochNtauh1hhjhhhNhNubh)}(hhh](h)}(h/void * pcpu_mem_zalloc (size_t size, gfp_t gfp)h]h)}(h-void *pcpu_mem_zalloc(size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjWhMubjF )}(hjI h]h*}(hjfhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjEhhhjWhMubh)}(hpcpu_mem_zalloch]j)}(hpcpu_mem_zalloch]hpcpu_mem_zalloc}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1hhjEhhhjWhMubj )}(h(size_t size, gfp_t gfp)h](j )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljysbc.pcpu_mem_zallocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.pcpu_mem_zallocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfph]hgfp}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjEhhhjWhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjAhhhjWhMubah}(h]j<ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjWhMhj>hhubj4)}(hhh]jM)}(hallocate memoryh]hallocate memory}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj3hhubah}(h]h ]h"]h$]h&]uh1j3hj>hhhjWhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjNjHjNjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``size_t size`` bytes to allocate ``gfp_t gfp`` allocation flags **Description** Allocate **size** bytes. If **size** is smaller than PAGE_SIZE, kzalloc() is used; otherwise, the equivalent of vzalloc() is used. This is to facilitate passing through whitelisted flags. The returned memory is always zeroed. **Return** Pointer to the allocated area on success, NULL on failure.h](jM)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjRubj)}(hhh](j)}(h"``size_t size`` bytes to allocate h](j)}(h``size_t size``h]jS)}(hjwh]h size_t size}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjqubj)}(hhh]jM)}(hbytes to allocateh]hbytes to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(h``gfp_t gfp`` allocation flags h](j)}(h ``gfp_t gfp``h]jS)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj)}(hhh]jM)}(hallocation flagsh]hallocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjRubjM)}(hAllocate **size** bytes. If **size** is smaller than PAGE_SIZE, kzalloc() is used; otherwise, the equivalent of vzalloc() is used. This is to facilitate passing through whitelisted flags. The returned memory is always zeroed.h](h Allocate }(hjhhhNhNubj)}(h**size**h]hsize}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes. If }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is smaller than PAGE_SIZE, kzalloc() is used; otherwise, the equivalent of vzalloc() is used. This is to facilitate passing through whitelisted flags. The returned memory is always zeroed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjRubjM)}(h **Return**h]j)}(hj6h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjRubjM)}(h:Pointer to the allocated area on success, NULL on failure.h]h:Pointer to the allocated area on success, NULL on failure.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_mem_free (C function)c.pcpu_mem_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid pcpu_mem_free (void *ptr)h]h)}(hvoid pcpu_mem_free(void *ptr)h](j)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhMubh)}(h pcpu_mem_freeh]j)}(h pcpu_mem_freeh]h pcpu_mem_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjwhhhjhMubj )}(h (void *ptr)h]j )}(h void *ptrh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hptrh]hptr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjwhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjshhhjhMubah}(h]jnah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjphhubj4)}(hhh]jM)}(h free memoryh]h free memory}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjphhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj#jHj#jIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``void *ptr`` memory to free **Description** Free **ptr**. **ptr** should have been allocated using pcpu_mem_zalloc().h](jM)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj'ubj)}(hhh]j)}(h``void *ptr`` memory to free h](j)}(h ``void *ptr``h]jS)}(hjLh]h void *ptr}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjFubj)}(hhh]jM)}(hmemory to freeh]hmemory to free}(hje0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj'ubjM)}(hJFree **ptr**. **ptr** should have been allocated using pcpu_mem_zalloc().h](hFree }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh4 should have been allocated using pcpu_mem_zalloc().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h pcpu_chunk_relocate (C function)c.pcpu_chunk_relocatehNtauh1hhjhhhNhNubh)}(hhh](h)}(h>void pcpu_chunk_relocate (struct pcpu_chunk *chunk, int oslot)h]h)}(h=void pcpu_chunk_relocate(struct pcpu_chunk *chunk, int oslot)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_chunk_relocateh]j)}(hpcpu_chunk_relocateh]hpcpu_chunk_relocate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h%(struct pcpu_chunk *chunk, int oslot)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hj-hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj)ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjMmodnameN classnameNjpjs)}jv]jy)}jljsbc.pcpu_chunk_relocateasbuh1hhj)ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjF )}(hjI h]h*}(hjyhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj)ubj)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj%ubj )}(h int osloth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hosloth]hoslot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj%ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h'put chunk in the appropriate chunk sloth]h'put chunk in the appropriate chunk slot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXt**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int oslot`` the previous slot it was on **Description** This function is called after an allocation or free changed **chunk**. New slot according to the changed state is determined and **chunk** is moved to the slot. Note that the reserved chunk is never put on chunk slots. **Context** pcpu_lock.h](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM#hj ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hj& h]hstruct pcpu_chunk *chunk}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj; hM hj< ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj; hM hj ubj)}(h*``int oslot`` the previous slot it was on h](j)}(h ``int oslot``h]jS)}(hj_ h]h int oslot}(hja hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj] ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM!hjY ubj)}(hhh]jM)}(hthe previous slot it was onh]hthe previous slot it was on}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjt hM!hju ubah}(h]h ]h"]h$]h&]uh1jhjY ubeh}(h]h ]h"]h$]h&]uh1jhjt hM!hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM#hj ubjM)}(hThis function is called after an allocation or free changed **chunk**. New slot according to the changed state is determined and **chunk** is moved to the slot. Note that the reserved chunk is never put on chunk slots.h](hcontig_hint. chunk_md->contig_hint may be off by up to a page, but it will never be more than the available space. If the contig hint is contained in one block, it will be accurate.h](jM)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj*ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hj+h]hstruct pcpu_chunk *chunk}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj+ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj+ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hj6+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2+hMhj3+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj2+hMhj+ubj)}(h``int bit_off`` chunk offset h](j)}(h``int bit_off``h]jS)}(hjV+h]h int bit_off}(hjX+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjT+ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjP+ubj)}(hhh]jM)}(h chunk offseth]h chunk offset}(hjo+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjk+hMhjl+ubah}(h]h ]h"]h$]h&]uh1jhjP+ubeh}(h]h ]h"]h$]h&]uh1jhjk+hMhj+ubj)}(h``int bits`` size of request h](j)}(h ``int bits``h]jS)}(hj+h]hint bits}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj+ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj+ubj)}(hhh]jM)}(hsize of requesth]hsize of request}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+hMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMhj+ubeh}(h]h ]h"]h$]h&]uh1jhj*ubjM)}(h**Description**h]j)}(hj+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj*ubjM)}(hUpdates metadata for the allocation path. This avoids a blind block refresh by making use of the block contig hints. If this fails, it scans forward and backward to determine the extent of the free area. This is capped at the boundary of blocks.h]hUpdates metadata for the allocation path. This avoids a blind block refresh by making use of the block contig hints. If this fails, it scans forward and backward to determine the extent of the free area. This is capped at the boundary of blocks.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj*ubjM)}(hXuA chunk update is triggered if a page becomes free, a block becomes free, or the free spans across blocks. This tradeoff is to minimize iterating over the block metadata to update chunk_md->contig_hint. chunk_md->contig_hint may be off by up to a page, but it will never be more than the available space. If the contig hint is contained in one block, it will be accurate.h]hXuA chunk update is triggered if a page becomes free, a block becomes free, or the free spans across blocks. This tradeoff is to minimize iterating over the block metadata to update chunk_md->contig_hint. chunk_md->contig_hint may be off by up to a page, but it will never be more than the available space. If the contig hint is contained in one block, it will be accurate.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_is_populated (C function)c.pcpu_is_populatedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hWbool pcpu_is_populated (struct pcpu_chunk *chunk, int bit_off, int bits, int *next_off)h]h)}(hVbool pcpu_is_populated(struct pcpu_chunk *chunk, int bit_off, int bits, int *next_off)h](j)}(hj.h]hbool}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM%ubj)}(h h]h }(hj,,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj+,hM%ubh)}(hpcpu_is_populatedh]j)}(hpcpu_is_populatedh]hpcpu_is_populated}(hj>,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:,ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj,hhhj+,hM%ubj )}(h@(struct pcpu_chunk *chunk, int bit_off, int bits, int *next_off)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hjZ,hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjV,ubj)}(h h]h }(hjg,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV,ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hjx,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjz,modnameN classnameNjpjs)}jv]jy)}jlj@,sbc.pcpu_is_populatedasbuh1hhjV,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV,ubjF )}(hjI h]h*}(hj,hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjV,ubj)}(hchunkh]hchunk}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjR,ubj )}(h int bit_offh](j)}(hinth]hint}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hbit_offh]hbit_off}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjR,ubj )}(hint bitsh](j)}(hinth]hint}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hbitsh]hbits}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjR,ubj )}(h int *next_offh](j)}(hinth]hint}(hj6-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2-ubj)}(h h]h }(hjD-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2-ubjF )}(hjI h]h*}(hjR-hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2-ubj)}(hnext_offh]hnext_off}(hj_-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjR,ubeh}(h]h ]h"]h$]h&]jjuh1j hj,hhhj+,hM%ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj,hhhj+,hM%ubah}(h]j,ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj+,hM%hj,hhubj4)}(hhh]jM)}(h%determines if the region is populatedh]h%determines if the region is populated}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM%hj-hhubah}(h]h ]h"]h$]h&]uh1j3hj,hhhj+,hM%ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj-jHj-jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int bit_off`` chunk offset ``int bits`` size of area ``int *next_off`` return value for the next offset to start searching **Description** For atomic allocations, check if the backing pages are populated. **Return** Bool if the backing pages are populated. next_index is to skip over unpopulated blocks in pcpu_find_block_fit.h](jM)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM)hj-ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hj-h]hstruct pcpu_chunk *chunk}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM&hj-ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj-hM&hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hM&hj-ubj)}(h``int bit_off`` chunk offset h](j)}(h``int bit_off``h]jS)}(hj.h]h int bit_off}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM'hj-ubj)}(hhh]jM)}(h chunk offseth]h chunk offset}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.hM'hj.ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj.hM'hj-ubj)}(h``int bits`` size of area h](j)}(h ``int bits``h]jS)}(hj<.h]hint bits}(hj>.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:.ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM(hj6.ubj)}(hhh]jM)}(h size of areah]h size of area}(hjU.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQ.hM(hjR.ubah}(h]h ]h"]h$]h&]uh1jhj6.ubeh}(h]h ]h"]h$]h&]uh1jhjQ.hM(hj-ubj)}(hF``int *next_off`` return value for the next offset to start searching h](j)}(h``int *next_off``h]jS)}(hju.h]h int *next_off}(hjw.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjs.ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM)hjo.ubj)}(hhh]jM)}(h3return value for the next offset to start searchingh]h3return value for the next offset to start searching}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.hM)hj.ubah}(h]h ]h"]h$]h&]uh1jhjo.ubeh}(h]h ]h"]h$]h&]uh1jhj.hM)hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-ubjM)}(h**Description**h]j)}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM+hj-ubjM)}(hAFor atomic allocations, check if the backing pages are populated.h]hAFor atomic allocations, check if the backing pages are populated.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM*hj-ubjM)}(h **Return**h]j)}(hj.h]hReturn}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM,hj-ubjM)}(hnBool if the backing pages are populated. next_index is to skip over unpopulated blocks in pcpu_find_block_fit.h]hnBool if the backing pages are populated. next_index is to skip over unpopulated blocks in pcpu_find_block_fit.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM-hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h pcpu_find_block_fit (C function)c.pcpu_find_block_fithNtauh1hhjhhhNhNubh)}(hhh](h)}(h_int pcpu_find_block_fit (struct pcpu_chunk *chunk, int alloc_bits, size_t align, bool pop_only)h]h)}(h^int pcpu_find_block_fit(struct pcpu_chunk *chunk, int alloc_bits, size_t align, bool pop_only)h](j)}(hinth]hint}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMDubj)}(h h]h }(hj+/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj*/hMDubh)}(hpcpu_find_block_fith]j)}(hpcpu_find_block_fith]hpcpu_find_block_fit}(hj=/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9/ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/hhhj*/hMDubj )}(hG(struct pcpu_chunk *chunk, int alloc_bits, size_t align, bool pop_only)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hjY/hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjU/ubj)}(h h]h }(hjf/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU/ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hjw/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt/ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjy/modnameN classnameNjpjs)}jv]jy)}jlj?/sbc.pcpu_find_block_fitasbuh1hhjU/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU/ubjF )}(hjI h]h*}(hj/hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjU/ubj)}(hchunkh]hchunk}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU/ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQ/ubj )}(hint alloc_bitsh](j)}(hinth]hint}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h alloc_bitsh]h alloc_bits}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQ/ubj )}(h size_t alignh](h)}(hhh]j)}(hsize_th]hsize_t}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj0modnameN classnameNjpjs)}jv]j/c.pcpu_find_block_fitasbuh1hhj/ubj)}(h h]h }(hj!0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(halignh]halign}(hj/0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQ/ubj )}(h bool pop_onlyh](j)}(hj.h]hbool}(hjH0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD0ubj)}(h h]h }(hjU0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD0ubj)}(hpop_onlyh]hpop_only}(hjc0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQ/ubeh}(h]h ]h"]h$]h&]jjuh1j hj/hhhj*/hMDubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj/hhhj*/hMDubah}(h]j/ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj*/hMDhj/hhubj4)}(hhh]jM)}(h(finds the block index to start searchingh]h(finds the block index to start searching}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMDhj0hhubah}(h]h ]h"]h$]h&]uh1j3hj/hhhj*/hMDubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj0jHj0jIjJjKuh1hhhhjhNhNubj)}(hX0**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int alloc_bits`` size of request in allocation units ``size_t align`` alignment of area (max PAGE_SIZE bytes) ``bool pop_only`` use populated regions only **Description** Given a chunk and an allocation spec, find the offset to begin searching for a free region. This iterates over the bitmap metadata blocks to find an offset that will be guaranteed to fit the requirements. It is not quite first fit as if the allocation does not fit in the contig hint of a block or chunk, it is skipped. This errs on the side of caution to prevent excess iteration. Poor alignment can cause the allocator to skip over blocks and chunks that have valid free areas. **Return** The offset in the bitmap to begin searching. -1 if no offset is found.h](jM)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMHhj0ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hj0h]hstruct pcpu_chunk *chunk}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMEhj0ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hMEhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMEhj0ubj)}(h7``int alloc_bits`` size of request in allocation units h](j)}(h``int alloc_bits``h]jS)}(hj1h]hint alloc_bits}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj1ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMFhj1ubj)}(hhh]jM)}(h#size of request in allocation unitsh]h#size of request in allocation units}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hMFhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMFhj0ubj)}(h9``size_t align`` alignment of area (max PAGE_SIZE bytes) h](j)}(h``size_t align``h]jS)}(hj@1h]h size_t align}(hjB1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>1ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMGhj:1ubj)}(hhh]jM)}(h'alignment of area (max PAGE_SIZE bytes)h]h'alignment of area (max PAGE_SIZE bytes)}(hjY1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjU1hMGhjV1ubah}(h]h ]h"]h$]h&]uh1jhj:1ubeh}(h]h ]h"]h$]h&]uh1jhjU1hMGhj0ubj)}(h-``bool pop_only`` use populated regions only h](j)}(h``bool pop_only``h]jS)}(hjy1h]h bool pop_only}(hj{1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjw1ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMHhjs1ubj)}(hhh]jM)}(huse populated regions onlyh]huse populated regions only}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hMHhj1ubah}(h]h ]h"]h$]h&]uh1jhjs1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMHhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubjM)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMJhj0ubjM)}(hXGiven a chunk and an allocation spec, find the offset to begin searching for a free region. This iterates over the bitmap metadata blocks to find an offset that will be guaranteed to fit the requirements. It is not quite first fit as if the allocation does not fit in the contig hint of a block or chunk, it is skipped. This errs on the side of caution to prevent excess iteration. Poor alignment can cause the allocator to skip over blocks and chunks that have valid free areas.h]hXGiven a chunk and an allocation spec, find the offset to begin searching for a free region. This iterates over the bitmap metadata blocks to find an offset that will be guaranteed to fit the requirements. It is not quite first fit as if the allocation does not fit in the contig hint of a block or chunk, it is skipped. This errs on the side of caution to prevent excess iteration. Poor alignment can cause the allocator to skip over blocks and chunks that have valid free areas.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMIhj0ubjM)}(h **Return**h]j)}(hj1h]hReturn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMQhj0ubjM)}(hFThe offset in the bitmap to begin searching. -1 if no offset is found.h]hFThe offset in the bitmap to begin searching. -1 if no offset is found.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMRhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_alloc_area (C function)c.pcpu_alloc_areahNtauh1hhjhhhNhNubh)}(hhh](h)}(hWint pcpu_alloc_area (struct pcpu_chunk *chunk, int alloc_bits, size_t align, int start)h]h)}(hVint pcpu_alloc_area(struct pcpu_chunk *chunk, int alloc_bits, size_t align, int start)h](j)}(hinth]hint}(hj 2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj/2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj.2hMubh)}(hpcpu_alloc_areah]j)}(hpcpu_alloc_areah]hpcpu_alloc_area}(hjA2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=2ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj2hhhj.2hMubj )}(hC(struct pcpu_chunk *chunk, int alloc_bits, size_t align, int start)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hj]2hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjY2ubj)}(h h]h }(hjj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY2ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hj{2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx2ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}2modnameN classnameNjpjs)}jv]jy)}jljC2sbc.pcpu_alloc_areaasbuh1hhjY2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY2ubjF )}(hjI h]h*}(hj2hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjY2ubj)}(hchunkh]hchunk}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjU2ubj )}(hint alloc_bitsh](j)}(hinth]hint}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h alloc_bitsh]h alloc_bits}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjU2ubj )}(h size_t alignh](h)}(hhh]j)}(hsize_th]hsize_t}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj 3modnameN classnameNjpjs)}jv]j2c.pcpu_alloc_areaasbuh1hhj3ubj)}(h h]h }(hj%3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(halignh]halign}(hj33hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjU2ubj )}(h int starth](j)}(hinth]hint}(hjL3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH3ubj)}(h h]h }(hjZ3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH3ubj)}(hstarth]hstart}(hjh3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjU2ubeh}(h]h ]h"]h$]h&]jjuh1j hj2hhhj.2hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj2hhhj.2hMubah}(h]j2ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj.2hMhj2hhubj4)}(hhh]jM)}(h#allocates an area from a pcpu_chunkh]h#allocates an area from a pcpu_chunk}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj3hhubah}(h]h ]h"]h$]h&]uh1j3hj2hhhj.2hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj3jHj3jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int alloc_bits`` size of request in allocation units ``size_t align`` alignment of area (max PAGE_SIZE) ``int start`` bit_off to start searching **Description** This function takes in a **start** offset to begin searching to fit an allocation of **alloc_bits** with alignment **align**. It needs to scan the allocation map because if it fits within the block's contig hint, **start** will be block->first_free. This is an attempt to fill the allocation prior to breaking the contig hint. The allocation and boundary maps are updated accordingly if it confirms a valid free area. **Return** Allocated addr offset in **chunk** on success. -1 if no matching area is found.h](jM)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj3ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hj3h]hstruct pcpu_chunk *chunk}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj3ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj3ubj)}(h7``int alloc_bits`` size of request in allocation units h](j)}(h``int alloc_bits``h]jS)}(hj 4h]hint alloc_bits}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj 4ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj4ubj)}(hhh]jM)}(h#size of request in allocation unitsh]h#size of request in allocation units}(hj%4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj!4hMhj"4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj!4hMhj3ubj)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]jS)}(hjE4h]h size_t align}(hjG4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjC4ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj?4ubj)}(hhh]jM)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hj^4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZ4hMhj[4ubah}(h]h ]h"]h$]h&]uh1jhj?4ubeh}(h]h ]h"]h$]h&]uh1jhjZ4hMhj3ubj)}(h)``int start`` bit_off to start searching h](j)}(h ``int start``h]jS)}(hj~4h]h int start}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj|4ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjx4ubj)}(hhh]jM)}(hbit_off to start searchingh]hbit_off to start searching}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjx4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3ubjM)}(h**Description**h]j)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj3ubjM)}(hXThis function takes in a **start** offset to begin searching to fit an allocation of **alloc_bits** with alignment **align**. It needs to scan the allocation map because if it fits within the block's contig hint, **start** will be block->first_free. This is an attempt to fill the allocation prior to breaking the contig hint. The allocation and boundary maps are updated accordingly if it confirms a valid free area.h](hThis function takes in a }(hj4hhhNhNubj)}(h **start**h]hstart}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh3 offset to begin searching to fit an allocation of }(hj4hhhNhNubj)}(h**alloc_bits**h]h alloc_bits}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh with alignment }(hj4hhhNhNubj)}(h **align**h]halign}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh\. It needs to scan the allocation map because if it fits within the block’s contig hint, }(hj4hhhNhNubj)}(h **start**h]hstart}(hj 5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh will be block->first_free. This is an attempt to fill the allocation prior to breaking the contig hint. The allocation and boundary maps are updated accordingly if it confirms a valid free area.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj3ubjM)}(h **Return**h]j)}(hj(5h]hReturn}(hj*5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&5ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj3ubjM)}(hOAllocated addr offset in **chunk** on success. -1 if no matching area is found.h](hAllocated addr offset in }(hj>5hhhNhNubj)}(h **chunk**h]hchunk}(hjF5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>5ubh- on success. -1 if no matching area is found.}(hj>5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_free_area (C function)c.pcpu_free_areahNtauh1hhjhhhNhNubh)}(hhh](h)}(h6int pcpu_free_area (struct pcpu_chunk *chunk, int off)h]h)}(h5int pcpu_free_area(struct pcpu_chunk *chunk, int off)h](j)}(hinth]hint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{5hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{5hhhj5hMubh)}(hpcpu_free_areah]j)}(hpcpu_free_areah]hpcpu_free_area}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj{5hhhj5hMubj )}(h#(struct pcpu_chunk *chunk, int off)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hj5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5modnameN classnameNjpjs)}jv]jy)}jlj5sbc.pcpu_free_areaasbuh1hhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjF )}(hjI h]h*}(hj6hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5ubj)}(hchunkh]hchunk}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubj )}(hint offh](j)}(hinth]hint}(hj.6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*6ubj)}(h h]h }(hj<6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*6ubj)}(hoffh]hoff}(hjJ6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*6ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubeh}(h]h ]h"]h$]h&]jjuh1j hj{5hhhj5hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjw5hhhj5hMubah}(h]jr5ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj5hMhjt5hhubj4)}(hhh]jM)}(hfrees the corresponding offseth]hfrees the corresponding offset}(hjt6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjq6hhubah}(h]h ]h"]h$]h&]uh1j3hjt5hhhj5hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj6jHj6jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int off`` addr offset into chunk **Description** This function determines the size of an allocation to free using the boundary bitmap and clears the allocation map. **Return** Number of freed bytes.h](jM)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj6ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hj6h]hstruct pcpu_chunk *chunk}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj6ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj6ubj)}(h#``int off`` addr offset into chunk h](j)}(h ``int off``h]jS)}(hj6h]hint off}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj6ubj)}(hhh]jM)}(haddr offset into chunkh]haddr offset into chunk}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubjM)}(h**Description**h]j)}(hj)7h]h Description}(hj+7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'7ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj6ubjM)}(hsThis function determines the size of an allocation to free using the boundary bitmap and clears the allocation map.h]hsThis function determines the size of an allocation to free using the boundary bitmap and clears the allocation map.}(hj?7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj6ubjM)}(h **Return**h]j)}(hjP7h]hReturn}(hjR7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN7ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj6ubjM)}(hNumber of freed bytes.h]hNumber of freed bytes.}(hjf7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_alloc_first_chunk (C function)c.pcpu_alloc_first_chunkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hQstruct pcpu_chunk * pcpu_alloc_first_chunk (unsigned long tmp_addr, int map_size)h]h)}(hOstruct pcpu_chunk *pcpu_alloc_first_chunk(unsigned long tmp_addr, int map_size)h](j5)}(hj8h]hstruct}(hj7hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj7hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM;ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hM;ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7modnameN classnameNjpjs)}jv]jy)}jlpcpu_alloc_first_chunksbc.pcpu_alloc_first_chunkasbuh1hhj7hhhj7hM;ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hM;ubjF )}(hjI h]h*}(hj7hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj7hhhj7hM;ubh)}(hpcpu_alloc_first_chunkh]j)}(hj7h]hpcpu_alloc_first_chunk}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj7hhhj7hM;ubj )}(h&(unsigned long tmp_addr, int map_size)h](j )}(hunsigned long tmp_addrh](j)}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubj)}(hlongh]hlong}(hj+8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubj)}(h h]h }(hj98hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubj)}(htmp_addrh]htmp_addr}(hjG8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj8ubj )}(h int map_sizeh](j)}(hinth]hint}(hj`8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\8ubj)}(h h]h }(hjn8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\8ubj)}(hmap_sizeh]hmap_size}(hj|8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj8ubeh}(h]h ]h"]h$]h&]jjuh1j hj7hhhj7hM;ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj7hhhj7hM;ubah}(h]j7ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj7hM;hj7hhubj4)}(hhh]jM)}(h)creates chunks that serve the first chunkh]h)creates chunks that serve the first chunk}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM;hj8hhubah}(h]h ]h"]h$]h&]uh1j3hj7hhhj7hM;ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj8jHj8jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long tmp_addr`` the start of the region served ``int map_size`` size of the region served **Description** This is responsible for creating the chunks that serve the first chunk. The base_addr is page aligned down of **tmp_addr** while the region end is page aligned up. Offsets are kept track of to determine the region served. All this is done to appease the bitmap allocator in avoiding partial blocks. **Return** Chunk serving the region at **tmp_addr** of **map_size**.h](jM)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM?hj8ubj)}(hhh](j)}(h:``unsigned long tmp_addr`` the start of the region served h](j)}(h``unsigned long tmp_addr``h]jS)}(hj8h]hunsigned long tmp_addr}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM<hj8ubj)}(hhh]jM)}(hthe start of the region servedh]hthe start of the region served}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hM<hj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hM<hj8ubj)}(h+``int map_size`` size of the region served h](j)}(h``int map_size``h]jS)}(hj 9h]h int map_size}(hj"9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM=hj9ubj)}(hhh]jM)}(hsize of the region servedh]hsize of the region served}(hj99hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj59hM=hj69ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj59hM=hj8ubeh}(h]h ]h"]h$]h&]uh1jhj8ubjM)}(h**Description**h]j)}(hj[9h]h Description}(hj]9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY9ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM?hj8ubjM)}(hX,This is responsible for creating the chunks that serve the first chunk. The base_addr is page aligned down of **tmp_addr** while the region end is page aligned up. Offsets are kept track of to determine the region served. All this is done to appease the bitmap allocator in avoiding partial blocks.h](hoThis is responsible for creating the chunks that serve the first chunk. The base_addr is page aligned down of }(hjq9hhhNhNubj)}(h **tmp_addr**h]htmp_addr}(hjy9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq9ubh while the region end is page aligned up. Offsets are kept track of to determine the region served. All this is done to appease the bitmap allocator in avoiding partial blocks.}(hjq9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM>hj8ubjM)}(h **Return**h]j)}(hj9h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMChj8ubjM)}(h9Chunk serving the region at **tmp_addr** of **map_size**.h](hChunk serving the region at }(hj9hhhNhNubj)}(h **tmp_addr**h]htmp_addr}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh of }(hj9hhhNhNubj)}(h **map_size**h]hmap_size}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMDhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!pcpu_chunk_populated (C function)c.pcpu_chunk_populatedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hRvoid pcpu_chunk_populated (struct pcpu_chunk *chunk, int page_start, int page_end)h]h)}(hQvoid pcpu_chunk_populated(struct pcpu_chunk *chunk, int page_start, int page_end)h](j)}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj :hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj :hMubh)}(hpcpu_chunk_populatedh]j)}(hpcpu_chunk_populatedh]hpcpu_chunk_populated}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj9hhhj :hMubj )}(h8(struct pcpu_chunk *chunk, int page_start, int page_end)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hj::hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj6:ubj)}(h h]h }(hjG:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6:ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hjX:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU:ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjZ:modnameN classnameNjpjs)}jv]jy)}jlj :sbc.pcpu_chunk_populatedasbuh1hhj6:ubj)}(h h]h }(hjx:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6:ubjF )}(hjI h]h*}(hj:hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj6:ubj)}(hchunkh]hchunk}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2:ubj )}(hint page_starth](j)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h page_starth]h page_start}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2:ubj )}(h int page_endh](j)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hpage_endh]hpage_end}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2:ubeh}(h]h ]h"]h$]h&]jjuh1j hj9hhhj :hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj9hhhj :hMubah}(h]j9ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj :hMhj9hhubj4)}(hhh]jM)}(hpost-population bookkeepingh]hpost-population bookkeeping}(hj';hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj$;hhubah}(h]h ]h"]h$]h&]uh1j3hj9hhhj :hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj?;jHj?;jIjJjKuh1hhhhjhNhNubj)}(hXQ**Parameters** ``struct pcpu_chunk *chunk`` pcpu_chunk which got populated ``int page_start`` the start page ``int page_end`` the end page **Description** Pages in [**page_start**,**page_end**) have been populated to **chunk**. Update the bookkeeping information accordingly. Must be called after each successful population.h](jM)}(h**Parameters**h]j)}(hjI;h]h Parameters}(hjK;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG;ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjC;ubj)}(hhh](j)}(h<``struct pcpu_chunk *chunk`` pcpu_chunk which got populated h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hjh;h]hstruct pcpu_chunk *chunk}(hjj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjf;ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjb;ubj)}(hhh]jM)}(hpcpu_chunk which got populatedh]hpcpu_chunk which got populated}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj};hMhj~;ubah}(h]h ]h"]h$]h&]uh1jhjb;ubeh}(h]h ]h"]h$]h&]uh1jhj};hMhj_;ubj)}(h"``int page_start`` the start page h](j)}(h``int page_start``h]jS)}(hj;h]hint page_start}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj;ubj)}(hhh]jM)}(hthe start pageh]hthe start page}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj_;ubj)}(h``int page_end`` the end page h](j)}(h``int page_end``h]jS)}(hj;h]h int page_end}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj;ubj)}(hhh]jM)}(h the end pageh]h the end page}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj_;ubeh}(h]h ]h"]h$]h&]uh1jhjC;ubjM)}(h**Description**h]j)}(hj<h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjC;ubjM)}(hPages in [**page_start**,**page_end**) have been populated to **chunk**. Update the bookkeeping information accordingly. Must be called after each successful population.h](h Pages in [}(hj+<hhhNhNubj)}(h**page_start**h]h page_start}(hj3<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+<ubh&,**page_end**) have been populated to }(hj+<hhhNhNubj)}(h **chunk**h]hchunk}(hjE<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+<ubhd. Update the bookkeeping information accordingly. Must be called after each successful population.}(hj+<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjC;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_chunk_depopulated (C function)c.pcpu_chunk_depopulatedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hTvoid pcpu_chunk_depopulated (struct pcpu_chunk *chunk, int page_start, int page_end)h]h)}(hSvoid pcpu_chunk_depopulated(struct pcpu_chunk *chunk, int page_start, int page_end)h](j)}(hvoidh]hvoid}(hj~<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz<hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz<hhhj<hMubh)}(hpcpu_chunk_depopulatedh]j)}(hpcpu_chunk_depopulatedh]hpcpu_chunk_depopulated}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjz<hhhj<hMubj )}(h8(struct pcpu_chunk *chunk, int page_start, int page_end)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hj<hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj<modnameN classnameNjpjs)}jv]jy)}jlj<sbc.pcpu_chunk_depopulatedasbuh1hhj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjF )}(hjI h]h*}(hj=hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj<ubj)}(hchunkh]hchunk}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj<ubj )}(hint page_starth](j)}(hinth]hint}(hj-=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)=ubj)}(h h]h }(hj;=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)=ubj)}(h page_starth]h page_start}(hjI=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)=ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj<ubj )}(h int page_endh](j)}(hinth]hint}(hjb=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^=ubj)}(h h]h }(hjp=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^=ubj)}(hpage_endh]hpage_end}(hj~=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^=ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj<ubeh}(h]h ]h"]h$]h&]jjuh1j hjz<hhhj<hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjv<hhhj<hMubah}(h]jq<ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj<hMhjs<hhubj4)}(hhh]jM)}(hpost-depopulation bookkeepingh]hpost-depopulation bookkeeping}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj=hhubah}(h]h ]h"]h$]h&]uh1j3hjs<hhhj<hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj=jHj=jIjJjKuh1hhhhjhNhNubj)}(hXX**Parameters** ``struct pcpu_chunk *chunk`` pcpu_chunk which got depopulated ``int page_start`` the start page ``int page_end`` the end page **Description** Pages in [**page_start**,**page_end**) have been depopulated from **chunk**. Update the bookkeeping information accordingly. Must be called after each successful depopulation.h](jM)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj=ubj)}(hhh](j)}(h>``struct pcpu_chunk *chunk`` pcpu_chunk which got depopulated h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hj=h]hstruct pcpu_chunk *chunk}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj=ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj=ubj)}(hhh]jM)}(h pcpu_chunk which got depopulatedh]h pcpu_chunk which got depopulated}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj=ubj)}(h"``int page_start`` the start page h](j)}(h``int page_start``h]jS)}(hj">h]hint page_start}(hj$>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj >ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj>ubj)}(hhh]jM)}(hthe start pageh]hthe start page}(hj;>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7>hMhj8>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj7>hMhj=ubj)}(h``int page_end`` the end page h](j)}(h``int page_end``h]jS)}(hj[>h]h int page_end}(hj]>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjY>ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjU>ubj)}(hhh]jM)}(h the end pageh]h the end page}(hjt>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjp>hMhjq>ubah}(h]h ]h"]h$]h&]uh1jhjU>ubeh}(h]h ]h"]h$]h&]uh1jhjp>hMhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=ubjM)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj=ubjM)}(hPages in [**page_start**,**page_end**) have been depopulated from **chunk**. Update the bookkeeping information accordingly. Must be called after each successful depopulation.h](h Pages in [}(hj>hhhNhNubj)}(h**page_start**h]h page_start}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh*,**page_end**) have been depopulated from }(hj>hhhNhNubj)}(h **chunk**h]hchunk}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubhe. Update the bookkeeping information accordingly. Must be called after each successful depopulation.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_chunk_addr_search (C function)c.pcpu_chunk_addr_searchhNtauh1hhjhhhNhNubh)}(hhh](h)}(h7struct pcpu_chunk * pcpu_chunk_addr_search (void *addr)h]h)}(h5struct pcpu_chunk *pcpu_chunk_addr_search(void *addr)h](j5)}(hj8h]hstruct}(hj>hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj>hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM1ubj)}(h h]h }(hj ?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj ?hM1ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj ?modnameN classnameNjpjs)}jv]jy)}jlpcpu_chunk_addr_searchsbc.pcpu_chunk_addr_searchasbuh1hhj>hhhj ?hM1ubj)}(h h]h }(hj??hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj ?hM1ubjF )}(hjI h]h*}(hjM?hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj>hhhj ?hM1ubh)}(hpcpu_chunk_addr_searchh]j)}(hjhhhj ?hM1ubj )}(h (void *addr)h]j )}(h void *addrh](j)}(hvoidh]hvoid}(hjy?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju?ubjF )}(hjI h]h*}(hj?hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hju?ubj)}(haddrh]haddr}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju?ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjq?ubah}(h]h ]h"]h$]h&]jjuh1j hj>hhhj ?hM1ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj>hhhj ?hM1ubah}(h]j>ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj ?hM1hj>hhubj4)}(hhh]jM)}(h,determine chunk containing specified addressh]h,determine chunk containing specified address}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM1hj?hhubah}(h]h ]h"]h$]h&]uh1j3hj>hhhj ?hM1ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj?jHj?jIjJjKuh1hhhhjhNhNubj)}(hX!**Parameters** ``void *addr`` address for which the chunk needs to be determined. **Description** This is an internal function that handles all but static allocations. Static percpu address values should never be passed into the allocator. **Return** The address of the found chunk.h](jM)}(h**Parameters**h]j)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM5hj?ubj)}(hhh]j)}(hC``void *addr`` address for which the chunk needs to be determined. h](j)}(h``void *addr``h]jS)}(hj @h]h void *addr}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj @ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM2hj@ubj)}(hhh]jM)}(h3address for which the chunk needs to be determined.h]h3address for which the chunk needs to be determined.}(hj&@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"@hM2hj#@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj"@hM2hj@ubah}(h]h ]h"]h$]h&]uh1jhj?ubjM)}(h**Description**h]j)}(hjH@h]h Description}(hjJ@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF@ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM4hj?ubjM)}(hThis is an internal function that handles all but static allocations. Static percpu address values should never be passed into the allocator.h]hThis is an internal function that handles all but static allocations. Static percpu address values should never be passed into the allocator.}(hj^@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM3hj?ubjM)}(h **Return**h]j)}(hjo@h]hReturn}(hjq@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm@ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM6hj?ubjM)}(hThe address of the found chunk.h]hThe address of the found chunk.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM7hj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_alloc (C function) c.pcpu_allochNtauh1hhjhhhNhNubh)}(hhh](h)}(hPvoid __percpu * pcpu_alloc (size_t size, size_t align, bool reserved, gfp_t gfp)h]h)}(hNvoid __percpu *pcpu_alloc(size_t size, size_t align, bool reserved, gfp_t gfp)h](j)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhj@hMubh__percpu}(hj@hhhNhNubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhj@hMubjF )}(hjI h]h*}(hj@hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj@hhhj@hMubh)}(h pcpu_alloch]j)}(h pcpu_alloch]h pcpu_alloc}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj@hhhj@hMubj )}(h5(size_t size, size_t align, bool reserved, gfp_t gfp)h](j )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjAmodnameN classnameNjpjs)}jv]jy)}jlj@sb c.pcpu_allocasbuh1hhj Aubj)}(h h]h }(hj3AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Aubj)}(hsizeh]hsize}(hjAAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Aubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(h size_t alignh](h)}(hhh]j)}(hsize_th]hsize_t}(hj]AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZAubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_AmodnameN classnameNjpjs)}jv]j/A c.pcpu_allocasbuh1hhjVAubj)}(h h]h }(hj{AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVAubj)}(halignh]halign}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(h bool reservedh](j)}(hj.h]hbool}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hreservedh]hreserved}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjAmodnameN classnameNjpjs)}jv]j/A c.pcpu_allocasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hgfph]hgfp}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubeh}(h]h ]h"]h$]h&]jjuh1j hj@hhhj@hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj@hhhj@hMubah}(h]j@ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj@hMhj@hhubj4)}(hhh]jM)}(hthe percpu allocatorh]hthe percpu allocator}(hj/BhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj,Bhhubah}(h]h ]h"]h$]h&]uh1j3hj@hhhj@hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjGBjHjGBjIjJjKuh1hhhhjhNhNubj)}(hX***Parameters** ``size_t size`` size of area to allocate in bytes ``size_t align`` alignment of area (max PAGE_SIZE) ``bool reserved`` allocate from the reserved chunk if available ``gfp_t gfp`` allocation flags **Description** Allocate percpu area of **size** bytes aligned at **align**. If **gfp** doesn't contain ``GFP_KERNEL``, the allocation is atomic. If **gfp** has __GFP_NOWARN then no warning will be triggered on invalid or failed allocation requests. **Return** Percpu pointer to the allocated area on success, NULL on failure.h](jM)}(h**Parameters**h]j)}(hjQBh]h Parameters}(hjSBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOBubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjKBubj)}(hhh](j)}(h2``size_t size`` size of area to allocate in bytes h](j)}(h``size_t size``h]jS)}(hjpBh]h size_t size}(hjrBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnBubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjjBubj)}(hhh]jM)}(h!size of area to allocate in bytesh]h!size of area to allocate in bytes}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjgBubj)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]jS)}(hjBh]h size_t align}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjBubj)}(hhh]jM)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjgBubj)}(h@``bool reserved`` allocate from the reserved chunk if available h](j)}(h``bool reserved``h]jS)}(hjBh]h bool reserved}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjBubj)}(hhh]jM)}(h-allocate from the reserved chunk if availableh]h-allocate from the reserved chunk if available}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjgBubj)}(h``gfp_t gfp`` allocation flags h](j)}(h ``gfp_t gfp``h]jS)}(hjCh]h gfp_t gfp}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjCubj)}(hhh]jM)}(hallocation flagsh]hallocation flags}(hj4ChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0ChMhj1Cubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj0ChMhjgBubeh}(h]h ]h"]h$]h&]uh1jhjKBubjM)}(h**Description**h]j)}(hjVCh]h Description}(hjXChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTCubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjKBubjM)}(hAllocate percpu area of **size** bytes aligned at **align**. If **gfp** doesn't contain ``GFP_KERNEL``, the allocation is atomic. If **gfp** has __GFP_NOWARN then no warning will be triggered on invalid or failed allocation requests.h](hAllocate percpu area of }(hjlChhhNhNubj)}(h**size**h]hsize}(hjtChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlCubh bytes aligned at }(hjlChhhNhNubj)}(h **align**h]halign}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlCubh. If }(hjlChhhNhNubj)}(h**gfp**h]hgfp}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlCubh doesn’t contain }(hjlChhhNhNubjS)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlCubh, the allocation is atomic. If }(hjlChhhNhNubj)}(h**gfp**h]hgfp}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlCubh] has __GFP_NOWARN then no warning will be triggered on invalid or failed allocation requests.}(hjlChhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjKBubjM)}(h **Return**h]j)}(hjCh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjKBubjM)}(hAPercpu pointer to the allocated area on success, NULL on failure.h]hAPercpu pointer to the allocated area on success, NULL on failure.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjKBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_balance_free (C function)c.pcpu_balance_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(h(void pcpu_balance_free (bool empty_only)h]h)}(h'void pcpu_balance_free(bool empty_only)h](j)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj+DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhj*DhMubh)}(hpcpu_balance_freeh]j)}(hpcpu_balance_freeh]hpcpu_balance_free}(hj=DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Dubah}(h]h ](jjeh"]h$]h&]jjuh1hhjDhhhj*DhMubj )}(h(bool empty_only)h]j )}(hbool empty_onlyh](j)}(hj.h]hbool}(hjYDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUDubj)}(h h]h }(hjfDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUDubj)}(h empty_onlyh]h empty_only}(hjtDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQDubah}(h]h ]h"]h$]h&]jjuh1j hjDhhhj*DhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjDhhhj*DhMubah}(h]jDah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj*DhMhjDhhubj4)}(hhh]jM)}(h manage the amount of free chunksh]h manage the amount of free chunks}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDhhubah}(h]h ]h"]h$]h&]uh1j3hjDhhhj*DhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjDjHjDjIjJjKuh1hhhhjhNhNubj)}(hXB**Parameters** ``bool empty_only`` free chunks only if there are no populated pages **Description** If empty_only is ``false``, reclaim all fully free chunks regardless of the number of populated pages. Otherwise, only reclaim chunks that have no populated pages. **Context** pcpu_lock (can be dropped temporarily)h](jM)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDubj)}(hhh]j)}(hE``bool empty_only`` free chunks only if there are no populated pages h](j)}(h``bool empty_only``h]jS)}(hjDh]hbool empty_only}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDubj)}(hhh]jM)}(h0free chunks only if there are no populated pagesh]h0free chunks only if there are no populated pages}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubjM)}(h**Description**h]j)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDubjM)}(hIf empty_only is ``false``, reclaim all fully free chunks regardless of the number of populated pages. Otherwise, only reclaim chunks that have no populated pages.h](hIf empty_only is }(hj0EhhhNhNubjS)}(h ``false``h]hfalse}(hj8EhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0Eubh, reclaim all fully free chunks regardless of the number of populated pages. Otherwise, only reclaim chunks that have no populated pages.}(hj0EhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDubjM)}(h **Context**h]j)}(hjSEh]hContext}(hjUEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQEubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDubjM)}(h&pcpu_lock (can be dropped temporarily)h]h&pcpu_lock (can be dropped temporarily)}(hjiEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_balance_populated (C function)c.pcpu_balance_populatedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h"void pcpu_balance_populated (void)h]h)}(h!void pcpu_balance_populated(void)h](j)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjEhMubh)}(hpcpu_balance_populatedh]j)}(hpcpu_balance_populatedh]hpcpu_balance_populated}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1hhjEhhhjEhMubj )}(h(void)h]j )}(hvoidh]j)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]noemphjjuh1j hjEubah}(h]h ]h"]h$]h&]jjuh1j hjEhhhjEhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjEhhhjEhMubah}(h]jEah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjEhMhjEhhubj4)}(hhh]jM)}(h$manage the amount of populated pagesh]h$manage the amount of populated pages}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjEhhubah}(h]h ]h"]h$]h&]uh1j3hjEhhhjEhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjFjHjFjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``void`` no arguments **Description** Maintain a certain amount of populated pages to satisfy atomic allocations. It is possible that this is called when physical memory is scarce causing OOM killer to be triggered. We should avoid doing so until an actual allocation causes the failure as it is possible that requests can be serviced from already backed regions. **Context** pcpu_lock (can be dropped temporarily)h](jM)}(h**Parameters**h]j)}(hj!Fh]h Parameters}(hj#FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjFubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]jS)}(hj@Fh]hvoid}(hjBFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>Fubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhj:Fubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hjYFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUFhKhjVFubah}(h]h ]h"]h$]h&]uh1jhj:Fubeh}(h]h ]h"]h$]h&]uh1jhjUFhKhj7Fubah}(h]h ]h"]h$]h&]uh1jhjFubjM)}(h**Description**h]j)}(hj{Fh]h Description}(hj}FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyFubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhjFubjM)}(hXFMaintain a certain amount of populated pages to satisfy atomic allocations. It is possible that this is called when physical memory is scarce causing OOM killer to be triggered. We should avoid doing so until an actual allocation causes the failure as it is possible that requests can be serviced from already backed regions.h]hXFMaintain a certain amount of populated pages to satisfy atomic allocations. It is possible that this is called when physical memory is scarce causing OOM killer to be triggered. We should avoid doing so until an actual allocation causes the failure as it is possible that requests can be serviced from already backed regions.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjFubjM)}(h **Context**h]j)}(hjFh]hContext}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjFubjM)}(h&pcpu_lock (can be dropped temporarily)h]h&pcpu_lock (can be dropped temporarily)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_reclaim_populated (C function)c.pcpu_reclaim_populatedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h"void pcpu_reclaim_populated (void)h]h)}(h!void pcpu_reclaim_populated(void)h](j)}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM$ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhM$ubh)}(hpcpu_reclaim_populatedh]j)}(hpcpu_reclaim_populatedh]hpcpu_reclaim_populated}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1hhjFhhhjFhM$ubj )}(h(void)h]j )}(hvoidh]j)}(hvoidh]hvoid}(hj$GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Gubah}(h]h ]h"]h$]h&]noemphjjuh1j hjGubah}(h]h ]h"]h$]h&]jjuh1j hjFhhhjFhM$ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjFhhhjFhM$ubah}(h]jFah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjFhM$hjFhhubj4)}(hhh]jM)}(h3scan over to_depopulate chunks and free empty pagesh]h3scan over to_depopulate chunks and free empty pages}(hjNGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM$hjKGhhubah}(h]h ]h"]h$]h&]uh1j3hjFhhhjFhM$ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjfGjHjfGjIjJjKuh1hhhhjhNhNubj)}(hXJ**Parameters** ``void`` no arguments **Description** Scan over chunks in the depopulate list and try to release unused populated pages back to the system. Depopulated chunks are sidelined to prevent repopulating these pages unless required. Fully free chunks are reintegrated and freed accordingly (1 is kept around). If we drop below the empty populated pages threshold, reintegrate the chunk if it has empty free pages. Each chunk is scanned in the reverse order to keep populated pages close to the beginning of the chunk. **Context** pcpu_lock (can be dropped temporarily)h](jM)}(h**Parameters**h]j)}(hjpGh]h Parameters}(hjrGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnGubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM(hjjGubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]jS)}(hjGh]hvoid}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhjGubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhKhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjGubah}(h]h ]h"]h$]h&]uh1jhjjGubjM)}(h**Description**h]j)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhjjGubjM)}(hXScan over chunks in the depopulate list and try to release unused populated pages back to the system. Depopulated chunks are sidelined to prevent repopulating these pages unless required. Fully free chunks are reintegrated and freed accordingly (1 is kept around). If we drop below the empty populated pages threshold, reintegrate the chunk if it has empty free pages. Each chunk is scanned in the reverse order to keep populated pages close to the beginning of the chunk.h]hXScan over chunks in the depopulate list and try to release unused populated pages back to the system. Depopulated chunks are sidelined to prevent repopulating these pages unless required. Fully free chunks are reintegrated and freed accordingly (1 is kept around). If we drop below the empty populated pages threshold, reintegrate the chunk if it has empty free pages. Each chunk is scanned in the reverse order to keep populated pages close to the beginning of the chunk.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM%hjjGubjM)}(h **Context**h]j)}(hjGh]hContext}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM-hjjGubjM)}(h&pcpu_lock (can be dropped temporarily)h]h&pcpu_lock (can be dropped temporarily)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM.hjjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h pcpu_balance_workfn (C function)c.pcpu_balance_workfnhNtauh1hhjhhhNhNubh)}(hhh](h)}(h3void pcpu_balance_workfn (struct work_struct *work)h]h)}(h2void pcpu_balance_workfn(struct work_struct *work)h](j)}(hvoidh]hvoid}(hj6HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2HhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjEHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2HhhhjDHhMubh)}(hpcpu_balance_workfnh]j)}(hpcpu_balance_workfnh]hpcpu_balance_workfn}(hjWHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSHubah}(h]h ](jjeh"]h$]h&]jjuh1hhj2HhhhjDHhMubj )}(h(struct work_struct *work)h]j )}(hstruct work_struct *workh](j5)}(hj8h]hstruct}(hjsHhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjoHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoHubh)}(hhh]j)}(h work_structh]h work_struct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjHmodnameN classnameNjpjs)}jv]jy)}jljYHsbc.pcpu_balance_workfnasbuh1hhjoHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoHubjF )}(hjI h]h*}(hjHhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjoHubj)}(hworkh]hwork}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkHubah}(h]h ]h"]h$]h&]jjuh1j hj2HhhhjDHhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj.HhhhjDHhMubah}(h]j)Hah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjDHhMhj+Hhhubj4)}(hhh]jM)}(h4manage the amount of free chunks and populated pagesh]h4manage the amount of free chunks and populated pages}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjHhhubah}(h]h ]h"]h$]h&]uh1j3hj+HhhhjDHhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjIjHjIjIjJjKuh1hhhhjhNhNubj)}(hX **Parameters** ``struct work_struct *work`` unused **Description** For each chunk type, manage the number of fully free chunks and the number of populated pages. An important thing to consider is when pages are freed and how they contribute to the global counts.h](jM)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjIubj)}(hhh]j)}(h$``struct work_struct *work`` unused h](j)}(h``struct work_struct *work``h]jS)}(hj7Ih]hstruct work_struct *work}(hj9IhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5Iubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj1Iubj)}(hhh]jM)}(hunusedh]hunused}(hjPIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLIhMhjMIubah}(h]h ]h"]h$]h&]uh1jhj1Iubeh}(h]h ]h"]h$]h&]uh1jhjLIhMhj.Iubah}(h]h ]h"]h$]h&]uh1jhjIubjM)}(h**Description**h]j)}(hjrIh]h Description}(hjtIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpIubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjIubjM)}(hFor each chunk type, manage the number of fully free chunks and the number of populated pages. An important thing to consider is when pages are freed and how they contribute to the global counts.h]hFor each chunk type, manage the number of fully free chunks and the number of populated pages. An important thing to consider is when pages are freed and how they contribute to the global counts.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfree_percpu (C function) c.free_percpuhNtauh1hhjhhhNhNubh)}(hhh](h)}(h%void free_percpu (void __percpu *ptr)h]h)}(h$void free_percpu(void __percpu *ptr)h](j)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjIhMubh)}(h free_percpuh]j)}(h free_percpuh]h free_percpu}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1hhjIhhhjIhMubj )}(h(void __percpu *ptr)h]j )}(hvoid __percpu *ptrh](j)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh__percpu}(hjIhhhNhNubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjF )}(hjI h]h*}(hj"JhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjIubj)}(hptrh]hptr}(hj/JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubah}(h]h ]h"]h$]h&]jjuh1j hjIhhhjIhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjIhhhjIhMubah}(h]jIah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjIhMhjIhhubj4)}(hhh]jM)}(hfree percpu areah]hfree percpu area}(hjYJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjVJhhubah}(h]h ]h"]h$]h&]uh1j3hjIhhhjIhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjqJjHjqJjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``void __percpu *ptr`` pointer to area to free **Description** Free percpu area **ptr**. **Context** Can be called from atomic context.h](jM)}(h**Parameters**h]j)}(hj{Jh]h Parameters}(hj}JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyJubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjuJubj)}(hhh]j)}(h/``void __percpu *ptr`` pointer to area to free h](j)}(h``void __percpu *ptr``h]jS)}(hjJh]hvoid __percpu *ptr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjJubj)}(hhh]jM)}(hpointer to area to freeh]hpointer to area to free}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjuJubjM)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjuJubjM)}(hFree percpu area **ptr**.h](hFree percpu area }(hjJhhhNhNubj)}(h**ptr**h]hptr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjuJubjM)}(h **Context**h]j)}(hjKh]hContext}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Kubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjuJubjM)}(h"Can be called from atomic context.h]h"Can be called from atomic context.}(hj$KhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjuJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%is_kernel_percpu_address (C function)c.is_kernel_percpu_addresshNtauh1hhjhhhNhNubh)}(hhh](h)}(h2bool is_kernel_percpu_address (unsigned long addr)h]h)}(h1bool is_kernel_percpu_address(unsigned long addr)h](j)}(hj.h]hbool}(hjSKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOKhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjaKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOKhhhj`KhM ubh)}(his_kernel_percpu_addressh]j)}(his_kernel_percpu_addressh]his_kernel_percpu_address}(hjsKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoKubah}(h]h ](jjeh"]h$]h&]jjuh1hhjOKhhhj`KhM ubj )}(h(unsigned long addr)h]j )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hlongh]hlong}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(haddrh]haddr}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubah}(h]h ]h"]h$]h&]jjuh1j hjOKhhhj`KhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjKKhhhj`KhM ubah}(h]jFKah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj`KhM hjHKhhubj4)}(hhh]jM)}(h/test whether address is from static percpu areah]h/test whether address is from static percpu area}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjKhhubah}(h]h ]h"]h$]h&]uh1j3hjHKhhhj`KhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj LjHj LjIjJjKuh1hhhhjhNhNubj)}(hXB**Parameters** ``unsigned long addr`` address to test **Description** Test whether **addr** belongs to in-kernel static percpu area. Module static percpu areas are not considered. For those, use is_module_percpu_address(). **Return** ``true`` if **addr** is from in-kernel static percpu area, ``false`` otherwise.h](jM)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj Lubj)}(hhh]j)}(h'``unsigned long addr`` address to test h](j)}(h``unsigned long addr``h]jS)}(hj2Lh]hunsigned long addr}(hj4LhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0Lubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj,Lubj)}(hhh]jM)}(haddress to testh]haddress to test}(hjKLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGLhM hjHLubah}(h]h ]h"]h$]h&]uh1jhj,Lubeh}(h]h ]h"]h$]h&]uh1jhjGLhM hj)Lubah}(h]h ]h"]h$]h&]uh1jhj LubjM)}(h**Description**h]j)}(hjmLh]h Description}(hjoLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkLubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj LubjM)}(hTest whether **addr** belongs to in-kernel static percpu area. Module static percpu areas are not considered. For those, use is_module_percpu_address().h](h Test whether }(hjLhhhNhNubj)}(h**addr**h]haddr}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh belongs to in-kernel static percpu area. Module static percpu areas are not considered. For those, use is_module_percpu_address().}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj LubjM)}(h **Return**h]j)}(hjLh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj LubjM)}(hO``true`` if **addr** is from in-kernel static percpu area, ``false`` otherwise.h](jS)}(h``true``h]htrue}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubh if }(hjLhhhNhNubj)}(h**addr**h]haddr}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh' is from in-kernel static percpu area, }(hjLhhhNhNubjS)}(h ``false``h]hfalse}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubh otherwise.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj Lubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h per_cpu_ptr_to_phys (C function)c.per_cpu_ptr_to_physhNtauh1hhjhhhNhNubh)}(hhh](h)}(h,phys_addr_t per_cpu_ptr_to_phys (void *addr)h]h)}(h+phys_addr_t per_cpu_ptr_to_phys(void *addr)h](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj"MmodnameN classnameNjpjs)}jv]jy)}jlper_cpu_ptr_to_physsbc.per_cpu_ptr_to_physasbuh1hhjMhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjBMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhjAMhM ubh)}(hper_cpu_ptr_to_physh]j)}(hj>Mh]hper_cpu_ptr_to_phys}(hjTMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPMubah}(h]h ](jjeh"]h$]h&]jjuh1hhjMhhhjAMhM ubj )}(h (void *addr)h]j )}(h void *addrh](j)}(hvoidh]hvoid}(hjoMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkMubj)}(h h]h }(hj}MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkMubjF )}(hjI h]h*}(hjMhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjkMubj)}(haddrh]haddr}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjgMubah}(h]h ]h"]h$]h&]jjuh1j hjMhhhjAMhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjMhhhjAMhM ubah}(h]jMah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjAMhM hjMhhubj4)}(hhh]jM)}(h5convert translated percpu address to physical addressh]h5convert translated percpu address to physical address}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjMhhubah}(h]h ]h"]h$]h&]uh1j3hjMhhhjAMhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjMjHjMjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``void *addr`` the address to be converted to physical address **Description** Given **addr** which is dereferenceable address obtained via one of percpu access macros, this function translates it into its physical address. The caller is responsible for ensuring **addr** stays valid until this function finishes. percpu allocator has special setup for the first chunk, which currently supports either embedding in linear address space or vmalloc mapping, and, from the second one, the backing allocator (currently either vm or km) provides translation. The addr can be translated simply without checking if it falls into the first chunk. But the current code reflects better how percpu allocator actually works, and the verification can discover both bugs in percpu allocator itself and per_cpu_ptr_to_phys() callers. So we keep current code. **Return** The physical address for **addr**.h](jM)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjMubj)}(hhh]j)}(h?``void *addr`` the address to be converted to physical address h](j)}(h``void *addr``h]jS)}(hjNh]h void *addr}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjMubj)}(hhh]jM)}(h/the address to be converted to physical addressh]h/the address to be converted to physical address}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhM hjNubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjNhM hjMubah}(h]h ]h"]h$]h&]uh1jhjMubjM)}(h**Description**h]j)}(hj>Nh]h Description}(hj@NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhj OhM_ ubjF )}(hjI h]h*}(hjLOhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjNhhhj OhM_ ubh)}(hpcpu_alloc_alloc_infoh]j)}(hj;Oh]hpcpu_alloc_alloc_info}(hj]OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYOubah}(h]h ](jjeh"]h$]h&]jjuh1hhjNhhhj OhM_ ubj )}(h(int nr_groups, int nr_units)h](j )}(h int nr_groupsh](j)}(hinth]hint}(hjxOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtOubj)}(h nr_groupsh]h nr_groups}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtOubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpOubj )}(h int nr_unitsh](j)}(hinth]hint}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hnr_unitsh]hnr_units}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpOubeh}(h]h ]h"]h$]h&]jjuh1j hjNhhhj OhM_ ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjNhhhj OhM_ ubah}(h]jNah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj OhM_ hjNhhubj4)}(hhh]jM)}(hallocate percpu allocation infoh]hallocate percpu allocation info}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM_ hjOhhubah}(h]h ]h"]h$]h&]uh1j3hjNhhhj OhM_ ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj PjHj PjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``int nr_groups`` the number of groups ``int nr_units`` the number of units **Description** Allocate ai which is large enough for **nr_groups** groups containing **nr_units** units. The returned ai's groups[0].cpu_map points to the cpu_map array which is long enough for **nr_units** and filled with NR_CPUS. It's the caller's responsibility to initialize cpu_map pointer of other groups. **Return** Pointer to the allocated pcpu_alloc_info on success, NULL on failure.h](jM)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMc hjPubj)}(hhh](j)}(h'``int nr_groups`` the number of groups h](j)}(h``int nr_groups``h]jS)}(hj4Ph]h int nr_groups}(hj6PhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2Pubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM` hj.Pubj)}(hhh]jM)}(hthe number of groupsh]hthe number of groups}(hjMPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIPhM` hjJPubah}(h]h ]h"]h$]h&]uh1jhj.Pubeh}(h]h ]h"]h$]h&]uh1jhjIPhM` hj+Pubj)}(h%``int nr_units`` the number of units h](j)}(h``int nr_units``h]jS)}(hjmPh]h int nr_units}(hjoPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjkPubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMa hjgPubj)}(hhh]jM)}(hthe number of unitsh]hthe number of units}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhMa hjPubah}(h]h ]h"]h$]h&]uh1jhjgPubeh}(h]h ]h"]h$]h&]uh1jhjPhMa hj+Pubeh}(h]h ]h"]h$]h&]uh1jhjPubjM)}(h**Description**h]j)}(hjPh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMc hjPubjM)}(hX*Allocate ai which is large enough for **nr_groups** groups containing **nr_units** units. The returned ai's groups[0].cpu_map points to the cpu_map array which is long enough for **nr_units** and filled with NR_CPUS. It's the caller's responsibility to initialize cpu_map pointer of other groups.h](h&Allocate ai which is large enough for }(hjPhhhNhNubj)}(h **nr_groups**h]h nr_groups}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh groups containing }(hjPhhhNhNubj)}(h **nr_units**h]hnr_units}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubhd units. The returned ai’s groups[0].cpu_map points to the cpu_map array which is long enough for }(hjPhhhNhNubj)}(h **nr_units**h]hnr_units}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubhn and filled with NR_CPUS. It’s the caller’s responsibility to initialize cpu_map pointer of other groups.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMb hjPubjM)}(h **Return**h]j)}(hjQh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMh hjPubjM)}(hEPointer to the allocated pcpu_alloc_info on success, NULL on failure.h]hEPointer to the allocated pcpu_alloc_info on success, NULL on failure.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMi hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!pcpu_free_alloc_info (C function)c.pcpu_free_alloc_infohNtauh1hhjhhhNhNubh)}(hhh](h)}(h6void pcpu_free_alloc_info (struct pcpu_alloc_info *ai)h]h)}(h5void pcpu_free_alloc_info(struct pcpu_alloc_info *ai)h](j)}(hvoidh]hvoid}(hjJQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFQhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjYQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFQhhhjXQhM ubh)}(hpcpu_free_alloc_infoh]j)}(hpcpu_free_alloc_infoh]hpcpu_free_alloc_info}(hjkQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgQubah}(h]h ](jjeh"]h$]h&]jjuh1hhjFQhhhjXQhM ubj )}(h(struct pcpu_alloc_info *ai)h]j )}(hstruct pcpu_alloc_info *aih](j5)}(hj8h]hstruct}(hjQhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjQmodnameN classnameNjpjs)}jv]jy)}jljmQsbc.pcpu_free_alloc_infoasbuh1hhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjF )}(hjI h]h*}(hjQhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjQubj)}(haih]hai}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQubah}(h]h ]h"]h$]h&]jjuh1j hjFQhhhjXQhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjBQhhhjXQhM ubah}(h]j=Qah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjXQhM hj?Qhhubj4)}(hhh]jM)}(hfree percpu allocation infoh]hfree percpu allocation info}(hj RhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjRhhubah}(h]h ]h"]h$]h&]uh1j3hj?QhhhjXQhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj"RjHj"RjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct pcpu_alloc_info *ai`` pcpu_alloc_info to free **Description** Free **ai** which was allocated by pcpu_alloc_alloc_info().h](jM)}(h**Parameters**h]j)}(hj,Rh]h Parameters}(hj.RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Rubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj&Rubj)}(hhh]j)}(h7``struct pcpu_alloc_info *ai`` pcpu_alloc_info to free h](j)}(h``struct pcpu_alloc_info *ai``h]jS)}(hjKRh]hstruct pcpu_alloc_info *ai}(hjMRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIRubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjERubj)}(hhh]jM)}(hpcpu_alloc_info to freeh]hpcpu_alloc_info to free}(hjdRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`RhM hjaRubah}(h]h ]h"]h$]h&]uh1jhjERubeh}(h]h ]h"]h$]h&]uh1jhj`RhM hjBRubah}(h]h ]h"]h$]h&]uh1jhj&RubjM)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj&RubjM)}(h;Free **ai** which was allocated by pcpu_alloc_alloc_info().h](hFree }(hjRhhhNhNubj)}(h**ai**h]hai}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh0 which was allocated by pcpu_alloc_alloc_info().}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj&Rubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!pcpu_dump_alloc_info (C function)c.pcpu_dump_alloc_infohNtauh1hhjhhhNhNubh)}(hhh](h)}(hMvoid pcpu_dump_alloc_info (const char *lvl, const struct pcpu_alloc_info *ai)h]h)}(hLvoid pcpu_dump_alloc_info(const char *lvl, const struct pcpu_alloc_info *ai)h](j)}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjRhM ubh)}(hpcpu_dump_alloc_infoh]j)}(hpcpu_dump_alloc_infoh]hpcpu_dump_alloc_info}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1hhjRhhhjRhM ubj )}(h3(const char *lvl, const struct pcpu_alloc_info *ai)h](j )}(hconst char *lvlh](j5)}(hjh]hconst}(hjShhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjSubj)}(h h]h }(hj'ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hcharh]hchar}(hj5ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjCShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjF )}(hjI h]h*}(hjQShhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjSubj)}(hlvlh]hlvl}(hj^ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjSubj )}(h const struct pcpu_alloc_info *aih](j5)}(hjh]hconst}(hjwShhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsSubj5)}(hj8h]hstruct}(hjShhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsSubh)}(hhh]j)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjSmodnameN classnameNjpjs)}jv]jy)}jljSsbc.pcpu_dump_alloc_infoasbuh1hhjsSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsSubjF )}(hjI h]h*}(hjShhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsSubj)}(haih]hai}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjSubeh}(h]h ]h"]h$]h&]jjuh1j hjRhhhjRhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjRhhhjRhM ubah}(h]jRah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjRhM hjRhhubj4)}(hhh]jM)}(h+print out information about pcpu_alloc_infoh]h+print out information about pcpu_alloc_info}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjThhubah}(h]h ]h"]h$]h&]uh1j3hjRhhhjRhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj-TjHj-TjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``const char *lvl`` loglevel ``const struct pcpu_alloc_info *ai`` allocation info to dump **Description** Print out information about **ai** using loglevel **lvl**.h](jM)}(h**Parameters**h]j)}(hj7Th]h Parameters}(hj9ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5Tubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj1Tubj)}(hhh](j)}(h``const char *lvl`` loglevel h](j)}(h``const char *lvl``h]jS)}(hjVTh]hconst char *lvl}(hjXThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjTTubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPTubj)}(hhh]jM)}(hloglevelh]hloglevel}(hjoThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjkThM hjlTubah}(h]h ]h"]h$]h&]uh1jhjPTubeh}(h]h ]h"]h$]h&]uh1jhjkThM hjMTubj)}(h=``const struct pcpu_alloc_info *ai`` allocation info to dump h](j)}(h$``const struct pcpu_alloc_info *ai``h]jS)}(hjTh]h const struct pcpu_alloc_info *ai}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjTubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjTubj)}(hhh]jM)}(hallocation info to dumph]hallocation info to dump}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjThM hjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThM hjMTubeh}(h]h ]h"]h$]h&]uh1jhj1TubjM)}(h**Description**h]j)}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj1TubjM)}(h:Print out information about **ai** using loglevel **lvl**.h](hPrint out information about }(hjThhhNhNubj)}(h**ai**h]hai}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh using loglevel }(hjThhhNhNubj)}(h**lvl**h]hlvl}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj1Tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_setup_first_chunk (C function)c.pcpu_setup_first_chunkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hOvoid pcpu_setup_first_chunk (const struct pcpu_alloc_info *ai, void *base_addr)h]h)}(hNvoid pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai, void *base_addr)h](j)}(hvoidh]hvoid}(hj3UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/UhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjBUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/UhhhjAUhM ubh)}(hpcpu_setup_first_chunkh]j)}(hpcpu_setup_first_chunkh]hpcpu_setup_first_chunk}(hjTUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPUubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/UhhhjAUhM ubj )}(h3(const struct pcpu_alloc_info *ai, void *base_addr)h](j )}(h const struct pcpu_alloc_info *aih](j5)}(hjh]hconst}(hjpUhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlUubj)}(h h]h }(hj}UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlUubj5)}(hj8h]hstruct}(hjUhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlUubh)}(hhh]j)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jy)}jljVUsbc.pcpu_setup_first_chunkasbuh1hhjlUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlUubjF )}(hjI h]h*}(hjUhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjlUubj)}(haih]hai}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlUubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjhUubj )}(hvoid *base_addrh](j)}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hj VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjF )}(hjI h]h*}(hjVhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjUubj)}(h base_addrh]h base_addr}(hj&VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjhUubeh}(h]h ]h"]h$]h&]jjuh1j hj/UhhhjAUhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj+UhhhjAUhM ubah}(h]j&Uah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjAUhM hj(Uhhubj4)}(hhh]jM)}(h!initialize the first percpu chunkh]h!initialize the first percpu chunk}(hjPVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjMVhhubah}(h]h ]h"]h$]h&]uh1j3hj(UhhhjAUhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjhVjHjhVjIjJjKuh1hhhhjhNhNubj)}(hXz **Parameters** ``const struct pcpu_alloc_info *ai`` pcpu_alloc_info describing how to percpu area is shaped ``void *base_addr`` mapped address **Description** Initialize the first percpu chunk which contains the kernel static percpu area. This function is to be called from arch percpu area setup path. **ai** contains all information necessary to initialize the first chunk and prime the dynamic percpu allocator. **ai->static_size** is the size of static percpu area. **ai->reserved_size**, if non-zero, specifies the amount of bytes to reserve after the static area in the first chunk. This reserves the first chunk such that it's available only through reserved percpu allocation. This is primarily used to serve module percpu static areas on architectures where the addressing model has limited offset range for symbol relocations to guarantee module percpu symbols fall inside the relocatable range. **ai->dyn_size** determines the number of bytes available for dynamic allocation in the first chunk. The area between **ai->static_size** + **ai->reserved_size** + **ai->dyn_size** and **ai->unit_size** is unused. **ai->unit_size** specifies unit size and must be aligned to PAGE_SIZE and equal to or larger than **ai->static_size** + **ai->reserved_size** + **ai->dyn_size**. **ai->atom_size** is the allocation atom size and used as alignment for vm areas. **ai->alloc_size** is the allocation size and always multiple of **ai->atom_size**. This is larger than **ai->atom_size** if **ai->unit_size** is larger than **ai->atom_size**. **ai->nr_groups** and **ai->groups** describe virtual memory layout of percpu areas. Units which should be colocated are put into the same group. Dynamic VM areas will be allocated according to these groupings. If **ai->nr_groups** is zero, a single group containing all units is assumed. The caller should have mapped the first chunk at **base_addr** and copied static data to each unit. The first chunk will always contain a static and a dynamic region. However, the static region is not managed by any chunk. If the first chunk also contains a reserved region, it is served by two chunks - one for the reserved region and one for the dynamic region. They share the same vm, but use offset regions in the area allocation map. The chunk serving the dynamic region is circulated in the chunk slots and available for dynamic allocation like any other chunk.h](jM)}(h**Parameters**h]j)}(hjrVh]h Parameters}(hjtVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpVubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubj)}(hhh](j)}(h]``const struct pcpu_alloc_info *ai`` pcpu_alloc_info describing how to percpu area is shaped h](j)}(h$``const struct pcpu_alloc_info *ai``h]jS)}(hjVh]h const struct pcpu_alloc_info *ai}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjVubj)}(hhh]jM)}(h7pcpu_alloc_info describing how to percpu area is shapedh]h7pcpu_alloc_info describing how to percpu area is shaped}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhM hjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhM hjVubj)}(h#``void *base_addr`` mapped address h](j)}(h``void *base_addr``h]jS)}(hjVh]hvoid *base_addr}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjVubj)}(hhh]jM)}(hmapped addressh]hmapped address}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhM hjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhM hjVubeh}(h]h ]h"]h$]h&]uh1jhjlVubjM)}(h**Description**h]j)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubjM)}(hInitialize the first percpu chunk which contains the kernel static percpu area. This function is to be called from arch percpu area setup path.h]hInitialize the first percpu chunk which contains the kernel static percpu area. This function is to be called from arch percpu area setup path.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubjM)}(ho**ai** contains all information necessary to initialize the first chunk and prime the dynamic percpu allocator.h](j)}(h**ai**h]hai}(hj.WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Wubhi contains all information necessary to initialize the first chunk and prime the dynamic percpu allocator.}(hj*WhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubjM)}(h6**ai->static_size** is the size of static percpu area.h](j)}(h**ai->static_size**h]hai->static_size}(hjKWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGWubh# is the size of static percpu area.}(hjGWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubjM)}(hX**ai->reserved_size**, if non-zero, specifies the amount of bytes to reserve after the static area in the first chunk. This reserves the first chunk such that it's available only through reserved percpu allocation. This is primarily used to serve module percpu static areas on architectures where the addressing model has limited offset range for symbol relocations to guarantee module percpu symbols fall inside the relocatable range.h](j)}(h**ai->reserved_size**h]hai->reserved_size}(hjhWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdWubhX, if non-zero, specifies the amount of bytes to reserve after the static area in the first chunk. This reserves the first chunk such that it’s available only through reserved percpu allocation. This is primarily used to serve module percpu static areas on architectures where the addressing model has limited offset range for symbol relocations to guarantee module percpu symbols fall inside the relocatable range.}(hjdWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubjM)}(h**ai->dyn_size** determines the number of bytes available for dynamic allocation in the first chunk. The area between **ai->static_size** + **ai->reserved_size** + **ai->dyn_size** and **ai->unit_size** is unused.h](j)}(h**ai->dyn_size**h]h ai->dyn_size}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubhg determines the number of bytes available for dynamic allocation in the first chunk. The area between }(hjWhhhNhNubj)}(h**ai->static_size**h]hai->static_size}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh + }(hjWhhhNhNubj)}(h**ai->reserved_size**h]hai->reserved_size}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh + }(hjWhhhNhNubj)}(h**ai->dyn_size**h]h ai->dyn_size}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh and }(hjWhhhNhNubj)}(h**ai->unit_size**h]h ai->unit_size}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh is unused.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubjM)}(h**ai->unit_size** specifies unit size and must be aligned to PAGE_SIZE and equal to or larger than **ai->static_size** + **ai->reserved_size** + **ai->dyn_size**.h](j)}(h**ai->unit_size**h]h ai->unit_size}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubhR specifies unit size and must be aligned to PAGE_SIZE and equal to or larger than }(hjWhhhNhNubj)}(h**ai->static_size**h]hai->static_size}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh + }(hjWhhhNhNubj)}(h**ai->reserved_size**h]hai->reserved_size}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh + }(hjWhhhNhNubj)}(h**ai->dyn_size**h]h ai->dyn_size}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubjM)}(hQ**ai->atom_size** is the allocation atom size and used as alignment for vm areas.h](j)}(h**ai->atom_size**h]h ai->atom_size}(hj=XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Xubh@ is the allocation atom size and used as alignment for vm areas.}(hj9XhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubjM)}(h**ai->alloc_size** is the allocation size and always multiple of **ai->atom_size**. This is larger than **ai->atom_size** if **ai->unit_size** is larger than **ai->atom_size**.h](j)}(h**ai->alloc_size**h]hai->alloc_size}(hjZXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVXubh/ is the allocation size and always multiple of }(hjVXhhhNhNubj)}(h**ai->atom_size**h]h ai->atom_size}(hjlXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVXubh. This is larger than }(hjVXhhhNhNubj)}(h**ai->atom_size**h]h ai->atom_size}(hj~XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVXubh if }(hjVXhhhNhNubj)}(h**ai->unit_size**h]h ai->unit_size}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVXubh is larger than }(hjVXhhhNhNubj)}(h**ai->atom_size**h]h ai->atom_size}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVXubh.}(hjVXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubjM)}(hX#**ai->nr_groups** and **ai->groups** describe virtual memory layout of percpu areas. Units which should be colocated are put into the same group. Dynamic VM areas will be allocated according to these groupings. If **ai->nr_groups** is zero, a single group containing all units is assumed.h](j)}(h**ai->nr_groups**h]h ai->nr_groups}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh and }(hjXhhhNhNubj)}(h**ai->groups**h]h ai->groups}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh describe virtual memory layout of percpu areas. Units which should be colocated are put into the same group. Dynamic VM areas will be allocated according to these groupings. If }(hjXhhhNhNubj)}(h**ai->nr_groups**h]h ai->nr_groups}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh9 is zero, a single group containing all units is assumed.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubjM)}(hcThe caller should have mapped the first chunk at **base_addr** and copied static data to each unit.h](h1The caller should have mapped the first chunk at }(hjXhhhNhNubj)}(h **base_addr**h]h base_addr}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh% and copied static data to each unit.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubjM)}(hXThe first chunk will always contain a static and a dynamic region. However, the static region is not managed by any chunk. If the first chunk also contains a reserved region, it is served by two chunks - one for the reserved region and one for the dynamic region. They share the same vm, but use offset regions in the area allocation map. The chunk serving the dynamic region is circulated in the chunk slots and available for dynamic allocation like any other chunk.h]hXThe first chunk will always contain a static and a dynamic region. However, the static region is not managed by any chunk. If the first chunk also contains a reserved region, it is served by two chunks - one for the reserved region and one for the dynamic region. They share the same vm, but use offset regions in the area allocation map. The chunk serving the dynamic region is circulated in the chunk slots and available for dynamic allocation like any other chunk.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"pcpu_build_alloc_info (C function)c.pcpu_build_alloc_infohNtauh1hhjhhhNhNubh)}(hhh](h)}(hstruct pcpu_alloc_info * pcpu_build_alloc_info (size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn)h]h)}(hstruct pcpu_alloc_info *pcpu_build_alloc_info(size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn)h](j5)}(hj8h]hstruct}(hjLYhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjHYhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjZYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHYhhhjYYhM ubh)}(hhh]j)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hjkYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmYmodnameN classnameNjpjs)}jv]jy)}jlpcpu_build_alloc_infosbc.pcpu_build_alloc_infoasbuh1hhjHYhhhjYYhM ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHYhhhjYYhM ubjF )}(hjI h]h*}(hjYhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjHYhhhjYYhM ubh)}(hpcpu_build_alloc_infoh]j)}(hjYh]hpcpu_build_alloc_info}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1hhjHYhhhjYYhM ubj )}(hd(size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn)h](j )}(hsize_t reserved_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYmodnameN classnameNjpjs)}jv]jYc.pcpu_build_alloc_infoasbuh1hhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h reserved_sizeh]h reserved_size}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(hsize_t dyn_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjZmodnameN classnameNjpjs)}jv]jYc.pcpu_build_alloc_infoasbuh1hhj Zubj)}(h h]h }(hj/ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Zubj)}(hdyn_sizeh]hdyn_size}(hj=ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Zubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(hsize_t atom_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjYZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj[ZmodnameN classnameNjpjs)}jv]jYc.pcpu_build_alloc_infoasbuh1hhjRZubj)}(h h]h }(hjwZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRZubj)}(h atom_sizeh]h atom_size}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRZubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(h)pcpu_fc_cpu_distance_fn_t cpu_distance_fnh](h)}(hhh]j)}(hpcpu_fc_cpu_distance_fn_th]hpcpu_fc_cpu_distance_fn_t}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjZmodnameN classnameNjpjs)}jv]jYc.pcpu_build_alloc_infoasbuh1hhjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hcpu_distance_fnh]hcpu_distance_fn}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubeh}(h]h ]h"]h$]h&]jjuh1j hjHYhhhjYYhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjDYhhhjYYhM ubah}(h]j?Yah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjYYhM hjAYhhubj4)}(hhh]jM)}(h3build alloc_info considering distances between CPUsh]h3build alloc_info considering distances between CPUs}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjZhhubah}(h]h ]h"]h$]h&]uh1j3hjAYhhhjYYhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj[jHj[jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``size_t reserved_size`` the size of reserved percpu area in bytes ``size_t dyn_size`` minimum free size for dynamic allocation in bytes ``size_t atom_size`` allocation atom size ``pcpu_fc_cpu_distance_fn_t cpu_distance_fn`` callback to determine distance between cpus, optional **Description** This function determines grouping of units, their mappings to cpus and other parameters considering needed percpu size, allocation atom size and distances between CPUs. Groups are always multiples of atom size and CPUs which are of LOCAL_DISTANCE both ways are grouped together and share space for units in the same group. The returned configuration is guaranteed to have CPUs on different nodes on different groups and >=75% usage of allocated virtual address space. **Return** On success, pointer to the new allocation_info is returned. On failure, ERR_PTR value is returned.h](jM)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj[ubj)}(hhh](j)}(hC``size_t reserved_size`` the size of reserved percpu area in bytes h](j)}(h``size_t reserved_size``h]jS)}(hj8[h]hsize_t reserved_size}(hj:[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6[ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj2[ubj)}(hhh]jM)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hjQ[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjM[hM hjN[ubah}(h]h ]h"]h$]h&]uh1jhj2[ubeh}(h]h ]h"]h$]h&]uh1jhjM[hM hj/[ubj)}(hF``size_t dyn_size`` minimum free size for dynamic allocation in bytes h](j)}(h``size_t dyn_size``h]jS)}(hjq[h]hsize_t dyn_size}(hjs[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjo[ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjk[ubj)}(hhh]jM)}(h1minimum free size for dynamic allocation in bytesh]h1minimum free size for dynamic allocation in bytes}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hM hj[ubah}(h]h ]h"]h$]h&]uh1jhjk[ubeh}(h]h ]h"]h$]h&]uh1jhj[hM hj/[ubj)}(h*``size_t atom_size`` allocation atom size h](j)}(h``size_t atom_size``h]jS)}(hj[h]hsize_t atom_size}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj[ubj)}(hhh]jM)}(hallocation atom sizeh]hallocation atom size}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hM hj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hM hj/[ubj)}(hd``pcpu_fc_cpu_distance_fn_t cpu_distance_fn`` callback to determine distance between cpus, optional h](j)}(h-``pcpu_fc_cpu_distance_fn_t cpu_distance_fn``h]jS)}(hj[h]h)pcpu_fc_cpu_distance_fn_t cpu_distance_fn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj[ubj)}(hhh]jM)}(h5callback to determine distance between cpus, optionalh]h5callback to determine distance between cpus, optional}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hM hj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hM hj/[ubeh}(h]h ]h"]h$]h&]uh1jhj[ubjM)}(h**Description**h]j)}(hj\h]h Description}(hj \hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj[ubjM)}(hThis function determines grouping of units, their mappings to cpus and other parameters considering needed percpu size, allocation atom size and distances between CPUs.h]hThis function determines grouping of units, their mappings to cpus and other parameters considering needed percpu size, allocation atom size and distances between CPUs.}(hj4\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj[ubjM)}(hX+Groups are always multiples of atom size and CPUs which are of LOCAL_DISTANCE both ways are grouped together and share space for units in the same group. The returned configuration is guaranteed to have CPUs on different nodes on different groups and >=75% usage of allocated virtual address space.h]hX+Groups are always multiples of atom size and CPUs which are of LOCAL_DISTANCE both ways are grouped together and share space for units in the same group. The returned configuration is guaranteed to have CPUs on different nodes on different groups and >=75% usage of allocated virtual address space.}(hjC\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj[ubjM)}(h **Return**h]j)}(hjT\h]hReturn}(hjV\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR\ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj[ubjM)}(hcOn success, pointer to the new allocation_info is returned. On failure, ERR_PTR value is returned.h]hcOn success, pointer to the new allocation_info is returned. On failure, ERR_PTR value is returned.}(hjj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_embed_first_chunk (C function)c.pcpu_embed_first_chunkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hint pcpu_embed_first_chunk (size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h]h)}(hint pcpu_embed_first_chunk(size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h](j)}(hinth]hint}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj\hM ubh)}(hpcpu_embed_first_chunkh]j)}(hpcpu_embed_first_chunkh]hpcpu_embed_first_chunk}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj\hhhj\hM ubj )}(h(size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h](j )}(hsize_t reserved_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj\modnameN classnameNjpjs)}jv]jy)}jlj\sbc.pcpu_embed_first_chunkasbuh1hhj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h reserved_sizeh]h reserved_size}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubj )}(hsize_t dyn_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj#]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj%]modnameN classnameNjpjs)}jv]j\c.pcpu_embed_first_chunkasbuh1hhj]ubj)}(h h]h }(hjA]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hdyn_sizeh]hdyn_size}(hjO]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubj )}(hsize_t atom_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjk]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjm]modnameN classnameNjpjs)}jv]j\c.pcpu_embed_first_chunkasbuh1hhjd]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd]ubj)}(h atom_sizeh]h atom_size}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubj )}(h)pcpu_fc_cpu_distance_fn_t cpu_distance_fnh](h)}(hhh]j)}(hpcpu_fc_cpu_distance_fn_th]hpcpu_fc_cpu_distance_fn_t}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj]modnameN classnameNjpjs)}jv]j\c.pcpu_embed_first_chunkasbuh1hhj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hcpu_distance_fnh]hcpu_distance_fn}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubj )}(h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fnh](h)}(hhh]j)}(hpcpu_fc_cpu_to_node_fn_th]hpcpu_fc_cpu_to_node_fn_t}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj]modnameN classnameNjpjs)}jv]j\c.pcpu_embed_first_chunkasbuh1hhj]ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h cpu_to_nd_fnh]h cpu_to_nd_fn}(hj'^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubeh}(h]h ]h"]h$]h&]jjuh1j hj\hhhj\hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj\hhhj\hM ubah}(h]j\ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj\hM hj\hhubj4)}(hhh]jM)}(h)embed the first percpu chunk into bootmemh]h)embed the first percpu chunk into bootmem}(hjQ^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjN^hhubah}(h]h ]h"]h$]h&]uh1j3hj\hhhj\hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGji^jHji^jIjJjKuh1hhhhjhNhNubj)}(hXa**Parameters** ``size_t reserved_size`` the size of reserved percpu area in bytes ``size_t dyn_size`` minimum free size for dynamic allocation in bytes ``size_t atom_size`` allocation atom size ``pcpu_fc_cpu_distance_fn_t cpu_distance_fn`` callback to determine distance between cpus, optional ``pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn`` callback to convert cpu to it's node, optional **Description** This is a helper to ease setting up embedded first percpu chunk and can be called where pcpu_setup_first_chunk() is expected. If this function is used to setup the first chunk, it is allocated by calling pcpu_fc_alloc and used as-is without being mapped into vmalloc area. Allocations are always whole multiples of **atom_size** aligned to **atom_size**. This enables the first chunk to piggy back on the linear physical mapping which often uses larger page size. Please note that this can result in very sparse cpu->unit mapping on NUMA machines thus requiring large vmalloc address space. Don't use this allocator if vmalloc space is not orders of magnitude larger than distances between node memory addresses (ie. 32bit NUMA machines). **dyn_size** specifies the minimum dynamic area size. If the needed size is smaller than the minimum or specified unit size, the leftover is returned using pcpu_fc_free. **Return** 0 on success, -errno on failure.h](jM)}(h**Parameters**h]j)}(hjs^h]h Parameters}(hju^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq^ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjm^ubj)}(hhh](j)}(hC``size_t reserved_size`` the size of reserved percpu area in bytes h](j)}(h``size_t reserved_size``h]jS)}(hj^h]hsize_t reserved_size}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj^ubj)}(hhh]jM)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hM hj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hM hj^ubj)}(hF``size_t dyn_size`` minimum free size for dynamic allocation in bytes h](j)}(h``size_t dyn_size``h]jS)}(hj^h]hsize_t dyn_size}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj^ubj)}(hhh]jM)}(h1minimum free size for dynamic allocation in bytesh]h1minimum free size for dynamic allocation in bytes}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hM hj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hM hj^ubj)}(h*``size_t atom_size`` allocation atom size h](j)}(h``size_t atom_size``h]jS)}(hj_h]hsize_t atom_size}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj_ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj^ubj)}(hhh]jM)}(hallocation atom sizeh]hallocation atom size}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hM hj_ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj_hM hj^ubj)}(hd``pcpu_fc_cpu_distance_fn_t cpu_distance_fn`` callback to determine distance between cpus, optional h](j)}(h-``pcpu_fc_cpu_distance_fn_t cpu_distance_fn``h]jS)}(hj=_h]h)pcpu_fc_cpu_distance_fn_t cpu_distance_fn}(hj?_hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;_ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj7_ubj)}(hhh]jM)}(h5callback to determine distance between cpus, optionalh]h5callback to determine distance between cpus, optional}(hjV_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjR_hM hjS_ubah}(h]h ]h"]h$]h&]uh1jhj7_ubeh}(h]h ]h"]h$]h&]uh1jhjR_hM hj^ubj)}(hY``pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn`` callback to convert cpu to it's node, optional h](j)}(h)``pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn``h]jS)}(hjv_h]h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn}(hjx_hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjt_ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjp_ubj)}(hhh]jM)}(h.callback to convert cpu to it's node, optionalh]h0callback to convert cpu to it’s node, optional}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hM hj_ubah}(h]h ]h"]h$]h&]uh1jhjp_ubeh}(h]h ]h"]h$]h&]uh1jhj_hM hj^ubeh}(h]h ]h"]h$]h&]uh1jhjm^ubjM)}(h**Description**h]j)}(hj_h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjm^ubjM)}(h}This is a helper to ease setting up embedded first percpu chunk and can be called where pcpu_setup_first_chunk() is expected.h]h}This is a helper to ease setting up embedded first percpu chunk and can be called where pcpu_setup_first_chunk() is expected.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjm^ubjM)}(hIf this function is used to setup the first chunk, it is allocated by calling pcpu_fc_alloc and used as-is without being mapped into vmalloc area. Allocations are always whole multiples of **atom_size** aligned to **atom_size**.h](hIf this function is used to setup the first chunk, it is allocated by calling pcpu_fc_alloc and used as-is without being mapped into vmalloc area. Allocations are always whole multiples of }(hj_hhhNhNubj)}(h **atom_size**h]h atom_size}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh aligned to }(hj_hhhNhNubj)}(h **atom_size**h]h atom_size}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjm^ubjM)}(hXThis enables the first chunk to piggy back on the linear physical mapping which often uses larger page size. Please note that this can result in very sparse cpu->unit mapping on NUMA machines thus requiring large vmalloc address space. Don't use this allocator if vmalloc space is not orders of magnitude larger than distances between node memory addresses (ie. 32bit NUMA machines).h]hXThis enables the first chunk to piggy back on the linear physical mapping which often uses larger page size. Please note that this can result in very sparse cpu->unit mapping on NUMA machines thus requiring large vmalloc address space. Don’t use this allocator if vmalloc space is not orders of magnitude larger than distances between node memory addresses (ie. 32bit NUMA machines).}(hj `hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjm^ubjM)}(h5**dyn_size** specifies the minimum dynamic area size.h](j)}(h **dyn_size**h]hdyn_size}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh) specifies the minimum dynamic area size.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjm^ubjM)}(hsIf the needed size is smaller than the minimum or specified unit size, the leftover is returned using pcpu_fc_free.h]hsIf the needed size is smaller than the minimum or specified unit size, the leftover is returned using pcpu_fc_free.}(hj5`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjm^ubjM)}(h **Return**h]j)}(hjF`h]hReturn}(hjH`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD`ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjm^ubjM)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hj\`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjm^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"pcpu_page_first_chunk (C function)c.pcpu_page_first_chunkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hWint pcpu_page_first_chunk (size_t reserved_size, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h]h)}(hVint pcpu_page_first_chunk(size_t reserved_size, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h](j)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMm ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hMm ubh)}(hpcpu_page_first_chunkh]j)}(hpcpu_page_first_chunkh]hpcpu_page_first_chunk}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj`hhhj`hMm ubj )}(h=(size_t reserved_size, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h](j )}(hsize_t reserved_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj`modnameN classnameNjpjs)}jv]jy)}jlj`sbc.pcpu_page_first_chunkasbuh1hhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h reserved_sizeh]h reserved_size}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubj )}(h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fnh](h)}(hhh]j)}(hpcpu_fc_cpu_to_node_fn_th]hpcpu_fc_cpu_to_node_fn_t}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjamodnameN classnameNjpjs)}jv]j`c.pcpu_page_first_chunkasbuh1hhjaubj)}(h h]h }(hj3ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h cpu_to_nd_fnh]h cpu_to_nd_fn}(hjAahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubeh}(h]h ]h"]h$]h&]jjuh1j hj`hhhj`hMm ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj`hhhj`hMm ubah}(h]j~`ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj`hMm hj`hhubj4)}(hhh]jM)}(h)map the first chunk using PAGE_SIZE pagesh]h)map the first chunk using PAGE_SIZE pages}(hjkahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMm hjhahhubah}(h]h ]h"]h$]h&]uh1j3hj`hhhj`hMm ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjajHjajIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``size_t reserved_size`` the size of reserved percpu area in bytes ``pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn`` callback to convert cpu to it's node, optional **Description** This is a helper to ease setting up page-remapped first percpu chunk and can be called where pcpu_setup_first_chunk() is expected. This is the basic allocator. Static percpu area is allocated page-by-page into vmalloc area. **Return** 0 on success, -errno on failure.h](jM)}(h**Parameters**h]j)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMq hjaubj)}(hhh](j)}(hC``size_t reserved_size`` the size of reserved percpu area in bytes h](j)}(h``size_t reserved_size``h]jS)}(hjah]hsize_t reserved_size}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMn hjaubj)}(hhh]jM)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahMn hjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMn hjaubj)}(hY``pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn`` callback to convert cpu to it's node, optional h](j)}(h)``pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn``h]jS)}(hjah]h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMo hjaubj)}(hhh]jM)}(h.callback to convert cpu to it's node, optionalh]h0callback to convert cpu to it’s node, optional}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahMo hjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMo hjaubeh}(h]h ]h"]h$]h&]uh1jhjaubjM)}(h**Description**h]j)}(hj bh]h Description}(hj"bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMq hjaubjM)}(hThis is a helper to ease setting up page-remapped first percpu chunk and can be called where pcpu_setup_first_chunk() is expected.h]hThis is a helper to ease setting up page-remapped first percpu chunk and can be called where pcpu_setup_first_chunk() is expected.}(hj6bhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMp hjaubjM)}(h]This is the basic allocator. Static percpu area is allocated page-by-page into vmalloc area.h]h]This is the basic allocator. Static percpu area is allocated page-by-page into vmalloc area.}(hjEbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMs hjaubjM)}(h **Return**h]j)}(hjVbh]hReturn}(hjXbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTbubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMv hjaubjM)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hjlbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMw hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#copy_from_user_nofault (C function)c.copy_from_user_nofaulthNtauh1hhjhhhNhNubh)}(hhh](h)}(hLlong copy_from_user_nofault (void *dst, const void __user *src, size_t size)h]h)}(hKlong copy_from_user_nofault(void *dst, const void __user *src, size_t size)h](j)}(hlongh]hlong}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKpubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhKpubh)}(hcopy_from_user_nofaulth]j)}(hcopy_from_user_nofaulth]hcopy_from_user_nofault}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1hhjbhhhjbhKpubj )}(h0(void *dst, const void __user *src, size_t size)h](j )}(h void *dsth](j)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjF )}(hjI h]h*}(hjbhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjbubj)}(hdsth]hdst}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjbubj )}(hconst void __user *srch](j5)}(hjh]hconst}(hjchhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjcubj)}(h h]h }(hj'chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hvoidh]hvoid}(hj5chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjCchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh__user}(hjchhhNhNubj)}(h h]h }(hjUchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjF )}(hjI h]h*}(hjcchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjcubj)}(hsrch]hsrc}(hjpchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjbubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjcmodnameN classnameNjpjs)}jv]jy)}jljbsbc.copy_from_user_nofaultasbuh1hhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hsizeh]hsize}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjbubeh}(h]h ]h"]h$]h&]jjuh1j hjbhhhjbhKpubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjbhhhjbhKpubah}(h]jbah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjbhKphjbhhubj4)}(hhh]jM)}(h1safely attempt to read from a user-space locationh]h1safely attempt to read from a user-space location}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKphjchhubah}(h]h ]h"]h$]h&]uh1j3hjbhhhjbhKpubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjcjHjcjIjJjKuh1hhhhjhNhNubj)}(hXV**Parameters** ``void *dst`` pointer to the buffer that shall take the data ``const void __user *src`` address to read from. This must be a user address. ``size_t size`` size of the data chunk **Description** Safely read from user address **src** to the buffer at **dst**. If a kernel fault happens, handle that and return -EFAULT.h](jM)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKthjdubj)}(hhh](j)}(h=``void *dst`` pointer to the buffer that shall take the data h](j)}(h ``void *dst``h]jS)}(hj%dh]h void *dst}(hj'dhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#dubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKqhjdubj)}(hhh]jM)}(h.pointer to the buffer that shall take the datah]h.pointer to the buffer that shall take the data}(hj>dhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:dhKqhj;dubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhj:dhKqhjdubj)}(hN``const void __user *src`` address to read from. This must be a user address. h](j)}(h``const void __user *src``h]jS)}(hj^dh]hconst void __user *src}(hj`dhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\dubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKrhjXdubj)}(hhh]jM)}(h2address to read from. This must be a user address.h]h2address to read from. This must be a user address.}(hjwdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjsdhKrhjtdubah}(h]h ]h"]h$]h&]uh1jhjXdubeh}(h]h ]h"]h$]h&]uh1jhjsdhKrhjdubj)}(h'``size_t size`` size of the data chunk h](j)}(h``size_t size``h]jS)}(hjdh]h size_t size}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKshjdubj)}(hhh]jM)}(hsize of the data chunkh]hsize of the data chunk}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjdhKshjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhKshjdubeh}(h]h ]h"]h$]h&]uh1jhjdubjM)}(h**Description**h]j)}(hjdh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKuhjdubjM)}(hzSafely read from user address **src** to the buffer at **dst**. If a kernel fault happens, handle that and return -EFAULT.h](hSafely read from user address }(hjdhhhNhNubj)}(h**src**h]hsrc}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh to the buffer at }(hjdhhhNhNubj)}(h**dst**h]hdst}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh<. If a kernel fault happens, handle that and return -EFAULT.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKthjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!copy_to_user_nofault (C function)c.copy_to_user_nofaulthNtauh1hhjhhhNhNubh)}(hhh](h)}(hJlong copy_to_user_nofault (void __user *dst, const void *src, size_t size)h]h)}(hIlong copy_to_user_nofault(void __user *dst, const void *src, size_t size)h](j)}(hlongh]hlong}(hj;ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ehhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKubj)}(h h]h }(hjJehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ehhhjIehKubh)}(hcopy_to_user_nofaulth]j)}(hcopy_to_user_nofaulth]hcopy_to_user_nofault}(hj\ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXeubah}(h]h ](jjeh"]h$]h&]jjuh1hhj7ehhhjIehKubj )}(h0(void __user *dst, const void *src, size_t size)h](j )}(hvoid __user *dsth](j)}(hvoidh]hvoid}(hjxehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjteubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjteubh__user}(hjtehhhNhNubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjteubjF )}(hjI h]h*}(hjehhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjteubj)}(hdsth]hdst}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjteubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpeubj )}(hconst void *srch](j5)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjF )}(hjI h]h*}(hjfhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjeubj)}(hsrch]hsrc}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpeubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj,fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)fubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj.fmodnameN classnameNjpjs)}jv]jy)}jlj^esbc.copy_to_user_nofaultasbuh1hhj%fubj)}(h h]h }(hjLfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%fubj)}(hsizeh]hsize}(hjZfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%fubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpeubeh}(h]h ]h"]h$]h&]jjuh1j hj7ehhhjIehKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj3ehhhjIehKubah}(h]j.eah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjIehKhj0ehhubj4)}(hhh]jM)}(h0safely attempt to write to a user-space locationh]h0safely attempt to write to a user-space location}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjfhhubah}(h]h ]h"]h$]h&]uh1j3hj0ehhhjIehKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjfjHjfjIjJjKuh1hhhhjhNhNubj)}(hX/**Parameters** ``void __user *dst`` address to write to ``const void *src`` pointer to the data that shall be written ``size_t size`` size of the data chunk **Description** Safely write to address **dst** from the buffer at **src**. If a kernel fault happens, handle that and return -EFAULT.h](jM)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjfubj)}(hhh](j)}(h)``void __user *dst`` address to write to h](j)}(h``void __user *dst``h]jS)}(hjfh]hvoid __user *dst}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjfubj)}(hhh]jM)}(haddress to write toh]haddress to write to}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfhKhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhKhjfubj)}(h>``const void *src`` pointer to the data that shall be written h](j)}(h``const void *src``h]jS)}(hjfh]hconst void *src}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjfubj)}(hhh]jM)}(h)pointer to the data that shall be writtenh]h)pointer to the data that shall be written}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjghKhjgubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjghKhjfubj)}(h'``size_t size`` size of the data chunk h](j)}(h``size_t size``h]jS)}(hj7gh]h size_t size}(hj9ghhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5gubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj1gubj)}(hhh]jM)}(hsize of the data chunkh]hsize of the data chunk}(hjPghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLghKhjMgubah}(h]h ]h"]h$]h&]uh1jhj1gubeh}(h]h ]h"]h$]h&]uh1jhjLghKhjfubeh}(h]h ]h"]h$]h&]uh1jhjfubjM)}(h**Description**h]j)}(hjrgh]h Description}(hjtghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpgubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjfubjM)}(hwSafely write to address **dst** from the buffer at **src**. If a kernel fault happens, handle that and return -EFAULT.h](hSafely write to address }(hjghhhNhNubj)}(h**dst**h]hdst}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh from the buffer at }(hjghhhNhNubj)}(h**src**h]hsrc}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh=. If a kernel fault happens, handle that and return -EFAULT.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&strncpy_from_user_nofault (C function)c.strncpy_from_user_nofaulthNtauh1hhjhhhNhNubh)}(hhh](h)}(hVlong strncpy_from_user_nofault (char *dst, const void __user *unsafe_addr, long count)h]h)}(hUlong strncpy_from_user_nofault(char *dst, const void __user *unsafe_addr, long count)h](j)}(hlongh]hlong}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjghKubh)}(hstrncpy_from_user_nofaulth]j)}(hstrncpy_from_user_nofaulth]hstrncpy_from_user_nofault}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1hhjghhhjghKubj )}(h7(char *dst, const void __user *unsafe_addr, long count)h](j )}(h char *dsth](j)}(hcharh]hchar}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hj&hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjF )}(hjI h]h*}(hj4hhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhubj)}(hdsth]hdst}(hjAhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjhubj )}(hconst void __user *unsafe_addrh](j5)}(hjh]hconst}(hjZhhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjVhubj)}(h h]h }(hjghhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhubj)}(hvoidh]hvoid}(hjuhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhubh__user}(hjVhhhhNhNubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhubjF )}(hjI h]h*}(hjhhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVhubj)}(h unsafe_addrh]h unsafe_addr}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjhubj )}(h long counth](j)}(hlongh]hlong}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hcounth]hcount}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjhubeh}(h]h ]h"]h$]h&]jjuh1j hjghhhjghKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjghhhjghKubah}(h]jgah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjghKhjghhubj4)}(hhh]j~W)}(hhh]j/)}(h6Copy a NUL terminated string from unsafe user address.h]jM)}(hjih]h6Copy a NUL terminated string from unsafe user address.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjiubah}(h]h ]h"]h$]h&]uh1j/hjihhhj#ihNubah}(h]h ]h"]h$]h&]jWjWuh1j}Whj#ihKhj ihhubah}(h]h ]h"]h$]h&]uh1j3hjghhhjghKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj9ijHj9ijIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``char *dst`` Destination address, in kernel space. This buffer must be at least **count** bytes long. ``const void __user *unsafe_addr`` Unsafe user address. ``long count`` Maximum number of bytes to copy, including the trailing NUL. **Description** Copies a NUL-terminated string from unsafe user address to kernel buffer. On success, returns the length of the string INCLUDING the trailing NUL. If access fails, returns -EFAULT (some data may have been copied and the trailing NUL added). If **count** is smaller than the length of the string, copies **count**-1 bytes, sets the last byte of **dst** buffer to NUL and returns **count**.h](jM)}(h**Parameters**h]j)}(hjCih]h Parameters}(hjEihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAiubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj=iubj)}(hhh](j)}(hh``char *dst`` Destination address, in kernel space. This buffer must be at least **count** bytes long. h](j)}(h ``char *dst``h]jS)}(hjbih]h char *dst}(hjdihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`iubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj\iubj)}(hhh]jM)}(hYDestination address, in kernel space. This buffer must be at least **count** bytes long.h](hDDestination address, in kernel space. This buffer must be at least }(hj{ihhhNhNubj)}(h **count**h]hcount}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{iubh bytes long.}(hj{ihhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjxiubah}(h]h ]h"]h$]h&]uh1jhj\iubeh}(h]h ]h"]h$]h&]uh1jhjwihKhjYiubj)}(h8``const void __user *unsafe_addr`` Unsafe user address. h](j)}(h"``const void __user *unsafe_addr``h]jS)}(hjih]hconst void __user *unsafe_addr}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjiubj)}(hhh]jM)}(hUnsafe user address.h]hUnsafe user address.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjihKhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihKhjYiubj)}(hL``long count`` Maximum number of bytes to copy, including the trailing NUL. h](j)}(h``long count``h]jS)}(hjih]h long count}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjiubj)}(hhh]jM)}(h count". On exception (or invalid count), returns 0. Unlike strnlen_user, this can be used from IRQ handler etc. because it disables pagefaults.h](jM)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjkubj)}(hhh](j)}(h:``const void __user *unsafe_addr`` The string to measure. h](j)}(h"``const void __user *unsafe_addr``h]jS)}(hj!lh]hconst void __user *unsafe_addr}(hj#lhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjlubj)}(hhh]jM)}(hThe string to measure.h]hThe string to measure.}(hj:lhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6lhKhj7lubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhj6lhKhjlubj)}(h-``long count`` Maximum count (including NUL) h](j)}(h``long count``h]jS)}(hjZlh]h long count}(hj\lhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjXlubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjTlubj)}(hhh]jM)}(hMaximum count (including NUL)h]hMaximum count (including NUL)}(hjslhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjolhKhjplubah}(h]h ]h"]h$]h&]uh1jhjTlubeh}(h]h ]h"]h$]h&]uh1jhjolhKhjlubeh}(h]h ]h"]h$]h&]uh1jhjkubjM)}(h**Description**h]j)}(hjlh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjkubjM)}(hHGet the size of a NUL-terminated string in user space without pagefault.h]hHGet the size of a NUL-terminated string in user space without pagefault.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjkubjM)}(h=Returns the size of the string INCLUDING the terminating NUL.h]h=Returns the size of the string INCLUDING the terminating NUL.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjkubjM)}(hIf the string is too long, returns a number larger than **count**. User has to check the return value against "> count". On exception (or invalid count), returns 0.h](h8If the string is too long, returns a number larger than }(hjlhhhNhNubj)}(h **count**h]hcount}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubhg. User has to check the return value against “> count”. On exception (or invalid count), returns 0.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjkubjM)}(h[Unlike strnlen_user, this can be used from IRQ handler etc. because it disables pagefaults.h]h[Unlike strnlen_user, this can be used from IRQ handler etc. because it disables pagefaults.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&writeback_throttling_sane (C function)c.writeback_throttling_sanehNtauh1hhjhhhNhNubh)}(hhh](h)}(h8bool writeback_throttling_sane (struct scan_control *sc)h]h)}(h7bool writeback_throttling_sane(struct scan_control *sc)h](j)}(hj.h]hbool}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKubj)}(h h]h }(hj'mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhj&mhKubh)}(hwriteback_throttling_saneh]j)}(hwriteback_throttling_saneh]hwriteback_throttling_sane}(hj9mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5mubah}(h]h ](jjeh"]h$]h&]jjuh1hhjmhhhj&mhKubj )}(h(struct scan_control *sc)h]j )}(hstruct scan_control *sch](j5)}(hj8h]hstruct}(hjUmhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjQmubj)}(h h]h }(hjbmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQmubh)}(hhh]j)}(h scan_controlh]h scan_control}(hjsmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpmubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjummodnameN classnameNjpjs)}jv]jy)}jlj;msbc.writeback_throttling_saneasbuh1hhjQmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQmubjF )}(hjI h]h*}(hjmhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjQmubj)}(hsch]hsc}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQmubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMmubah}(h]h ]h"]h$]h&]jjuh1j hjmhhhj&mhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjmhhhj&mhKubah}(h]j mah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj&mhKhjmhhubj4)}(hhh]jM)}(h2is the usual dirty throttling mechanism available?h]h2is the usual dirty throttling mechanism available?}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjmhhubah}(h]h ]h"]h$]h&]uh1j3hjmhhhj&mhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjmjHjmjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct scan_control *sc`` scan_control in question **Description** The normal page dirty throttling mechanism in balance_dirty_pages() is completely broken with the legacy memcg and direct stalling in shrink_folio_list() is used for throttling instead, which lacks all the niceties such as fairness, adaptive pausing, bandwidth proportional allocation and configurability. This function tests whether the vmscan currently in progress can assume that the normal dirty throttling mechanism is operational.h](jM)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjmubj)}(hhh]j)}(h5``struct scan_control *sc`` scan_control in question h](j)}(h``struct scan_control *sc``h]jS)}(hjnh]hstruct scan_control *sc}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjnubj)}(hhh]jM)}(hscan_control in questionh]hscan_control in question}(hj2nhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.nhKhj/nubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhj.nhKhjnubah}(h]h ]h"]h$]h&]uh1jhjmubjM)}(h**Description**h]j)}(hjTnh]h Description}(hjVnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRnubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjmubjM)}(hX1The normal page dirty throttling mechanism in balance_dirty_pages() is completely broken with the legacy memcg and direct stalling in shrink_folio_list() is used for throttling instead, which lacks all the niceties such as fairness, adaptive pausing, bandwidth proportional allocation and configurability.h]hX1The normal page dirty throttling mechanism in balance_dirty_pages() is completely broken with the legacy memcg and direct stalling in shrink_folio_list() is used for throttling instead, which lacks all the niceties such as fairness, adaptive pausing, bandwidth proportional allocation and configurability.}(hjjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjmubjM)}(hThis function tests whether the vmscan currently in progress can assume that the normal dirty throttling mechanism is operational.h]hThis function tests whether the vmscan currently in progress can assume that the normal dirty throttling mechanism is operational.}(hjynhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlruvec_lru_size (C function)c.lruvec_lru_sizehNtauh1hhjhhhNhNubh)}(hhh](h)}(hVunsigned long lruvec_lru_size (struct lruvec *lruvec, enum lru_list lru, int zone_idx)h]h)}(hUunsigned long lruvec_lru_size(struct lruvec *lruvec, enum lru_list lru, int zone_idx)h](j)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhMubj)}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhMubh)}(hlruvec_lru_sizeh]j)}(hlruvec_lru_sizeh]hlruvec_lru_size}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1hhjnhhhjnhMubj )}(h8(struct lruvec *lruvec, enum lru_list lru, int zone_idx)h](j )}(hstruct lruvec *lruvech](j5)}(hj8h]hstruct}(hjohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjnubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j)}(hlruvech]hlruvec}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj!omodnameN classnameNjpjs)}jv]jy)}jljnsbc.lruvec_lru_sizeasbuh1hhjnubj)}(h h]h }(hj?ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjF )}(hjI h]h*}(hjMohhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjnubj)}(hlruvech]hlruvec}(hjZohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjnubj )}(henum lru_list lruh](j5)}(hjEh]henum}(hjsohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjooubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjooubh)}(hhh]j)}(hlru_listh]hlru_list}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjomodnameN classnameNjpjs)}jv]j;oc.lruvec_lru_sizeasbuh1hhjooubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjooubj)}(hlruh]hlru}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjooubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjnubj )}(h int zone_idxh](j)}(hinth]hint}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hzone_idxh]hzone_idx}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjnubeh}(h]h ]h"]h$]h&]jjuh1j hjnhhhjnhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjnhhhjnhMubah}(h]jnah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjnhMhjnhhubj4)}(hhh]jM)}(h2Returns the number of pages on the given LRU list.h]h2Returns the number of pages on the given LRU list.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjphhubah}(h]h ]h"]h$]h&]uh1j3hjnhhhjnhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj4pjHj4pjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct lruvec *lruvec`` lru vector ``enum lru_list lru`` lru to use ``int zone_idx`` zones to consider (use MAX_NR_ZONES - 1 for the whole LRU list)h](jM)}(h**Parameters**h]j)}(hj>ph]h Parameters}(hj@phhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:vubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhj6vubj)}(hhh]j)}(h<``struct folio *folio`` Folio to isolate from its LRU list. h](j)}(h``struct folio *folio``h]jS)}(hj[vh]hstruct folio *folio}(hj]vhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYvubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjUvubj)}(hhh]jM)}(h#Folio to isolate from its LRU list.h]h#Folio to isolate from its LRU list.}(hjtvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjpvhMhjqvubah}(h]h ]h"]h$]h&]uh1jhjUvubeh}(h]h ]h"]h$]h&]uh1jhjpvhMhjRvubah}(h]h ]h"]h$]h&]uh1jhj6vubjM)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhj6vubjM)}(hyIsolate a **folio** from an LRU list and adjust the vmstat statistic corresponding to whatever LRU list the folio was on.h](h Isolate a }(hjvhhhNhNubj)}(h **folio**h]hfolio}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubhf from an LRU list and adjust the vmstat statistic corresponding to whatever LRU list the folio was on.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhj6vubjM)}(hXThe folio will have its LRU flag cleared. If it was found on the active list, it will have the Active flag set. If it was found on the unevictable list, it will have the Unevictable flag set. These flags may need to be cleared by the caller before letting the page go.h]hXThe folio will have its LRU flag cleared. If it was found on the active list, it will have the Active flag set. If it was found on the unevictable list, it will have the Unevictable flag set. These flags may need to be cleared by the caller before letting the page go.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhj6vubj/)}(hhh](j/)}(hMust be called with an elevated refcount on the folio. This is a fundamental difference from isolate_lru_folios() (which is called without a stable reference).h]jM)}(hMust be called with an elevated refcount on the folio. This is a fundamental difference from isolate_lru_folios() (which is called without a stable reference).h]hMust be called with an elevated refcount on the folio. This is a fundamental difference from isolate_lru_folios() (which is called without a stable reference).}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjvubah}(h]h ]h"]h$]h&]uh1j/hjvubj/)}(hThe lru_lock must not be held.h]jM)}(hjvh]hThe lru_lock must not be held.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjvubah}(h]h ]h"]h$]h&]uh1j/hjvubj/)}(hInterrupts must be enabled. h]jM)}(hInterrupts must be enabled.h]hInterrupts must be enabled.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjwubah}(h]h ]h"]h$]h&]uh1j/hjvubeh}(h]h ]h"]h$]h&]j[0j\0j]0j!j^0j!uh1j/hj6vubjM)}(h **Context**h]j)}(hj1wh]hContext}(hj3whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/wubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhj6vubjM)}(h **Return**h]j)}(hjIwh]hReturn}(hjKwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGwubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhj6vubjM)}(hZtrue if the folio was removed from an LRU list. false if the folio was not on an LRU list.h]hZtrue if the folio was removed from an LRU list. false if the folio was not on an LRU list.}(hj_whhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhj6vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*check_move_unevictable_folios (C function)c.check_move_unevictable_folioshNtauh1hhjhhhNhNubh)}(hhh](h)}(h?void check_move_unevictable_folios (struct folio_batch *fbatch)h]h)}(h>void check_move_unevictable_folios(struct folio_batch *fbatch)h](j)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjwhMubh)}(hcheck_move_unevictable_foliosh]j)}(hcheck_move_unevictable_foliosh]hcheck_move_unevictable_folios}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1hhjwhhhjwhMubj )}(h(struct folio_batch *fbatch)h]j )}(hstruct folio_batch *fbatchh](j5)}(hj8h]hstruct}(hjwhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjwmodnameN classnameNjpjs)}jv]jy)}jljwsbc.check_move_unevictable_foliosasbuh1hhjwubj)}(h h]h }(hj xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjF )}(hjI h]h*}(hjxhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwubj)}(hfbatchh]hfbatch}(hj$xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjwubah}(h]h ]h"]h$]h&]jjuh1j hjwhhhjwhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjwhhhjwhMubah}(h]jwah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjwhMhjwhhubj4)}(hhh]jM)}(h2Move evictable folios to appropriate zone lru listh]h2Move evictable folios to appropriate zone lru list}(hjNxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjKxhhubah}(h]h ]h"]h$]h&]uh1j3hjwhhhjwhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjfxjHjfxjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio_batch *fbatch`` Batch of lru folios to check. **Description** Checks folios for evictability, if an evictable folio is in the unevictable lru list, moves it to the appropriate evictable lru list. This function should be only used for lru folios.h](jM)}(h**Parameters**h]j)}(hjpxh]h Parameters}(hjrxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnxubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjjxubj)}(hhh]j)}(h=``struct folio_batch *fbatch`` Batch of lru folios to check. h](j)}(h``struct folio_batch *fbatch``h]jS)}(hjxh]hstruct folio_batch *fbatch}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjxubj)}(hhh]jM)}(hBatch of lru folios to check.h]hBatch of lru folios to check.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjjxubjM)}(h**Description**h]j)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjjxubjM)}(hChecks folios for evictability, if an evictable folio is in the unevictable lru list, moves it to the appropriate evictable lru list. This function should be only used for lru folios.h]hChecks folios for evictability, if an evictable folio is in the unevictable lru list, moves it to the appropriate evictable lru list. This function should be only used for lru folios.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__remove_pages (C function)c.__remove_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hvvoid __remove_pages (unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap, struct dev_pagemap *pgmap)h]h)}(huvoid __remove_pages(unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap, struct dev_pagemap *pgmap)h](j)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj yhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chM?ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj yhhhjyhM?ubh)}(h__remove_pagesh]j)}(h__remove_pagesh]h__remove_pages}(hj0yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,yubah}(h]h ](jjeh"]h$]h&]jjuh1hhj yhhhjyhM?ubj )}(hb(unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap, struct dev_pagemap *pgmap)h](j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjLyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHyubj)}(h h]h }(hjZyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHyubj)}(hlongh]hlong}(hjhyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHyubj)}(h h]h }(hjvyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHyubj)}(hpfnh]hpfn}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDyubj )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hnr_pagesh]hnr_pages}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDyubj )}(hstruct vmem_altmap *altmaph](j5)}(hj8h]hstruct}(hjyhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j)}(h vmem_altmaph]h vmem_altmap}(hj zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj zubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjzmodnameN classnameNjpjs)}jv]jy)}jlj2ysbc.__remove_pagesasbuh1hhjyubj)}(h h]h }(hj,zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjF )}(hjI h]h*}(hj:zhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjyubj)}(haltmaph]haltmap}(hjGzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDyubj )}(hstruct dev_pagemap *pgmaph](j5)}(hj8h]hstruct}(hj`zhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj\zubj)}(h h]h }(hjmzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\zubh)}(hhh]j)}(h dev_pagemaph]h dev_pagemap}(hj~zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{zubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjzmodnameN classnameNjpjs)}jv]j(zc.__remove_pagesasbuh1hhj\zubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\zubjF )}(hjI h]h*}(hjzhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj\zubj)}(hpgmaph]hpgmap}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\zubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDyubeh}(h]h ]h"]h$]h&]jjuh1j hj yhhhjyhM?ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjyhhhjyhM?ubah}(h]jyah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjyhM?hjyhhubj4)}(hhh]jM)}(hremove sections of pagesh]hremove sections of pages}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chM?hjzhhubah}(h]h ]h"]h$]h&]uh1j3hjyhhhjyhM?ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjzjHjzjIjJjKuh1hhhhjhNhNubj)}(hXj**Parameters** ``unsigned long pfn`` starting pageframe (must be aligned to start of a section) ``unsigned long nr_pages`` number of pages to remove (must be multiple of section size) ``struct vmem_altmap *altmap`` alternative device page map or ``NULL`` if default memmap is used ``struct dev_pagemap *pgmap`` device page map or ``NULL`` if not ZONE_DEVICE **Description** Generic helper function to remove section mappings and sysfs entries for the section of the memory we are removing. Caller needs to make sure that pages are marked reserved and zones are adjust properly by calling offline_pages().h](jM)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMChjzubj)}(hhh](j)}(hQ``unsigned long pfn`` starting pageframe (must be aligned to start of a section) h](j)}(h``unsigned long pfn``h]jS)}(hj"{h]hunsigned long pfn}(hj${hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj {ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chM@hj{ubj)}(hhh]jM)}(h:starting pageframe (must be aligned to start of a section)h]h:starting pageframe (must be aligned to start of a section)}(hj;{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7{hM@hj8{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj7{hM@hj{ubj)}(hX``unsigned long nr_pages`` number of pages to remove (must be multiple of section size) h](j)}(h``unsigned long nr_pages``h]jS)}(hj[{h]hunsigned long nr_pages}(hj]{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjY{ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMAhjU{ubj)}(hhh]jM)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjLhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h interval_subh]h interval_sub}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjhhubj4)}(hhh]jM)}(h5Begin a read side critical section against a VA rangeh]h5Begin a read side critical section against a VA range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct mmu_interval_notifier *interval_sub`` The interval subscription **Description** mmu_iterval_read_begin()/mmu_iterval_read_retry() implement a collision-retry scheme similar to seqcount for the VA range under subscription. If the mm invokes invalidation during the critical section then mmu_interval_read_retry() will return true. This is useful to obtain shadow PTEs where teardown or setup of the SPTEs require a blocking context. The critical region formed by this can sleep, and the required 'user_lock' can also be a sleeping lock. The caller is required to provide a 'user_lock' to serialize both teardown and setup. The return value should be passed to mmu_interval_read_retry().h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjubj)}(hhh]j)}(hI``struct mmu_interval_notifier *interval_sub`` The interval subscription h](j)}(h.``struct mmu_interval_notifier *interval_sub``h]jS)}(hjĀh]h*struct mmu_interval_notifier *interval_sub}(hjƀhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj€ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjubj)}(hhh]jM)}(hThe interval subscriptionh]hThe interval subscription}(hj݀hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjـhKhjڀubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjـhKhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjubjM)}(hmmu_iterval_read_begin()/mmu_iterval_read_retry() implement a collision-retry scheme similar to seqcount for the VA range under subscription. If the mm invokes invalidation during the critical section then mmu_interval_read_retry() will return true.h]hmmu_iterval_read_begin()/mmu_iterval_read_retry() implement a collision-retry scheme similar to seqcount for the VA range under subscription. If the mm invokes invalidation during the critical section then mmu_interval_read_retry() will return true.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjubjM)}(hThis is useful to obtain shadow PTEs where teardown or setup of the SPTEs require a blocking context. The critical region formed by this can sleep, and the required 'user_lock' can also be a sleeping lock.h]hThis is useful to obtain shadow PTEs where teardown or setup of the SPTEs require a blocking context. The critical region formed by this can sleep, and the required ‘user_lock’ can also be a sleeping lock.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjubjM)}(hUThe caller is required to provide a 'user_lock' to serialize both teardown and setup.h]hYThe caller is required to provide a ‘user_lock’ to serialize both teardown and setup.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjubjM)}(h?The return value should be passed to mmu_interval_read_retry().h]h?The return value should be passed to mmu_interval_read_retry().}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"mmu_notifier_register (C function)c.mmu_notifier_registerhNtauh1hhjhhhNhNubh)}(hhh](h)}(hSint mmu_notifier_register (struct mmu_notifier *subscription, struct mm_struct *mm)h]h)}(hRint mmu_notifier_register(struct mmu_notifier *subscription, struct mm_struct *mm)h](j)}(hinth]hint}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjhMubh)}(hmmu_notifier_registerh]j)}(hmmu_notifier_registerh]hmmu_notifier_register}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjmhhhjhMubj )}(h9(struct mmu_notifier *subscription, struct mm_struct *mm)h](j )}(h!struct mmu_notifier *subscriptionh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mmu_notifierh]h mmu_notifier}(hj́hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɁubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj΁modnameN classnameNjpjs)}jv]jy)}jljsbc.mmu_notifier_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h subscriptionh]h subscription}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mm_structh]h mm_struct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj@modnameN classnameNjpjs)}jv]jc.mmu_notifier_registerasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmmh]hmm}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjmhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjihhhjhMubah}(h]jdah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjfhhubj4)}(hhh]jM)}(hRegister a notifier on a mmh]hRegister a notifier on a mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjfhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX7**Parameters** ``struct mmu_notifier *subscription`` The notifier to attach ``struct mm_struct *mm`` The mm to attach the notifier to **Description** Must not hold mmap_lock nor any other VM related lock when calling this registration function. Must also ensure mm_users can't go down to zero while this runs to avoid races with mmu_notifier_release, so mm has to be current->mm or the mm should be pinned safely such as with get_task_mm(). If the mm is not current->mm, the mm_users pin should be released by calling mmput after mmu_notifier_register returns. mmu_notifier_unregister() or mmu_notifier_put() must be always called to unregister the notifier. While the caller has a mmu_notifier get the subscription->mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().h](jM)}(h**Parameters**h]j)}(hjÂh]h Parameters}(hjłhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubj)}(hhh](j)}(h=``struct mmu_notifier *subscription`` The notifier to attach h](j)}(h%``struct mmu_notifier *subscription``h]jS)}(hjh]h!struct mmu_notifier *subscription}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj܂ubj)}(hhh]jM)}(hThe notifier to attachh]hThe notifier to attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj܂ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjقubj)}(h:``struct mm_struct *mm`` The mm to attach the notifier to h](j)}(h``struct mm_struct *mm``h]jS)}(hjh]hstruct mm_struct *mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubj)}(hhh]jM)}(h The mm to attach the notifier toh]h The mm to attach the notifier to}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjقubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubjM)}(hXMust not hold mmap_lock nor any other VM related lock when calling this registration function. Must also ensure mm_users can't go down to zero while this runs to avoid races with mmu_notifier_release, so mm has to be current->mm or the mm should be pinned safely such as with get_task_mm(). If the mm is not current->mm, the mm_users pin should be released by calling mmput after mmu_notifier_register returns.h]hXMust not hold mmap_lock nor any other VM related lock when calling this registration function. Must also ensure mm_users can’t go down to zero while this runs to avoid races with mmu_notifier_release, so mm has to be current->mm or the mm should be pinned safely such as with get_task_mm(). If the mm is not current->mm, the mm_users pin should be released by calling mmput after mmu_notifier_register returns.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubjM)}(hammu_notifier_unregister() or mmu_notifier_put() must be always called to unregister the notifier.h]hammu_notifier_unregister() or mmu_notifier_put() must be always called to unregister the notifier.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubjM)}(hWhile the caller has a mmu_notifier get the subscription->mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().h]hWhile the caller has a mmu_notifier get the subscription->mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$mmu_notifier_get_locked (C function)c.mmu_notifier_get_lockedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hhstruct mmu_notifier * mmu_notifier_get_locked (const struct mmu_notifier_ops *ops, struct mm_struct *mm)h]h)}(hfstruct mmu_notifier *mmu_notifier_get_locked(const struct mmu_notifier_ops *ops, struct mm_struct *mm)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chM ubj)}(h h]h }(hjǃhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjƃhM ubh)}(hhh]j)}(h mmu_notifierh]h mmu_notifier}(hj؃hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՃubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjڃmodnameN classnameNjpjs)}jv]jy)}jlmmu_notifier_get_lockedsbc.mmu_notifier_get_lockedasbuh1hhjhhhjƃhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjƃhM ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjƃhM ubh)}(hmmu_notifier_get_lockedh]j)}(hjh]hmmu_notifier_get_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjƃhM ubj )}(h:(const struct mmu_notifier_ops *ops, struct mm_struct *mm)h](j )}(h"const struct mmu_notifier_ops *opsh](j5)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj5)}(hj8h]hstruct}(hjNhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj/ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]j)}(hmmu_notifier_opsh]hmmu_notifier_ops}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jc.mmu_notifier_get_lockedasbuh1hhj/ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj/ubj)}(hopsh]hops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj+ubj )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj˄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mm_structh]h mm_struct}(hj܄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjلubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjބmodnameN classnameNjpjs)}jv]jc.mmu_notifier_get_lockedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj+ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjƃhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjƃhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjƃhM hjhhubj4)}(hhh]jM)}(h6Return the single struct mmu_notifier for the mm & opsh]h6Return the single struct mmu_notifier for the mm & ops}(hj?hhhNhNubah}(h]h ])h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chM hj<hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjƃhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjWjHjWjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``const struct mmu_notifier_ops *ops`` The operations struct being subscribe with ``struct mm_struct *mm`` The mm to attach notifiers too **Description** This function either allocates a new mmu_notifier via ops->alloc_notifier(), or returns an already existing notifier on the list. The value of the ops pointer is used to determine when two notifiers are the same. Each call to mmu_notifier_get() must be paired with a call to mmu_notifier_put(). The caller must hold the write side of mm->mmap_lock. While the caller has a mmu_notifier get the mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().h](jM)}(h**Parameters**h]j)}(hjah]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj[ubj)}(hhh](j)}(hR``const struct mmu_notifier_ops *ops`` The operations struct being subscribe with h](j)}(h&``const struct mmu_notifier_ops *ops``h]jS)}(hjh]h"const struct mmu_notifier_ops *ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj~ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjzubj)}(hhh]jM)}(h*The operations struct being subscribe withh]h*The operations struct being subscribe with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubj)}(h8``struct mm_struct *mm`` The mm to attach notifiers too h](j)}(h``struct mm_struct *mm``h]jS)}(hjh]hstruct mm_struct *mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubj)}(hhh]jM)}(hThe mm to attach notifiers tooh]hThe mm to attach notifiers too}(hj҅hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj΅hMhjυubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj΅hMhjwubeh}(h]h ]h"]h$]h&]uh1jhj[ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj[ubjM)}(hThis function either allocates a new mmu_notifier via ops->alloc_notifier(), or returns an already existing notifier on the list. The value of the ops pointer is used to determine when two notifiers are the same.h]hThis function either allocates a new mmu_notifier via ops->alloc_notifier(), or returns an already existing notifier on the list. The value of the ops pointer is used to determine when two notifiers are the same.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj[ubjM)}(hEach call to mmu_notifier_get() must be paired with a call to mmu_notifier_put(). The caller must hold the write side of mm->mmap_lock.h]hEach call to mmu_notifier_get() must be paired with a call to mmu_notifier_put(). The caller must hold the write side of mm->mmap_lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj[ubjM)}(hWhile the caller has a mmu_notifier get the mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().h]hWhile the caller has a mmu_notifier get the mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmmu_notifier_put (C function)c.mmu_notifier_puthNtauh1hhjhhhNhNubh)}(hhh](h)}(h9void mmu_notifier_put (struct mmu_notifier *subscription)h]h)}(h8void mmu_notifier_put(struct mmu_notifier *subscription)h](j)}(hvoidh]hvoid}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjehMubh)}(hmmu_notifier_puth]j)}(hmmu_notifier_puth]hmmu_notifier_put}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1hhjShhhjehMubj )}(h#(struct mmu_notifier *subscription)h]j )}(h!struct mmu_notifier *subscriptionh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mmu_notifierh]h mmu_notifier}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljzsbc.mmu_notifier_putasbuh1hhjubj)}(h h]h }(hj҆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h subscriptionh]h subscription}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjShhhjehMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjOhhhjehMubah}(h]jJah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjehMhjLhhubj4)}(hhh]jM)}(h%Release the reference on the notifierh]h%Release the reference on the notifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjLhhhjehMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj/jHj/jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct mmu_notifier *subscription`` The notifier to act on **Description** This function must be paired with each mmu_notifier_get(), it releases the reference obtained by the get. If this is the last reference then process to free the notifier will be run asynchronously. Unlike mmu_notifier_unregister() the get/put flow only calls ops->release when the mm_struct is destroyed. Instead free_notifier is always called to release any resources held by the user. As ops->release is not guaranteed to be called, the user must ensure that all sptes are dropped, and no new sptes can be established before mmu_notifier_put() is called. This function can be called from the ops->release callback, however the caller must still ensure it is called pairwise with mmu_notifier_get(). Modules calling this function must call mmu_notifier_synchronize() in their __exit functions to ensure the async work is completed.h](jM)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj3ubj)}(hhh]j)}(h=``struct mmu_notifier *subscription`` The notifier to act on h](j)}(h%``struct mmu_notifier *subscription``h]jS)}(hjXh]h!struct mmu_notifier *subscription}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjRubj)}(hhh]jM)}(hThe notifier to act onh]hThe notifier to act on}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj3ubjM)}(hThis function must be paired with each mmu_notifier_get(), it releases the reference obtained by the get. If this is the last reference then process to free the notifier will be run asynchronously.h]hThis function must be paired with each mmu_notifier_get(), it releases the reference obtained by the get. If this is the last reference then process to free the notifier will be run asynchronously.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj3ubjM)}(hUnlike mmu_notifier_unregister() the get/put flow only calls ops->release when the mm_struct is destroyed. Instead free_notifier is always called to release any resources held by the user.h]hUnlike mmu_notifier_unregister() the get/put flow only calls ops->release when the mm_struct is destroyed. Instead free_notifier is always called to release any resources held by the user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj3ubjM)}(hAs ops->release is not guaranteed to be called, the user must ensure that all sptes are dropped, and no new sptes can be established before mmu_notifier_put() is called.h]hAs ops->release is not guaranteed to be called, the user must ensure that all sptes are dropped, and no new sptes can be established before mmu_notifier_put() is called.}(hjLJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj3ubjM)}(hThis function can be called from the ops->release callback, however the caller must still ensure it is called pairwise with mmu_notifier_get().h]hThis function can be called from the ops->release callback, however the caller must still ensure it is called pairwise with mmu_notifier_get().}(hjևhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj3ubjM)}(hModules calling this function must call mmu_notifier_synchronize() in their __exit functions to ensure the async work is completed.h]hModules calling this function must call mmu_notifier_synchronize() in their __exit functions to ensure the async work is completed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)mmu_interval_notifier_insert (C function)c.mmu_interval_notifier_inserthNtauh1hhjhhhNhNubh)}(hhh](h)}(hint mmu_interval_notifier_insert (struct mmu_interval_notifier *interval_sub, struct mm_struct *mm, unsigned long start, unsigned long length, const struct mmu_interval_notifier_ops *ops)h]h)}(hint mmu_interval_notifier_insert(struct mmu_interval_notifier *interval_sub, struct mm_struct *mm, unsigned long start, unsigned long length, const struct mmu_interval_notifier_ops *ops)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hMubh)}(hmmu_interval_notifier_inserth]j)}(hmmu_interval_notifier_inserth]hmmu_interval_notifier_insert}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj"hMubj )}(h(struct mmu_interval_notifier *interval_sub, struct mm_struct *mm, unsigned long start, unsigned long length, const struct mmu_interval_notifier_ops *ops)h](j )}(h*struct mmu_interval_notifier *interval_subh](j5)}(hj8h]hstruct}(hjQhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(hhh]j)}(hmmu_interval_notifierh]hmmu_interval_notifier}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjqmodnameN classnameNjpjs)}jv]jy)}jlj7sbc.mmu_interval_notifier_insertasbuh1hhjMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjMubj)}(h interval_subh]h interval_sub}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubj )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hjÈhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjЈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjވubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mmu_interval_notifier_insertasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubj )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hstarth]hstart}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubj )}(hunsigned long lengthh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlengthh]hlength}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubj )}(h+const struct mmu_interval_notifier_ops *opsh](j5)}(hjh]hconst}(hjՉhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjщubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjщubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjщubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjщubh)}(hhh]j)}(hmmu_interval_notifier_opsh]hmmu_interval_notifier_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mmu_interval_notifier_insertasbuh1hhjщubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjщubjF )}(hjI h]h*}(hj:hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjщubj)}(hopsh]hops}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjщubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj"hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj"hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj"hMhj hhubj4)}(hhh]jM)}(hInsert an interval notifierh]hInsert an interval notifier}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjnhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj"hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX,**Parameters** ``struct mmu_interval_notifier *interval_sub`` Interval subscription to register ``struct mm_struct *mm`` mm_struct to attach to ``unsigned long start`` Starting virtual address to monitor ``unsigned long length`` Length of the range to monitor ``const struct mmu_interval_notifier_ops *ops`` Interval notifier operations to be called on matching events **Description** This function subscribes the interval notifier for notifications from the mm. Upon return the ops related to mmu_interval_notifier will be called whenever an event that intersects with the given range occurs. Upon return the range_notifier may not be present in the interval tree yet. The caller must use the normal interval notifier read flow via mmu_interval_read_begin() to establish SPTEs for this range.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubj)}(hhh](j)}(hQ``struct mmu_interval_notifier *interval_sub`` Interval subscription to register h](j)}(h.``struct mmu_interval_notifier *interval_sub``h]jS)}(hjh]h*struct mmu_interval_notifier *interval_sub}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubj)}(hhh]jM)}(h!Interval subscription to registerh]h!Interval subscription to register}(hjˊhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNJhMhjȊubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjNJhMhjubj)}(h0``struct mm_struct *mm`` mm_struct to attach to h](j)}(h``struct mm_struct *mm``h]jS)}(hjh]hstruct mm_struct *mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubj)}(hhh]jM)}(hmm_struct to attach toh]hmm_struct to attach to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``unsigned long start`` Starting virtual address to monitor h](j)}(h``unsigned long start``h]jS)}(hj$h]hunsigned long start}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubj)}(hhh]jM)}(h#Starting virtual address to monitorh]h#Starting virtual address to monitor}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(h8``unsigned long length`` Length of the range to monitor h](j)}(h``unsigned long length``h]jS)}(hj]h]hunsigned long length}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjWubj)}(hhh]jM)}(hLength of the range to monitorh]hLength of the range to monitor}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjubj)}(hm``const struct mmu_interval_notifier_ops *ops`` Interval notifier operations to be called on matching events h](j)}(h/``const struct mmu_interval_notifier_ops *ops``h]jS)}(hjh]h+const struct mmu_interval_notifier_ops *ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubj)}(hhh]jM)}(hh]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMnhj8ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]jS)}(hj]h]hvoid}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjWubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhKhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhj8ubjM)}(hThis function ensures that all outstanding async SRU work from mmu_notifier_put() is completed. After it returns any mmu_notifier_ops associated with an unused mmu_notifier will no longer be called.h]hThis function ensures that all outstanding async SRU work from mmu_notifier_put() is completed. After it returns any mmu_notifier_ops associated with an unused mmu_notifier will no longer be called.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMkhj8ubjM)}(hrBefore using the caller must ensure that all of its mmu_notifiers have been fully released via mmu_notifier_put().h]hrBefore using the caller must ensure that all of its mmu_notifiers have been fully released via mmu_notifier_put().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMohj8ubjM)}(hsModules using the mmu_notifier_put() API should call this in their __exit function to avoid module unloading races.h]hsModules using the mmu_notifier_put() API should call this in their __exit function to avoid module unloading races.}(hj̎hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMrhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h balloon_page_insert (C function)c.balloon_page_inserthNtauh1hhjhhhNhNubh)}(hhh](h)}(hNvoid balloon_page_insert (struct balloon_dev_info *balloon, struct page *page)h]h)}(hMvoid balloon_page_insert(struct balloon_dev_info *balloon, struct page *page)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKubh)}(hballoon_page_inserth]j)}(hballoon_page_inserth]hballoon_page_insert}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hKubj )}(h5(struct balloon_dev_info *balloon, struct page *page)h](j )}(h struct balloon_dev_info *balloonh](j5)}(hj8h]hstruct}(hj8hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]j)}(hballoon_dev_infoh]hballoon_dev_info}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjXmodnameN classnameNjpjs)}jv]jy)}jljsbc.balloon_page_insertasbuh1hhj4ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj4ubj)}(hballoonh]hballoon}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjȏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŏubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjʏmodnameN classnameNjpjs)}jv]jrc.balloon_page_insertasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj hKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hKhjhhubj4)}(hhh]jM)}(h]insert a page into the balloon's page list and make the page->private assignment accordingly.h]h_insert a page into the balloon’s page list and make the page->private assignment accordingly.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj(hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjCjHjCjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct balloon_dev_info *balloon`` pointer to balloon device ``struct page *page`` page to be assigned as a 'balloon page' **Description** Caller must ensure the balloon_pages_lock is held.h](jM)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjGubj)}(hhh](j)}(h?``struct balloon_dev_info *balloon`` pointer to balloon device h](j)}(h$``struct balloon_dev_info *balloon``h]jS)}(hjlh]h struct balloon_dev_info *balloon}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjfubj)}(hhh]jM)}(hpointer to balloon deviceh]hpointer to balloon device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhKhjcubj)}(h>``struct page *page`` page to be assigned as a 'balloon page' h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubj)}(hhh]jM)}(h'page to be assigned as a 'balloon page'h]h+page to be assigned as a ‘balloon page’}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjcubeh}(h]h ]h"]h$]h&]uh1jhjGubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjސubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjGubjM)}(h2Caller must ensure the balloon_pages_lock is held.h]h2Caller must ensure the balloon_pages_lock is held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"balloon_page_finalize (C function)c.balloon_page_finalizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void balloon_page_finalize (struct page *page)h]h)}(h-void balloon_page_finalize(struct page *page)h](j)}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chK(ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj3hK(ubh)}(hballoon_page_finalizeh]j)}(hballoon_page_finalizeh]hballoon_page_finalize}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1hhj!hhhj3hK(ubj )}(h(struct page *page)h]j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjbhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljHsbc.balloon_page_finalizeasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj^ubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjZubah}(h]h ]h"]h$]h&]jjuh1j hj!hhhj3hK(ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj3hK(ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj3hK(hjhhubj4)}(hhh]jM)}(h_prepare a balloon page that was removed from the balloon list for release to the page allocatorh]h_prepare a balloon page that was removed from the balloon list for release to the page allocator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chK(hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj3hK(ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct page *page`` page to be released to the page allocator **Description** Caller must ensure the balloon_pages_lock is held.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chK,hjubj)}(hhh]j)}(h@``struct page *page`` page to be released to the page allocator h](j)}(h``struct page *page``h]jS)}(hj&h]hstruct page *page}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chK*hj ubj)}(hhh]jM)}(h)page to be released to the page allocatorh]h)page to be released to the page allocator}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hK*hj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hK*hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chK,hjubjM)}(h2Caller must ensure the balloon_pages_lock is held.h]h2Caller must ensure the balloon_pages_lock is held.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chK+hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&balloon_page_list_enqueue (C function)c.balloon_page_list_enqueuehNtauh1hhjhhhNhNubh)}(hhh](h)}(h_size_t balloon_page_list_enqueue (struct balloon_dev_info *b_dev_info, struct list_head *pages)h]h)}(h^size_t balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, struct list_head *pages)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlballoon_page_list_enqueuesbc.balloon_page_list_enqueueasbuh1hhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKAubj)}(h h]h }(hj˒hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjʒhKAubh)}(hballoon_page_list_enqueueh]j)}(hjǒh]hballoon_page_list_enqueue}(hjݒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjْubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjʒhKAubj )}(h>(struct balloon_dev_info *b_dev_info, struct list_head *pages)h](j )}(h#struct balloon_dev_info *b_dev_infoh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hballoon_dev_infoh]hballoon_dev_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jŒc.balloon_page_list_enqueueasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h b_dev_infoh]h b_dev_info}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct list_head *pagesh](j5)}(hj8h]hstruct}(hjhhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jŒc.balloon_page_list_enqueueasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjdubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjʒhKAubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjʒhKAubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjʒhKAhjhhubj4)}(hhh]jM)}(h3inserts a list of pages into the balloon page list.h]h3inserts a list of pages into the balloon page list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKAhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjʒhKAubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct balloon_dev_info *b_dev_info`` balloon device descriptor where we will insert a new page to ``struct list_head *pages`` pages to enqueue - allocated using balloon_page_alloc. **Description** Driver must call this function to properly enqueue balloon pages before definitively removing them from the guest system. **Return** number of pages that were enqueued.h](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKEhjubj)}(hhh](j)}(he``struct balloon_dev_info *b_dev_info`` balloon device descriptor where we will insert a new page to h](j)}(h'``struct balloon_dev_info *b_dev_info``h]jS)}(hj*h]h#struct balloon_dev_info *b_dev_info}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKChj$ubj)}(hhh]jM)}(hallocates a new page for insertion into the balloon page list.h]h>allocates a new page for insertion into the balloon page list.}(hjؘhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj՘hhubah}(h]h ]h"]h$]h&]uh1j3hj)hhhjAhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX3**Parameters** ``void`` no arguments **Description** Driver must call this function to properly allocate a new balloon page. Driver must call balloon_page_enqueue before definitively removing the page from the guest system. **Return** struct page for the allocated page or NULL on allocation failure.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]jS)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.hKhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hKhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(hDriver must call this function to properly allocate a new balloon page. Driver must call balloon_page_enqueue before definitively removing the page from the guest system.h]hDriver must call this function to properly allocate a new balloon page. Driver must call balloon_page_enqueue before definitively removing the page from the guest system.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(h **Return**h]j)}(hj{h]hReturn}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(hAstruct page for the allocated page or NULL on allocation failure.h]hAstruct page for the allocated page or NULL on allocation failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!balloon_page_enqueue (C function)c.balloon_page_enqueuehNtauh1hhjhhhNhNubh)}(hhh](h)}(hRvoid balloon_page_enqueue (struct balloon_dev_info *b_dev_info, struct page *page)h]h)}(hQvoid balloon_page_enqueue(struct balloon_dev_info *b_dev_info, struct page *page)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKubj)}(h h]h }(hjϙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjΙhKubh)}(hballoon_page_enqueueh]j)}(hballoon_page_enqueueh]hballoon_page_enqueue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݙubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjΙhKubj )}(h8(struct balloon_dev_info *b_dev_info, struct page *page)h](j )}(h#struct balloon_dev_info *b_dev_infoh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hballoon_dev_infoh]hballoon_dev_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.balloon_page_enqueueasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjIhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h b_dev_infoh]h b_dev_info}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjkubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j7c.balloon_page_enqueueasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjkubj)}(hpageh]hpage}(hjƚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjΙhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjΙhKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjΙhKhjhhubj4)}(hhh]jM)}(h.inserts a new page into the balloon page list.h]h.inserts a new page into the balloon page list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjΙhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct balloon_dev_info *b_dev_info`` balloon device descriptor where we will insert a new page ``struct page *page`` new page to enqueue - allocated using balloon_page_alloc. **Description** Drivers must call this function to properly enqueue a new allocated balloon page before definitively removing the page from the guest system. Drivers must not enqueue pages while page->lru is still in use, and must not use page->lru until a page was unqueued again.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj ubj)}(hhh](j)}(hb``struct balloon_dev_info *b_dev_info`` balloon device descriptor where we will insert a new page h](j)}(h'``struct balloon_dev_info *b_dev_info``h]jS)}(hj1h]h#struct balloon_dev_info *b_dev_info}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj/ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj+ubj)}(hhh]jM)}(h9balloon device descriptor where we will insert a new pageh]h9balloon device descriptor where we will insert a new page}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFhKhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhKhj(ubj)}(hP``struct page *page`` new page to enqueue - allocated using balloon_page_alloc. h](j)}(h``struct page *page``h]jS)}(hjjh]hstruct page *page}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjhubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjdubj)}(hhh]jM)}(h9new page to enqueue - allocated using balloon_page_alloc.h]h9new page to enqueue - allocated using balloon_page_alloc.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhKhj(ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj ubjM)}(hDrivers must call this function to properly enqueue a new allocated balloon page before definitively removing the page from the guest system.h]hDrivers must call this function to properly enqueue a new allocated balloon page before definitively removing the page from the guest system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj ubjM)}(h{Drivers must not enqueue pages while page->lru is still in use, and must not use page->lru until a page was unqueued again.h]h{Drivers must not enqueue pages while page->lru is still in use, and must not use page->lru until a page was unqueued again.}(hjʛhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!balloon_page_dequeue (C function)c.balloon_page_dequeuehNtauh1hhjhhhNhNubh)}(hhh](h)}(hHstruct page * balloon_page_dequeue (struct balloon_dev_info *b_dev_info)h]h)}(hFstruct page *balloon_page_dequeue(struct balloon_dev_info *b_dev_info)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlballoon_page_dequeuesbc.balloon_page_dequeueasbuh1hhjhhhjhKubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjF )}(hjI h]h*}(hjGhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhKubh)}(hballoon_page_dequeueh]j)}(hj6h]hballoon_page_dequeue}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubj )}(h%(struct balloon_dev_info *b_dev_info)h]j )}(h#struct balloon_dev_info *b_dev_infoh](j5)}(hj8h]hstruct}(hjshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j)}(hballoon_dev_infoh]hballoon_dev_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j4c.balloon_page_dequeueasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjoubj)}(h b_dev_infoh]h b_dev_info}(hjʜhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjhhubj4)}(hhh]jM)}(hhremoves a page from balloon's page list and returns its address to allow the driver to release the page.h]hjremoves a page from balloon’s page list and returns its address to allow the driver to release the page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct balloon_dev_info *b_dev_info`` balloon device descriptor where we will grab a page from. **Description** Driver must call this function to properly dequeue a previously enqueued page before definitively releasing it back to the guest system. Caller must perform its own accounting to ensure that this function is called only if some pages are actually enqueued. Note that this function may fail to dequeue some pages even if there are some enqueued pages - since the page list can be temporarily empty due to the compaction of isolated pages. TODO: remove the caller accounting requirements, and allow caller to wait until all pages can be dequeued. **Return** struct page for the dequeued page, or NULL if no page was dequeued.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubj)}(hhh]j)}(hb``struct balloon_dev_info *b_dev_info`` balloon device descriptor where we will grab a page from. h](j)}(h'``struct balloon_dev_info *b_dev_info``h]jS)}(hj5h]h#struct balloon_dev_info *b_dev_info}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj/ubj)}(hhh]jM)}(h9balloon device descriptor where we will grab a page from.h]h9balloon device descriptor where we will grab a page from.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhKhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKhj,ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(hDriver must call this function to properly dequeue a previously enqueued page before definitively releasing it back to the guest system.h]hDriver must call this function to properly dequeue a previously enqueued page before definitively releasing it back to the guest system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(hwCaller must perform its own accounting to ensure that this function is called only if some pages are actually enqueued.h]hwCaller must perform its own accounting to ensure that this function is called only if some pages are actually enqueued.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(hNote that this function may fail to dequeue some pages even if there are some enqueued pages - since the page list can be temporarily empty due to the compaction of isolated pages.h]hNote that this function may fail to dequeue some pages even if there are some enqueued pages - since the page list can be temporarily empty due to the compaction of isolated pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(hjTODO: remove the caller accounting requirements, and allow caller to wait until all pages can be dequeued.h]hjTODO: remove the caller accounting requirements, and allow caller to wait until all pages can be dequeued.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(h **Return**h]j)}(hjĝh]hReturn}(hjƝhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(hCstruct page for the dequeued page, or NULL if no page was dequeued.h]hCstruct page for the dequeued page, or NULL if no page was dequeued.}(hjڝhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmf_insert_pfn_pmd (C function)c.vmf_insert_pfn_pmdhNtauh1hhjhhhNhNubh)}(hhh](h)}(hSvm_fault_t vmf_insert_pfn_pmd (struct vm_fault *vmf, unsigned long pfn, bool write)h]h)}(hRvm_fault_t vmf_insert_pfn_pmd(struct vm_fault *vmf, unsigned long pfn, bool write)h](h)}(hhh]j)}(h vm_fault_th]h vm_fault_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlvmf_insert_pfn_pmdsbc.vmf_insert_pfn_pmdasbuh1hhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMMubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj-hMMubh)}(hvmf_insert_pfn_pmdh]j)}(hj*h]hvmf_insert_pfn_pmd}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj-hMMubj )}(h5(struct vm_fault *vmf, unsigned long pfn, bool write)h](j )}(hstruct vm_fault *vmfh](j5)}(hj8h]hstruct}(hj[hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj{modnameN classnameNjpjs)}jv]j(c.vmf_insert_pfn_pmdasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjWubj)}(hvmfh]hvmf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjSubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj˞hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǞubj)}(h h]h }(hjٞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǞubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǞubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǞubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǞubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjSubj )}(h bool writeh](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hwriteh]hwrite}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjSubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj-hMMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj-hMMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj-hMMhjhhubj4)}(hhh]jM)}(hinsert a pmd size pfnh]hinsert a pmd size pfn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMMhj^hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj-hMMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjyjHjyjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_fault *vmf`` Structure describing the fault ``unsigned long pfn`` pfn to insert ``bool write`` whether it's a write fault **Description** Insert a pmd size pfn. See vmf_insert_pfn() for additional info. **Return** vm_fault_t value.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMQhj}ubj)}(hhh](j)}(h8``struct vm_fault *vmf`` Structure describing the fault h](j)}(h``struct vm_fault *vmf``h]jS)}(hjh]hstruct vm_fault *vmf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMNhjubj)}(hhh]jM)}(hStructure describing the faulth]hStructure describing the fault}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubj)}(h$``unsigned long pfn`` pfn to insert h](j)}(h``unsigned long pfn``h]jS)}(hj۟h]hunsigned long pfn}(hjݟhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjٟubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMOhj՟ubj)}(hhh]jM)}(h pfn to inserth]h pfn to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMOhjubah}(h]h ]h"]h$]h&]uh1jhj՟ubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubj)}(h*``bool write`` whether it's a write fault h](j)}(h``bool write``h]jS)}(hjh]h bool write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMPhjubj)}(hhh]jM)}(hwhether it's a write faulth]hwhether it’s a write fault}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)hMPhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMPhjubeh}(h]h ]h"]h$]h&]uh1jhj}ubjM)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMRhj}ubjM)}(h@Insert a pmd size pfn. See vmf_insert_pfn() for additional info.h]h@Insert a pmd size pfn. See vmf_insert_pfn() for additional info.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMQhj}ubjM)}(h **Return**h]j)}(hjvh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMShj}ubjM)}(hvm_fault_t value.h]hvm_fault_t value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMThj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmf_insert_pfn_pud (C function)c.vmf_insert_pfn_pudhNtauh1hhjhhhNhNubh)}(hhh](h)}(hSvm_fault_t vmf_insert_pfn_pud (struct vm_fault *vmf, unsigned long pfn, bool write)h]h)}(hRvm_fault_t vmf_insert_pfn_pud(struct vm_fault *vmf, unsigned long pfn, bool write)h](h)}(hhh]j)}(h vm_fault_th]h vm_fault_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlvmf_insert_pfn_pudsbc.vmf_insert_pfn_pudasbuh1hhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjߠhMubh)}(hvmf_insert_pfn_pudh]j)}(hjܠh]hvmf_insert_pfn_pud}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjߠhMubj )}(h5(struct vm_fault *vmf, unsigned long pfn, bool write)h](j )}(hstruct vm_fault *vmfh](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj-modnameN classnameNjpjs)}jv]jڠc.vmf_insert_pfn_pudasbuh1hhj ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjWhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hvmfh]hvmf}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h bool writeh](j)}(hj.h]hbool}(hjΡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʡubj)}(h h]h }(hjۡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʡubj)}(hwriteh]hwrite}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʡubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjߠhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjߠhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjߠhMhjhhubj4)}(hhh]jM)}(hinsert a pud size pfnh]hinsert a pud size pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjߠhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj+jHj+jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_fault *vmf`` Structure describing the fault ``unsigned long pfn`` pfn to insert ``bool write`` whether it's a write fault **Description** Insert a pud size pfn. See vmf_insert_pfn() for additional info. **Return** vm_fault_t value.h](jM)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj/ubj)}(hhh](j)}(h8``struct vm_fault *vmf`` Structure describing the fault h](j)}(h``struct vm_fault *vmf``h]jS)}(hjTh]hstruct vm_fault *vmf}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjRubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjNubj)}(hhh]jM)}(hStructure describing the faulth]hStructure describing the fault}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjKubj)}(h$``unsigned long pfn`` pfn to insert h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]jM)}(h pfn to inserth]h pfn to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjKubj)}(h*``bool write`` whether it's a write fault h](j)}(h``bool write``h]jS)}(hjƢh]h bool write}(hjȢhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjĢubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]jM)}(hwhether it's a write faulth]hwhether it’s a write fault}(hjߢhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjۢhMhjܢubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۢhMhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj/ubjM)}(h@Insert a pud size pfn. See vmf_insert_pfn() for additional info.h]h@Insert a pud size pfn. See vmf_insert_pfn() for additional info.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj/ubjM)}(h **Return**h]j)}(hj(h]hReturn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj/ubjM)}(hvm_fault_t value.h]hvm_fault_t value.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!vmf_insert_folio_pud (C function)c.vmf_insert_folio_pudhNtauh1hhjhhhNhNubh)}(hhh](h)}(hWvm_fault_t vmf_insert_folio_pud (struct vm_fault *vmf, struct folio *folio, bool write)h]h)}(hVvm_fault_t vmf_insert_folio_pud(struct vm_fault *vmf, struct folio *folio, bool write)h](h)}(hhh]j)}(h vm_fault_th]h vm_fault_t}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrmodnameN classnameNjpjs)}jv]jy)}jlvmf_insert_folio_pudsbc.vmf_insert_folio_pudasbuh1hhjihhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjhMubh)}(hvmf_insert_folio_pudh]j)}(hjh]hvmf_insert_folio_pud}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjihhhjhMubj )}(h7(struct vm_fault *vmf, struct folio *folio, bool write)h](j )}(hstruct vm_fault *vmfh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj̣hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hjݣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڣubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjߣmodnameN classnameNjpjs)}jv]jc.vmf_insert_folio_pudasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmfh]hvmf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj/hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj+ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubh)}(hhh]j)}(hfolioh]hfolio}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjOmodnameN classnameNjpjs)}jv]jc.vmf_insert_folio_pudasbuh1hhj+ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjF )}(hjI h]h*}(hjyhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj+ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h bool writeh](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hwriteh]hwrite}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjihhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjehhhjhMubah}(h]j`ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjbhhubj4)}(hhh]jM)}(h-insert a pud size folio mapped by a pud entryh]h-insert a pud size folio mapped by a pud entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjbhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct vm_fault *vmf`` Structure describing the fault ``struct folio *folio`` folio to insert ``bool write`` whether it's a write fault **Return** vm_fault_t value.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh](j)}(h8``struct vm_fault *vmf`` Structure describing the fault h](j)}(h``struct vm_fault *vmf``h]jS)}(hj%h]hstruct vm_fault *vmf}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]jM)}(hStructure describing the faulth]hStructure describing the fault}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubj)}(h(``struct folio *folio`` folio to insert h](j)}(h``struct folio *folio``h]jS)}(hj^h]hstruct folio *folio}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjXubj)}(hhh]jM)}(hfolio to inserth]hfolio to insert}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjshMhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubj)}(h*``bool write`` whether it's a write fault h](j)}(h``bool write``h]jS)}(hjh]h bool write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]jM)}(hwhether it's a write faulth]hwhether it’s a write fault}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjҥh]hReturn}(hjԥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjХubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(hvm_fault_t value.h]hvm_fault_t value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htouch_pmd (C function) c.touch_pmdhNtauh1hhjhhhNhNubh)}(hhh](h)}(hWbool touch_pmd (struct vm_area_struct *vma, unsigned long addr, pmd_t *pmd, bool write)h]h)}(hVbool touch_pmd(struct vm_area_struct *vma, unsigned long addr, pmd_t *pmd, bool write)h](j)}(hj.h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj$hMubh)}(h touch_pmdh]j)}(h touch_pmdh]h touch_pmd}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj$hMubj )}(hH(struct vm_area_struct *vma, unsigned long addr, pmd_t *pmd, bool write)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjShhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjsmodnameN classnameNjpjs)}jv]jy)}jlj9sb c.touch_pmdasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjOubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjŦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjӦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubj )}(h pmd_t *pmdh](h)}(hhh]j)}(hpmd_th]hpmd_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j c.touch_pmdasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjEhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpmdh]hpmd}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubj )}(h bool writeh](j)}(hj.h]hbool}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hwriteh]hwrite}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj$hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj$hMubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj$hMhj hhubj4)}(hhh]jM)}(h;Mark page table pmd entry as accessed and dirty (for write)h]h;Mark page table pmd entry as accessed and dirty (for write)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj$hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjȧjHjȧjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` The VMA covering **addr** ``unsigned long addr`` The virtual address ``pmd_t *pmd`` pmd pointer into the page table mapping **addr** ``bool write`` Whether it's a write access **Return** whether the pmd entry is changedh](jM)}(h**Parameters**h]j)}(hjҧh]h Parameters}(hjԧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЧubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj̧ubj)}(hhh](j)}(h9``struct vm_area_struct *vma`` The VMA covering **addr** h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]jM)}(hThe VMA covering **addr**h](hThe VMA covering }(hj hhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``unsigned long addr`` The virtual address h](j)}(h``unsigned long addr``h]jS)}(hj8h]hunsigned long addr}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj2ubj)}(hhh]jM)}(hThe virtual addressh]hThe virtual address}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubj)}(h@``pmd_t *pmd`` pmd pointer into the page table mapping **addr** h](j)}(h``pmd_t *pmd``h]jS)}(hjqh]h pmd_t *pmd}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjkubj)}(hhh]jM)}(h0pmd pointer into the page table mapping **addr**h](h(pmd pointer into the page table mapping }(hjhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``bool write`` Whether it's a write access h](j)}(h``bool write``h]jS)}(hjh]h bool write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]jM)}(hWhether it's a write accessh]hWhether it’s a write access}(hjѨhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjͨhMhjΨubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjͨhMhjubeh}(h]h ]h"]h$]h&]uh1jhj̧ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj̧ubjM)}(h whether the pmd entry is changedh]h whether the pmd entry is changed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj̧ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hzap_huge_pmd (C function)c.zap_huge_pmdhNtauh1hhjhhhNhNubh)}(hhh](h)}(hfbool zap_huge_pmd (struct mmu_gather *tlb, struct vm_area_struct *vma, pmd_t *pmd, unsigned long addr)h]h)}(hebool zap_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, pmd_t *pmd, unsigned long addr)h](j)}(hj.h]hbool}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMq ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjEhMq ubh)}(h zap_huge_pmdh]j)}(h zap_huge_pmdh]h zap_huge_pmd}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1hhj4hhhjEhMq ubj )}(hT(struct mmu_gather *tlb, struct vm_area_struct *vma, pmd_t *pmd, unsigned long addr)h](j )}(hstruct mmu_gather *tlbh](j5)}(hj8h]hstruct}(hjthhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j)}(h mmu_gatherh]h mmu_gather}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljZsbc.zap_huge_pmdasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjpubj)}(htlbh]htlb}(hjͩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.zap_huge_pmdasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubj )}(h pmd_t *pmdh](h)}(hhh]j)}(hpmd_th]hpmd_t}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj[modnameN classnameNjpjs)}jv]jc.zap_huge_pmdasbuh1hhjRubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjRubj)}(hpmdh]hpmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjǪhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjժhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubeh}(h]h ]h"]h$]h&]jjuh1j hj4hhhjEhMq ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj0hhhjEhMq ubah}(h]j+ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjEhMq hj-hhubj4)}(hhh]jM)}(h$Zap a huge THP which is of PMD size.h]h$Zap a huge THP which is of PMD size.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMq hj hhubah}(h]h ]h"]h$]h&]uh1j3hj-hhhjEhMq ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj%jHj%jIjJjKuh1hhhhjhNhNubj)}(hXY**Parameters** ``struct mmu_gather *tlb`` The MMU gather TLB state associated with the operation. ``struct vm_area_struct *vma`` The VMA containing the range to zap. ``pmd_t *pmd`` A pointer to the leaf PMD entry. ``unsigned long addr`` The virtual address for the range to zap. **Return** ``true`` on success, ``false`` otherwise.h](jM)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMu hj)ubj)}(hhh](j)}(hS``struct mmu_gather *tlb`` The MMU gather TLB state associated with the operation. h](j)}(h``struct mmu_gather *tlb``h]jS)}(hjNh]hstruct mmu_gather *tlb}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMr hjHubj)}(hhh]jM)}(h7The MMU gather TLB state associated with the operation.h]h7The MMU gather TLB state associated with the operation.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjchMr hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMr hjEubj)}(hD``struct vm_area_struct *vma`` The VMA containing the range to zap. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMs hjubj)}(hhh]jM)}(h$The VMA containing the range to zap.h]h$The VMA containing the range to zap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMs hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMs hjEubj)}(h0``pmd_t *pmd`` A pointer to the leaf PMD entry. h](j)}(h``pmd_t *pmd``h]jS)}(hjh]h pmd_t *pmd}(hj«hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMt hjubj)}(hhh]jM)}(h A pointer to the leaf PMD entry.h]h A pointer to the leaf PMD entry.}(hj٫hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjիhMt hj֫ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjիhMt hjEubj)}(hA``unsigned long addr`` The virtual address for the range to zap. h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMu hjubj)}(hhh]jM)}(h)The virtual address for the range to zap.h]h)The virtual address for the range to zap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMu hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMu hjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubjM)}(h **Return**h]j)}(hj4h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMw hj)ubjM)}(h)``true`` on success, ``false`` otherwise.h](jS)}(h``true``h]htrue}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubh on success, }(hjJhhhNhNubjS)}(h ``false``h]hfalse}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubh otherwise.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMw hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__split_unmapped_folio (C function)c.__split_unmapped_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hint __split_unmapped_folio (struct folio *folio, int new_order, struct page *split_at, struct xa_state *xas, struct address_space *mapping, enum split_type split_type)h]h)}(hint __split_unmapped_folio(struct folio *folio, int new_order, struct page *split_at, struct xa_state *xas, struct address_space *mapping, enum split_type split_type)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM1ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM1ubh)}(h__split_unmapped_folioh]j)}(h__split_unmapped_folioh]h__split_unmapped_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM1ubj )}(h(struct folio *folio, int new_order, struct page *split_at, struct xa_state *xas, struct address_space *mapping, enum split_type split_type)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj֬hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjҬubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҬubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.__split_unmapped_folioasbuh1hhjҬubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҬubjF )}(hjI h]h*}(hj"hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjҬubj)}(hfolioh]hfolio}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҬubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjάubj )}(h int new_orderh](j)}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h new_orderh]h new_order}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjάubj )}(hstruct page *split_ath](j5)}(hj8h]hstruct}(hj}hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__split_unmapped_folioasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjF )}(hjI h]h*}(hjǭhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjyubj)}(hsplit_ath]hsplit_at}(hjԭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjάubj )}(hstruct xa_state *xash](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jc.__split_unmapped_folioasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj7hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hxash]hxas}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjάubj )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj]hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(h address_spaceh]h address_space}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jc.__split_unmapped_folioasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjYubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjάubj )}(henum split_type split_typeh](j5)}(hjEh]henum}(hjͮhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjɮubj)}(h h]h }(hjڮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɮubh)}(hhh]j)}(h split_typeh]h split_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__split_unmapped_folioasbuh1hhjɮubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɮubj)}(h split_typeh]h split_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɮubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjάubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM1ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM1ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM1hjhhubj4)}(hhh]jM)}(hcsplits an unmapped **folio** to lower order folios in two ways: uniform split or non-uniform split.h](hsplits an unmapped }(hjAhhhNhNubj)}(h **folio**h]hfolio}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubhG to lower order folios in two ways: uniform split or non-uniform split.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM1hj>hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM1ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjkjHjkjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` the to-be-split folio ``int new_order`` the smallest order of the after split folios (since buddy allocator like split generates folios with orders from **folio**'s order - 1 to new_order). ``struct page *split_at`` in buddy allocator like split, the folio containing **split_at** will be split until its order becomes **new_order**. ``struct xa_state *xas`` xa_state pointing to folio->mapping->i_pages and locked by caller ``struct address_space *mapping`` **folio->mapping** ``enum split_type split_type`` if the split is uniform or not (buddy allocator like split) **Description** 1. uniform split: the given **folio** into multiple **new_order** small folios, where all small folios have the same order. This is done when split_type is SPLIT_TYPE_UNIFORM. 2. buddy allocator like (non-uniform) split: the given **folio** is split into half and one of the half (containing the given page) is split into half until the given **folio**'s order becomes **new_order**. This is done when split_type is SPLIT_TYPE_NON_UNIFORM. The high level flow for these two methods are: 1. uniform split: **xas** is split with no expectation of failure and a single __split_folio_to_order() is called to split the **folio** into **new_order** along with stats update. 2. non-uniform split: folio_order - **new_order** calls to __split_folio_to_order() are expected to be made in a for loop to split the **folio** to one lower order at a time. The folio containing **split_at** is split in each iteration. **xas** is split into half in each iteration and can fail. A failed **xas** split leaves split folios as is without merging them back. After splitting, the caller's folio reference will be transferred to the folio containing **split_at**. The caller needs to unlock and/or free after-split folios if necessary. **Return** 0 - successful, <0 - failed (if -ENOMEM is returned, **folio** might be split but not to **new_order**, the caller needs to check)h](jM)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM5hjoubj)}(hhh](j)}(h.``struct folio *folio`` the to-be-split folio h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM3hjubj)}(hhh]jM)}(hthe to-be-split folioh]hthe to-be-split folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubj)}(h``int new_order`` the smallest order of the after split folios (since buddy allocator like split generates folios with orders from **folio**'s order - 1 to new_order). h](j)}(h``int new_order``h]jS)}(hjͯh]h int new_order}(hjϯhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj˯ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM6hjǯubj)}(hhh]jM)}(hthe smallest order of the after split folios (since buddy allocator like split generates folios with orders from **folio**'s order - 1 to new_order).h](hqthe smallest order of the after split folios (since buddy allocator like split generates folios with orders from }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’s order - 1 to new_order).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM4hjubah}(h]h ]h"]h$]h&]uh1jhjǯubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubj)}(h``struct page *split_at`` in buddy allocator like split, the folio containing **split_at** will be split until its order becomes **new_order**. h](j)}(h``struct page *split_at``h]jS)}(hjh]hstruct page *split_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM8hjubj)}(hhh]jM)}(huin buddy allocator like split, the folio containing **split_at** will be split until its order becomes **new_order**.h](h4in buddy allocator like split, the folio containing }(hj2hhhNhNubj)}(h **split_at**h]hsplit_at}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh' will be split until its order becomes }(hj2hhhNhNubj)}(h **new_order**h]h new_order}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM7hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hM8hjubj)}(h[``struct xa_state *xas`` xa_state pointing to folio->mapping->i_pages and locked by caller h](j)}(h``struct xa_state *xas``h]jS)}(hjwh]hstruct xa_state *xas}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM9hjqubj)}(hhh]jM)}(hAxa_state pointing to folio->mapping->i_pages and locked by callerh]hAxa_state pointing to folio->mapping->i_pages and locked by caller}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjubj)}(h5``struct address_space *mapping`` **folio->mapping** h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM:hjubj)}(hhh]jM)}(h**folio->mapping**h]j)}(hj˰h]hfolio->mapping}(hjͰhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɰubah}(h]h ]h"]h$]h&]uh1jLhjŰhM:hjưubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŰhM:hjubj)}(h[``enum split_type split_type`` if the split is uniform or not (buddy allocator like split) h](j)}(h``enum split_type split_type``h]jS)}(hjh]henum split_type split_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM;hjubj)}(hhh]jM)}(h;if the split is uniform or not (buddy allocator like split)h]h;if the split is uniform or not (buddy allocator like split)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubeh}(h]h ]h"]h$]h&]uh1jhjoubjM)}(h**Description**h]j)}(hj-h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM=hjoubj/)}(hhh](j/)}(huniform split: the given **folio** into multiple **new_order** small folios, where all small folios have the same order. This is done when split_type is SPLIT_TYPE_UNIFORM.h]jM)}(huniform split: the given **folio** into multiple **new_order** small folios, where all small folios have the same order. This is done when split_type is SPLIT_TYPE_UNIFORM.h](huniform split: the given }(hjJhhhNhNubj)}(h **folio**h]hfolio}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh into multiple }(hjJhhhNhNubj)}(h **new_order**h]h new_order}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubhn small folios, where all small folios have the same order. This is done when split_type is SPLIT_TYPE_UNIFORM.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM<hjFubah}(h]h ]h"]h$]h&]uh1j/hjCubj/)}(hXbuddy allocator like (non-uniform) split: the given **folio** is split into half and one of the half (containing the given page) is split into half until the given **folio**'s order becomes **new_order**. This is done when split_type is SPLIT_TYPE_NON_UNIFORM. h]jM)}(hXbuddy allocator like (non-uniform) split: the given **folio** is split into half and one of the half (containing the given page) is split into half until the given **folio**'s order becomes **new_order**. This is done when split_type is SPLIT_TYPE_NON_UNIFORM.h](h4buddy allocator like (non-uniform) split: the given }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhg is split into half and one of the half (containing the given page) is split into half until the given }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’s order becomes }(hjhhhNhNubj)}(h **new_order**h]h new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh9. This is done when split_type is SPLIT_TYPE_NON_UNIFORM.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM?hjubah}(h]h ]h"]h$]h&]uh1j/hjCubeh}(h]h ]h"]h$]h&]j[0j\0j]0hj^0j_0uh1j/hjoubjM)}(h.The high level flow for these two methods are:h]h.The high level flow for these two methods are:}(hjرhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMDhjoubj/)}(hhh](j/)}(huniform split: **xas** is split with no expectation of failure and a single __split_folio_to_order() is called to split the **folio** into **new_order** along with stats update.h]jM)}(huniform split: **xas** is split with no expectation of failure and a single __split_folio_to_order() is called to split the **folio** into **new_order** along with stats update.h](huniform split: }(hjhhhNhNubj)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhf is split with no expectation of failure and a single __split_folio_to_order() is called to split the }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh into }(hjhhhNhNubj)}(h **new_order**h]h new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh along with stats update.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMFhjubah}(h]h ]h"]h$]h&]uh1j/hjubj/)}(hXqnon-uniform split: folio_order - **new_order** calls to __split_folio_to_order() are expected to be made in a for loop to split the **folio** to one lower order at a time. The folio containing **split_at** is split in each iteration. **xas** is split into half in each iteration and can fail. A failed **xas** split leaves split folios as is without merging them back. h]jM)}(hXpnon-uniform split: folio_order - **new_order** calls to __split_folio_to_order() are expected to be made in a for loop to split the **folio** to one lower order at a time. The folio containing **split_at** is split in each iteration. **xas** is split into half in each iteration and can fail. A failed **xas** split leaves split folios as is without merging them back.h](h!non-uniform split: folio_order - }(hj=hhhNhNubj)}(h **new_order**h]h new_order}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubhV calls to __split_folio_to_order() are expected to be made in a for loop to split the }(hj=hhhNhNubj)}(h **folio**h]hfolio}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh4 to one lower order at a time. The folio containing }(hj=hhhNhNubj)}(h **split_at**h]hsplit_at}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh is split in each iteration. }(hj=hhhNhNubj)}(h**xas**h]hxas}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh= is split into half in each iteration and can fail. A failed }(hj=hhhNhNubj)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh; split leaves split folios as is without merging them back.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMIhj9ubah}(h]h ]h"]h$]h&]uh1j/hjubeh}(h]h ]h"]h$]h&]j[0j\0j]0hj^0j_0uh1j/hjoubjM)}(hAfter splitting, the caller's folio reference will be transferred to the folio containing **split_at**. The caller needs to unlock and/or free after-split folios if necessary.h](h\After splitting, the caller’s folio reference will be transferred to the folio containing }(hjhhhNhNubj)}(h **split_at**h]hsplit_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhI. The caller needs to unlock and/or free after-split folios if necessary.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMPhjoubjM)}(h **Return**h]j)}(hjղh]hReturn}(hjײhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӲubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMThjoubjM)}(h0 - successful, <0 - failed (if -ENOMEM is returned, **folio** might be split but not to **new_order**, the caller needs to check)h](h50 - successful, <0 - failed (if -ENOMEM is returned, }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh might be split but not to }(hjhhhNhNubj)}(h **new_order**h]h new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, the caller needs to check)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMVhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#folio_check_splittable (C function)c.folio_check_splittablehNtauh1hhjhhhNhNubh)}(hhh](h)}(hdint folio_check_splittable (struct folio *folio, unsigned int new_order, enum split_type split_type)h]h)}(hcint folio_check_splittable(struct folio *folio, unsigned int new_order, enum split_type split_type)h](j)}(hinth]hint}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjLhMubh)}(hfolio_check_splittableh]j)}(hfolio_check_splittableh]hfolio_check_splittable}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhjLhMubj )}(hI(struct folio *folio, unsigned int new_order, enum split_type split_type)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljasbc.folio_check_splittableasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjF )}(hjI h]h*}(hjdzhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwubj)}(hfolioh]hfolio}(hjԳhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(hunsigned int new_orderh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h new_orderh]h new_order}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(henum split_type split_typeh](j5)}(hjEh]henum}(hj>hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(h split_typeh]h split_type}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj^modnameN classnameNjpjs)}jv]jc.folio_check_splittableasbuh1hhj:ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h split_typeh]h split_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubeh}(h]h ]h"]h$]h&]jjuh1j hj:hhhjLhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6hhhjLhMubah}(h]j1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjLhMhj3hhubj4)}(hhh]jM)}(h.check if a folio can be split to a given orderh]h.check if a folio can be split to a given order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj3hhhjLhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjʴjHjʴjIjJjKuh1hhhhjhNhNubj)}(hX\**Parameters** ``struct folio *folio`` folio to be split ``unsigned int new_order`` the smallest order of the after split folios (since buddy allocator like split generates folios with orders from **folio**'s order - 1 to new_order). ``enum split_type split_type`` uniform or non-uniform split **Description** folio_check_splittable() checks if **folio** can be split to **new_order** using **split_type** method. The truncated folio check must come first. **Context** folio must be locked. **Return** 0 - **folio** can be split to **new_order**, otherwise an error number is returned.h](jM)}(h**Parameters**h]j)}(hjԴh]h Parameters}(hjִhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҴubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjδubj)}(hhh](j)}(h*``struct folio *folio`` folio to be split h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]jM)}(hfolio to be splith]hfolio to be split}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``unsigned int new_order`` the smallest order of the after split folios (since buddy allocator like split generates folios with orders from **folio**'s order - 1 to new_order). h](j)}(h``unsigned int new_order``h]jS)}(hj,h]hunsigned int new_order}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj&ubj)}(hhh]jM)}(hthe smallest order of the after split folios (since buddy allocator like split generates folios with orders from **folio**'s order - 1 to new_order).h](hqthe smallest order of the after split folios (since buddy allocator like split generates folios with orders from }(hjEhhhNhNubj)}(h **folio**h]hfolio}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh’s order - 1 to new_order).}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjubj)}(h<``enum split_type split_type`` uniform or non-uniform split h](j)}(h``enum split_type split_type``h]jS)}(hjxh]henum split_type split_type}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjvubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjrubj)}(hhh]jM)}(huniform or non-uniform splith]huniform or non-uniform split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjδubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjδubjM)}(hfolio_check_splittable() checks if **folio** can be split to **new_order** using **split_type** method. The truncated folio check must come first.h](h#folio_check_splittable() checks if }(hjɵhhhNhNubj)}(h **folio**h]hfolio}(hjѵhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɵubh can be split to }(hjɵhhhNhNubj)}(h **new_order**h]h new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɵubh using }(hjɵhhhNhNubj)}(h**split_type**h]h split_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɵubh3 method. The truncated folio check must come first.}(hjɵhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjδubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjδubjM)}(hfolio must be locked.h]hfolio must be locked.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjδubjM)}(h **Return**h]j)}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjδubjM)}(hS0 - **folio** can be split to **new_order**, otherwise an error number is returned.h](h0 - }(hjMhhhNhNubj)}(h **folio**h]hfolio}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh can be split to }(hjMhhhNhNubj)}(h **new_order**h]h new_order}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh(, otherwise an error number is returned.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjδubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__folio_split (C function)c.__folio_splithNtauh1hhjhhhNhNubh)}(hhh](h)}(hint __folio_split (struct folio *folio, unsigned int new_order, struct page *split_at, struct page *lock_at, struct list_head *list, enum split_type split_type)h]h)}(hint __folio_split(struct folio *folio, unsigned int new_order, struct page *split_at, struct page *lock_at, struct list_head *list, enum split_type split_type)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMtubh)}(h __folio_splith]j)}(h __folio_splith]h __folio_split}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMtubj )}(h(struct folio *folio, unsigned int new_order, struct page *split_at, struct page *lock_at, struct list_head *list, enum split_type split_type)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjݶhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjٶubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٶubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljösbc.__folio_splitasbuh1hhjٶubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٶubjF )}(hjI h]h*}(hj)hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjٶubj)}(hfolioh]hfolio}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٶubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjնubj )}(hunsigned int new_orderh](j)}(hunsignedh]hunsigned}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h new_orderh]h new_order}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjնubj )}(hstruct page *split_ath](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__folio_splitasbuh1hhjubj)}(h h]h }(hjܷhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hsplit_ath]hsplit_at}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjնubj )}(hstruct page *lock_ath](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hpageh]hpage}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj0modnameN classnameNjpjs)}jv]jc.__folio_splitasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjZhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hlock_ath]hlock_at}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjնubj )}(hstruct list_head *listh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__folio_splitasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjF )}(hjI h]h*}(hjʸhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj|ubj)}(hlisth]hlist}(hj׸hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjնubj )}(henum split_type split_typeh](j5)}(hjEh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h split_typeh]h split_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__folio_splitasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h split_typeh]h split_type}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjնubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMtubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMtubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMthjhhubj4)}(hhh]jM)}(h6split a folio at **split_at** to a **new_order** folioh](hsplit a folio at }(hjdhhhNhNubj)}(h **split_at**h]hsplit_at}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh to a }(hjdhhhNhNubj)}(h **new_order**h]h new_order}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh folio}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMthjahhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMtubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` folio to split ``unsigned int new_order`` the order of the new folio ``struct page *split_at`` a page within the new folio ``struct page *lock_at`` a page within **folio** to be left locked to caller ``struct list_head *list`` after-split folios will be put on it if non NULL ``enum split_type split_type`` perform uniform split or not (non-uniform split) **Description** It calls __split_unmapped_folio() to perform uniform and non-uniform split. It is in charge of checking whether the split is supported or not and preparing **folio** for __split_unmapped_folio(). After splitting, the after-split folio containing **lock_at** remains locked and others are unlocked: 1. for uniform split, **lock_at** points to one of **folio**'s subpages; 2. for buddy allocator like (non-uniform) split, **lock_at** points to **folio**. **Return** 0 - successful, <0 - failed (if -ENOMEM is returned, **folio** might be split but not to **new_order**, the caller needs to check)h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMxhjubj)}(hhh](j)}(h'``struct folio *folio`` folio to split h](j)}(h``struct folio *folio``h]jS)}(hjɹh]hstruct folio *folio}(hj˹hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjǹubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMuhjùubj)}(hhh]jM)}(hfolio to splith]hfolio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj޹hMuhj߹ubah}(h]h ]h"]h$]h&]uh1jhjùubeh}(h]h ]h"]h$]h&]uh1jhj޹hMuhjubj)}(h6``unsigned int new_order`` the order of the new folio h](j)}(h``unsigned int new_order``h]jS)}(hjh]hunsigned int new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMvhjubj)}(hhh]jM)}(hthe order of the new folioh]hthe order of the new folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubj)}(h6``struct page *split_at`` a page within the new folio h](j)}(h``struct page *split_at``h]jS)}(hj;h]hstruct page *split_at}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMwhj5ubj)}(hhh]jM)}(ha page within the new folioh]ha page within the new folio}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhMwhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMwhjubj)}(hM``struct page *lock_at`` a page within **folio** to be left locked to caller h](j)}(h``struct page *lock_at``h]jS)}(hjth]hstruct page *lock_at}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjrubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMxhjnubj)}(hhh]jM)}(h3a page within **folio** to be left locked to callerh](ha page within }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to be left locked to caller}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjubj)}(hL``struct list_head *list`` after-split folios will be put on it if non NULL h](j)}(h``struct list_head *list``h]jS)}(hjh]hstruct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMyhjubj)}(hhh]jM)}(h0after-split folios will be put on it if non NULLh]h0after-split folios will be put on it if non NULL}(hjغhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjԺhMyhjպubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԺhMyhjubj)}(hP``enum split_type split_type`` perform uniform split or not (non-uniform split) h](j)}(h``enum split_type split_type``h]jS)}(hjh]henum split_type split_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMzhjubj)}(hhh]jM)}(h0perform uniform split or not (non-uniform split)h]h0perform uniform split or not (non-uniform split)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMzhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMzhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM|hjubjM)}(hIt calls __split_unmapped_folio() to perform uniform and non-uniform split. It is in charge of checking whether the split is supported or not and preparing **folio** for __split_unmapped_folio().h](hIt calls __split_unmapped_folio() to perform uniform and non-uniform split. It is in charge of checking whether the split is supported or not and preparing }(hjIhhhNhNubj)}(h **folio**h]hfolio}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh for __split_unmapped_folio().}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM{hjubjM)}(hXAfter splitting, the after-split folio containing **lock_at** remains locked and others are unlocked: 1. for uniform split, **lock_at** points to one of **folio**'s subpages; 2. for buddy allocator like (non-uniform) split, **lock_at** points to **folio**.h](h2After splitting, the after-split folio containing }(hjjhhhNhNubj)}(h **lock_at**h]hlock_at}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh? remains locked and others are unlocked: 1. for uniform split, }(hjjhhhNhNubj)}(h **lock_at**h]hlock_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh points to one of }(hjjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh@’s subpages; 2. for buddy allocator like (non-uniform) split, }(hjjhhhNhNubj)}(h **lock_at**h]hlock_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh points to }(hjjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(h **Return**h]j)}(hjջh]hReturn}(hj׻hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӻubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(h0 - successful, <0 - failed (if -ENOMEM is returned, **folio** might be split but not to **new_order**, the caller needs to check)h](h50 - successful, <0 - failed (if -ENOMEM is returned, }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh might be split but not to }(hjhhhNhNubj)}(h **new_order**h]h new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, the caller needs to check)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_split_unmapped (C function)c.folio_split_unmappedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hFint folio_split_unmapped (struct folio *folio, unsigned int new_order)h]h)}(hEint folio_split_unmapped(struct folio *folio, unsigned int new_order)h](j)}(hinth]hint}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM3ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjLhM3ubh)}(hfolio_split_unmappedh]j)}(hfolio_split_unmappedh]hfolio_split_unmapped}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhjLhM3ubj )}(h-(struct folio *folio, unsigned int new_order)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljasbc.folio_split_unmappedasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjF )}(hjI h]h*}(hjǼhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwubj)}(hfolioh]hfolio}(hjԼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(hunsigned int new_orderh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h new_orderh]h new_order}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubeh}(h]h ]h"]h$]h&]jjuh1j hj:hhhjLhM3ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6hhhjLhM3ubah}(h]j1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjLhM3hj3hhubj4)}(hhh]jM)}(h1split a large anon folio that is already unmappedh]h1split a large anon folio that is already unmapped}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM3hjLhhubah}(h]h ]h"]h$]h&]uh1j3hj3hhhjLhM3ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjgjHjgjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` folio to split ``unsigned int new_order`` the order of folios after split **Description** This function is a helper for splitting folios that have already been unmapped. The use case is that the device or the CPU can refuse to migrate THP pages in the middle of migration, due to allocation issues on either side. anon_vma_lock is not required to be held, mmap_read_lock() or mmap_write_lock() should be held. **folio** is expected to be locked by the caller. device-private and non device-private folios are supported along with folios that are in the swapcache. **folio** should also be unmapped and isolated from LRU (if applicable) Upon return, the folio is not remapped, split folios are not added to LRU, free_folio_and_swap_cache() is not called, and new folios remain locked. **Return** 0 on success, -EAGAIN if the folio cannot be split (e.g., due to insufficient reference count or extra pins).h](jM)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM7hjkubj)}(hhh](j)}(h'``struct folio *folio`` folio to split h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM4hjubj)}(hhh]jM)}(hfolio to splith]hfolio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjubj)}(h;``unsigned int new_order`` the order of folios after split h](j)}(h``unsigned int new_order``h]jS)}(hjɽh]hunsigned int new_order}(hj˽hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjǽubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM5hjýubj)}(hhh]jM)}(hthe order of folios after splith]hthe order of folios after split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj޽hM5hj߽ubah}(h]h ]h"]h$]h&]uh1jhjýubeh}(h]h ]h"]h$]h&]uh1jhj޽hM5hjubeh}(h]h ]h"]h$]h&]uh1jhjkubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM7hjkubjM)}(hThis function is a helper for splitting folios that have already been unmapped. The use case is that the device or the CPU can refuse to migrate THP pages in the middle of migration, due to allocation issues on either side.h]hThis function is a helper for splitting folios that have already been unmapped. The use case is that the device or the CPU can refuse to migrate THP pages in the middle of migration, due to allocation issues on either side.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM6hjkubjM)}(hXAanon_vma_lock is not required to be held, mmap_read_lock() or mmap_write_lock() should be held. **folio** is expected to be locked by the caller. device-private and non device-private folios are supported along with folios that are in the swapcache. **folio** should also be unmapped and isolated from LRU (if applicable)h](h`anon_vma_lock is not required to be held, mmap_read_lock() or mmap_write_lock() should be held. }(hj)hhhNhNubj)}(h **folio**h]hfolio}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh is expected to be locked by the caller. device-private and non device-private folios are supported along with folios that are in the swapcache. }(hj)hhhNhNubj)}(h **folio**h]hfolio}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh> should also be unmapped and isolated from LRU (if applicable)}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM;hjkubjM)}(hUpon return, the folio is not remapped, split folios are not added to LRU, free_folio_and_swap_cache() is not called, and new folios remain locked.h]hUpon return, the folio is not remapped, split folios are not added to LRU, free_folio_and_swap_cache() is not called, and new folios remain locked.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMAhjkubjM)}(h **Return**h]j)}(hjmh]hReturn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMDhjkubjM)}(hm0 on success, -EAGAIN if the folio cannot be split (e.g., due to insufficient reference count or extra pins).h]hm0 on success, -EAGAIN if the folio cannot be split (e.g., due to insufficient reference count or extra pins).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMEhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_split (C function) c.folio_splithNtauh1hhjhhhNhNubh)}(hhh](h)}(hlint folio_split (struct folio *folio, unsigned int new_order, struct page *split_at, struct list_head *list)h]h)}(hkint folio_split(struct folio *folio, unsigned int new_order, struct page *split_at, struct list_head *list)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h folio_splith]j)}(h folio_splith]h folio_split}(hjӾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϾubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h\(struct folio *folio, unsigned int new_order, struct page *split_at, struct list_head *list)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljվsb c.folio_splitasbuh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj;hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int new_orderh](j)}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h new_orderh]h new_order}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *split_ath](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjпhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͿubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjҿmodnameN classnameNjpjs)}jv]j) c.folio_splitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hsplit_ath]hsplit_at}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct list_head *listh](j5)}(hj8h]hstruct}(hj"hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h list_headh]h list_head}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]j) c.folio_splitasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hlisth]hlist}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h6split a folio at **split_at** to a **new_order** folioh](hsplit a folio at }(hjhhhNhNubj)}(h **split_at**h]hsplit_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to a }(hjhhhNhNubj)}(h **new_order**h]h new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh folio}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX&**Parameters** ``struct folio *folio`` folio to split ``unsigned int new_order`` the order of the new folio ``struct page *split_at`` a page within the new folio ``struct list_head *list`` after-split folios are added to **list** if not null, otherwise to LRU list **Description** It has the same prerequisites and returns as split_huge_page_to_list_to_order(). Split a folio at **split_at** to a new_order folio, leave the remaining subpages of the original folio as large as possible. For example, in the case of splitting an order-9 folio at its third order-3 subpages to an order-3 folio, there are 2^(9-3)=64 order-3 subpages in the order-9 folio. After the split, there will be a group of folios with different orders and the new folio containing **split_at** is marked in bracket: [order-4, {order-3}, order-3, order-5, order-6, order-7, order-8]. After split, folio is left locked for caller. **Return** 0 - successful, <0 - failed (if -ENOMEM is returned, **folio** might be split but not to **new_order**, the caller needs to check)h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh](j)}(h'``struct folio *folio`` folio to split h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]jM)}(hfolio to splith]hfolio to split}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h6``unsigned int new_order`` the order of the new folio h](j)}(h``unsigned int new_order``h]jS)}(hjAh]hunsigned int new_order}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj?ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj;ubj)}(hhh]jM)}(hthe order of the new folioh]hthe order of the new folio}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubj)}(h6``struct page *split_at`` a page within the new folio h](j)}(h``struct page *split_at``h]jS)}(hjzh]hstruct page *split_at}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjtubj)}(hhh]jM)}(ha page within the new folioh]ha page within the new folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hg``struct list_head *list`` after-split folios are added to **list** if not null, otherwise to LRU list h](j)}(h``struct list_head *list``h]jS)}(hjh]hstruct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]jM)}(hKafter-split folios are added to **list** if not null, otherwise to LRU listh](h after-split folios are added to }(hjhhhNhNubj)}(h**list**h]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# if not null, otherwise to LRU list}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(hPIt has the same prerequisites and returns as split_huge_page_to_list_to_order().h]hPIt has the same prerequisites and returns as split_huge_page_to_list_to_order().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(hXSplit a folio at **split_at** to a new_order folio, leave the remaining subpages of the original folio as large as possible. For example, in the case of splitting an order-9 folio at its third order-3 subpages to an order-3 folio, there are 2^(9-3)=64 order-3 subpages in the order-9 folio. After the split, there will be a group of folios with different orders and the new folio containing **split_at** is marked in bracket: [order-4, {order-3}, order-3, order-5, order-6, order-7, order-8].h](hSplit a folio at }(hj&hhhNhNubj)}(h **split_at**h]hsplit_at}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubhXj to a new_order folio, leave the remaining subpages of the original folio as large as possible. For example, in the case of splitting an order-9 folio at its third order-3 subpages to an order-3 folio, there are 2^(9-3)=64 order-3 subpages in the order-9 folio. After the split, there will be a group of folios with different orders and the new folio containing }(hj&hhhNhNubj)}(h **split_at**h]hsplit_at}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubhY is marked in bracket: [order-4, {order-3}, order-3, order-5, order-6, order-7, order-8].}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(h-After split, folio is left locked for caller.h]h-After split, folio is left locked for caller.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(h **Return**h]j)}(hjjh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(h0 - successful, <0 - failed (if -ENOMEM is returned, **folio** might be split but not to **new_order**, the caller needs to check)h](h50 - successful, <0 - failed (if -ENOMEM is returned, }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh might be split but not to }(hjhhhNhNubj)}(h **new_order**h]h new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, the caller needs to check)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h min_order_for_split (C function)c.min_order_for_splithNtauh1hhjhhhNhNubh)}(hhh](h)}(h6unsigned int min_order_for_split (struct folio *folio)h]h)}(h5unsigned int min_order_for_split(struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmin_order_for_splith]j)}(hmin_order_for_splith]hmin_order_for_split}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj,hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubh)}(hhh]j)}(hfolioh]hfolio}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjLmodnameN classnameNjpjs)}jv]jy)}jljsbc.min_order_for_splitasbuh1hhj(ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjF )}(hjI h]h*}(hjxhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj(ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h/get the minimum order **folio** can be split toh](hget the minimum order }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh can be split to}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3*hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hXF**Parameters** ``struct folio *folio`` folio to split **Description** min_order_for_split() tells the minimum order **folio** can be split to. If a file-backed folio is truncated, 0 will be returned. Any subsequent split attempt should get -EBUSY from split checking code. **Return** **folio**'s minimum order for splith](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]j)}(h'``struct folio *folio`` folio to split h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]jM)}(hfolio to splith]hfolio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(hmin_order_for_split() tells the minimum order **folio** can be split to. If a file-backed folio is truncated, 0 will be returned. Any subsequent split attempt should get -EBUSY from split checking code.h](h.min_order_for_split() tells the minimum order }(hjShhhNhNubj)}(h **folio**h]hfolio}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh can be split to. If a file-backed folio is truncated, 0 will be returned. Any subsequent split attempt should get -EBUSY from split checking code.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(h **Return**h]j)}(hjvh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(h#**folio**'s minimum order for splith](j)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’s minimum order for split}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] more-memory-management-functionsah ]h"] more memory management functionsah$]h&]uh1hhhhhhhhK_ubeh}(h]memory-management-apisah ]h"]memory management apisah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehʌ _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}j@]j5asnameids}(jjjFjCjbj@jaj^jJjGjjjEjBjYjVjtjtjqjnjjjjjbj_jPjMjjjjjju nametypes}(jjFjbjajJjjEjYjtjqjjjbjPjjjuh}(jhjChhhjjjjjjjjj j j j j@jIj^jIjGjZjjMjBjjVjHjtjijjjmjrjjjjjojjj'j,j$j$jd'ji'j+j+j .j.j0j0j}5j5j7j7j9j9jN<jS<j=j=j1?j6?jAj!Aj]CjbCj]FjbFjGjGjtIjyIj Lj%LjcPjhPjQjQjTjTjVjVjXjXjYjZj[j[j\j]j^j^jbjbj\gjagjkjkj;mj@mjnjnjpjpjqjqjfsjksjnjtjtjuj3vj8vjxjxjzjzj|j|j4~j9~jjjjjjjSjXjjjՎjڎj{jjjj֔j۔j^jcjjjjjjtjjjjjijnj!j&jצjܦjjjYj^jjjjj[j`j&j+j jjjj*j/jҾj׾jjjwj|jjjjjrjwjjjujzjJjOjj$jjjjjjjMjRj2j7jjjjjj jjjjjjjjj.j3jjj_jjjjjjMjejjj j je jj j jjjjj"jjj8j=jjjjjjSjpjuj!j!j#j#j%j&j'j'jv*j{*j -j%-j.j.j0j0j2j3j5j5j8j8j:j:j <j%<j=j=jH?jM?jFAjKAjBjBjEj#EjFjFjHjHjvJj{JjrLjwLjNjNjWPj\Pj~RjRjSjSjWjWjZj Zj\j\jR_jW_jajajdjdjgjgj&jj+jjkjkjmjmjojoj+rj0rjtjtjuvjzvjCxjHxjyjyj{j{jq}jv}j:j?jjjʅjυjЉjՉjŋjʋjNjSj׎j܎j`jejjj{jjjjjj٘jޘjjj4j9jjj1j6jfjkjjj(j-jjjUjZjjjjjhjmjjjjjFjKjUjZjPjUjjjZj_j*j/jjjj!jAjFjjjujzjPjUjj!jjj}jjvj{jjjjjjjjjj jXj]jBjGjjjjjjjjjjj j j4 j9 jT jY jjjjjBjGjjjjjjjO!jT!jh#jm#j%j%jt(jy(j<,jA,j/j/j:2j?2j'5j,5ju7jz7j9j9j<j<j=j=jiFjnFjKjKjLjLjIPjNPjTjTjVjVj(Xj-XjYjYjD\jI\j]j]j_j_jBajGajbjbjxdj}dj:fj?fjgjgjijijkjljljlj4nj9njpj pjqjqjgsjlsjWuj\ujvjvjixjnxjzj zj{j{j/}j4}jEjJjjĵjтj#j(jzjjщj։jjjajfjjjƐjːjj j jjjjjjjjjj̞jўjMjRjΡjӡjijnjjj/j4jjjjjdjij\jajAjFj͵jҵj:j?j˻jлjjjGjLjjjjjMjRjjjjjtjyj~jjjjjjjjJjOjjjjjjjzjjjjjjjjjjXj]jjj}jjjjWj\jDjIjjj j j j jjjjjjjjjj j#j(jv!j{!j &j&j*(j/(j)j)j,j,jI0jN0j4j4j7j7j?j ?jAjBjUDjZDjGjGjJjJjiMjnMjPjPjQjQjSjSj)Uj.UjVjVj%Xj*XjYjYj [j[j\j\j_j_j`j`jbjbjdjdjejejijijjjjjnjnjpjpj&rj+rjtj tjujujwjwjyjyj${j){ju}jz}j]jbjjj߂jjjjj"jjj)j.jjj$j)jjjfjkjjjojjj˛jЛjjj(j-j!j&jФjդjjjtjyjjjjjqjvj:j?jJjOjjjjj޺jjjj3j8jjjjjjjjjjjejjjjjjjj jjjxj}jjj<jAjjjjjpjujjjjjjjj j!j&jjj0j5jjj_jdjdjijjj;j@jSjXjvj{j< jA jj jjjrjwjjj<jAjnjsjjj!j"!jz#j#jh%jm%jH'jM'j)j)j,j,j/j/j2j2jr5jw5j7j7j9j9jq<jv<j>j>j@j@jDjDjEjEjFjFj)Hj.HjIjIjFKjKKjMjMjNjNj=QjBQjRjRj&Uj+Uj?YjDYj\j\j~`j`jbjbj.ej3ejgjgjjjjj mjmjnjnjqj!qjsjsjNujSujwjwjyjyjd|ji|j}j}jjjdjijjjJjOjj jjjjjjjjjjjjj'j,jjjjjjjjj`jej jj+j0jjj1j6jjj1j6jjjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages]hsystem_message)}(hhh]jM)}(hhh]h6Hyperlink target "mm-api-gfp-flags" is not referenced.}hjMsbah}(h]h ]h"]h$]h&]uh1jLhjJubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehʌlineKuh1jHuba transformerN include_log] decorationNhhub.