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}(hjq'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm'hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm'hhhj'hMubjF )}(hjI h]h*}(hj'hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjm'hhhj'hMubh)}(hkmem_cache_alloch]j)}(hkmem_cache_alloch]hkmem_cache_alloc}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjm'hhhj'hMubj )}(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&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj'modnameN classnameNjpjs)}jv]jy)}jlj'sbc.kmem_cache_allocasbuh1hhj'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)}(hcacheph]hcachep}(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}(hj0(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj2(modnameN classnameNjpjs)}jv]j'c.kmem_cache_allocasbuh1hhj)(ubj)}(h h]h }(hjN(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 hjm'hhhj'hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hji'hhhj'hMubah}(h]jd'ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj'hMhjf'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.hhMhj(hhubah}(h]h ]h"]h$]h&]uh1j3hjf'hhhj'hMubeh}(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.hhMhj(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.hhMhj(ubj)}(hhh]jM)}(hThe cache to allocate from.h]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`` See kmalloc(). h](j)}(h``gfp_t flags``h]jS)}(hj)h]h gfp_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)}(hSee kmalloc().h]hSee kmalloc().}(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&]uh1jhj9)ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj(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.}(hjQ)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj(ubjM)}(h **Return**h]j)}(hjb)h]hReturn}(hjd)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)}(h6pointer to the new object or ``NULL`` in case of errorh](hpointer to the new object or }(hjx)hhhNhNubjS)}(h``NULL``h]hNULL}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjx)ubh in case of error}(hjx)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj(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.hhMubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj)hMubh)}(hkmem_cache_chargeh]j)}(hkmem_cache_chargeh]hkmem_cache_charge}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj)hhhj)hMubj )}(h(void *objp, gfp_t gfpflags)h](j )}(h void *objph](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*}(hj*hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj)ubj)}(hobjph]hobjp}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubj )}(hgfp_t gfpflagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj;*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8*ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj=*modnameN classnameNjpjs)}jv]jy)}jlj)sbc.kmem_cache_chargeasbuh1hhj4*ubj)}(h h]h }(hj[*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4*ubj)}(hgfpflagsh]hgfpflags}(hji*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4*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-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.hhMhj*hhubah}(h]h ]h"]h$]h&]uh1j3hj)hhhj)hMubeh}(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.hhM hj*ubj)}(hhh](j)}(h:``void *objp`` address of the slab object to memcg charge h](j)}(h``void *objp``h]jS)}(hj*h]h void *objp}(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*address of the slab object to memcg chargeh]h*address of the slab object to memcg charge}(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)}(h3``gfp_t gfpflags`` describe the allocation context h](j)}(h``gfp_t gfpflags``h]jS)}(hj +h]hgfp_t gfpflags}(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)}(hdescribe the allocation contexth]hdescribe the allocation context}(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)}(hjH+h]h Description}(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.hhM hj*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.hhM hj*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.}(hjm+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj*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.hhMhj*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.hhMhj+ubah}(h]h ]h"]h$]h&]uh1j+hj+ubj+)}(hAlready charged slab objects.h]jM)}(hj+h]hAlready charged slab objects.}(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&]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+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&]uh1j+hj+ubj+)}(h(Allocating internal metadata has failed h]jM)}(h'Allocating internal metadata has failedh]h'Allocating internal metadata has failed}(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&]uh1j+hj+ubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1j+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.hhMhj*ubjM)}(h.true if charge was successful otherwise false.h]h.true if charge was successful otherwise false.}(hj,hhhNhNubah}(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](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}(hjF,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB,hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMwubj)}(h h]h }(hjU,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB,hhhjT,hMwubjF )}(hjI h]h*}(hjc,hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjB,hhhjT,hMwubh)}(hkmalloch]j)}(hkmalloch]hkmalloc}(hjt,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp,ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjB,hhhjT,hMwubj )}(h(size_t size, gfp_t flags)h](j )}(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]jy)}jljv,sb c.kmallocasbuh1hhj,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 )}(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]j, c.kmallocasbuh1hhj,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 hjB,hhhjT,hMwubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj>,hhhjT,hMwubah}(h]j9,ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjT,hMwhj;,hhubj4)}(hhh]jM)}(hallocate kernel memoryh]hallocate kernel memory}(hj3-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMwhj0-hhubah}(h]h ]h"]h$]h&]uh1j3hj;,hhhjT,hMwubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjK-jHjK-jIjJjKuh1hhhhjihNhNubj)}(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)}(hjU-h]h Parameters}(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.hhM{hjO-ubj)}(hhh](j)}(h7``size_t size`` how many bytes of memory are required. h](j)}(h``size_t size``h]jS)}(hjt-h]h size_t size}(hjv-hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjr-ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMxhjn-ubj)}(hhh]jM)}(h&how many bytes of memory are required.h]h&how many bytes of memory are required.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj-hMxhj-ubah}(h]h ]h"]h$]h&]uh1jhjn-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMxhjk-ubj)}(h0``gfp_t flags`` describe the allocation context h](j)}(h``gfp_t flags``h]jS)}(hj-h]h gfp_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.hhMyhj-ubj)}(hhh]jM)}(hdescribe the allocation contexth]hdescribe the allocation context}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj-hMyhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMyhjk-ubeh}(h]h ]h"]h$]h&]uh1jhjO-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{hjO-ubjM)}(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-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMzhjO-ubjM)}(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 }(hj .hhhNhNubj)}(h**size**h]hsize}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj .ubh 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 }(hj .hhhNhNubj)}(h**size**h]hsize}(hj'.hhhNhNubah}(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.hhM}hjO-ubjM)}(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 }(hj@.hhhNhNubj)}(h **flags**h]hflags}(hjH.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@.ubh\ argument may be one of the GFP flags defined at include/linux/gfp_types.h and described at }(hj@.hhhNhNubh)}(h;:ref:`Documentation/core-api/mm-api.rst `h]hinline)}(hj\.h]h!Documentation/core-api/mm-api.rst}(hj`.hhhNhNubah}(h]h ](j9stdstd-refeh"]h$]h&]uh1j^.hjZ.ubah}(h]h ]h"]h$]h&]refdocjE refdomainjj.reftyperef refexplicitrefwarnjNmm-api-gfp-flagsuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj@.ubeh}(h]h ]h"]h$]h&]uh1jLhj|.hMhjO-ubjM)}(h~The recommended usage of the **flags** is described at :ref:`Documentation/core-api/memory-allocation.rst `h](hThe recommended usage of the }(hj.hhhNhNubj)}(h **flags**h]hflags}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh is described at }(hj.hhhNhNubh)}(hG:ref:`Documentation/core-api/memory-allocation.rst `h]j_.)}(hj.h]h,Documentation/core-api/memory-allocation.rst}(hj.hhhNhNubah}(h]h ](j9stdstd-refeh"]h$]h&]uh1j^.hj.ubah}(h]h ]h"]h$]h&]refdocjE refdomainj.reftyperef refexplicitrefwarnjNmemory_allocationuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj.ubeh}(h]h ]h"]h$]h&]uh1jLhj.hMhjO-ubjM)}(h5Below is a brief outline of the most useful GFP flagsh]h5Below is a brief outline of the most useful GFP flags}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjO-ubj)}(hhh](j)}(h6``GFP_KERNEL`` Allocate normal kernel ram. May sleep. h](j)}(h``GFP_KERNEL``h]jS)}(hj.h]h GFP_KERNEL}(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&Allocate normal kernel ram. May sleep.h]h&Allocate normal kernel ram. May sleep.}(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_NOWAIT`` Allocation will not sleep. h](j)}(h``GFP_NOWAIT``h]jS)}(hj/h]h GFP_NOWAIT}(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)}(hAllocation will not sleep.h]hAllocation will not sleep.}(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)}(hD``GFP_ATOMIC`` Allocation will not sleep. May use emergency pools. h](j)}(h``GFP_ATOMIC``h]jS)}(hjN/h]h GFP_ATOMIC}(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.hhMhjH/ubj)}(hhh]jM)}(h4Allocation will not sleep. May use emergency pools.h]h4Allocation will not sleep. May use emergency pools.}(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&]uh1jhjO-ubjM)}(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 }(hj/hhhNhNubj)}(h **flags**h]hflags}(hj/hhhNhNubah}(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.hhMhjO-ubj)}(hhh](j)}(hO``__GFP_ZERO`` Zero the allocated memory before returning. Also see kzalloc(). h](j)}(h``__GFP_ZERO``h]jS)}(hj/h]h __GFP_ZERO}(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?Zero the allocated memory before returning. Also see kzalloc().h]h?Zero the allocated memory before returning. Also see kzalloc().}(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)}(hN``__GFP_HIGH`` This allocation has high priority and may use emergency pools. h](j)}(h``__GFP_HIGH``h]jS)}(hj/h]h __GFP_HIGH}(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>This allocation has high priority and may use emergency pools.h]h>This allocation has high priority and may use emergency pools.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubj)}(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)}(hj#0h]h __GFP_NOFAIL}(hj%0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!0ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj0ubj)}(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).}(hj<0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj90ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj80hMhj/ubj)}(hP``__GFP_NORETRY`` If memory is not immediately available, then give up at once. h](j)}(h``__GFP_NORETRY``h]jS)}(hj]0h]h __GFP_NORETRY}(hj_0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[0ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjW0ubj)}(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.}(hjv0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjs0ubah}(h]h ]h"]h$]h&]uh1jhjW0ubeh}(h]h ]h"]h$]h&]uh1jhjr0hMhj/ubj)}(h@``__GFP_NOWARN`` If allocation fails, don't issue any warnings. h](j)}(h``__GFP_NOWARN``h]jS)}(hj0h]h __GFP_NOWARN}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj0ubj)}(hhh]jM)}(h.If allocation fails, don't issue any warnings.h]h0If allocation fails, don’t issue any warnings.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj/ubj)}(hV``__GFP_RETRY_MAYFAIL`` Try really hard to succeed the allocation but fail eventually.h](j)}(h``__GFP_RETRY_MAYFAIL``h]jS)}(hj0h]h__GFP_RETRY_MAYFAIL}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj0ubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj/ubeh}(h]h ]h"]h$]h&]uh1jhjO-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__alloc_objs (C macro)c.__alloc_objshNtauh1hhjihhhNhNubh)}(hhh](h)}(h __alloc_objsh]h)}(h __alloc_objsh]h)}(h __alloc_objsh]j)}(hj#1h]h __alloc_objs}(hj-1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)1ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj%1hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj!1hhhj@1hMubah}(h]j1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj@1hMhj1hhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hj1hhhj@1hMubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjY1jHjY1jIjJjKuh1hhhhjihNhNubjM)}(h,``__alloc_objs (KMALLOC, GFP, TYPE, COUNT)``h]jS)}(hj_1h]h(__alloc_objs (KMALLOC, GFP, TYPE, COUNT)}(hja1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj]1ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjihhubji)}(h'Allocate objects of a given type using h]jM)}(h&Allocate objects of a given type usingh]h&Allocate objects of a given type using}(hjy1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhju1ubah}(h]h ]h"]h$]h&]uh1jhhj1hMhjihhubj)}(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)}(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)}(h?``KMALLOC`` which size-based kmalloc wrapper to allocate with. h](j)}(h ``KMALLOC``h]jS)}(hj1h]hKMALLOC}(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)}(h2which size-based kmalloc wrapper to allocate with.h]h2which size-based kmalloc wrapper to allocate with.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj1ubj)}(h&``GFP`` GFP flags for the allocation. h](j)}(h``GFP``h]jS)}(hj1h]hGFP}(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)}(hGFP flags for the allocation.h]hGFP flags for the allocation.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj1ubj)}(h%``TYPE`` type to allocate space for. h](j)}(h``TYPE``h]jS)}(hj%2h]hTYPE}(hj'2hhhNhNubah}(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)}(htype to allocate space for.h]htype to allocate space for.}(hj>2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:2hMhj;2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj:2hMhj1ubj)}(h1``COUNT`` how many **TYPE** objects to allocate. h](j)}(h ``COUNT``h]jS)}(hj^2h]hCOUNT}(hj`2hhhNhNubah}(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.hhMhjX2ubj)}(hhh]jM)}(h&how many **TYPE** objects to allocate.h](h how many }(hjw2hhhNhNubj)}(h**TYPE**h]hTYPE}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw2ubh objects to allocate.}(hjw2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjs2hMhjt2ubah}(h]h ]h"]h$]h&]uh1jhjX2ubeh}(h]h ]h"]h$]h&]uh1jhjs2hMhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1ubjM)}(h **Return**h]j)}(hj2h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj1ubjM)}(hmNewly allocated pointer to (first) **TYPE** of **COUNT**-many allocated **TYPE** objects, or NULL on failure.h](h#Newly allocated pointer to (first) }(hj2hhhNhNubj)}(h**TYPE**h]hTYPE}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh of }(hj2hhhNhNubj)}(h **COUNT**h]hCOUNT}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh-many allocated }(hj2hhhNhNubj)}(h**TYPE**h]hTYPE}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh objects, or NULL on failure.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj1ubeh}(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)}(hj 3h]h __alloc_flex}(hj*3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&3ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj"3hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj3hhhj=3hMubah}(h]j3ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj=3hMhj3hhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hj3hhhj=3hMubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjV3jHjV3jIjJjKuh1hhhhjihNhNubjM)}(h1``__alloc_flex (KMALLOC, GFP, TYPE, FAM, COUNT)``h]jS)}(hj\3h]h-__alloc_flex (KMALLOC, GFP, TYPE, FAM, COUNT)}(hj^3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZ3ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjihhubji)}(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}(hjv3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjr3ubah}(h]h ]h"]h$]h&]uh1jhhj3hMhjihhubj)}(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)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj3ubj)}(hhh](j)}(h<``KMALLOC`` kmalloc wrapper function to use for allocation. h](j)}(h ``KMALLOC``h]jS)}(hj3h]hKMALLOC}(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)}(h/kmalloc wrapper function to use for allocation.h]h/kmalloc wrapper function to use for allocation.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj3ubj)}(h&``GFP`` GFP flags for the allocation. h](j)}(h``GFP``h]jS)}(hj3h]hGFP}(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)}(hGFP flags for the allocation.h]hGFP flags for the allocation.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj3ubj)}(h2``TYPE`` type of structure to allocate space for. h](j)}(h``TYPE``h]jS)}(hj"4h]hTYPE}(hj$4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj 4ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj4ubj)}(hhh]jM)}(h(type of structure to allocate space for.h]h(type of structure to allocate space for.}(hj;4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj74hMhj84ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj74hMhj3ubj)}(hE``FAM`` The name of the flexible array member of **TYPE** structure. h](j)}(h``FAM``h]jS)}(hj[4h]hFAM}(hj]4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjY4ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjU4ubj)}(hhh]jM)}(hubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn:hhhj:hM>ubjF )}(hjI h]h*}(hj:hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjn:hhhj:hM>ubh)}(h kmalloc_arrayh]j)}(h kmalloc_arrayh]h kmalloc_array}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjn:hhhj:hM>ubj )}(h$(size_t n, size_t size, gfp_t flags)h](j )}(hsize_t nh](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.kmalloc_arrayasbuh1hhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hjh]hn}(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]j:c.kmalloc_arrayasbuh1hhj;ubj)}(h h]h }(hj&;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hsizeh]hsize}(hj4;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}(hjP;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM;ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjR;modnameN classnameNjpjs)}jv]j:c.kmalloc_arrayasbuh1hhjI;ubj)}(h h]h }(hjn;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI;ubj)}(hflagsh]hflags}(hj|;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI;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)}(hallocate memory for an array.h]hallocate memory for an array.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM>hj;hhubah}(h]h ]h"]h$]h&]uh1j3hjg:hhhj:hM>ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj;jHj;jIjJjKuh1hhhhjihNhNubj)}(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)}(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)}(h!``size_t n`` number of elements. h](j)}(h ``size_t n``h]jS)}(hj;h]hsize_t n}(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)}(hnumber of elements.h]hnumber of elements.}(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 size`` element size. 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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM@hj<ubj)}(hhh]jM)}(h element size.h]h element size.}(hj9<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5<hM@hj6<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj5<hM@hj;ubj)}(h=``gfp_t flags`` the type of memory to allocate (see kmalloc).h](j)}(h``gfp_t flags``h]jS)}(hjY<h]h gfp_t flags}(hj[<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjW<ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMBhjS<ubj)}(hhh]jM)}(h-the type of memory to allocate (see kmalloc).h]h-the type of memory to allocate (see kmalloc).}(hjr<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMAhjo<ubah}(h]h ]h"]h$]h&]uh1jhjS<ubeh}(h]h ]h"]h$]h&]uh1jhjn<hMBhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;ubeh}(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}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMNubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhj<hMNubjF )}(hjI h]h*}(hj<hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj<hhhj<hMNubh)}(hkrealloc_arrayh]j)}(hkrealloc_arrayh]hkrealloc_array}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj<hhhj<hMNubj )}(h5(void *p, size_t new_n, size_t new_size, gfp_t flags)h](j )}(hvoid *ph](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*}(hj=hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj<ubj)}(hjR h]hp}(hj&=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj<ubj )}(h size_t new_nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjA=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>=ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjC=modnameN classnameNjpjs)}jv]jy)}jlj<sbc.krealloc_arrayasbuh1hhj:=ubj)}(h h]h }(hja=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:=ubj)}(hnew_nh]hnew_n}(hjo=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:=ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj<ubj )}(hsize_t new_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.krealloc_arrayasbuh1hhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hnew_sizeh]hnew_size}(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]j]=c.krealloc_arrayasbuh1hhj=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<hMNubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj<hhhj<hMNubah}(h]j<ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj<hMNhj<hhubj4)}(hhh]jM)}(hreallocate memory for an array.h]hreallocate memory for an array.}(hj)>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMNhj&>hhubah}(h]h ]h"]h$]h&]uh1j3hj<hhhj<hMNubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjA>jHjA>jIjJjKuh1hhhhjihNhNubj)}(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)}(hjK>h]h Parameters}(hjM>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI>ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMRhjE>ubj)}(hhh](j)}(h6``void *p`` pointer to the memory chunk to reallocate h](j)}(h ``void *p``h]jS)}(hjj>h]hvoid *p}(hjl>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjh>ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMOhjd>ubj)}(hhh]jM)}(h)pointer to the memory chunk to reallocateh]h)pointer to the memory chunk to reallocate}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hMOhj>ubah}(h]h ]h"]h$]h&]uh1jhjd>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMOhja>ubj)}(h1``size_t new_n`` new number of elements to alloc h](j)}(h``size_t new_n``h]jS)}(hj>h]h size_t new_n}(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.hhMPhj>ubj)}(hhh]jM)}(hnew number of elements to alloch]hnew number of elements to alloc}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hMPhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMPhja>ubj)}(h=``size_t new_size`` new size of a single member of the array h](j)}(h``size_t new_size``h]jS)}(hj>h]hsize_t new_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.hhMQhj>ubj)}(hhh]jM)}(h(new size of a single member of the arrayh]h(new size of a single member of the array}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hMQhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMQhja>ubj)}(h=``gfp_t flags`` the type of memory to allocate (see kmalloc) h](j)}(h``gfp_t flags``h]jS)}(hj?h]h gfp_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.hhMRhj?ubj)}(hhh]jM)}(h,the type of memory to allocate (see kmalloc)h]h,the type of memory to allocate (see kmalloc)}(hj.?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj*?hMRhj+?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj*?hMRhja>ubeh}(h]h ]h"]h$]h&]uh1jhjE>ubjM)}(h**Description**h]j)}(hjP?h]h Description}(hjR?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN?ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMThjE>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.}(hjf?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMShjE>ubjM)}(h*See krealloc_noprof() for further details.h]h*See krealloc_noprof() for further details.}(hju?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMXhjE>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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMZhjE>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkcalloc (C macro) c.kcallochNtauh1hhjihhhNhNubh)}(hhh](h)}(hkcalloch]h)}(hkcalloch]h)}(hkcalloch]j)}(hj?h]hkcalloc}(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.hhMmubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj?hhhj?hMmubah}(h]j?ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj?hMmhj?hhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hj?hhhj?hMmubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGj?jHj?jIjJjKuh1hhhhjihNhNubjM)}(h``kcalloc (n, size, flags)``h]jS)}(hj?h]hkcalloc (n, size, flags)}(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.hhMohjihhubji)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMmhj?ubah}(h]h ]h"]h$]h&]uh1jhhj@hMmhjihhubj)}(h**Parameters** ``n`` number of elements. ``size`` element size. ``flags`` the type of memory to allocate (see kmalloc).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.hhMqhj@ubj)}(hhh](j)}(h``n`` number of elements. h](j)}(h``n``h]jS)}(hj=@h]hn}(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.hhMnhj7@ubj)}(hhh]jM)}(hnumber of elements.h]hnumber of elements.}(hjV@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjR@hMnhjS@ubah}(h]h ]h"]h$]h&]uh1jhj7@ubeh}(h]h ]h"]h$]h&]uh1jhjR@hMnhj4@ubj)}(h``size`` element size. h](j)}(h``size``h]jS)}(hjv@h]hsize}(hjx@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjt@ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMohjp@ubj)}(hhh]jM)}(h element size.h]h element size.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@hMohj@ubah}(h]h ]h"]h$]h&]uh1jhjp@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMohj4@ubj)}(h7``flags`` the type of memory to allocate (see kmalloc).h](j)}(h ``flags``h]jS)}(hj@h]hflags}(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.hhMqhj@ubj)}(hhh]jM)}(h-the type of memory to allocate (see kmalloc).h]h-the type of memory to allocate (see kmalloc).}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMphj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMqhj4@ubeh}(h]h ]h"]h$]h&]uh1jhj@ubeh}(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}(hj AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjAhMubjF )}(hjI h]h*}(hj&AhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjAhhhjAhMubh)}(hkzalloch]j)}(hkzalloch]hkzalloc}(hj7AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Aubah}(h]h ](jjeh"]h$]h&]jjuh1hhjAhhhjAhMubj )}(h(size_t size, gfp_t flags)h](j )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjVAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSAubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjXAmodnameN classnameNjpjs)}jv]jy)}jlj9Asb c.kzallocasbuh1hhjOAubj)}(h h]h }(hjvAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOAubj)}(hsizeh]hsize}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKAubj )}(h gfp_t flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjAmodnameN classnameNjpjs)}jv]jrA c.kzallocasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hflagsh]hflags}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKAubeh}(h]h ]h"]h$]h&]jjuh1j hjAhhhjAhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjAhhhjAhMubah}(h]j@ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjAhMhj@hhubj4)}(hhh]jM)}(h+allocate memory. The memory is set to zero.h]h+allocate memory. The memory is set to zero.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjAhhubah}(h]h ]h"]h$]h&]uh1j3hj@hhhjAhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjBjHjBjIjJjKuh1hhhhjihNhNubj)}(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)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjBubj)}(hhh](j)}(h7``size_t size`` how many bytes of memory are required. h](j)}(h``size_t size``h]jS)}(hj7Bh]h size_t size}(hj9BhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5Bubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj1Bubj)}(hhh]jM)}(h&how many bytes of memory are required.h]h&how many bytes of memory are required.}(hjPBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLBhMhjMBubah}(h]h ]h"]h$]h&]uh1jhj1Bubeh}(h]h ]h"]h$]h&]uh1jhjLBhMhj.Bubj)}(h=``gfp_t flags`` the type of memory to allocate (see kmalloc).h](j)}(h``gfp_t flags``h]jS)}(hjpBh]h gfp_t flags}(hjrBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnBubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjjBubj)}(hhh]jM)}(h-the type of memory to allocate (see kmalloc).h]h-the type of memory to allocate (see kmalloc).}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjBubah}(h]h ]h"]h$]h&]uh1jhjjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhj.Bubeh}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!kmalloc_size_roundup (C function)c.kmalloc_size_rounduphNtauh1hhjihhhNhNubh)}(hhh](h)}(h)size_t kmalloc_size_roundup (size_t size)h]h)}(h(size_t kmalloc_size_roundup(size_t size)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]jy)}jlkmalloc_size_roundupsbc.kmalloc_size_roundupasbuh1hhjBhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhMubh)}(hkmalloc_size_rounduph]j)}(hjBh]hkmalloc_size_roundup}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1hhjBhhhjBhMubj )}(h (size_t size)h]j )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj!CmodnameN classnameNjpjs)}jv]jBc.kmalloc_size_roundupasbuh1hhjCubj)}(h h]h }(hj=ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hsizeh]hsize}(hjKChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCubah}(h]h ]h"]h$]h&]jjuh1j hjBhhhjBhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjBhhhjBhMubah}(h]jBah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjBhMhjBhhubj4)}(hhh]jM)}(h0Report allocation bucket size for the given sizeh]h0Report allocation bucket size for the given size}(hjuChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjrChhubah}(h]h ]h"]h$]h&]uh1j3hjBhhhjBhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjCjHjCjIjJjKuh1hhhhjihNhNubj)}(hX!**Parameters** ``size_t size`` Number of bytes to round up from. **Description** This returns the number of bytes that would be available in a kmalloc() allocation of **size** bytes. For example, a 126 byte request would be rounded up to the next sized kmalloc bucket, 128 bytes. (This is strictly for the general-purpose kmalloc()-based allocations, and is not for the pre-sized kmem_cache_alloc()-based allocations.) Use this to kmalloc() the full bucket size ahead of time instead of using ksize() to query the size after an allocation.h](jM)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(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.hhMhjCubj)}(hhh]j)}(h2``size_t size`` Number of bytes to round up from. h](j)}(h``size_t size``h]jS)}(hjCh]h size_t size}(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.hhMhjCubj)}(hhh]jM)}(h!Number of bytes to round up from.h]h!Number of bytes to round up from.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubjM)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(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.hhMhjCubjM)}(hXQThis returns the number of bytes that would be available in a kmalloc() allocation of **size** bytes. For example, a 126 byte request would be rounded up to the next sized kmalloc bucket, 128 bytes. (This is strictly for the general-purpose kmalloc()-based allocations, and is not for the pre-sized kmem_cache_alloc()-based allocations.)h](hVThis returns the number of bytes that would be available in a kmalloc() allocation of }(hjDhhhNhNubj)}(h**size**h]hsize}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh bytes. For example, a 126 byte request would be rounded up to the next sized kmalloc bucket, 128 bytes. (This is strictly for the general-purpose kmalloc()-based allocations, and is not for the pre-sized kmem_cache_alloc()-based allocations.)}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjCubjM)}(hxUse this to kmalloc() the full bucket size ahead of time instead of using ksize() to query the size after an allocation.h]hxUse this to kmalloc() the full bucket size ahead of time instead of using ksize() to query the size after an allocation.}(hj(DhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"kmem_cache_alloc_node (C function)c.kmem_cache_alloc_nodehNtauh1hhjihhhNhNubh)}(hhh](h)}(hMvoid * kmem_cache_alloc_node (struct kmem_cache *s, gfp_t gfpflags, int node)h]h)}(hKvoid *kmem_cache_alloc_node(struct kmem_cache *s, gfp_t gfpflags, int node)h](j)}(hvoidh]hvoid}(hjWDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSDhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMHubj)}(h h]h }(hjfDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSDhhhjeDhMHubjF )}(hjI h]h*}(hjtDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjSDhhhjeDhMHubh)}(hkmem_cache_alloc_nodeh]j)}(hkmem_cache_alloc_nodeh]hkmem_cache_alloc_node}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1hhjSDhhhjeDhMHubj )}(h0(struct kmem_cache *s, gfp_t gfpflags, int node)h](j )}(hstruct kmem_cache *sh](j5)}(hj8h]hstruct}(hjDhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j)}(h kmem_cacheh]h kmem_cache}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDmodnameN classnameNjpjs)}jv]jy)}jljDsbc.kmem_cache_alloc_nodeasbuh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hsh]hs}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubj )}(hgfp_t gfpflagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjEmodnameN classnameNjpjs)}jv]jDc.kmem_cache_alloc_nodeasbuh1hhjEubj)}(h h]h }(hj4EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hgfpflagsh]hgfpflags}(hjBEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubj )}(hint nodeh](j)}(hinth]hint}(hj[EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWEubj)}(h h]h }(hjiEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWEubj)}(hnodeh]hnode}(hjwEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubeh}(h]h ]h"]h$]h&]jjuh1j hjSDhhhjeDhMHubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjODhhhjeDhMHubah}(h]jJDah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjeDhMHhjLDhhubj4)}(hhh]jM)}(h(Allocate an object on the specified nodeh]h(Allocate an object on the specified node}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMHhjEhhubah}(h]h ]h"]h$]h&]uh1j3hjLDhhhjeDhMHubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjEjHjEjIjJjKuh1hhhhjihNhNubj)}(hX**Parameters** ``struct kmem_cache *s`` The cache to allocate from. ``gfp_t gfpflags`` See kmalloc(). ``int node`` node number of the target node. **Description** Identical to kmem_cache_alloc but it will allocate memory on the given node, which can improve the performance for cpu bound structures. Fallback to other node is possible if __GFP_THISNODE is not set. **Return** pointer to the new object or ``NULL`` in case of errorh](jM)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMLhjEubj)}(hhh](j)}(h5``struct kmem_cache *s`` The cache to allocate from. h](j)}(h``struct kmem_cache *s``h]jS)}(hjEh]hstruct kmem_cache *s}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMIhjEubj)}(hhh]jM)}(hThe cache to allocate from.h]hThe cache to allocate from.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMIhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMIhjEubj)}(h"``gfp_t gfpflags`` See kmalloc(). h](j)}(h``gfp_t gfpflags``h]jS)}(hjFh]hgfp_t gfpflags}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMJhjFubj)}(hhh]jM)}(hSee kmalloc().h]hSee kmalloc().}(hj4FhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0FhMJhj1Fubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhj0FhMJhjEubj)}(h-``int node`` node number of the target node. h](j)}(h ``int node``h]jS)}(hjTFh]hint node}(hjVFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjRFubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMKhjNFubj)}(hhh]jM)}(hnode number of the target node.h]hnode number of the target node.}(hjmFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjiFhMKhjjFubah}(h]h ]h"]h$]h&]uh1jhjNFubeh}(h]h ]h"]h$]h&]uh1jhjiFhMKhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubjM)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMMhjEubjM)}(hIdentical to kmem_cache_alloc but it will allocate memory on the given node, which can improve the performance for cpu bound structures.h]hIdentical to kmem_cache_alloc but it will allocate memory on the given node, which can improve the performance for cpu bound structures.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMLhjEubjM)}(h@Fallback to other node is possible if __GFP_THISNODE is not set.h]h@Fallback to other node is possible if __GFP_THISNODE is not set.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMOhjEubjM)}(h **Return**h]j)}(hjFh]hReturn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMQhjEubjM)}(h6pointer to the new object or ``NULL`` in case of errorh](hpointer to the new object or }(hjFhhhNhNubjS)}(h``NULL``h]hNULL}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubh in case of error}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMRhjEubeh}(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)}(hHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj;Hhhubah}(h]h ]h"]h$]h&]uh1j3hjGhhhj*GhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjVHjHjVHjIjJjKuh1hhhhjihNhNubj)}(hXl**Parameters** ``size_t size`` size to allocate ``gfp_t gfp_flags`` GFP flags. Only __GFP_ACCOUNT, __GFP_ZERO, __GFP_NO_OBJ_EXT allowed. ``int node`` node number of the target node. **Return** pointer to the new object or NULL in case of error. 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`Hh]h Parameters}(hjbHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Hubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjZHubj)}(hhh](j)}(h!``size_t size`` size to allocate h](j)}(h``size_t size``h]jS)}(hjHh]h size_t size}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj}Hubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjyHubj)}(hhh]jM)}(hsize to allocateh]hsize to allocate}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjyHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjvHubj)}(hY``gfp_t gfp_flags`` GFP flags. Only __GFP_ACCOUNT, __GFP_ZERO, __GFP_NO_OBJ_EXT allowed. h](j)}(h``gfp_t gfp_flags``h]jS)}(hjHh]hgfp_t gfp_flags}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjHubj)}(hhh]jM)}(hDGFP flags. Only __GFP_ACCOUNT, __GFP_ZERO, __GFP_NO_OBJ_EXT allowed.h]hDGFP flags. Only __GFP_ACCOUNT, __GFP_ZERO, __GFP_NO_OBJ_EXT allowed.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjvHubj)}(h-``int node`` node number of the target node. h](j)}(h ``int node``h]jS)}(hjHh]hint node}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjHubj)}(hhh]jM)}(hnode number of the target node.h]hnode number of the target node.}(hj IhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjvHubeh}(h]h ]h"]h$]h&]uh1jhjZHubjM)}(h **Return**h]j)}(hj-Ih]hReturn}(hj/IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Iubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjZHubjM)}(hpointer to the new object or NULL in case of error. NULL does not mean EBUSY or EAGAIN. It means ENOMEM. There is no reason to call it again and expect !NULL.h]hpointer to the new object or NULL in case of error. NULL does not mean EBUSY or EAGAIN. It means ENOMEM. There is no reason to call it again and expect !NULL.}(hjCIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjZHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmem_cache_free (C function)c.kmem_cache_freehNtauh1hhjihhhNhNubh)}(hhh](h)}(h4void kmem_cache_free (struct kmem_cache *s, void *x)h]h)}(h3void kmem_cache_free(struct kmem_cache *s, void *x)h](j)}(hvoidh]hvoid}(hjrIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnIhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnIhhhjIhMubh)}(hkmem_cache_freeh]j)}(hkmem_cache_freeh]hkmem_cache_free}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1hhjnIhhhjIhMubj )}(h(struct kmem_cache *s, void *x)h](j )}(hstruct kmem_cache *sh](j5)}(hj8h]hstruct}(hjIhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j)}(h kmem_cacheh]h kmem_cache}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjImodnameN classnameNjpjs)}jv]jy)}jljIsbc.kmem_cache_freeasbuh1hhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjF )}(hjI h]h*}(hjIhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjIubj)}(hjDh]hs}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubj )}(hvoid *xh](j)}(hvoidh]hvoid}(hj JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj.JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjF )}(hjI h]h*}(hjFree an object which was previously allocated from this cache.h]h>Free an object which was previously allocated from this cache.}(hj>KhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjJubeh}(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}(hjpKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmKubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrKmodnameN classnameNjpjs)}jv]jy)}jlksizesbc.ksizeasbuh1hhjiKhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM$ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiKhhhjKhM$ubh)}(hksizeh]j)}(hjKh]hksize}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1hhjiKhhhjKhM$ubj )}(h(const void *objp)h]j )}(hconst void *objph](j5)}(hjh]hconst}(hjKhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjF )}(hjI h]h*}(hjKhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjKubj)}(hobjph]hobjp}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubah}(h]h ]h"]h$]h&]jjuh1j hjiKhhhjKhM$ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjeKhhhjKhM$ubah}(h]j`Kah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjKhM$hjbKhhubj4)}(hhh]h bullet_list)}(hhh]j+)}(h)Report full size of underlying allocationh]jM)}(hj4Lh]h)Report full size of underlying allocation}(hj6LhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM$hj2Lubah}(h]h ]h"]h$]h&]uh1j+hj/LhhhjCLhNubah}(h]h ]h"]h$]h&]bullet-uh1j-LhjCLhM$hj*Lhhubah}(h]h ]h"]h$]h&]uh1j3hjbKhhhjKhM$ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj[LjHj[LjIjJjKuh1hhhhjihNhNubj)}(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)}(hjeLh]h Parameters}(hjgLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcLubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM(hj_Lubj)}(hhh]j)}(h+``const void *objp`` pointer to the object h](j)}(h``const void *objp``h]jS)}(hjLh]hconst void *objp}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM%hj~Lubj)}(hhh]jM)}(hpointer to the objecth]hpointer to the object}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhM%hjLubah}(h]h ]h"]h$]h&]uh1jhj~Lubeh}(h]h ]h"]h$]h&]uh1jhjLhM%hj{Lubah}(h]h ]h"]h$]h&]uh1jhj_LubjM)}(h**Description**h]j)}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM'hj_LubjM)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM&hj_LubjM)}(h **Return**h]j)}(hjLh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM,hj_LubjM)}(h3size of the actual memory used by **objp** in bytesh](h"size of the actual memory used by }(hjLhhhNhNubj)}(h**objp**h]hobjp}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh in bytes}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM-hj_Lubeh}(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}(hj=MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9MhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjLMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9MhhhjKMhMubh)}(hkfreeh]j)}(hkfreeh]hkfree}(hj^MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZMubah}(h]h ](jjeh"]h$]h&]jjuh1hhj9MhhhjKMhMubj )}(h(const void *object)h]j )}(hconst void *objecth](j5)}(hjh]hconst}(hjzMhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjvMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvMubj)}(hvoidh]hvoid}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvMubjF )}(hjI h]h*}(hjMhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjvMubj)}(hobjecth]hobject}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrMubah}(h]h ]h"]h$]h&]jjuh1j hj9MhhhjKMhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj5MhhhjKMhMubah}(h]j0Mah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjKMhMhj2Mhhubj4)}(hhh]jM)}(h free previously allocated memoryh]h free previously allocated memory}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjMhhubah}(h]h ]h"]h$]h&]uh1j3hj2MhhhjKMhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjNjHjNjIjJjKuh1hhhhjihNhNubj)}(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)}(hj Nh]h Parameters}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjNubj)}(hhh]j)}(h^``const void *object`` pointer returned by kmalloc(), kmalloc_nolock(), or kmem_cache_alloc() h](j)}(h``const void *object``h]jS)}(hj)Nh]hconst void *object}(hj+NhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'Nubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj#Nubj)}(hhh]jM)}(hFpointer returned by kmalloc(), kmalloc_nolock(), or kmem_cache_alloc()h]hFpointer returned by kmalloc(), kmalloc_nolock(), or kmem_cache_alloc()}(hjBNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>NhMhj?Nubah}(h]h ]h"]h$]h&]uh1jhj#Nubeh}(h]h ]h"]h$]h&]uh1jhj>NhMhj Nubah}(h]h ]h"]h$]h&]uh1jhjNubjM)}(h**Description**h]j)}(hjdNh]h Description}(hjfNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjNubjM)}(h1If **object** is NULL, no operation is performed.h](hIf }(hjzNhhhNhNubj)}(h **object**h]hobject}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzNubh$ is NULL, no operation is performed.}(hjzNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h krealloc_node_align (C function)c.krealloc_node_alignhNtauh1hhjihhhNhNubh)}(hhh](h)}(hfvoid * krealloc_node_align (const void *p, size_t new_size, unsigned long align, gfp_t flags, int nid)h]h)}(hdvoid *krealloc_node_align(const void *p, size_t new_size, unsigned long align, gfp_t flags, int nid)h](j)}(hvoidh]hvoid}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMBubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhMBubjF )}(hjI h]h*}(hjNhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjNhhhjNhMBubh)}(hkrealloc_node_alignh]j)}(hkrealloc_node_alignh]hkrealloc_node_align}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1hhjNhhhjNhMBubj )}(hK(const void *p, size_t new_size, unsigned long align, gfp_t flags, int nid)h](j )}(h const void *ph](j5)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hvoidh]hvoid}(hj OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj.OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjF )}(hjI h]h*}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh is not a }(hjRhhhNhNubjS)}(h``NULL``h]hNULL}(hjPRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjRubh) pointer, the object pointed to is freed.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMHhjPubjM)}(hOnly alignments up to those guaranteed by kmalloc() will be honored. Please see Documentation/core-api/memory-allocation.rst for more details.h]hOnly alignments up to those guaranteed by kmalloc() will be honored. Please see Documentation/core-api/memory-allocation.rst for more details.}(hjiRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMKhjPubjM)}(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.}(hjxRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMNhjPubjM)}(hWhen slub_debug_orig_size() is off, krealloc() only knows about the bucket size of an allocation (but not the exact size it was allocated with) and hence implements the following semantics for shrinking and growing buffers with __GFP_ZERO::h]hWhen slub_debug_orig_size() is off, krealloc() only knows about the bucket size of an allocation (but not the exact size it was allocated with) and hence implements the following semantics for shrinking and growing buffers with __GFP_ZERO:}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMShjPubj()}(ht new bucket 0 size size |--------|----------------| | keep | zero |h]ht new bucket 0 size size |--------|----------------| | keep | zero |}hjRsbah}(h]h ]h"]h$]h&]jjuh1j'hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMXhjPubjM)}(hOtherwise, the original allocation size 'orig_size' could be used to precisely clear the requested size, and the new size will also be stored as the new 'orig_size'.h]hOtherwise, the original allocation size ‘orig_size’ could be used to precisely clear the requested size, and the new size will also be stored as the new ‘orig_size’.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM]hjPubjM)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMahjPubjM)}(h **Return**h]j)}(hjRh]hReturn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMdhjPubjM)}(hpointer to the allocated memory of ``NULL`` in case of failureh](h#pointer to the allocated memory of }(hjZVhhhNhNubjS)}(h``NULL``h]hNULL}(hjbVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZVubh in case of failure}(hjZVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjTubeh}(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}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhMubh)}(hkvfreeh]j)}(hkvfreeh]hkvfree}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1hhjVhhhjVhMubj )}(h(const void *addr)h]j )}(hconst void *addrh](j5)}(hjh]hconst}(hjVhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hvoidh]hvoid}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjF )}(hjI h]h*}(hjWhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVubj)}(haddrh]haddr}(hjWhhhNhNubah}(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 Free memory.h]h Free memory.}(hjFWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjCWhhubah}(h]h ]h"]h$]h&]uh1j3hjVhhhjVhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj^WjHj^WjIjJjKuh1hhhhjihNhNubj)}(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)}(hjhWh]h Parameters}(hjjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfWubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjbWubj)}(hhh]j)}(h2``const void *addr`` Pointer to allocated memory. h](j)}(h``const void *addr``h]jS)}(hjWh]hconst void *addr}(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 allocated memory.h]hPointer to allocated memory.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj~Wubah}(h]h ]h"]h$]h&]uh1jhjbWubjM)}(h**Description**h]j)}(hjWh]h Description}(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.chMhjbWubjM)}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjbWubjM)}(h **Context**h]j)}(hjWh]hContext}(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.chMhjbWubjM)}(h5Either preemptible task context or not-NMI interrupt.h]h5Either preemptible task context or not-NMI interrupt.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjbWubeh}(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.XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*XhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hj=XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*Xhhhj`). ``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)}(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:43: ./mm/slab_common.chM(hjm`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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM%hj`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`hM%hj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hM%hj`ubj)}(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`h]hunsigned int object_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:43: ./mm/slab_common.chM&hj`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`hM&hj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hM&hj`ubj)}(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)}(hjah]hstruct kmem_cache_args *args}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM(hj`ubj)}(hhh]jM)}(heAdditional arguments for the cache creation (see :c:type:`struct kmem_cache_args `).h](h1Additional arguments for the cache creation (see }(hjahhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]jS)}(hj'ah]hstruct kmem_cache_args}(hj)ahhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhj%aubah}(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'hjaubh).}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjDahM'hjaubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhjahM(hj`ubj)}(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)}(hjaah]hslab_flags_t flags}(hjcahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj_aubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM*hj[aubj)}(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.}(hjzahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM)hjwaubah}(h]h ]h"]h$]h&]uh1jhj[aubeh}(h]h ]h"]h$]h&]uh1jhjvahM*hj`ubeh}(h]h ]h"]h$]h&]uh1jhjm`ubjM)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM,hjm`ubjM)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM+hjm`ubjM)}(hCommonly used **flags**:h](hCommonly used }(hjahhhNhNubj)}(h **flags**h]hflags}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh:}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM.hjm`ubjM)}(h6:c:type:`SLAB_ACCOUNT` - Account allocations to memcg.h](h)}(h:c:type:`SLAB_ACCOUNT`h]jS)}(hjah]h SLAB_ACCOUNT}(hjahhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjN SLAB_ACCOUNTuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM0hjaubh - Account allocations to memcg.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjbhM0hjm`ubjM)}(hF:c:type:`SLAB_HWCACHE_ALIGN` - Align objects on cache line boundaries.h](h)}(h:c:type:`SLAB_HWCACHE_ALIGN`h]jS)}(hjbh]hSLAB_HWCACHE_ALIGN}(hjbhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjbubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNSLAB_HWCACHE_ALIGNuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM2hjbubh* - Align objects on cache line boundaries.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj4bhM2hjm`ubjM)}(h9:c:type:`SLAB_RECLAIM_ACCOUNT` - Objects are reclaimable.h](h)}(h:c:type:`SLAB_RECLAIM_ACCOUNT`h]jS)}(hjEbh]hSLAB_RECLAIM_ACCOUNT}(hjGbhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjCbubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNSLAB_RECLAIM_ACCOUNTuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM4hj?bubh - Objects are reclaimable.}(hj?bhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjbbhM4hjm`ubjM)}(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)}(hjsbh]hSLAB_TYPESAFE_BY_RCU}(hjubhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjqbubah}(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.chM6hjmbubhp - Slab page (not individual objects) freeing delayed by a grace period - see the full description before using.}(hjmbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjbhM6hjm`ubjM)}(h **Context**h]j)}(hjbh]hContext}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM9hjm`ubjM)}(hmap pages linearly into kernel virtual address (vmalloc space)h]h>map pages linearly into kernel virtual address (vmalloc space)}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj uhhubah}(h]h ]h"]h$]h&]uh1j3hjshhhjshM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj(ujHj(ujIjJjKuh1hhhhjphNhNubj)}(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)}(hj2uh]h Parameters}(hj4uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0uubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj,uubj)}(hhh](j)}(hG``struct page **pages`` an array of pointers to the pages to be mapped h](j)}(h``struct page **pages``h]jS)}(hjQuh]hstruct page **pages}(hjSuhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjOuubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjKuubj)}(hhh]jM)}(h.an array of pointers to the pages to be mappedh]h.an array of pointers to the pages to be mapped}(hjjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfuhM hjguubah}(h]h ]h"]h$]h&]uh1jhjKuubeh}(h]h ]h"]h$]h&]uh1jhjfuhM hjHuubj)}(h'``unsigned int count`` number of pages h](j)}(h``unsigned int count``h]jS)}(hjuh]hunsigned int count}(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.chM hjuubj)}(hhh]jM)}(hnumber of pagesh]hnumber of pages}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuhM hjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhM hjHuubj)}(h=``int node`` prefer to allocate data structures on this node h](j)}(h ``int node``h]jS)}(hjuh]hint node}(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.chM hjuubj)}(hhh]jM)}(h/prefer to allocate data structures on this nodeh]h/prefer to allocate data structures on this node}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuhM hjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhM hjHuubeh}(h]h ]h"]h$]h&]uh1jhj,uubjM)}(h**Description**h]j)}(hjuh]h Description}(hjvhhhNhNubah}(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 hj,uubjM)}(hX`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.h]hXbIf 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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj,uubjM)}(h **Return**h]j)}(hj%vh]hReturn}(hj'vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#vubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj,uubjM)}(hEa pointer to the address that has been mapped, or ``NULL`` on failureh](h2a pointer to the address that has been mapped, or }(hj;vhhhNhNubjS)}(h``NULL``h]hNULL}(hjCvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;vubh on failure}(hj;vhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj,uubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvfree (C function)c.vfreehNtauh1hhjphhhNhNubh)}(hhh](h)}(hvoid vfree (const void *addr)h]h)}(hvoid vfree(const void *addr)h](j)}(hvoidh]hvoid}(hj|vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxvhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM\ ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxvhhhjvhM\ ubh)}(hvfreeh]j)}(hvfreeh]hvfree}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1hhjxvhhhjvhM\ ubj )}(h(const void *addr)h]j )}(hconst void *addrh](j5)}(hjh]hconst}(hjvhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjF )}(hjI h]h*}(hjvhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjvubj)}(haddrh]haddr}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjvubah}(h]h ]h"]h$]h&]jjuh1j hjxvhhhjvhM\ ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjtvhhhjvhM\ ubah}(h]jovah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjvhM\ hjqvhhubj4)}(hhh]jM)}(h%Release memory allocated by vmalloc()h]h%Release memory allocated by vmalloc()}(hj'whhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM\ hj$whhubah}(h]h ]h"]h$]h&]uh1j3hjqvhhhjvhM\ ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj?wjHj?wjIjJjKuh1hhhhjphNhNubj)}(hX**Parameters** ``const void *addr`` Memory base address **Description** Free the virtually continuous memory area starting at **addr**, as obtained from one of the vmalloc() family of APIs. This will usually also free the physical memory underlying the virtual allocation, but that memory is reference counted, so it will not be freed until the last user goes away. If **addr** is NULL, no operation is performed. **Context** May sleep if called *not* from interrupt context. Must not be called in NMI context (strictly speaking, it could be if we have CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG, but making the calling conventions for vfree() arch-dependent would be a really bad idea).h](jM)}(h**Parameters**h]j)}(hjIwh]h Parameters}(hjKwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGwubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM` hjCwubj)}(hhh]j)}(h)``const void *addr`` Memory base address h](j)}(h``const void *addr``h]jS)}(hjhwh]hconst void *addr}(hjjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfwubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM] hjbwubj)}(hhh]jM)}(hMemory base addressh]hMemory base address}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}whM] hj~wubah}(h]h ]h"]h$]h&]uh1jhjbwubeh}(h]h ]h"]h$]h&]uh1jhj}whM] hj_wubah}(h]h ]h"]h$]h&]uh1jhjCwubjM)}(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:52: ./mm/vmalloc.chM_ hjCwubjM)}(hX&Free the virtually continuous memory area starting at **addr**, as obtained from one of the vmalloc() family of APIs. This will usually also free the physical memory underlying the virtual allocation, but that memory is reference counted, so it will not be freed until the last user goes away.h](h6Free the virtually continuous memory area starting at }(hjwhhhNhNubj)}(h**addr**h]haddr}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh, as obtained from one of the vmalloc() family of APIs. This will usually also free the physical memory underlying the virtual allocation, but that memory is reference counted, so it will not be freed until the last user goes away.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM^ hjCwubjM)}(h/If **addr** is NULL, no operation is performed.h](hIf }(hjwhhhNhNubj)}(h**addr**h]haddr}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh$ is NULL, no operation is performed.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMc hjCwubjM)}(h **Context**h]j)}(hjwh]hContext}(hjwhhhNhNubah}(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.chMe hjCwubjM)}(hMay sleep if called *not* from interrupt context. Must not be called in NMI context (strictly speaking, it could be if we have CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG, but making the calling conventions for vfree() arch-dependent would be a really bad idea).h](hMay sleep if called }(hjxhhhNhNubj_)}(h*not*h]hnot}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjxubh from interrupt context. Must not be called in NMI context (strictly speaking, it could be if we have CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG, but making the calling conventions for vfree() arch-dependent would be a really bad idea).}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMf hjCwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvunmap (C function)c.vunmaphNtauh1hhjphhhNhNubh)}(hhh](h)}(hvoid vunmap (const void *addr)h]h)}(hvoid vunmap(const void *addr)h](j)}(hvoidh]hvoid}(hjTxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPxhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM ubj)}(h h]h }(hjcxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPxhhhjbxhM ubh)}(hvunmaph]j)}(hvunmaph]hvunmap}(hjuxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqxubah}(h]h ](jjeh"]h$]h&]jjuh1hhjPxhhhjbxhM ubj )}(h(const void *addr)h]j )}(hconst void *addrh](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*}(hjxhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjxubj)}(haddrh]haddr}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjxubah}(h]h ]h"]h$]h&]jjuh1j hjPxhhhjbxhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjLxhhhjbxhM ubah}(h]jGxah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjbxhM hjIxhhubj4)}(hhh]jM)}(h*release virtual mapping obtained by vmap()h]h*release virtual mapping obtained by vmap()}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjxhhubah}(h]h ]h"]h$]h&]uh1j3hjIxhhhjbxhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjyjHjyjIjJjKuh1hhhhjphNhNubj)}(h**Parameters** ``const void *addr`` memory base address **Description** Free the virtually contiguous memory area starting at **addr**, which was created from the page array passed to vmap(). Must not be called in interrupt context.h](jM)}(h**Parameters**h]j)}(hj!yh]h Parameters}(hj#yhhhNhNubah}(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)}(h)``const void *addr`` memory base address h](j)}(h``const void *addr``h]jS)}(hj@yh]hconst void *addr}(hjByhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>yubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj:yubj)}(hhh]jM)}(hmemory base addressh]hmemory base address}(hjYyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUyhM hjVyubah}(h]h ]h"]h$]h&]uh1jhj:yubeh}(h]h ]h"]h$]h&]uh1jhjUyhM hj7yubah}(h]h ]h"]h$]h&]uh1jhjyubjM)}(h**Description**h]j)}(hj{yh]h Description}(hj}yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyyubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyubjM)}(hwFree the virtually contiguous memory area starting at **addr**, which was created from the page array passed to vmap().h](h6Free the virtually contiguous memory area starting at }(hjyhhhNhNubj)}(h**addr**h]haddr}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh9, which was created from the page array passed to vmap().}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyubjM)}(h(Must not be called in interrupt context.h]h(Must not be called in interrupt context.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmap (C function)c.vmaphNtauh1hhjphhhNhNubh)}(hhh](h)}(hYvoid * vmap (struct page **pages, unsigned int count, unsigned long flags, pgprot_t prot)h]h)}(hWvoid *vmap(struct page **pages, unsigned int count, unsigned long flags, pgprot_t prot)h](j)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjyhM ubjF )}(hjI h]h*}(hjyhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjyhhhjyhM ubh)}(hvmaph]j)}(hvmaph]hvmap}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj zubah}(h]h ](jjeh"]h$]h&]jjuh1hhjyhhhjyhM ubj )}(hM(struct page **pages, unsigned int count, unsigned long flags, pgprot_t prot)h](j )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hj+zhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj'zubj)}(h h]h }(hj8zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'zubh)}(hhh]j)}(hpageh]hpage}(hjIzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFzubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKzmodnameN classnameNjpjs)}jv]jy)}jljzsbc.vmapasbuh1hhj'zubj)}(h h]h }(hjizhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'zubjF )}(hjI h]h*}(hjwzhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj'zubjF )}(hjI h]h*}(hjzhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj'zubj)}(hpagesh]hpages}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'zubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#zubj )}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hinth]hint}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hcounth]hcount}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#zubj )}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hj {hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hlongh]hlong}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hj%{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hflagsh]hflags}(hj3{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#zubj )}(h pgprot_t proth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hjO{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL{ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjQ{modnameN classnameNjpjs)}jv]jezc.vmapasbuh1hhjH{ubj)}(h h]h }(hjm{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH{ubj)}(hproth]hprot}(hj{{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH{ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#zubeh}(h]h ]h"]h$]h&]jjuh1j hjyhhhjyhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjyhhhjyhM ubah}(h]jyah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjyhM hjyhhubj4)}(hhh]jM)}(h5map an array of pages into virtually contiguous spaceh]h5map an array of pages into virtually contiguous space}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj{hhubah}(h]h ]h"]h$]h&]uh1j3hjyhhhjyhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj{jHj{jIjJjKuh1hhhhjphNhNubj)}(hXz**Parameters** ``struct page **pages`` array of page pointers ``unsigned int count`` number of pages to map ``unsigned long flags`` vm_area->flags ``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)}(hj{h]hstruct page **pages}(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)}(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)}(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:52: ./mm/vmalloc.chM hj|ubj)}(hhh]jM)}(hnumber of pages to maph]hnumber of pages to map}(hj8|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4|hM hj5|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj4|hM hj{ubj)}(h'``unsigned long flags`` vm_area->flags h](j)}(h``unsigned long flags``h]jS)}(hjX|h]hunsigned long flags}(hjZ|hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjV|ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjR|ubj)}(hhh]jM)}(hvm_area->flagsh]hvm_area->flags}(hjq|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjm|hM hjn|ubah}(h]h ]h"]h$]h&]uh1jhjR|ubeh}(h]h ]h"]h$]h&]uh1jhjm|hM hj{ubj)}(h2``pgprot_t prot`` page protection for the mapping h](j)}(h``pgprot_t prot``h]jS)}(hj|h]h pgprot_t prot}(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)}(hpage protection for the mappingh]hpage protection for the mapping}(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: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 }(hj|hhhNhNubj)}(h **count**h]hcount}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh pages from }(hj|hhhNhNubj)}(h **pages**h]hpages}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh* into contiguous kernel virtual space. If }(hj|hhhNhNubj)}(h **flags**h]hflags}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh contains }(hj|hhhNhNubjS)}(h``VM_MAP_PUT_PAGES``h]hVM_MAP_PUT_PAGES}(hj }hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj|ubh 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.}(hj|hhhNhNubeh}(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)}(hj;}h]hReturn}(hj=}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9}ubah}(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 }(hjQ}hhhNhNubjS)}(h``NULL``h]hNULL}(hjY}hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQ}ubh on failure}(hjQ}hhhNhNubeh}(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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmap_pfn (C function) c.vmap_pfnhNtauh1hhjphhhNhNubh)}(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}(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}hMubjF )}(hjI h]h*}(hj}hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj}hhhj}hMubh)}(hvmap_pfnh]j)}(hvmap_pfnh]hvmap_pfn}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj}hhhj}hMubj )}(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&]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)}(hpfnsh]hpfns}(hj!~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}ubj )}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hj:~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6~ubj)}(h h]h }(hjH~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6~ubj)}(hinth]hint}(hjV~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6~ubj)}(h h]h }(hjd~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6~ubj)}(hcounth]hcount}(hjr~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}ubj )}(h pgprot_t proth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj~modnameN classnameNjpjs)}jv]jy)}jlj}sb c.vmap_pfnasbuh1hhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hproth]hprot}(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)}(h4map an array of PFNs into virtually contiguous spaceh]h4map an array of PFNs into virtually contiguous space}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj~hhubah}(h]h ]h"]h$]h&]uh1j3hj}hhhj}hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj~jHj~jIjJjKuh1hhhhjphNhNubj)}(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)}(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.chM hjubj)}(hhh](j)}(h&``unsigned long *pfns`` array of PFNs h](j)}(h``unsigned long *pfns``h]jS)}(hj'h]hunsigned long *pfns}(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)}(h array of PFNsh]h array of PFNs}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubj)}(h.``unsigned int count`` number of pages to map h](j)}(h``unsigned int count``h]jS)}(hj`h]hunsigned int count}(hjbhhhNhNubah}(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.chMhjZubj)}(hhh]jM)}(hnumber of pages to maph]hnumber of pages to map}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjubj)}(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&]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:52: ./mm/vmalloc.chM hjubjM)}(htMaps **count** PFNs from **pfns** into contiguous kernel virtual space and returns the start address of the mapping.h](hMaps }(hjhhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh PFNs from }(hjhhhNhNubj)}(h**pfns**h]hpfns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhS into contiguous kernel virtual space and returns the start address of the mapping.}(hjhhhNhNubeh}(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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__vmalloc_node (C function)c.__vmalloc_nodehNtauh1hhjphhhNhNubh)}(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}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhjKhM ubjF )}(hjI h]h*}(hjZhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj9hhhjKhM ubh)}(h__vmalloc_nodeh]j)}(h__vmalloc_nodeh]h__vmalloc_node}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1hhj9hhhjKhM ubj )}(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 hjubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԀubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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]jy)}jljmsbc.__vmalloc_nodeasbuh1hhj%ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hgfp_maskh]hgfp_mask}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint nodeh](j)}(hinth]hint}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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 }(hjсhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj߁hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hcallerh]hcaller}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(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)}(h$allocate virtually contiguous memoryh]h$allocate virtually contiguous memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hj2hhhjKhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj.jHj.jIjJjKuh1hhhhjphNhNubj)}(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)}(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:52: ./mm/vmalloc.chMhj2ubj)}(hhh](j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjWh]hunsigned long size}(hjYhhhNhNubah}(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.chM hjQubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhM hjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhM hjNubj)}(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.chM hjubj)}(hhh]jM)}(hdesired alignmenth]hdesired alignment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjނhM hj߂ubah}(h]h ]h"]h$]h&]uh1jhjÂubeh}(h]h ]h"]h$]h&]uh1jhjނhM hjNubj)}(h8``int node`` node to use for allocation or NUMA_NO_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*node to use for allocation or NUMA_NO_NODEh]h*node to use for allocation or NUMA_NO_NODE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjNubj)}(h/``const void *caller`` caller's return address h](j)}(h``const void *caller``h]jS)}(hj;h]hconst void *caller}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj5ubj)}(hhh]jM)}(hcaller's return addressh]hcaller’s return address}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubjM)}(h**Description**h]j)}(hjvh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj2ubjM)}(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.chMhj2ubjM)}(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.chMhj2ubjM)}(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.chMhj2ubjM)}(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.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc (C function) c.vmallochNtauh1hhjphhhNhNubh)}(hhh](h)}(h#void * vmalloc (unsigned long size)h]h)}(h!void *vmalloc(unsigned long size)h](j)}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM2ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhjGhM2ubjF )}(hjI h]h*}(hjVhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5hhhjGhM2ubh)}(hvmalloch]j)}(hvmalloch]hvmalloc}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1hhj5hhhjGhM2ubj )}(h(unsigned long size)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{ubah}(h]h ]h"]h$]h&]jjuh1j hj5hhhjGhM2ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj1hhhjGhM2ubah}(h]j,ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjGhM2hj.hhubj4)}(hhh]jM)}(h$allocate virtually contiguous memoryh]h$allocate virtually contiguous memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM2hjhhubah}(h]h ]h"]h$]h&]uh1j3hj.hhhjGhM2ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjphNhNubj)}(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)}(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.chM6hjubj)}(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.chM3hj ubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hM3hj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hM3hjubah}(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:52: ./mm/vmalloc.chM5hjubjM)}(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 }(hjwhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM4hjubjM)}(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.chM7hjubjM)}(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:hjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjDž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.chM;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_huge_node (C function)c.vmalloc_huge_nodehNtauh1hhjphhhNhNubh)}(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}(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)}(hvmalloc_huge_nodeh]j)}(hvmalloc_huge_nodeh]hvmalloc_huge_node}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMEubj )}(h.(unsigned long size, gfp_t gfp_mask, int node)h](j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hlongh]hlong}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjBubj )}(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)}jlj0sbc.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 hjBubj )}(hint nodeh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjBubeh}(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)}(h6allocate virtually contiguous memory, allow huge pagesh]h6allocate virtually contiguous memory, allow huge pages}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMEhj(hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMEubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjCjHjCjIjJjKuh1hhhhjphNhNubj)}(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)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMIhjGubj)}(hhh](j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjlh]hunsigned long size}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMFhjfubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjcubj)}(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.chMGhjubj)}(hhh]jM)}(h"flags for the page level allocatorh]h"flags for the page level allocator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjcubj)}(h8``int node`` node to use for allocation or NUMA_NO_NODE h](j)}(h ``int node``h]jS)}(hjއh]hint node}(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.chMHhj؇ubj)}(hhh]jM)}(h*node to use for allocation or NUMA_NO_NODEh]h*node to use for allocation or NUMA_NO_NODE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhj؇ubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjcubeh}(h]h ]h"]h$]h&]uh1jhjGubjM)}(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.chMJhjGubjM)}(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 }(hj/hhhNhNubj)}(h**size**h]hsize}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhU from the page level allocator and map them into contiguous kernel virtual space. If }(hj/hhhNhNubj)}(h**size**h]hsize}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhL is greater than or equal to PMD_SIZE, allow using huge pages for the memory}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMIhjGubjM)}(h **Return**h]j)}(hjdh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMNhjGubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjzhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubh on error}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMOhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvzalloc (C function) c.vzallochNtauh1hhjphhhNhNubh)}(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.chM\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)}(hvzalloch]j)}(hvzalloch]hvzalloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjɈhM\ubj )}(h(unsigned long size)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}(hj=hhhNhNubah}(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)}(h3allocate virtually contiguous memory with zero fillh]h3allocate virtually contiguous memory with zero fill}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM\hjdhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjɈhM\ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjphNhNubj)}(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.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]hjubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(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&]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. The memory allocated is set to zero.h](hAllocate enough pages to cover }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhv from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM^hjubjM)}(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.chMbhjubjM)}(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.chMehjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjAhhhNhNubjS)}(h``NULL``h]hNULL}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubh on error}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_user (C function)c.vmalloc_userhNtauh1hhjphhhNhNubh)}(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.chMpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhMpubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj~hhhjhMpubh)}(h vmalloc_userh]j)}(h vmalloc_userh]h vmalloc_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj~hhhjhMpubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȊubj)}(h h]h }(hjhhhNhNubah}(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 hj~hhhjhMpubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjzhhhjhMpubah}(h]juah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMphjwhhubj4)}(hhh]jM)}(h9allocate zeroed virtually contiguous memory for userspaceh]h9allocate zeroed virtually contiguous memory for userspace}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMphj+hhubah}(h]h ]h"]h$]h&]uh1j3hjwhhhjhMpubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjFjHjFjIjJjKuh1hhhhjphNhNubj)}(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)}(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:52: ./mm/vmalloc.chMthjJubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjoh]hunsigned long size}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjmubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMqhjiubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjfubah}(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:52: ./mm/vmalloc.chMshjJubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMrhjJubjM)}(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.chMuhjJubjM)}(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.chMvhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_node (C function)c.vmalloc_nodehNtauh1hhjphhhNhNubh)}(hhh](h)}(h2void * vmalloc_node (unsigned long size, int node)h]h)}(h0void *vmalloc_node(unsigned long size, 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.chMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj6hMubjF )}(hjI h]h*}(hjEhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj$hhhj6hMubh)}(h vmalloc_nodeh]j)}(h vmalloc_nodeh]h vmalloc_node}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1hhj$hhhj6hMubj )}(h(unsigned long size, int node)h](j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjjubj )}(hint nodeh](j)}(hinth]hint}(hjÌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjьhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hjߌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjjubeh}(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"allocate memory on a specific nodeh]h"allocate memory on a specific node}(hj hhhNhNubah}(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&]uh1j3hjhhhj6hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj!jHj!jIjJjKuh1hhhhjphNhNubj)}(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)}(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)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjJh]hunsigned long size}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjDubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubj)}(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&]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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj%ubjM)}(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.chMhj%ubjM)}(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.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)}(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.chMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvzalloc_node (C function)c.vzalloc_nodehNtauh1hhjphhhNhNubh)}(hhh](h)}(h2void * vzalloc_node (unsigned long size, int node)h]h)}(h0void *vzalloc_node(unsigned long size, int node)h](j)}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhMubjF )}(hjI h]h*}(hjzhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjYhhhjkhMubh)}(h vzalloc_nodeh]j)}(h vzalloc_nodeh]h vzalloc_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjYhhhjkhMubj )}(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 }(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 )}(hint nodeh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjYhhhjkhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjUhhhjkhMubah}(h]jPah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjkhMhjRhhubj4)}(hhh]jM)}(h1allocate memory on a specific node with zero fillh]h1allocate memory on a specific node with zero fill}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj;hhubah}(h]h ]h"]h$]h&]uh1j3hjRhhhjkhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjVjHjVjIjJjKuh1hhhhjphNhNubj)}(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)}(hj`h]h Parameters}(hjbhhhNhNubah}(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.chMhjZubj)}(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&]uh1jRhj}ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjyubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(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}(hjяhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj͏hMhjΏubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj͏hMhjvubeh}(h]h ]h"]h$]h&]uh1jhjZubjM)}(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.chMhjZubjM)}(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 }(hj hhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhv from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjZubjM)}(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.chMhjZubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjBhhhNhNubjS)}(h``NULL``h]hNULL}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubh on error}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h vrealloc_node_align (C function)c.vrealloc_node_alignhNtauh1hhjphhhNhNubh)}(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&]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)}(hvrealloc_node_alignh]j)}(hvrealloc_node_alignh]hvrealloc_node_align}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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}(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)}(hjR h]hp}(hjhhhNhNubah}(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]jy)}jljsbc.vrealloc_node_alignasbuh1hhj%ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hsizeh]hsize}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjŐubj )}(hunsigned long alignh](j)}(hunsignedh]hunsigned}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(halignh]halign}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(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]jHc.vrealloc_node_alignasbuh1hhjubj)}(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 hjŐubj )}(hint nidh](j)}(hinth]hint}(hj hhhNhNubah}(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 hjŐubeh}(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)}(hAreallocate virtually contiguous memory; contents remain unchangedh]hAreallocate virtually contiguous memory; contents remain unchanged}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjOhhubah}(h]h ]h"]h$]h&]uh1j3hjxhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjjHjjjIjJjKuh1hhhhjphNhNubj)}(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)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjnubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjƒubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``unsigned long align`` requested 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)}(hrequested alignmenth]hrequested alignment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h7``gfp_t flags`` the flags for the page level allocator h](j)}(h``gfp_t flags``h]jS)}(hj>h]h gfp_t 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:52: ./mm/vmalloc.chMhj8ubj)}(hhh]jM)}(h&the flags for the page level allocatorh]h&the flags for the page level allocator}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubj)}(h+``int nid`` node number of the target node h](j)}(h ``int nid``h]jS)}(hjwh]hint nid}(hjyhhhNhNubah}(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.chMhjqubj)}(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&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjnubjM)}(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}(hjГhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȓubh is }(hjȓhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjȓubh8, vrealloc_XXX() behaves exactly like vmalloc_XXX(). If }(hjȓhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȓubh is 0 and }(hjȓhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȓubh is not a }(hjȓhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(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.chMhjnubjM)}(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 }(hj1hhhNhNubj_)}(h*only*h]honly}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hj1ubh, __GFP_THISNODE flag should be set, otherwise the function will try to avoid reallocation and possibly disregard the specified }(hj1hhhNhNubj)}(h**nid**h]hnid}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjnubjM)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjnubjM)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjnubjM)}(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.chMhjnubjM)}(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.chMhjnubjM)}(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.chMhjnubjM)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if }(hjhhhNhNubj)}(h**size**h]hsize}(hjҔhhhNhNubah}(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.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_32 (C function) c.vmalloc_32hNtauh1hhjphhhNhNubh)}(hhh](h)}(h&void * vmalloc_32 (unsigned long size)h]h)}(h$void *vmalloc_32(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.chM!ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM!ubjF )}(hjI h]h*}(hj(hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM!ubh)}(h vmalloc_32h]j)}(h vmalloc_32h]h vmalloc_32}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM!ubj )}(h(unsigned long size)h]j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hlongh]hlong}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubah}(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)}(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.chM!hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM!ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjϕjHjϕjIjJjKuh1hhhhjphNhNubj)}(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)}(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'``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"hjubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM"hjubah}(h]h ]h"]h$]h&]uh1jhjӕubjM)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM$hjӕubjM)}(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 }(hjIhhhNhNubj)}(h**size**h]hsize}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hjIhhhNhNubeh}(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)}(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:52: ./mm/vmalloc.chM&hjӕubjM)}(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.chM'hjӕubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_32_user (C function)c.vmalloc_32_userhNtauh1hhjphhhNhNubh)}(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.chM1ubj)}(h h]h }(hjҖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjіhM1ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjіhM1ubh)}(hvmalloc_32_userh]j)}(hvmalloc_32_userh]hvmalloc_32_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjіhM1ubj )}(h(unsigned long size)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}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hsizeh]hsize}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjіhM1ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjіhM1ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjіhM1hjhhubj4)}(hhh]jM)}(h1allocate zeroed virtually contiguous 32bit memoryh]h1allocate zeroed virtually contiguous 32bit memory}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM1hjlhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjіhM1ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjphNhNubj)}(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.chM5hjubj)}(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.chM2hjubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjɗhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjŗhM2hjƗubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŗhM2hjubah}(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:52: ./mm/vmalloc.chM4hjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM3hjubjM)}(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.chM6hjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hj(hhhNhNubjS)}(h``NULL``h]hNULL}(hj0hhhNhNubah}(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.chM7hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h remap_vmalloc_range (C function)c.remap_vmalloc_rangehNtauh1hhjphhhNhNubh)}(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}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjwhMubh)}(hremap_vmalloc_rangeh]j)}(hremap_vmalloc_rangeh]hremap_vmalloc_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjehhhjwhMubj )}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjƘmodnameN classnameNjpjs)}jv]jy)}jljsbc.remap_vmalloc_rangeasbuh1hhjubj)}(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 )}(h void *addrh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj4hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(haddrh]haddr}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hlongh]hlong}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hpgoffh]hpgoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(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)}(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&]uh1j3hj^hhhjwhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjԙjHjԙjIjJjKuh1hhhhjphNhNubj)}(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}(hjhhhNhNubah}(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)}(hD``struct vm_area_struct *vma`` vma to cover (map full range of vma) 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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(h$vma to cover (map full range of vma)h]h$vma to cover (map full range of vma)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``void *addr`` vmalloc memory h](j)}(h``void *addr``h]jS)}(hj6h]h void *addr}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj0ubj)}(hhh]jM)}(hvmalloc memoryh]hvmalloc memory}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjubj)}(hK``unsigned long pgoff`` number of pages into addr before first page to map h](j)}(h``unsigned long pgoff``h]jS)}(hjoh]hunsigned long pgoff}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjmubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjiubj)}(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&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjؙubjM)}(h0 for success, -Exxx on failureh]h0 for success, -Exxx on failure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjؙ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.chMhjؙubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjؙubjM)}(h.Similar to remap_pfn_range() (see mm/memory.c)h]h.Similar to remap_pfn_range() (see mm/memory.c)}(hjhhhNhNubah}(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&]uh1jhjphhhNhNubeh}(h]virtually-contiguous-mappingsah ]h"]virtually contiguous mappingsah$]h&]uh1hhhhhhhhK2ubh)}(hhh](h)}(hFile Mapping and Page Cacheh]hFile Mapping and Page Cache}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK8ubh)}(hhh](h)}(hFilemaph]hFilemap}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hhhhhK;ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%filemap_fdatawrite_range (C function)c.filemap_fdatawrite_rangehNtauh1hhj%hhhNhNubh)}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj]hMubh)}(hfilemap_fdatawrite_rangeh]j)}(hfilemap_fdatawrite_rangeh]hfilemap_fdatawrite_range}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1hhjKhhhj]hMubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljrsbc.filemap_fdatawrite_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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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_fdatawrite_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t endh](h)}(hhh]j)}(hloff_th]hloff_t}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKmodnameN classnameNjpjs)}jv]jƛc.filemap_fdatawrite_rangeasbuh1hhjBubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hendh]hend}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(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]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&]uh1j3hjDhhhj]hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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.chMhjubj)}(hhh](j)}(hC``struct address_space *mapping`` address space structure to write h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(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 address space structure to writeh]h address space structure to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjڜubeh}(h]h ]h"]h$]h&]uh1jhjhMhjלubj)}(h8``loff_t start`` offset in bytes where the range starts 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)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjלubj)}(h@``loff_t end`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end``h]jS)}(hjRh]h loff_t end}(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.chMhjLubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjל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)}(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&]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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h filemap_flush_range (C function)c.filemap_flush_rangehNtauh1hhj%hhhNhNubh)}(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}(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)}(hfilemap_flush_rangeh]j)}(hfilemap_flush_rangeh]hfilemap_flush_range}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj$hMubj )}(h9(struct address_space *mapping, loff_t start, loff_t end)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjShhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(h address_spaceh]h address_space}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjsmodnameN classnameNjpjs)}jv]jy)}jlj9sbc.filemap_flush_rangeasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjOubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubj )}(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_rangeasbuh1hhjubj)}(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 hjKubj )}(h loff_t 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.filemap_flush_rangeasbuh1hhj 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 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)}(hstart writeback on a rangeh]hstart writeback on a 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~jIjJjKuh1hhhhj%hNhNubj)}(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}(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)}(htarget address_spaceh]htarget address_space}(hjhhhNhNubah}(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)}(hjh]h loff_t start}(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)}(hindex to start writeback onh]hindex to start writeback on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjڟubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``loff_t end`` last (inclusive) index for writeback 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)}(h$last (inclusive) index for writebackh]h$last (inclusive) index for writeback}(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_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.}(hjjhhhNhNubah}(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&]uh1jhjyubah}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_flush (C function)c.filemap_flushhNtauh1hhj%hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjʠhhhjܠhMubj )}(h(struct address_space *mapping)h]j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj hhhNhNubah}(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_flushasbuh1hhjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjWhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjdhhhNhNubah}(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]jah ](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&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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.chMhjubj)}(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}(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)}(htarget address_spaceh]htarget address_space}(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:61: ./mm/filemap.chMhjubjM)}(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.}(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)}(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:61: ./mm/filemap.chMhjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGubh+ on success, negative error code otherwise.}(hjGhhhNhNubeh}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#filemap_range_has_page (C function)c.filemap_range_has_pagehNtauh1hhj%hhhNhNubh)}(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}(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 reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_range_has_pageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7modnameN classnameNjpjs)}jv]jc.filemap_range_has_pageasbuh1hhj.ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h start_byteh]h start_byte}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(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&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_range_has_pageasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hend_byteh]hend_byte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(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]jwah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjyhhubj4)}(hhh]jM)}(h check if a page exists in range.h]h check if a page exists in 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&]uh1j3hjyhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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)}(hF``struct address_space *mapping`` address space within which to check 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)}(h#address space within which to checkh]h#address space within which to check}(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=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]jS)}(hjMh]hloff_t start_byte}(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&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj ubj)}(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&]uh1jhjhMhj ubeh}(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:61: ./mm/filemap.chMhjubjM)}(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.}(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)}(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)}(hQ``true`` if at least one page exists in the specified range, ``false`` otherwise.h](jS)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh5 if at least one page exists in the specified range, }(hjhhhNhNubjS)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh 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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$filemap_fdatawait_range (C function)c.filemap_fdatawait_rangehNtauh1hhj%hhhNhNubh)}(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}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhj[hMubh)}(hfilemap_fdatawait_rangeh]j)}(hfilemap_fdatawait_rangeh]hfilemap_fdatawait_range}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjIhhhj[hMubj )}(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 reftargetjmodnameN classnameNjpjs)}jv]jy)}jljpsbc.filemap_fdatawait_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}(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_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(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 hjubj )}(hloff_t end_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjImodnameN classnameNjpjs)}jv]jĥc.filemap_fdatawait_rangeasbuh1hhj@ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hend_byteh]hend_byte}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(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)}(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&]uh1j3hjBhhhj[hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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}(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)}(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}(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#address space structure to wait forh]h#address space structure to wait for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjئubeh}(h]h ]h"]h$]h&]uh1jhjhMhjզubj)}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjզubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]jS)}(hjPh]hloff_t end_byte}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjJubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehM hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehM 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&]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)}(hjh]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.}(hjקhhhNhNubah}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h0filemap_fdatawait_range_keep_errors (C function)%c.filemap_fdatawait_range_keep_errorshNtauh1hhj%hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM5ubh)}(h#filemap_fdatawait_range_keep_errorsh]j)}(h#filemap_fdatawait_range_keep_errorsh]h#filemap_fdatawait_range_keep_errors}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM5ubj )}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjChhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj?ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjcmodnameN classnameNjpjs)}jv]jy)}jlj)sb%c.filemap_fdatawait_range_keep_errorsasbuh1hhj?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 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 }(hj֨hhhNhNubah}(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 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]j}%c.filemap_fdatawait_range_keep_errorsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hend_byteh]hend_byte}(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)}(hwait for writeback to completeh]hwait for writeback to complete}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM5hjShhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM5ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjnjHjnjIjJjKuh1hhhhj%hNhNubj)}(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)}(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:61: ./mm/filemap.chM9hjrubj)}(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.chM6hjubj)}(hhh]jM)}(h#address space structure to wait forh]h#address space structure to wait for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubj)}(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&]uh1jRhjΩubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM7hjʩ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&]uh1jLhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjʩubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]jS)}(hj h]hloff_t end_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.chM8hjubj)}(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&]uh1jLhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubeh}(h]h ]h"]h$]h&]uh1jhjrubjM)}(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.chM:hjrubjM)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM9hjrubjM)}(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)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM=hjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!file_fdatawait_range (C function)c.file_fdatawait_rangehNtauh1hhj%hhhNhNubh)}(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.chMKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMKubh)}(hfile_fdatawait_rangeh]j)}(hfile_fdatawait_rangeh]hfile_fdatawait_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMKubj )}(h7(struct file *file, loff_t start_byte, loff_t end_byte)h](j )}(hstruct file *fileh](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)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.file_fdatawait_rangeasbuh1hhjѪ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)}(hfileh]hfile}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѪubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjͪubj )}(hloff_t start_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjLmodnameN classnameNjpjs)}jv]jc.file_fdatawait_rangeasbuh1hhjCubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h start_byteh]h start_byte}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(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]jc.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 hjhhhjhMKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMKhjhhubj4)}(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.chMKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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.chMOhjubj)}(hhh](j)}(hK``struct file *file`` file pointing to address space structure to wait for 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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMLhj#ubj)}(hhh]jM)}(h4file pointing to address space structure to wait forh]h4file pointing to address space structure to wait for}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hMLhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMLhj ubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]jS)}(hjbh]hloff_t start_byte}(hjdhhhNhNubah}(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.chMMhj\ubj)}(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&]uh1jLhjwhMMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMMhj ubj)}(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.chMNhjubj)}(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&]uh1jLhjhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhj 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:61: ./mm/filemap.chMPhjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMOhjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMShjubjM)}(h **Return**h]j)}(hj h]hReturn}(hjhhhNhNubah}(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)}(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.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*filemap_fdatawait_keep_errors (C function)c.filemap_fdatawait_keep_errorshNtauh1hhj%hhhNhNubh)}(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}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMdubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj_hMdubh)}(hfilemap_fdatawait_keep_errorsh]j)}(hfilemap_fdatawait_keep_errorsh]hfilemap_fdatawait_keep_errors}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1hhjMhhhj_hMdubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljtsbc.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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjMhhhj_hMdubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjIhhhj_hMdubah}(h]jDah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj_hMdhjFhhubj4)}(hhh]jM)}(h*wait for writeback without clearing errorsh]h*wait for writeback without clearing errors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMdhjhhubah}(h]h ]h"]h$]h&]uh1j3hjFhhhj_hMdubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj)jHj)jIjJjKuh1hhhhj%hNhNubj)}(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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhhj-ubj)}(hhh]j)}(hF``struct address_space *mapping`` address space structure to wait for h](j)}(h!``struct address_space *mapping``h]jS)}(hjRh]hstruct address_space *mapping}(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.chMehjLubj)}(hhh]jM)}(h#address space structure to wait forh]h#address space structure to wait for}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjghMehjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMehjIubah}(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.chMghj-ubjM)}(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.chMfhj-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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMjhj-ubjM)}(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.chMnhj-ubjM)}(h"error status of the address space.h]h"error status of the address space.}(hjٮhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMohj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)filemap_write_and_wait_range (C function)c.filemap_write_and_wait_rangehNtauh1hhj%hhhNhNubh)}(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}(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_write_and_wait_rangeh]j)}(hfilemap_write_and_wait_rangeh]hfilemap_write_and_wait_range}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h;(struct address_space *mapping, loff_t lstart, loff_t lend)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}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjemodnameN classnameNjpjs)}jv]jy)}jlj+sbc.filemap_write_and_wait_rangeasbuh1hhjAubj)}(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 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]jc.filemap_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hjدhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlstarth]hlstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj=ubj )}(h loff_t lendh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlendh]hlend}(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 write out & wait on a file rangeh]h write out & wait on a file range}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjUhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjpjHjpjIjJjKuh1hhhhj%hNhNubj)}(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)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjtubj)}(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)}(hjҰh]h loff_t lstart}(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&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)}(hj h]h loff_t lend}(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)}(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 hMhjubeh}(h]h ]h"]h$]h&]uh1jhjtubjM)}(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:61: ./mm/filemap.chMhjtubjM)}(h=Write out and wait upon file offsets lstart->lend, inclusive.h]h=Write out and wait upon file offsets lstart->lend, inclusive.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjtubjM)}(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 }(hjkhhhNhNubj)}(h**lend**h]hlend}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubh 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).}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjtubjM)}(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.chMhjtubjM)}(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.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*file_check_and_advance_wb_err (C function)c.file_check_and_advance_wb_errhNtauh1hhj%hhhNhNubh)}(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}(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)}(hfile_check_and_advance_wb_errh]j)}(hfile_check_and_advance_wb_errh]hfile_check_and_advance_wb_err}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjϱhhhjhMubj )}(h(struct file *file)h]j )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hfileh]hfile}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj0modnameN classnameNjpjs)}jv]jy)}jljsbc.file_check_and_advance_wb_errasbuh1hhj ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hj\hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hfileh]hfile}(hjihhhNhNubah}(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)j2huh1hhjhMhjȱ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ȱhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(hjԲh]hstruct file *file}(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)}(h0struct file on which the error is being reportedh]h0struct file on which the error is being reported}(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)}(hjh]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: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).}(hj%hhhNhNubah}(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.}(hj4hhhNhNubah}(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.).}(hjChhhNhNubah}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hjch]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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&]uh1jRhjyubh+ on success, negative error code otherwise.}(hjyhhhNhNubeh}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&file_write_and_wait_range (C function)c.file_write_and_wait_rangehNtauh1hhj%hhhNhNubh)}(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&]uh1jhjhhhjijhMubh)}(hfile_write_and_wait_rangeh]j)}(hfile_write_and_wait_rangeh]hfile_write_and_wait_range}(hj׳hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӳubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjijhMubj )}(h/(struct file *file, loff_t lstart, loff_t lend)h](j )}(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]jy)}jljٳsbc.file_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj?hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfileh]hfile}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t lstarth](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjjmodnameN classnameNjpjs)}jv]j-c.file_write_and_wait_rangeasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hlstarth]hlstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t lendh](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.file_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hjδhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlendh]hlend}(hjܴhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjijhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjijhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjijhMhjhhubj4)}(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&]uh1j3hjhhhjijhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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)}(h@``struct file *file`` file pointing to address_space with pages h](j)}(h``struct file *file``h]jS)}(hjGh]hstruct file *file}(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.chMhjAubj)}(hhh]jM)}(h)file pointing to address_space with pagesh]h)file pointing to address_space with pages}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj>ubj)}(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.chMhjzubj)}(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&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhj>ubj)}(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)}(hjҵhhhNhNubah}(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&]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.}(hj hhhNhNubah}(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 }(hjhhhNhNubj)}(h**lend**h]hlend}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj"ubjM)}(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.}(hj:hhhNhNubah}(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)}(hjKh]hReturn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(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}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubh+ on success, negative error code otherwise.}(hjahhhNhNubeh}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%replace_page_cache_folio (C function)c.replace_page_cache_foliohNtauh1hhj%hhhNhNubh)}(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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(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&]jjuh1hhjhhhjhM ubj )}(h&(struct folio *old, struct folio *new)h](j )}(hstruct folio *oldh](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.replace_page_cache_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)}(holdh]hold}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׶ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjӶubj )}(hstruct folio *newh](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]jc.replace_page_cache_folioasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjIubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(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)}(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.chM hj˷hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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 *old`` folio to be replaced h](j)}(h``struct folio *old``h]jS)}(hjh]hstruct folio *old}(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!hj ubj)}(hhh]jM)}(hfolio to be replacedh]hfolio to be replaced}(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)}(h,``struct folio *new`` folio to replace with h](j)}(h``struct folio *new``h]jS)}(hjHh]hstruct folio *new}(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.chM"hjBubj)}(hhh]jM)}(hfolio to replace withh]hfolio to replace with}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]hM"hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM"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)}(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#hjubjM)}(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)hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_unlock (C function)c.folio_unlockhNtauh1hhj%hhhNhNubh)}(hhh](h)}(h'void folio_unlock (struct folio *folio)h]h)}(h&void folio_unlock(struct folio *folio)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)}(h folio_unlockh]j)}(h folio_unlockh]h folio_unlock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjӸhhhjhMubj )}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4modnameN classnameNjpjs)}jv]jy)}jljsbc.folio_unlockasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj`hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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)}(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̸hhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(hjعh]hstruct folio *folio}(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 folio.h]h The folio.}(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)}(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)}(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.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Context**h]j)}(hj:h]hContext}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(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.}(hjPhhhNhNubah}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_end_read (C function)c.folio_end_readhNtauh1hhj%hhhNhNubh)}(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}(hjhhhNhNubah}(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&]uh1jhj׺ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjܺmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_end_readasbuh1hhjubj)}(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 bool successh](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)}(hsuccessh]hsuccess}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj{hhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjwhhhjhMubah}(h]jrah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjthhubj4)}(hhh]jM)}(hEnd read on a folio.h]hEnd read on a folio.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjphhubah}(h]h ]h"]h$]h&]uh1j3hjthhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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ɻhMhjubj)}(h;``bool success`` True if all reads completed successfully. h](j)}(h``bool success``h]jS)}(hjh]h bool success}(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)True if all reads completed successfully.h]h)True if all reads completed successfully.}(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&]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.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Context**h]j)}(hjOh]hContext}(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)}(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.}(hjehhhNhNubah}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_end_private_2 (C function)c.folio_end_private_2hNtauh1hhj%hhhNhNubh)}(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}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_end_private_2asbuh1hhjͼ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}(hj*hhhNhNubah}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjQhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjljHjljIjJjKuh1hhhhj%hNhNubj)}(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)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjpubj)}(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&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjpubjM)}(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:61: ./mm/filemap.chMhjpubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjpubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_wait_private_2 (C function)c.folio_wait_private_2hNtauh1hhj%hhhNhNubh)}(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}(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 }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj2hMubh)}(hfolio_wait_private_2h]j)}(hfolio_wait_private_2h]hfolio_wait_private_2}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj2hMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjahhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj]ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljGsbc.folio_wait_private_2asbuh1hhj]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 hjYubah}(h]h ]h"]h$]h&]jjuh1j hj hhhj2hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj2hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj2hMhjhhubj4)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj2hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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)}(hj%h]hstruct folio *folio}(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 hjubj)}(hhh]jM)}(hThe folio to wait on.h]hThe folio to wait on.}(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)}(hj`h]h Description}(hjbhhhNhNubah}(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)}(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.}(hjvhhhNhNubah}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*folio_wait_private_2_killable (C function)c.folio_wait_private_2_killablehNtauh1hhj%hhhNhNubh)}(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}(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)}jljȿsbc.folio_wait_private_2_killableasbuh1hhj޿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 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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM,hjbhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM,ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj}jHj}jIjJjKuh1hhhhj%hNhNubj)}(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.chM0hjubj)}(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)}(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)}(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.}(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}(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.chM1hjubj.L)}(hhh](j+)}(h0 if successful.h]jM)}(hj#h]h0 if successful.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM2hj!ubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(h)-EINTR if a fatal signal was encountered.h]jM)}(hj;h]h)-EINTR if a fatal signal was encountered.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM3hj9ubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jPLjQLuh1j-Lhj2hM2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.folio_end_writeback_no_dropbehind (C function)#c.folio_end_writeback_no_dropbehindhNtauh1hhj%hhhNhNubh)}(hhh](h)}(h= 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.chMhjubj)}(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.chMhjubj)}(hhh]jM)}(hMapping.h]hMapping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``pgoff_t index`` Index. 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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hIndex.h]hIndex.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``unsigned long max_scan`` Maximum range to search. h](j)}(h``unsigned long max_scan``h]jS)}(hjAh]hunsigned long max_scan}(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.chMhj;ubj)}(hhh]jM)}(hMaximum range to search.h]hMaximum range to search.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(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.chMhjubjM)}(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.chMhjubjM)}(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.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.chM hjubjM)}(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.}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!page_cache_prev_miss (C function)c.page_cache_prev_misshNtauh1hhj%hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlpage_cache_prev_misssbc.page_cache_prev_missasbuh1hhjhhhL/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)}(hpage_cache_prev_missh]j)}(hjh]hpage_cache_prev_miss}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM"ubj )}(hF(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjIhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(h address_spaceh]h address_space}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjimodnameN classnameNjpjs)}jv]jc.page_cache_prev_missasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjEubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(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]jc.page_cache_prev_missasbuh1hhjubj)}(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 hjAubj )}(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 }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmax_scanh]hmax_scan}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubeh}(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(Find the previous gap in the page cache.h]h(Find the previous gap in the page cache.}(hjchhhNhNubah}(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{jIjJjKuh1hhhhj%hNhNubj)}(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)}(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)}(hIndex.h]hIndex.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubj)}(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.chM%hjubj)}(hhh]jM)}(hMaximum range to search.h]hMaximum range to search.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+hM%hj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hM%hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(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.}(hjghhhNhNubah}(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.}(hjvhhhNhNubah}(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.chM0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%__filemap_get_folio_mpol (C function)c.__filemap_get_folio_mpolhNtauh1hhj%hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jl__filemap_get_folio_mpolsbc.__filemap_get_folio_mpolasbuh1hhjhhhjhMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(h__filemap_get_folio_mpolh]j)}(hj h]h__filemap_get_folio_mpol}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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}(hjFhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(h address_spaceh]h address_space}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjfmodnameN classnameNjpjs)}jv]jc.__filemap_get_folio_mpolasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjBubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(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]jc.__filemap_get_folio_mpolasbuh1hhjubj)}(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 )}(hfgf_t fgp_flagsh](h)}(hhh]j)}(hfgf_th]hfgf_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__filemap_get_folio_mpolasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h fgp_flagsh]h fgp_flags}(hj-hhhNhNubah}(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}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKmodnameN classnameNjpjs)}jv]jc.__filemap_get_folio_mpolasbuh1hhjBubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hgfph]hgfp}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__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)}(hpolicyh]hpolicy}(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$Find and get a reference to a folio.h]h$Find and get a reference to a folio.}(hjhhhNhNubah}(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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj'jHj'jIjJjKuh1hhhhj%hNhNubj)}(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)}(hj1h]h Parameters}(hj3hhhNhNubah}(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)}(h?``struct address_space *mapping`` The address_space to search. h](j)}(h!``struct address_space *mapping``h]jS)}(hjPh]hstruct address_space *mapping}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjJubj)}(hhh]jM)}(hThe address_space to search.h]hThe address_space to search.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjGubj)}(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&]uh1jhjhMhjGubj)}(hD``fgf_t fgp_flags`` ``FGP`` flags modify how the folio is returned. h](j)}(h``fgf_t fgp_flags``h]jS)}(hjh]hfgf_t fgp_flags}(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/``FGP`` flags modify how the folio is returned.h](jS)}(h``FGP``h]hFGP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh( flags modify how the folio is returned.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjGubj)}(hL``gfp_t gfp`` Memory allocation flags to use if ``FGP_CREAT`` is specified. h](j)}(h ``gfp_t gfp``h]jS)}(hj h]h gfp_t gfp}(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)}(h=Memory allocation flags to use if ``FGP_CREAT`` is specified.h](h"Memory allocation flags to use if }(hj"hhhNhNubjS)}(h ``FGP_CREAT``h]h FGP_CREAT}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubh is specified.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjGubj)}(hF``struct mempolicy *policy`` NUMA memory allocation policy to follow. h](j)}(h``struct mempolicy *policy``h]jS)}(hjTh]hstruct mempolicy *policy}(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(NUMA memory allocation policy to follow.h]h(NUMA memory allocation policy to follow.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjGubeh}(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)}(h9Looks up the page cache entry at **mapping** & **index**.h](h!Looks up the page cache entry at }(hjhhhNhNubj)}(h **mapping**h]hmapping}(hjhhhNhNubah}(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.chMhj+ubjM)}(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 }(hjhhhNhNubjS)}(h ``FGP_LOCK``h]hFGP_LOCK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh or }(hjhhhNhNubjS)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh7 are specified then the function may sleep even if the }(hjhhhNhNubjS)}(h``GFP``h]hGFP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh flags specified for }(hjhhhNhNubjS)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh are atomic.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj+ubjM)}(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.}(hj/hhhNhNubah}(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)}(hj@h]hReturn}(hjBhhhNhNubah}(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+ubjM)}(h*The found folio or an ERR_PTR() otherwise.h]h*The found folio or an ERR_PTR() otherwise.}(hjVhhhNhNubah}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_get_folios (C function)c.filemap_get_folioshNtauh1hhj%hhhNhNubh)}(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}(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_foliosasbuh1hhjubj)}(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 )}(hpgoff_t *starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj9modnameN classnameNjpjs)}jv]jc.filemap_get_foliosasbuh1hhj0ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjF )}(hjI h]h*}(hjchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj0ubj)}(hstarth]hstart}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(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_foliosasbuh1hhjubj)}(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_foliosasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfbatchh]hfbatch}(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'hj}hhhjhMubah}(h]jxah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjzhhubj4)}(hhh]jM)}(hGet a batch of foliosh]hGet a batch of folios}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjOhhubah}(h]h ]h"]h$]h&]uh1j3hjzhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjjHjjjIjJjKuh1hhhhj%hNhNubj)}(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)}(hjth]h Parameters}(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.chMhjnubj)}(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)}(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.chMhjubj)}(hhh]jM)}(h The final page index (inclusive)h]h The final page index (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``struct folio_batch *fbatch`` The batch to fill. h](j)}(h``struct folio_batch *fbatch``h]jS)}(hj>h]hstruct folio_batch *fbatch}(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)}(hThe batch to fill.h]hThe batch to fill.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubeh}(h]h ]h"]h$]h&]uh1jhjnubjM)}(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:61: ./mm/filemap.chMhjnubjM)}(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}(hjhhhNhNubah}(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.chMhjnubjM)}(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.chMhjnubjM)}(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 }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+ to index the next folio for the traversal.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&filemap_get_folios_contig (C function)c.filemap_get_folios_contighNtauh1hhj%hhhNhNubh)}(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}(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)}(hfilemap_get_folios_contigh]j)}(hfilemap_get_folios_contigh]hfilemap_get_folios_contig}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1hhj)hhhj;hMubj )}(hX(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(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)}jljPsbc.filemap_get_folios_contigasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjfubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjbubj )}(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]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)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjbubj )}(h pgoff_t endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj6modnameN classnameNjpjs)}jv]jc.filemap_get_folios_contigasbuh1hhj-ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hendh]hend}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjbubj )}(hstruct folio_batch *fbatchh](j5)}(hj8h]hstruct}(hjyhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(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_contigasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjuubj)}(hfbatchh]hfbatch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjbubeh}(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 Get a batch of contiguous foliosh]h Get a batch of contiguous 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&]uh1j3hj"hhhj;hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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)}(hj;h]hstruct address_space *mapping}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj5ubj)}(hhh]jM)}(hThe address_space to searchh]hThe address_space to search}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubj)}(h+``pgoff_t *start`` The starting page index h](j)}(h``pgoff_t *start``h]jS)}(hjth]hpgoff_t *start}(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)}(hThe starting page indexh]hThe starting page index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhj2ubj)}(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.chMhjubj)}(hhh]jM)}(h The final page index (inclusive)h]h The final page index (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj2ubj)}(h1``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 fillh]hThe batch to fill}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj2ubeh}(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:61: ./mm/filemap.chMhjubjM)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(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.chMhjubjM)}(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 }(hj^hhhNhNubj)}(h **start**h]hstart}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh2 to be positioned for traversal of the next folio.}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#filemap_get_folios_tag (C function)c.filemap_get_folios_taghNtauh1hhj%hhhNhNubh)}(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&]uh1jhjhhhjhM ubh)}(hfilemap_get_folios_tagh]j)}(hfilemap_get_folios_tagh]hfilemap_get_folios_tag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM 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}(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_tagasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj(hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hpgoff_t *starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjSmodnameN classnameNjpjs)}jv]jc.filemap_get_folios_tagasbuh1hhjJubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjF )}(hjI h]h*}(hj}hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjJubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(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_tagasbuh1hhjubj)}(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 )}(h xa_mark_t tagh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_get_folios_tagasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htagh]htag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio_batch *fbatchh](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 folio_batchh]h folio_batch}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjSmodnameN classnameNjpjs)}jv]jc.filemap_get_folios_tagasbuh1hhj/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)}(hfbatchh]hfbatch}(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'hjhhhjhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM 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&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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`` 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.chM hjubj)}(hhh]jM)}(hThe address_space to searchh]hThe address_space to search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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.chM hj6ubj)}(hhh]jM)}(hThe starting page indexh]hThe starting page index}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhM hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjubj)}(h1``pgoff_t end`` The final page index (inclusive) h](j)}(h``pgoff_t end``h]jS)}(hjuh]h pgoff_t end}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjsubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjoubj)}(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&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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&]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 tag indexh]h The tag index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h1``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.chM hjubj)}(hhh]jM)}(hThe batch to fillh]hThe batch to fill}(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:61: ./mm/filemap.chM hjubjM)}(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 }(hj8hhhNhNubj)}(h **start**h]hstart}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh; if it does, it will contain }(hj8hhhNhNubj)}(h **start**h]hstart}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh%. The final folio may extend beyond }(hj8hhhNhNubj)}(h**end**h]hend}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh; if it does, it will contain }(hj8hhhNhNubj)}(h**end**h]hend}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhX*. 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 }(hj8hhhNhNubj)}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh.}(hj8hhhNhNubeh}(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)}(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}(hjhhhNhNubah}(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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_read (C function)c.filemap_readhNtauh1hhj%hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jl filemap_readsbc.filemap_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)}(h filemap_readh]j)}(hjh]h filemap_read}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(hA(struct kiocb *iocb, struct iov_iter *iter, ssize_t already_read)h](j )}(hstruct kiocb *iocbh](j5)}(hj8h]hstruct}(hjLhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjHubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]j)}(hkiocbh]hkiocb}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlmodnameN classnameNjpjs)}jv]jc.filemap_readasbuh1hhjHubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjHubj)}(hiocbh]hiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubj )}(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 reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubj )}(hssize_t already_readh](h)}(hhh]j)}(hssize_th]hssize_t}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj1modnameN classnameNjpjs)}jv]jc.filemap_readasbuh1hhj(ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h already_readh]h already_read}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubeh}(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)}(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&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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}(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 kiocb *iocb`` The iocb to read. 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)}(hThe iocb to read.h]hThe iocb to read.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h4``struct iov_iter *iter`` Destination for the data. 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.h]hDestination for the data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hE``ssize_t already_read`` Number of bytes already read by the caller. h](j)}(h``ssize_t already_read``h]jS)}(hj8h]hssize_t already_read}(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.chM hj2ubj)}(hhh]jM)}(h+Number of bytes already read by the caller.h]h+Number of bytes already read by the caller.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhM hjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhM hjubeh}(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.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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#generic_file_read_iter (C function)c.generic_file_read_iterhNtauh1hhj%hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlgeneric_file_read_itersbc.generic_file_read_iterasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMx ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMx ubh)}(hgeneric_file_read_iterh]j)}(hjh]hgeneric_file_read_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMx ubj )}(h+(struct kiocb *iocb, struct iov_iter *iter)h](j )}(hstruct kiocb *iocbh](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)}(hkiocbh]hkiocb}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjQmodnameN classnameNjpjs)}jv]jc.generic_file_read_iterasbuh1hhj-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)}(hiocbh]hiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubj )}(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 reftargetjmodnameN classnameNjpjs)}jv]jc.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)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMx ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMx ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMx hjhhubj4)}(hhh]jM)}(hgeneric filesystem read routineh]hgeneric filesystem read routine}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMx hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMx ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj:jHj:jIjJjKuh1hhhhj%hNhNubj)}(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)}(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)}(h0``struct kiocb *iocb`` kernel I/O control block h](j)}(h``struct kiocb *iocb``h]jS)}(hjch]hstruct kiocb *iocb}(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.chMy hj]ubj)}(hhh]jM)}(hkernel I/O control blockh]hkernel I/O control block}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhMy hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMy hjZubj)}(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.chMz hjubj)}(hhh]jM)}(hdestination for the data readh]hdestination for the data read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMz hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMz 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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM{ hj>ubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM~ hj>ubjM)}(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.}(hj hhhNhNubah}(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>ubj.L)}(hhh](j+)}(h.number of bytes copied, even for partial readsh]jM)}(hj7h]h.number of bytes copied, even for partial reads}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj5ubah}(h]h ]h"]h$]h&]uh1j+hj2ubj+)}(h;negative error code (or 0 if IOCB_NOIO) if nothing was readh]jM)}(hjOh]h;negative error code (or 0 if IOCB_NOIO) if nothing was read}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjMubah}(h]h ]h"]h$]h&]uh1j+hj2ubeh}(h]h ]h"]h$]h&]jPLjI uh1j-LhjFhM hj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h filemap_splice_read (C function)c.filemap_splice_readhNtauh1hhj%hhhNhNubh)}(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)}(hjh]hfilemap_splice_read}(hjhhhNhNubah}(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}(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]jc.filemap_splice_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj'hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hinh]hin}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t *pposh](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_splice_readasbuh1hhjIubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjF )}(hjI h]h*}(hj|hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjIubj)}(hpposh]hppos}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.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)}(hpipeh]hpipe}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_splice_readasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlenh]hlen}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hinth]hint}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(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]j~ah ](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&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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 file *in`` The file to read from h](j)}(h``struct file *in``h]jS)}(hjh]hstruct file *in}(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 file to read fromh]hThe file to read from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h;``loff_t *ppos`` Pointer to the file position to read from h](j)}(h``loff_t *ppos``h]jS)}(hj6h]h loff_t *ppos}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj0ubj)}(hhh]jM)}(h)Pointer to the file position to read fromh]h)Pointer to the file position to read from}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhM hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhM hjubj)}(h9``struct pipe_inode_info *pipe`` The pipe to splice into h](j)}(h ``struct pipe_inode_info *pipe``h]jS)}(hjoh]hstruct pipe_inode_info *pipe}(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)}(hThe pipe to splice intoh]hThe pipe to splice into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h$``size_t len`` The amount to splice h](j)}(h``size_t len``h]jS)}(hjh]h size_t len}(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 amount to spliceh]hThe amount to splice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h,``unsigned int flags`` The SPLICE_F_* flags h](j)}(h``unsigned int flags``h]jS)}(hjh]hunsigned int flags}(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 SPLICE_F_* flagsh]hThe SPLICE_F_* flags}(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)}(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.}(hj2hhhNhNubah}(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)}(hjCh]hReturn}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(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 }(hjYhhhNhNubj)}(h ***ppos**h]h*ppos}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubhX4 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.}(hjYhhhNhNubeh}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_fault (C function)c.filemap_faulthNtauh1hhj%hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h(struct vm_fault *vmf)h]j )}(hstruct vm_fault *vmfh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jc.filemap_faultasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj6hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmfh]hvmf}(hjChhhNhNubah}(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)read in file data for page fault handlingh]h)read in file data for page fault handling}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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&]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/struct vm_fault containing details of the faulth]h/struct vm_fault containing details of the fault}(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&]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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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().}(hj,hhhNhNubah}(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.}(hj;hhhNhNubah}(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.}(hjJhhhNhNubah}(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&]uh1jhjYubah}(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 }(hjqhhhNhNubjS)}(h ``VM_FAULT_``h]h VM_FAULT_}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjqubh codes.}(hjqhhhNhNubeh}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hread_cache_folio (C function)c.read_cache_foliohNtauh1hhj%hhhNhNubh)}(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.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlread_cache_foliosbc.read_cache_folioasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hread_cache_folioh]j)}(hjh]hread_cache_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hR(struct address_space *mapping, pgoff_t index, filler_t filler, struct file *file)h](j )}(hstruct address_space *mappingh](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)}(h address_spaceh]h address_space}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjLmodnameN classnameNjpjs)}jv]jc.read_cache_folioasbuh1hhj(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)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(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]jc.read_cache_folioasbuh1hhjubj)}(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 )}(hfiller_t fillerh](h)}(hhh]j)}(hfiller_th]hfiller_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.read_cache_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfillerh]hfiller}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$ubj )}(hstruct file *fileh](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)}(hfileh]hfile}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjLmodnameN classnameNjpjs)}jv]jc.read_cache_folioasbuh1hhj(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)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(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(Read into page cache, fill it if needed.h]h(Read into page cache, fill it if needed.}(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&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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)}(hB``struct address_space *mapping`` The address_space to read from. 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 read from.h]hThe address_space to read from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``pgoff_t index`` The index to read. 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.chMhj!ubj)}(hhh]jM)}(hThe index to read.h]hThe index to read.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubj)}(hU``filler_t filler`` Function to perform the read, or NULL to use aops->read_folio(). h](j)}(h``filler_t filler``h]jS)}(hj`h]hfiller_t filler}(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.chMhjZubj)}(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().}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjubj)}(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.chMhjubj)}(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&]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)}(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 }(hjhhhNhNubj)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0, but it may not be the first page of the folio.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM!hjubjM)}(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.chM$hjubjM)}(h8May sleep. Expects mapping->invalidate_lock to be held.h]h8May sleep. Expects mapping->invalidate_lock to be held.}(hj2hhhNhNubah}(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)}(hjCh]hReturn}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM'hjubjM)}(h3An uptodate folio on success, ERR_PTR() on failure.h]h3An uptodate folio on success, ERR_PTR() on failure.}(hjYhhhNhNubah}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#mapping_read_folio_gfp (C function)c.mapping_read_folio_gfphNtauh1hhj%hhhNhNubh)}(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.chM1ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM1ubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlmapping_read_folio_gfpsbc.mapping_read_folio_gfpasbuh1hhjhhhjhM1ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM1ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM1ubh)}(hmapping_read_folio_gfph]j)}(hjh]hmapping_read_folio_gfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM1ubj )}(h9(struct address_space *mapping, pgoff_t index, gfp_t gfp)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]jc.mapping_read_folio_gfpasbuh1hhjubj)}(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 indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjwmodnameN classnameNjpjs)}jv]jc.mapping_read_folio_gfpasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(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.mapping_read_folio_gfpasbuh1hhjubj)}(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 hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM1ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM1ubah}(h]j{ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM1hj}hhubj4)}(hhh]jM)}(h7Read into page cache, using specified allocation flags.h]h7Read into page cache, using specified allocation flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM1hjhhubah}(h]h ]h"]h$]h&]uh1j3hj}hhhjhM1ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj+jHj+jIjJjKuh1hhhhj%hNhNubj)}(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)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM5hj/ubj)}(hhh](j)}(hC``struct address_space *mapping`` The address_space for the folio. 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.chM2hjNubj)}(hhh]jM)}(h The address_space for the folio.h]h The address_space for the folio.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjihM2hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM2hjKubj)}(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.chM3hjubj)}(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&]uh1jLhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjKubj)}(h=``gfp_t gfp`` The page allocator flags to use if allocating. 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.chM4hjubj)}(hhh]jM)}(h.The page allocator flags to use if allocating.h]h.The page allocator flags to use if allocating.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjKubeh}(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.chM6hj/ubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM5hj/ubjM)}(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.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM8hj/ubjM)}(hAThe function expects mapping->invalidate_lock to be already held.h]hAThe function expects mapping->invalidate_lock to be already held.}(hj5hhhNhNubah}(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)}(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:61: ./mm/filemap.chM>hj/ubjM)}(h0Uptodate folio on success, ERR_PTR() on failure.h]h0Uptodate folio on success, ERR_PTR() on failure.}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h read_cache_page_gfp (C function)c.read_cache_page_gfphNtauh1hhj%hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlread_cache_page_gfpsbc.read_cache_page_gfpasbuh1hhjhhhjhM\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM\ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM\ubh)}(hread_cache_page_gfph]j)}(hjh]hread_cache_page_gfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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}(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]jc.read_cache_page_gfpasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjOhhhNhNubah}(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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjzmodnameN classnameNjpjs)}jv]jc.read_cache_page_gfpasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(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.read_cache_page_gfpasbuh1hhjubj)}(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 hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM\ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM\ubah}(h]j~ah ](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)}(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:61: ./mm/filemap.chM`hj2ubj)}(hhh](j)}(h;``struct address_space *mapping`` the page's address_space 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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM]hjQubj)}(hhh]jM)}(hthe page's address_spaceh]hthe page’s address_space}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhM]hjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhM]hjNubj)}(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.chM^hjubj)}(hhh]jM)}(hthe page indexh]hthe page index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM^hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjNubj)}(h<``gfp_t gfp`` the page allocator flags to use if allocating 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.chM_hjubj)}(hhh]jM)}(h-the page allocator flags to use if allocatingh]h-the page allocator flags to use if allocating}(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&]uh1jhj2ubjM)}(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.chMahj2ubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM`hj2ubjM)}(h7If the page does not get brought uptodate, return -EIO.h]h7If the page does not get brought uptodate, return -EIO.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMchj2ubjM)}(hAThe function expects mapping->invalidate_lock to be already held.h]hAThe function expects mapping->invalidate_lock to be already held.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMehj2ubjM)}(h **Return**h]j)}(hjIh]hReturn}(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.chMghj2ubjM)}(h1up to date page on success, ERR_PTR() on failure.h]h1up to date page on success, ERR_PTR() on failure.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&__generic_file_write_iter (C function)c.__generic_file_write_iterhNtauh1hhj%hhhNhNubh)}(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.chM(ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM(ubh)}(h__generic_file_write_iterh]j)}(hjh]h__generic_file_write_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM(ubj )}(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 }(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]jc.__generic_file_write_iterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj*hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hiocbh]hiocb}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct iov_iter *fromh](j5)}(hj8h]hstruct}(hjPhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjpmodnameN classnameNjpjs)}jv]jc.__generic_file_write_iterasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjLubj)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(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)}(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.chM(hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM(ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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 kiocb *iocb`` IO state structure (file, offset, etc.) 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)hj ubj)}(hhh]jM)}(h'IO state structure (file, offset, etc.)h]h'IO state structure (file, offset, etc.)}(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)}(h6``struct iov_iter *from`` iov_iter with data to write h](j)}(h``struct iov_iter *from``h]jS)}(hjKh]hstruct iov_iter *from}(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.chM*hjEubj)}(hhh]jM)}(hiov_iter with data to writeh]hiov_iter with data to write}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`hM*hjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hM*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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM,hjubjM)}(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.chM+hjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM0hjubjM)}(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}(hjhhhNhNubah}(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.chM3hjubjM)}(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.chM7hjubj.L)}(hhh](j+)}(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.chM8hjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(h6negative error code if no data has been written at allh]jM)}(hjh]h6negative error code if no data has been written at all}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM9hjubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jPLjI uh1j-LhjhM8hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$generic_file_write_iter (C function)c.generic_file_write_iterhNtauh1hhj%hhhNhNubh)}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjQmodnameN classnameNjpjs)}jv]jy)}jlgeneric_file_write_itersbc.generic_file_write_iterasbuh1hhjHhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM_ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjphM_ubh)}(hgeneric_file_write_iterh]j)}(hjmh]hgeneric_file_write_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjHhhhjphM_ubj )}(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 }(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]jkc.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)}(hiocbh]hiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct iov_iter *fromh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj.modnameN classnameNjpjs)}jv]jkc.generic_file_write_iterasbuh1hhj 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)}(hfromh]hfrom}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjHhhhjphM_ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjDhhhjphM_ubah}(h]j?ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjphM_hjAhhubj4)}(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.chM_hjhhubah}(h]h ]h"]h$]h&]uh1j3hjAhhhjphM_ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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.chMchjubj)}(hhh](j)}(h*``struct kiocb *iocb`` IO state structure 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)}(hIO state structureh]hIO state structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjubj)}(h6``struct iov_iter *from`` iov_iter with data to write h](j)}(h``struct iov_iter *from``h]jS)}(hj h]hstruct iov_iter *from}(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.chMahjubj)}(hhh]jM)}(hiov_iter with data to writeh]hiov_iter with data to write}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubeh}(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.chMchjubjM)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMbhjubjM)}(h **Return**h]j)}(hjkh]hReturn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMfhjubj.L)}(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.chMfhjubah}(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.chMhhjubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jPLjI uh1j-LhjhMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"filemap_release_folio (C function)c.filemap_release_foliohNtauh1hhj%hhhNhNubh)}(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}(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)}(hfilemap_release_folioh]j)}(hfilemap_release_folioh]hfilemap_release_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM~ubj )}(h (struct folio *folio, gfp_t gfp)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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7modnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_release_folioasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjphhhNhNubah}(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]jQc.filemap_release_folioasbuh1hhjubj)}(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 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(Release fs-specific metadata on a folio.h]h(Release fs-specific metadata 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&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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)}(hF``struct folio *folio`` The folio which the kernel is trying to free. 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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h-The folio which the kernel is trying to free.h]h-The folio which the kernel is trying to free.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(h6``gfp_t gfp`` Memory allocation flags (and I/O mode). h](j)}(h ``gfp_t gfp``h]jS)}(hj\h]h gfp_t gfp}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjVubj)}(hhh]jM)}(h'Memory allocation flags (and I/O mode).h]h'Memory allocation flags (and I/O mode).}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubeh}(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)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(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.chMhjubjM)}(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 }(hjhhhNhNubj)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh argument specifies whether I/O may be performed to release this page (__GFP_IO), and whether the call may block (__GFP_RECLAIM & __GFP_FS).}(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)}(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<``true`` if the release was successful, otherwise ``false``.h](jS)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh* if the release was successful, otherwise }(hjhhhNhNubjS)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh.}(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&]uh1jhj%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%filemap_invalidate_inode (C function)c.filemap_invalidate_inodehNtauh1hhj%hhhNhNubh)}(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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjahMubh)}(hfilemap_invalidate_inodeh]j)}(hfilemap_invalidate_inodeh]hfilemap_invalidate_inode}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1hhjOhhhjahMubj )}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljvsbc.filemap_invalidate_inodeasbuh1hhjubj)}(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 bool flushh](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflushh]hflush}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t starth](h)}(hhh]j)}(hloff_th]hloff_t}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj;modnameN classnameNjpjs)}jv]jc.filemap_invalidate_inodeasbuh1hhj2ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hstarth]hstart}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t 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.filemap_invalidate_inodeasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjOhhhjahMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjKhhhjahMubah}(h]jFah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjahMhjHhhubj4)}(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}(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&]uh1j3hjHhhhjahMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj%hNhNubj)}(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)}(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 inode *inode`` The inode to flush h](j)}(h``struct inode *inode``h]jS)}(hjh]hstruct inode *inode}(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 inode to flushh]hThe inode to flush}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjubj)}(h@``bool flush`` Set to write back rather than simply invalidate. h](j)}(h``bool flush``h]jS)}(hjQh]h bool flush}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjOubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjKubj)}(hhh]jM)}(h0Set to write back rather than simply invalidate.h]h0Set to write back rather than simply invalidate.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubj)}(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&]uh1jhjhMhjubj)}(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)}(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)}(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.}(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&]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)}(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.}(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&]uh1jhj%hhhNhNubeh}(h]filemapah ]h"]filemapah$]h&]uh1hhjhhhhhK;ubh)}(hhh](h)}(h Readaheadh]h Readahead}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hhhhhKAubjM)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK hj3hhubjM)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKhj3hhubjM)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKhj3hhubjM)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK"hj3hhubjM)}(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&hj3hhubjM)}(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*hj3hhubjM)}(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.chK0hj3hhubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK;hj3hhubjM)}(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.chKBhj3hhubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKGhj3hhubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKKhj3hhubjM)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKShj3hhubj.L)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKWhjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK[hjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(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 }(hj[hhhNhNubjS)}(h``async_size``h]h async_size}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubhX  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 }(hj[hhhNhNubjS)}(h``async_size``h]h async_size}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubhX 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.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKdhj3hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$page_cache_ra_unbounded (C function)c.page_cache_ra_unboundedhNtauh1hhj3hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(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 reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.page_cache_ra_unboundedasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hractlh]hractl}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long nr_to_readh](j)}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hlongh]hlong}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h nr_to_readh]h nr_to_read}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlookahead_sizeh]hlookahead_size}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj!jHj!jIjJjKuh1hhhhj3hNhNubj)}(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)}(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:70: ./mm/readahead.chKhj%ubj)}(hhh](j)}(h7``struct readahead_control *ractl`` Readahead control. h](j)}(h#``struct readahead_control *ractl``h]jS)}(hjJh]hstruct readahead_control *ractl}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjDubj)}(hhh]jM)}(hReadahead control.h]hReadahead control.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hKhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjAubj)}(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.chKhj}ubj)}(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&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjAubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjAubeh}(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.chKhj%ubjM)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhj%ubjM)}(h **Context**h]j)}(hjh]hContext}(hj hhhNhNubah}(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.chKhj%ubjM)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj3hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_expand (C function)c.readahead_expandhNtauh1hhj3hhhNhNubh)}(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}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhjqhMubh)}(hreadahead_expandh]j)}(hreadahead_expandh]hreadahead_expand}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj_hhhjqhMubj )}(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 }(hjhhhNhNubah}(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 reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.readahead_expandasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hractlh]hractl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t new_starth](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.readahead_expandasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h new_starth]h new_start}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hsize_t new_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]jc.readahead_expandasbuh1hhjVubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hnew_lenh]hnew_len}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj_hhhjqhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj[hhhjqhMubah}(h]jVah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjqhMhjXhhubj4)}(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&]uh1j3hjXhhhjqhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj3hNhNubj)}(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)}(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.chMhjubj)}(hhh](j)}(h?``struct readahead_control *ractl`` The request to be expanded 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.chMhjubj)}(hhh]jM)}(hThe request to be expandedh]hThe request to be expanded}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h'``loff_t new_start`` The revised start h](j)}(h``loff_t new_start``h]jS)}(hj-h]hloff_t new_start}(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:70: ./mm/readahead.chMhj'ubj)}(hhh]jM)}(hThe revised starth]hThe revised start}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubj)}(h3``size_t new_len`` The revised size of the request h](j)}(h``size_t new_len``h]jS)}(hjfh]hsize_t new_len}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhj`ubj)}(hhh]jM)}(hThe revised size of the requesth]hThe revised size of the request}(hjhhhNhNubah}(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)}(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.chMhjubjM)}(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.chMhjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjubjM)}(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 }(hjhhhNhNubj)}(h **ractl**h]hractl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 object for a different expansion than was requested.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj3hhhNhNubeh}(h] readaheadah ]h"] readaheadah$]h&]uh1hhjhhhhhKAubh)}(hhh](h)}(h Writebackh]h Writeback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKJubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h2balance_dirty_pages_ratelimited_flags (C function)'c.balance_dirty_pages_ratelimited_flagshNtauh1hhjhhhNhNubh)}(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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj=hMubh)}(h%balance_dirty_pages_ratelimited_flagsh]j)}(h%balance_dirty_pages_ratelimited_flagsh]h%balance_dirty_pages_ratelimited_flags}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1hhj+hhhj=hMubj )}(h3(struct address_space *mapping, unsigned int flags)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(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)}jljRsb'c.balance_dirty_pages_ratelimited_flagsasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjdubj )}(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 hjdubeh}(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)}(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.chMhj=hhubah}(h]h ]h"]h$]h&]uh1j3hj$hhhj=hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjXjHjXjIjJjKuh1hhhhjhNhNubj)}(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)}(hjbh]h Parameters}(hjdhhhNhNubah}(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.chMhj\ubj)}(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.chMhj{ubj)}(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&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubj)}(h"``unsigned int flags`` BDP flags. h](j)}(h``unsigned int flags``h]jS)}(hjh]hunsigned int flags}(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 BDP flags.h]h BDP flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubeh}(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.chMhj\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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhj\ubjM)}(h2See balance_dirty_pages_ratelimited() for details.h]h2See balance_dirty_pages_ratelimited() for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhj\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:76: ./mm/page-writeback.chMhj\ubjM)}(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 }(hjAhhhNhNubj)}(h **flags**h]hflags}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubhX$ 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.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,balance_dirty_pages_ratelimited (C function)!c.balance_dirty_pages_ratelimitedhNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhM4ubh)}(hbalance_dirty_pages_ratelimitedh]j)}(hbalance_dirty_pages_ratelimitedh]hbalance_dirty_pages_ratelimited}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj~hhhjhM4ubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsb!c.balance_dirty_pages_ratelimitedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hj~hhhjhM4ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjzhhhjhM4ubah}(h]juah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM4hjwhhubj4)}(hhh]jM)}(hbalance dirty memory state.h]hbalance dirty memory state.}(hjBhhhNhNubah}(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&]uh1j3hjwhhhjhM4ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjZjHjZjIjJjKuh1hhhhjhNhNubj)}(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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(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)}(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.chM5hj}ubj)}(hhh]jM)}(h address_space which was dirtied.h]h address_space which was dirtied.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjzubah}(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.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.}(hjhhhNhNubah}(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.}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$tag_pages_for_writeback (C function)c.tag_pages_for_writebackhNtauh1hhjhhhNhNubh)}(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}(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 }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM' ubh)}(htag_pages_for_writebackh]j)}(htag_pages_for_writebackh]htag_pages_for_writeback}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hM' ubj )}(h;(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjOhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hhh]j)}(h address_spaceh]h address_space}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjomodnameN classnameNjpjs)}jv]jy)}jlj5sbc.tag_pages_for_writebackasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjKubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjGubj )}(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.tag_pages_for_writebackasbuh1hhjubj)}(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 hjGubj )}(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 reftargetjmodnameN classnameNjpjs)}jv]jc.tag_pages_for_writebackasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendh]hend}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjGubeh}(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$tag pages to be written by writebackh]h$tag pages to be written by writeback}(hjbhhhNhNubah}(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&]uh1j3hjhhhj hM' ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjzjHjzjIjJjKuh1hhhhjhNhNubj)}(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)}(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+ hj~ubj)}(hhh](j)}(hC``struct address_space *mapping`` address space structure to write 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.chM( hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM( hjubj)}(h&``pgoff_t start`` starting page index h](j)}(h``pgoff_t start``h]jS)}(hjh]h pgoff_t start}(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)}(hstarting page indexh]hstarting page index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM) hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM) hjubj)}(h.``pgoff_t end`` ending page index (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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM* hj 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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj* hM* hjubeh}(h]h ]h"]h$]h&]uh1jhj~ubjM)}(h**Description**h]j)}(hjP h]h Description}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN 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 }(hjf hhhNhNubj)}(h **start**h]hstart}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf ubh to }(hjf hhhNhNubj)}(h**end**h]hend}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf 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).}(hjf 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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwriteback_iter (C function)c.writeback_iterhNtauh1hhjhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj 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&]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)}jlwriteback_itersbc.writeback_iterasbuh1hhj 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)}(hwriteback_iterh]j)}(hj h]hwriteback_iter}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj 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}(hj3 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}(hjQ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjS modnameN classnameNjpjs)}jv]j c.writeback_iterasbuh1hhj/ 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)}(hmappingh]hmapping}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj+ ubj )}(hstruct writeback_control *wbch](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)}(hwriteback_controlh]hwriteback_control}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]j c.writeback_iterasbuh1hhj 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)}(hwbch]hwbc}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj+ ubj )}(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}(hj1 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj. ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3 modnameN classnameNjpjs)}jv]j c.writeback_iterasbuh1hhj 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)}(hfolioh]hfolio}(hjj 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 ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj 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 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(iterate folio of a mapping for writebackh]h(iterate folio of a mapping for 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&]uh1j3hj hhhj hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(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)}(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}(hj0 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)}(h4``struct writeback_control *wbc`` writeback context h](j)}(h!``struct writeback_control *wbc``h]jS)}(hjP h]hstruct writeback_control *wbc}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjN ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjJ ubj)}(hhh]jM)}(hwriteback contexth]hwriteback context}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhje hM hjf ubah}(h]h ]h"]h$]h&]uh1jhjJ ubeh}(h]h ]h"]h$]h&]uh1jhje hM hj ubj)}(hF``struct folio *folio`` previously iterated folio (``NULL`` to start) 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:76: ./mm/page-writeback.chM hj ubj)}(hhh]jM)}(h-previously iterated folio (``NULL`` to start)h](hpreviously iterated folio (}(hj hhhNhNubjS)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh to start)}(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 ubj)}(h?``int *error`` in-out pointer for writeback errors (see below) 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&]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)}(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&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj ubjM)}(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 }(hj% hhhNhNubj)}(h**wbc**h]hwbc}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj% ubh on }(hj% hhhNhNubj)}(h **mapping**h]hmapping}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj% ubhJ and should be called in a while loop in the ->writepages implementation.}(hj% hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj ubjM)}(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, }(hjX hhhNhNubjS)}(h``NULL``h]hNULL}(hj` hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjX ubh is passed in the }(hjX hhhNhNubj)}(h **folio**h]hfolio}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX ubhe argument, and for every subsequent iteration the folio returned previously should be passed back in.}(hjX hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj ubjM)}(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, }(hj hhhNhNubj)}(h **error**h]herror}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh" should be set to the error value.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj ubjM)}(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}(hj hhhNhNubah}(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}(hj hhhNhNubah}(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 hj ubjM)}(h**Note**h]j)}(hj h]hNote}(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)}(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 }(hj hhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM 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:76: ./mm/page-writeback.chM hj ubjM)}(h3the folio to write or ``NULL`` if the loop is done.h](hthe folio to write or }(hjBhhhNhNubjS)}(h``NULL``h]hNULL}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubh if the loop is done.}(hjBhhhNhNubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h filemap_dirty_folio (C function)c.filemap_dirty_foliohNtauh1hhjhhhNhNubh)}(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 }(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_dirty_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(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 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]jc.filemap_dirty_folioasbuh1hhj-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)}(hfolioh]hfolio}(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]jvah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjxhhubj4)}(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&]uh1j3hjxhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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)}(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)}(hG``struct address_space *mapping`` Address space this folio belongs to. 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.chM hjubj)}(hhh]jM)}(h$Address space this folio belongs to.h]h$Address space this folio belongs to.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h5``struct folio *folio`` Folio to be marked as dirty. 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:76: ./mm/page-writeback.chM hj&ubj)}(hhh]jM)}(hFolio to be marked as dirty.h]hFolio to be marked as dirty.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhM hjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhM hjubeh}(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&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(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 hjubjM)}(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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(folio_redirty_for_writepage (C function)c.folio_redirty_for_writepagehNtauh1hhjhhhNhNubh)}(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}(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_redirty_for_writepageh]j)}(hfolio_redirty_for_writepageh]hfolio_redirty_for_writepage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h4(struct writeback_control *wbc, struct folio *folio)h](j )}(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&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj&modnameN classnameNjpjs)}jv]jy)}jljsbc.folio_redirty_for_writepageasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjRhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hwbch]hwbc}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjxhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j@c.folio_redirty_for_writepageasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjtubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(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)}(hDecline to write a dirty folio.h]hDecline to write a dirty folio.}(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&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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)}(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)}(h9``struct writeback_control *wbc`` The writeback control. h](j)}(h!``struct writeback_control *wbc``h]jS)}(hj:h]hstruct writeback_control *wbc}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj4ubj)}(hhh]jM)}(hThe writeback control.h]hThe writeback control.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjOhM hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hj1ubj)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjsh]hstruct 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:76: ./mm/page-writeback.chM hjmubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhM hj1ubeh}(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)}(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 }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh7 for some reason, it should call this function, unlock }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and return 0.}(hjhhhNhNubeh}(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)}(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 hjubjM)}(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.}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mark_dirty (C function)c.folio_mark_dirtyhNtauh1hhjhhhNhNubh)}(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}(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 }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjKhM ubh)}(hfolio_mark_dirtyh]j)}(hfolio_mark_dirtyh]hfolio_mark_dirty}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhjKhM ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjzhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj`sbc.folio_mark_dirtyasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjvubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubah}(h]h ]h"]h$]h&]jjuh1j hj:hhhjKhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6hhhjKhM ubah}(h]j1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjKhM hj3hhubj4)}(hhh]jM)}(hMark a folio as being modified.h]hMark a folio as being modified.}(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&]uh1j3hj3hhhjKhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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}(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 hjubj)}(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:76: ./mm/page-writeback.chM hj8ubj)}(hhh]jM)}(h The folio.h]h The folio.}(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&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(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 hjubjM)}(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 hjubjM)}(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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_wait_writeback (C function)c.folio_wait_writebackhNtauh1hhjhhhNhNubh)}(hhh](h)}(h/void folio_wait_writeback (struct folio *folio)h]h)}(h.void folio_wait_writeback(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_writebackh]j)}(hfolio_wait_writebackh]hfolio_wait_writeback}(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}(hj"hhhNhNubah}(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&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_wait_writebackasbuh1hhjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjnhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hj{hhhNhNubah}(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 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&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(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.}(hj7hhhNhNubah}(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)}(hjHh]hContext}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(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.}(hj^hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*folio_wait_writeback_killable (C function)c.folio_wait_writeback_killablehNtauh1hhjhhhNhNubh)}(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&]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_writeback_killableasbuh1hhjubj)}(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 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 a folio to finish writeback.h]h%Wait for a folio to finish writeback.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjJhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjejHjejIjJjKuh1hhhhjhNhNubj)}(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)}(hjoh]h Parameters}(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 hjiubj)}(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&]uh1jhjiubjM)}(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 hjiubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjiubjM)}(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 hjiubjM)}(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 hjiubjM)}(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 hjiubjM)}(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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_wait_stable (C function)c.folio_wait_stablehNtauh1hhjhhhNhNubh)}(hhh](h)}(h,void folio_wait_stable (struct folio *folio)h]h)}(h+void folio_wait_stable(struct folio *folio)h](j)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjjhM ubh)}(hfolio_wait_stableh]j)}(hfolio_wait_stableh]hfolio_wait_stable}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1hhjXhhhjjhM 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 }(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 hjXhhhjjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjThhhjjhM ubah}(h]jOah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjjhM hjQhhubj4)}(hhh]jM)}(h+wait for writeback to finish, if necessary.h]h+wait for writeback to finish, if necessary.}(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&]uh1j3hjQhhhjjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj4jHj4jIjJjKuh1hhhhjhNhNubj)}(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)}(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 hj8ubj)}(hhh]j)}(h.``struct folio *folio`` The folio to wait on. 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:76: ./mm/page-writeback.chM hjWubj)}(hhh]jM)}(hThe folio to wait on.h]hThe folio to wait on.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhM hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM hjTubah}(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&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj8ubjM)}(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 hj8ubjM)}(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 hj8ubjM)}(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 hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] writebackah ]h"] writebackah$]h&]uh1hhjhhhhhKJubh)}(hhh](h)}(hTruncateh]hTruncate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKPubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_invalidate (C function)c.folio_invalidatehNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKyubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj+hKyubh)}(hfolio_invalidateh]j)}(hfolio_invalidateh]hfolio_invalidate}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj+hKyubj )}(h3(struct folio *folio, size_t offset, size_t length)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjZhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j)}(hfolioh]hfolio}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjzmodnameN classnameNjpjs)}jv]jy)}jlj@sbc.folio_invalidateasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubj )}(h size_t offseth](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_invalidateasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubj )}(h size_t lengthh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_invalidateasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlengthh]hlength}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj+hKyubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj+hKyubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj+hKyhjhhubj4)}(hhh]jM)}(h"Invalidate part or all of a folio.h]h"Invalidate part or all of a folio.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKyhjjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj+hKyubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKzhjubj)}(hhh]jM)}(hThe folio which is affected.h]hThe folio which is affected.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKzhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKzhjubj)}(h3``size_t offset`` start of the range to invalidate h](j)}(h``size_t offset``h]jS)}(hjh]h size_t offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK{hjubj)}(hhh]jM)}(h start of the range to invalidateh]h start of the range to invalidate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhK{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK{hjubj)}(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&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK|hjubj)}(hhh]jM)}(h!length of the range to invalidateh]h!length of the range to invalidate}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hK|hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hK|hjubeh}(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&]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.}(hjqhhhNhNubah}(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 }(hjhhhNhNubj)}(h **offset**h]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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.}(hjhhhNhNubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'truncate_inode_pages_range (C function)c.truncate_inode_pages_rangehNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMWubh)}(htruncate_inode_pages_rangeh]j)}(htruncate_inode_pages_rangeh]htruncate_inode_pages_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMWubj )}(h;(struct address_space *mapping, loff_t lstart, uoff_t lend)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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.truncate_inode_pages_rangeasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjJhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t lstarth](h)}(hhh]j)}(hloff_th]hloff_t}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjumodnameN classnameNjpjs)}jv]j8c.truncate_inode_pages_rangeasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hlstarth]hlstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h uoff_t lendh](h)}(hhh]j)}(huoff_th]huoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j8c.truncate_inode_pages_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlendh]hlend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(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)}(h=truncate range of pages specified by start & end byte offsetsh]h=truncate range of pages specified by start & end byte offsets}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMWhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMWubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj)jHj)jIjJjKuh1hhhhjhNhNubj)}(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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(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)}(hjRh]hstruct address_space *mapping}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMXhjLubj)}(hhh]jM)}(hmapping to truncateh]hmapping to truncate}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjghMXhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMXhjIubj)}(h0``loff_t lstart`` offset from which to truncate h](j)}(h``loff_t lstart``h]jS)}(hjh]h loff_t lstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMYhjubj)}(hhh]jM)}(hoffset from which to truncateh]hoffset from which to truncate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjIubj)}(h8``uoff_t lend`` offset to which to truncate (inclusive) h](j)}(h``uoff_t lend``h]jS)}(hjh]h uoff_t lend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMZhjubj)}(hhh]jM)}(h'offset to which to truncate (inclusive)h]h'offset to which to truncate (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjIubeh}(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: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).}(hjhhhNhNubah}(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.}(hj3hhhNhNubah}(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.}(hjBhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!truncate_inode_pages (C function)c.truncate_inode_pageshNtauh1hhjhhhNhNubh)}(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}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjhMubh)}(htruncate_inode_pagesh]j)}(htruncate_inode_pagesh]htruncate_inode_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjmhhhjhMubj )}(h.(struct address_space *mapping, loff_t lstart)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.truncate_inode_pagesasbuh1hhjubj)}(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 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.truncate_inode_pagesasbuh1hhj ubj)}(h h]h }(hjA hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlstarth]hlstart}(hjO hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(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)}(h'truncate *all* the pages from an offseth](h truncate }(hjy hhhNhNubj_)}(h*all*h]hall}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjy ubh the pages from an offset}(hjy hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjv hhubah}(h]h ]h"]h$]h&]uh1j3hjfhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(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}(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)}(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.chMhj ubj)}(hhh]jM)}(hoffset from which to truncateh]hoffset from which to truncate}(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}(hjB!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.}(hjV!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)}(hjg!h]hNote}(hji!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje!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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'truncate_inode_pages_final (C function)c.truncate_inode_pages_finalhNtauh1hhjhhhNhNubh)}(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}(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_pages_finalasbuh1hhj!ubj)}(h h]h }(hj'"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjF )}(hjI h]h*}(hj5"hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubj)}(hmappingh]hmapping}(hjB"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!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 }(hjl"hhhNhNubj_)}(h*all*h]hall}(hjt"hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjl"ubh pages before inode dies}(hjl"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhji"hhubah}(h]h ]h"]h$]h&]uh1j3hj!hhhj!hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj"jHj"jIjJjKuh1hhhhjhNhNubj)}(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}(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&]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)}(h0Called under (and serialized by) inode->i_rwsem.h]h0Called under (and serialized by) inode->i_rwsem.}(hj#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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%invalidate_mapping_pages (C function)c.invalidate_mapping_pageshNtauh1hhjhhhNhNubh)}(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}(hjN#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ#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&]uh1jhjJ#hhhj\#hMJubj)}(hlongh]hlong}(hjk#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ#hhhj\#hMJubj)}(h h]h }(hjy#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ#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&]jjuh1hhjJ#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 }(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.invalidate_mapping_pagesasbuh1hhj$ubj)}(h h]h }(hj:$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hstarth]hstart}(hjH$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}(hjd$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja$ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjf$modnameN classnameNjpjs)}jv]j#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 hjJ#hhhj\#hMJubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjF#hhhj\#hMJubah}(h]jA#ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj\#hMJhjC#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&]uh1j3hjC#hhhj\#hMJubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj$jHj$jIjJjKuh1hhhhjhNhNubj)}(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.chMNhj$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&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMKhj$ubj)}(hhh]jM)}(h5the address_space which holds the cache to invalidateh]h5the address_space which holds the cache to invalidate}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%hMKhj%ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj%hMKhj$ubj)}(h8``pgoff_t start`` the offset 'from' which to invalidate h](j)}(h``pgoff_t start``h]jS)}(hj4%h]h pgoff_t start}(hj6%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2%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}(hjM%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjI%hMLhjJ%ubah}(h]h ]h"]h$]h&]uh1jhj.%ubeh}(h]h ]h"]h$]h&]uh1jhjI%hMLhj$ubj)}(h@``pgoff_t end`` the offset 'to' which to invalidate (inclusive) h](j)}(h``pgoff_t end``h]jS)}(hjm%h]h pgoff_t end}(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.chMMhjg%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&]uh1jhjg%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMMhj$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.chMOhj$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.chMNhj$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.chMQhj$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.chMThj$ubjM)}(h9The number of indices that had their contents invalidatedh]h9The number of indices that had their contents invalidated}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMUhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*invalidate_inode_pages2_range (C function)c.invalidate_inode_pages2_rangehNtauh1hhjhhhNhNubh)}(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 }(hj2&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj1&hMubh)}(hinvalidate_inode_pages2_rangeh]j)}(hinvalidate_inode_pages2_rangeh]hinvalidate_inode_pages2_range}(hjD&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@&ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj&hhhj1&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 }(hjm&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)}jljF&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 hjX&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.invalidate_inode_pages2_rangeasbuh1hhj&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 hjX&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.invalidate_inode_pages2_rangeasbuh1hhj'ubj)}(h h]h }(hj;'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hendh]hend}(hjI'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjX&ubeh}(h]h ]h"]h$]h&]jjuh1j hj&hhhj1&hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj&hhhj1&hMubah}(h]j&ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj1&hMhj&hhubj4)}(hhh]jM)}(h+remove range of pages from an address_spaceh]h+remove range of pages from an address_space}(hjs'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjp'hhubah}(h]h ]h"]h$]h&]uh1j3hj&hhhj1&hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj'jHj'jIjJjKuh1hhhhjhNhNubj)}(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)}(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.chMhj'ubj)}(hhh]jM)}(h*the page offset 'from' which to invalidateh]h.the page offset ‘from’ which to invalidate}(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)}(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)}(hja(h]h Description}(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: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.}(hjw(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$invalidate_inode_pages2 (C function)c.invalidate_inode_pages2hNtauh1hhjhhhNhNubh)}(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}(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}(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_pages2asbuh1hhj)ubj)}(h h]h }(hjH)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjF )}(hjI h]h*}(hjV)hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj)ubj)}(hmappingh]hmapping}(hjc)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)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)jIjJjKuh1hhhhjhNhNubj)}(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}(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)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&]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)}(hj0*h]hReturn}(hj2*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.}(hjF*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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htruncate_pagecache (C function)c.truncate_pagecachehNtauh1hhjhhhNhNubh)}(hhh](h)}(h=void truncate_pagecache (struct inode *inode, loff_t newsize)h]h)}(hhjm0ubj)}(hhh]jM)}(horiginal inode sizeh]horiginal inode size}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hM>hj0ubah}(h]h ]h"]h$]h&]uh1jhjm0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM>hj10ubj)}(h``loff_t to`` new inode size h](j)}(h ``loff_t to``h]jS)}(hj0h]h loff_t to}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM?hj0ubj)}(hhh]jM)}(hnew inode sizeh]hnew inode size}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hM?hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM?hj10ubeh}(h]h ]h"]h$]h&]uh1jhj0ubjM)}(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:82: ./mm/truncate.chMAhj0ubjM)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM@hj0ubjM)}(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.}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMGhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%truncate_pagecache_range (C function)c.truncate_pagecache_rangehNtauh1hhjhhhNhNubh)}(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}(hj;1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj71hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM|ubj)}(h h]h }(hjJ1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj71hhhjI1hM|ubh)}(htruncate_pagecache_rangeh]j)}(htruncate_pagecache_rangeh]htruncate_pagecache_range}(hj\1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX1ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj71hhhjI1hM|ubj )}(h1(struct inode *inode, loff_t lstart, loff_t lend)h](j )}(hstruct inode *inodeh](j5)}(hj8h]hstruct}(hjx1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjt1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt1ubh)}(hhh]j)}(hinodeh]hinode}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj1modnameN classnameNjpjs)}jv]jy)}jlj^1sbc.truncate_pagecache_rangeasbuh1hhjt1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt1ubjF )}(hjI h]h*}(hj1hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjt1ubj)}(hinodeh]hinode}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjp1ubj )}(h loff_t lstarth](h)}(hhh]j)}(hloff_th]hloff_t}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj1modnameN classnameNjpjs)}jv]j1c.truncate_pagecache_rangeasbuh1hhj1ubj)}(h h]h }(hj 2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hlstarth]hlstart}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjp1ubj )}(h loff_t lendh](h)}(hhh]j)}(hloff_th]hloff_t}(hj52hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj22ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj72modnameN classnameNjpjs)}jv]j1c.truncate_pagecache_rangeasbuh1hhj.2ubj)}(h h]h }(hjS2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.2ubj)}(hlendh]hlend}(hja2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjp1ubeh}(h]h ]h"]h$]h&]jjuh1j hj71hhhjI1hM|ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj31hhhjI1hM|ubah}(h]j.1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjI1hM|hj01hhubj4)}(hhh]jM)}(h/unmap and remove pagecache that is hole-punchedh]h/unmap and remove pagecache that is hole-punched}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM|hj2hhubah}(h]h ]h"]h$]h&]uh1j3hj01hhhjI1hM|ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj2jHj2jIjJjKuh1hhhhjhNhNubj)}(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)}(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.chMhj2ubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]jS)}(hj2h]hstruct inode *inode}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM}hj2ubj)}(hhh]jM)}(hinodeh]hinode}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2hM}hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM}hj2ubj)}(h.``loff_t lstart`` offset of beginning of hole h](j)}(h``loff_t lstart``h]jS)}(hj3h]h loff_t lstart}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM~hj2ubj)}(hhh]jM)}(hoffset of beginning of holeh]hoffset of beginning of hole}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3hM~hj3ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj3hM~hj2ubj)}(h,``loff_t lend`` offset of last byte of hole h](j)}(h``loff_t lend``h]jS)}(hj>3h]h loff_t lend}(hj@3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj<3ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj83ubj)}(hhh]jM)}(hoffset of last byte of holeh]hoffset of last byte of hole}(hjW3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjS3hMhjT3ubah}(h]h ]h"]h$]h&]uh1jhj83ubeh}(h]h ]h"]h$]h&]uh1jhjS3hMhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2ubjM)}(h**Description**h]j)}(hjy3h]h Description}(hj{3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw3ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj2ubjM)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_set_wb_err (C function)c.filemap_set_wb_errhNtauh1hhjhhhNhNubh)}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKEubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhj3hKEubh)}(hfilemap_set_wb_errh]j)}(hfilemap_set_wb_errh]hfilemap_set_wb_err}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj3hhhj3hKEubj )}(h((struct address_space *mapping, int err)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj3hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj3ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4modnameN classnameNjpjs)}jv]jy)}jlj3sbc.filemap_set_wb_errasbuh1hhj3ubj)}(h h]h }(hj94hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjF )}(hjI h]h*}(hjG4hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj3ubj)}(hmappingh]hmapping}(hjT4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubj )}(hint errh](j)}(hinth]hint}(hjm4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji4ubj)}(h h]h }(hj{4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji4ubj)}(herrh]herr}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubeh}(h]h ]h"]h$]h&]jjuh1j hj3hhhj3hKEubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj3hhhj3hKEubah}(h]j3ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj3hKEhj3hhubj4)}(hhh]jM)}(h)set a writeback error on an address_spaceh]h)set a writeback error on an address_space}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKEhj4hhubah}(h]h ]h"]h$]h&]uh1j3hj3hhhj3hKEubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj4jHj4jIjJjKuh1hhhhjhNhNubj)}(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)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKIhj4ubj)}(hhh](j)}(hJ``struct address_space *mapping`` mapping in which to set writeback error h](j)}(h!``struct address_space *mapping``h]jS)}(hj4h]hstruct address_space *mapping}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKFhj4ubj)}(hhh]jM)}(h'mapping in which to set writeback errorh]h'mapping in which to set writeback error}(hj 5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj 5hKFhj 5ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj 5hKFhj4ubj)}(h'``int err`` error to be set in mapping h](j)}(h ``int err``h]jS)}(hj-5h]hint err}(hj/5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj+5ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKGhj'5ubj)}(hhh]jM)}(herror to be set in mappingh]herror to be set in mapping}(hjF5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjB5hKGhjC5ubah}(h]h ]h"]h$]h&]uh1jhj'5ubeh}(h]h ]h"]h$]h&]uh1jhjB5hKGhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubjM)}(h**Description**h]j)}(hjh5h]h Description}(hjj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf5ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKIhj4ubjM)}(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.}(hj~5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKHhj4ubjM)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!filemap_check_wb_err (C function)c.filemap_check_wb_errhNtauh1hhjhhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKZubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhj5hKZubh)}(hfilemap_check_wb_errh]j)}(hfilemap_check_wb_errh]hfilemap_check_wb_err}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj5hhhj5hKZubj )}(h/(struct address_space *mapping, errseq_t since)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj6modnameN classnameNjpjs)}jv]jy)}jlj5sbc.filemap_check_wb_errasbuh1hhj5ubj)}(h h]h }(hj76hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjF )}(hjI h]h*}(hjE6hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5ubj)}(hmappingh]hmapping}(hjR6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubj )}(herrseq_t sinceh](h)}(hhh]j)}(herrseq_th]herrseq_t}(hjn6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk6ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjp6modnameN classnameNjpjs)}jv]j36c.filemap_check_wb_errasbuh1hhjg6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg6ubj)}(hsinceh]hsince}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg6ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubeh}(h]h ]h"]h$]h&]jjuh1j hj5hhhj5hKZubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj5hhhj5hKZubah}(h]j5ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj5hKZhj5hhubj4)}(hhh]jM)}(h1has an error occurred since the mark was sampled?h]h1has an error occurred since the mark was sampled?}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKZhj6hhubah}(h]h ]h"]h$]h&]uh1j3hj5hhhj5hKZubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj6jHj6jIjJjKuh1hhhhjhNhNubj)}(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)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK^hj6ubj)}(hhh](j)}(hH``struct address_space *mapping`` mapping to check for writeback errors h](j)}(h!``struct address_space *mapping``h]jS)}(hj7h]hstruct address_space *mapping}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK[hj6ubj)}(hhh]jM)}(h%mapping to check for writeback errorsh]h%mapping to check for writeback errors}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7hK[hj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hK[hj6ubj)}(h/``errseq_t since`` previously-sampled errseq_t h](j)}(h``errseq_t since``h]jS)}(hj>7h]herrseq_t since}(hj@7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj<7ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK\hj87ubj)}(hhh]jM)}(hpreviously-sampled errseq_th]hpreviously-sampled errseq_t}(hjW7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjS7hK\hjT7ubah}(h]h ]h"]h$]h&]uh1jhj87ubeh}(h]h ]h"]h$]h&]uh1jhjS7hK\hj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubjM)}(h**Description**h]j)}(hjy7h]h Description}(hj{7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw7ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK^hj6ubjM)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK]hj6ubjM)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK`hj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"filemap_sample_wb_err (C function)c.filemap_sample_wb_errhNtauh1hhjhhhNhNubh)}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7modnameN classnameNjpjs)}jv]jy)}jlfilemap_sample_wb_errsbc.filemap_sample_wb_errasbuh1hhj7hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hKjubh)}(hfilemap_sample_wb_errh]j)}(hj7h]hfilemap_sample_wb_err}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj7hhhj7hKjubj )}(h(struct address_space *mapping)h]j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj8hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj8ubj)}(h h]h }(hj,8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj=8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:8ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj?8modnameN classnameNjpjs)}jv]j7c.filemap_sample_wb_errasbuh1hhj8ubj)}(h h]h }(hj[8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjF )}(hjI h]h*}(hji8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj8ubj)}(hmappingh]hmapping}(hjv8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj8ubah}(h]h ]h"]h$]h&]jjuh1j hj7hhhj7hKjubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj7hhhj7hKjubah}(h]j7ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj7hKjhj7hhubj4)}(hhh]jM)}(h4sample the current errseq_t to test for later errorsh]h4sample the current errseq_t to test for later errors}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKjhj8hhubah}(h]h ]h"]h$]h&]uh1j3hj7hhhj7hKjubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj8jHj8jIjJjKuh1hhhhjhNhNubj)}(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)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKnhj8ubj)}(hhh]j)}(h8``struct address_space *mapping`` mapping to be sampled h](j)}(h!``struct address_space *mapping``h]jS)}(hj8h]hstruct address_space *mapping}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKkhj8ubj)}(hhh]jM)}(hmapping to be sampledh]hmapping to be sampled}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hKkhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hKkhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubjM)}(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.hhKmhj8ubjM)}(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.}(hj29hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKlhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfile_sample_sb_err (C function)c.file_sample_sb_errhNtauh1hhjhhhNhNubh)}(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}(hjd9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja9ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjf9modnameN classnameNjpjs)}jv]jy)}jlfile_sample_sb_errsbc.file_sample_sb_errasbuh1hhj]9hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKvubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]9hhhj9hKvubh)}(hfile_sample_sb_errh]j)}(hj9h]hfile_sample_sb_err}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj]9hhhj9hKvubj )}(h(struct file *file)h]j )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hj9hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(hfileh]hfile}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj9modnameN classnameNjpjs)}jv]j9c.file_sample_sb_errasbuh1hhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjF )}(hjI h]h*}(hj9hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj9ubj)}(hfileh]hfile}(hj :hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj9ubah}(h]h ]h"]h$]h&]jjuh1j hj]9hhhj9hKvubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjY9hhhj9hKvubah}(h]jT9ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj9hKvhjV9hhubj4)}(hhh]jM)}(h4sample the current errseq_t to test for later errorsh]h4sample the current errseq_t to test for later errors}(hj4:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKvhj1:hhubah}(h]h ]h"]h$]h&]uh1j3hjV9hhhj9hKvubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjL:jHjL:jIjJjKuh1hhhhjhNhNubj)}(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)}(hjV:h]h Parameters}(hjX:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT:ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKzhjP:ubj)}(hhh]j)}(h1``struct file *file`` file pointer to be sampled h](j)}(h``struct file *file``h]jS)}(hju:h]hstruct file *file}(hjw:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjs:ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKwhjo: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&]uh1jhjo:ubeh}(h]h ]h"]h$]h&]uh1jhj:hKwhjl: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&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKyhjP: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.hhKxhjP:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmapping_set_error (C function)c.mapping_set_errorhNtauh1hhjhhhNhNubh)}(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}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj;hKubh)}(hmapping_set_errorh]j)}(hmapping_set_errorh]hmapping_set_error}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhj;hKubj )}(h*(struct address_space *mapping, int error)h](j )}(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]jy)}jlj;sbc.mapping_set_errorasbuh1hhj.;ubj)}(h h]h }(hjp;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 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-record a writeback error in the address_spaceh]h-record a writeback error in the address_space}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj;hhubah}(h]h ]h"]h$]h&]uh1j3hj:hhhj;hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj<jHj<jIjJjKuh1hhhhjhNhNubj)}(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)}(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.hhKhj<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}(hjD<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@<hKhjA<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)}(hjd<h]h int error}(hjf<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjb<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&]uh1jLhjy<hKhjz<ubah}(h]h ]h"]h$]h&]uh1jhj^<ubeh}(h]h ]h"]h$]h&]uh1jhjy<hKhj"<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.hhKhj<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.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj<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<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%mapping_set_large_folios (C function)c.mapping_set_large_folioshNtauh1hhjhhhNhNubh)}(hhh](h)}(h=void mapping_set_large_folios (struct address_space *mapping)h]h)}(hhhhNhNubah}(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&]uh1jhj=ubjM)}(h**Description**h]j)}(hj/>h]h Description}(hj1>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.hhMhj=ubjM)}(hThe filesystem should call this function in its inode constructor to indicate that the VFS can use large folios to cache the contents of the file.h]hThe filesystem should call this function in its inode constructor to indicate that the VFS can use large folios to cache the contents of the file.}(hjE>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=ubjM)}(h **Context**h]j)}(hjV>h]hContext}(hjX>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT>ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=ubjM)}(hHThis should not be called while the inode is active as it is non-atomic.h]hHThis should not be called while the inode is active as it is non-atomic.}(hjl>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h mapping_align_index (C function)c.mapping_align_indexhNtauh1hhjhhhNhNubh)}(hhh](h)}(hPpgoff_t mapping_align_index (const struct address_space *mapping, pgoff_t index)h]h)}(hOpgoff_t mapping_align_index(const struct address_space *mapping, pgoff_t index)h](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]jy)}jlmapping_align_indexsbc.mapping_align_indexasbuh1hhj>hhhW/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&]uh1jhj>hhhj>hMubh)}(hmapping_align_indexh]j)}(hj>h]hmapping_align_index}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj>hhhj>hMubj )}(h4(const struct address_space *mapping, pgoff_t index)h](j )}(h#const struct address_space *mappingh](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}(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.mapping_align_indexasbuh1hhj>ubj)}(h h]h }(hjD?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjF )}(hjI h]h*}(hjR?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 indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj{?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx?ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}?modnameN classnameNjpjs)}jv]j>c.mapping_align_indexasbuh1hhjt?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt?ubj)}(hindexh]hindex}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt?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)}(hAlign index for this mapping.h]hAlign index for this mapping.}(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>hhhj>hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj?jHj?jIjJjKuh1hhhhjhNhNubj)}(hX **Parameters** ``const struct address_space *mapping`` The address_space. ``pgoff_t index`` The page index. **Description** The index of a folio must be naturally aligned. If you are adding a new folio to the page cache and need to know what index to give it, call this function.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.hhMhj?ubj)}(hhh](j)}(h;``const struct address_space *mapping`` The address_space. h](j)}(h'``const struct address_space *mapping``h]jS)}(hj@h]h#const struct 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.hhMhj @ubj)}(hhh]jM)}(hThe address_space.h]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 index`` The page index. h](j)}(h``pgoff_t index``h]jS)}(hjK@h]h pgoff_t index}(hjM@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjI@ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjE@ubj)}(hhh]jM)}(hThe page index.h]hThe page index.}(hjd@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`@hMhja@ubah}(h]h ]h"]h$]h&]uh1jhjE@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&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj?ubjM)}(hThe index of a folio must be naturally aligned. If you are adding a new folio to the page cache and need to know what index to give it, call this function.h]hThe index of a folio must be naturally aligned. If you are adding a new folio to the page cache and need to know what index to give it, call this function.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_flush_mapping (C function)c.folio_flush_mappinghNtauh1hhjhhhNhNubh)}(hhh](h)}(h@struct address_space * folio_flush_mapping (struct folio *folio)h]h)}(h>struct address_space *folio_flush_mapping(struct folio *folio)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)}(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)}jlfolio_flush_mappingsbc.folio_flush_mappingasbuh1hhj@hhhj@hM*ubj)}(h h]h }(hj AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhj@hM*ubjF )}(hjI h]h*}(hjAhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj@hhhj@hM*ubh)}(hfolio_flush_mappingh]j)}(hjAh]hfolio_flush_mapping}(hj*AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Aubah}(h]h ](jjeh"]h$]h&]jjuh1hhj@hhhj@hM*ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjEAhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjAAubj)}(h h]h }(hjRAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAAubh)}(hhh]j)}(hfolioh]hfolio}(hjcAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Aubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjeAmodnameN classnameNjpjs)}jv]jAc.folio_flush_mappingasbuh1hhjAAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAAubjF )}(hjI h]h*}(hjAhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjAAubj)}(hfolioh]hfolio}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj=Aubah}(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,Find the file mapping this folio belongs to.h]h,Find the file mapping this folio belongs to.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM*hjAhhubah}(h]h ]h"]h$]h&]uh1j3hj@hhhj@hM*ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjAjHjAjIjJjKuh1hhhhjhNhNubj)}(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)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM.hjAubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjBh]hstruct folio *folio}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM+hjBubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhM+hjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM+hjAubah}(h]h ]h"]h$]h&]uh1jhjAubjM)}(h**Description**h]j)}(hjBBh]h Description}(hjDBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Bubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM-hjAubjM)}(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.}(hjXBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM,hjAubjM)}(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().}(hjgBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM0hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_inode (C function) c.folio_inodehNtauh1hhjhhhNhNubh)}(hhh](h)}(h0struct inode * folio_inode (struct folio *folio)h]h)}(h.struct inode *folio_inode(struct folio *folio)h](j5)}(hj8h]hstruct}(hjBhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjBhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM>ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhM>ubh)}(hhh]j)}(hinodeh]hinode}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]jy)}jl folio_inodesb c.folio_inodeasbuh1hhjBhhhjBhM>ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhM>ubjF )}(hjI h]h*}(hjBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjBhhhjBhM>ubh)}(h folio_inodeh]j)}(hjBh]h folio_inode}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1hhjBhhhjBhM>ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjChhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj Cubj)}(h h]h }(hjChhhNhNubah}(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 reftargetj0CmodnameN classnameNjpjs)}jv]jB c.folio_inodeasbuh1hhj Cubj)}(h h]h }(hjLChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj CubjF )}(hjI h]h*}(hjZChhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj Cubj)}(hfolioh]hfolio}(hjgChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Cubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCubah}(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)}(h"Get the host inode for this folio.h]h"Get the host inode for this folio.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM>hjChhubah}(h]h ]h"]h$]h&]uh1j3hjBhhhjBhM>ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjCjHjCjIjJjKuh1hhhhjhNhNubj)}(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)}(hjCh]h Parameters}(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.hhMBhjCubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjCh]hstruct folio *folio}(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.hhM?hjCubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChM?hjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChM?hjCubah}(h]h ]h"]h$]h&]uh1jhjCubjM)}(h**Description**h]j)}(hj Dh]h Description}(hjDhhhNhNubah}(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.hhMAhjCubjM)}(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.}(hj#DhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM@hjCubjM)}(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.}(hj2DhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMChjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_attach_private (C function)c.folio_attach_privatehNtauh1hhjhhhNhNubh)}(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}(hjaDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]DhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMLubj)}(h h]h }(hjpDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]DhhhjoDhMLubh)}(hfolio_attach_privateh]j)}(hfolio_attach_privateh]hfolio_attach_private}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Dubah}(h]h ](jjeh"]h$]h&]jjuh1hhj]DhhhjoDhMLubj )}(h!(struct folio *folio, void *data)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjDhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j)}(hfolioh]hfolio}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDmodnameN classnameNjpjs)}jv]jy)}jljDsbc.folio_attach_privateasbuh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hfolioh]hfolio}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubj )}(h void *datah](j)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Eubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj EubjF )}(hjI h]h*}(hj,EhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj Eubj)}(hdatah]hdata}(hj9EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Eubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubeh}(h]h ]h"]h$]h&]jjuh1j hj]DhhhjoDhMLubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjYDhhhjoDhMLubah}(h]jTDah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjoDhMLhjVDhhubj4)}(hhh]jM)}(hAttach private data to a folio.h]hAttach private data to a folio.}(hjcEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMLhj`Ehhubah}(h]h ]h"]h$]h&]uh1j3hjVDhhhjoDhMLubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj{EjHj{EjIjJjKuh1hhhhjhNhNubj)}(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)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMPhjEubj)}(hhh](j)}(h1``struct folio *folio`` Folio to attach data to. h](j)}(h``struct folio *folio``h]jS)}(hjEh]hstruct folio *folio}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMMhjEubj)}(hhh]jM)}(hFolio to attach data to.h]hFolio to attach data to.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMMhjEubj)}(h(``void *data`` Data to attach to folio. h](j)}(h``void *data``h]jS)}(hjEh]h void *data}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMNhjEubj)}(hhh]jM)}(hData to attach to folio.h]hData to attach to folio.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMNhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMNhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubjM)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMPhjEubjM)}(hAttaching private data to a folio increments the page's reference count. The data must be detached before the folio will be freed.h]hAttaching private data to a folio increments the page’s reference count. The data must be detached before the folio will be freed.}(hj.FhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMOhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_change_private (C function)c.folio_change_privatehNtauh1hhjhhhNhNubh)}(hhh](h)}(h=void * folio_change_private (struct folio *folio, void *data)h]h)}(h;void *folio_change_private(struct folio *folio, void *data)h](j)}(hvoidh]hvoid}(hj]FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYFhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM[ubj)}(h h]h }(hjlFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYFhhhjkFhM[ubjF )}(hjI h]h*}(hjzFhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjYFhhhjkFhM[ubh)}(hfolio_change_privateh]j)}(hfolio_change_privateh]hfolio_change_private}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1hhjYFhhhjkFhM[ubj )}(h!(struct folio *folio, void *data)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjFhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]j)}(hfolioh]hfolio}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjFmodnameN classnameNjpjs)}jv]jy)}jljFsbc.folio_change_privateasbuh1hhjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjF )}(hjI h]h*}(hjFhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjFubj)}(hfolioh]hfolio}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjFubj )}(h void *datah](j)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hj'GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjF )}(hjI h]h*}(hj5GhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjGubj)}(hdatah]hdata}(hjBGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjFubeh}(h]h ]h"]h$]h&]jjuh1j hjYFhhhjkFhM[ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjUFhhhjkFhM[ubah}(h]jPFah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjkFhM[hjRFhhubj4)}(hhh]jM)}(hChange private data on a folio.h]hChange private data on a folio.}(hjlGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM[hjiGhhubah}(h]h ]h"]h$]h&]uh1j3hjRFhhhjkFhM[ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjGjHjGjIjJjKuh1hhhhjhNhNubj)}(hXu**Parameters** ``struct folio *folio`` Folio to change the data on. ``void *data`` Data to set on the folio. **Description** Change the private data attached to a folio and return the old data. The page must previously have had data attached and the data must be detached before the folio will be freed. **Return** Data that was previously attached to the folio.h](jM)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM_hjGubj)}(hhh](j)}(h5``struct folio *folio`` Folio to change the data on. h](j)}(h``struct folio *folio``h]jS)}(hjGh]hstruct folio *folio}(hjGhhhNhNubah}(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\hjGubj)}(hhh]jM)}(hFolio to change the data on.h]hFolio to change the data on.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhM\hjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhM\hjGubj)}(h)``void *data`` Data to set on the folio. h](j)}(h``void *data``h]jS)}(hjGh]h void *data}(hjGhhhNhNubah}(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]hjGubj)}(hhh]jM)}(hData to set on the folio.h]hData to set on the folio.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhM]hjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhM]hjGubeh}(h]h ]h"]h$]h&]uh1jhjGubjM)}(h**Description**h]j)}(hj!Hh]h Description}(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_hjGubjM)}(hChange the private data attached to a folio and return the old data. The page must previously have had data attached and the data must be detached before the folio will be freed.h]hChange the private data attached to a folio and return the old data. The page must previously have had data attached and the data must be detached before the folio will be freed.}(hj7HhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM^hjGubjM)}(h **Return**h]j)}(hjHHh]hReturn}(hjJHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFHubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMbhjGubjM)}(h/Data that was previously attached to the folio.h]h/Data that was previously attached to the folio.}(hj^HhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMchjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_detach_private (C function)c.folio_detach_privatehNtauh1hhjhhhNhNubh)}(hhh](h)}(h1void * folio_detach_private (struct folio *folio)h]h)}(h/void *folio_detach_private(struct folio *folio)h](j)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMnubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjHhMnubjF )}(hjI h]h*}(hjHhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjHhhhjHhMnubh)}(hfolio_detach_privateh]j)}(hfolio_detach_privateh]hfolio_detach_private}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1hhjHhhhjHhMnubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjHhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]j)}(hfolioh]hfolio}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjHmodnameN classnameNjpjs)}jv]jy)}jljHsbc.folio_detach_privateasbuh1hhjHubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjF )}(hjI h]h*}(hj#IhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjHubj)}(hfolioh]hfolio}(hj0IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubah}(h]h ]h"]h$]h&]jjuh1j hjHhhhjHhMnubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjHhhhjHhMnubah}(h]jHah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjHhMnhjHhhubj4)}(hhh]jM)}(h!Detach private data from a folio.h]h!Detach private data from a folio.}(hjZIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMnhjWIhhubah}(h]h ]h"]h$]h&]uh1j3hjHhhhjHhMnubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjrIjHjrIjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` Folio to detach data from. **Description** Removes the data that was previously attached to the folio and decrements the refcount on the page. **Return** Data that was attached to the folio.h](jM)}(h**Parameters**h]j)}(hj|Ih]h Parameters}(hj~IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzIubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMrhjvIubj)}(hhh]j)}(h3``struct folio *folio`` Folio to detach data from. 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.hhMohjIubj)}(hhh]jM)}(hFolio to detach data from.h]hFolio to detach data from.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhMohjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMohjIubah}(h]h ]h"]h$]h&]uh1jhjvIubjM)}(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.hhMqhjvIubjM)}(hcRemoves the data that was previously attached to the folio and decrements the refcount on the page.h]hcRemoves the data that was previously attached to the folio and decrements the refcount on the page.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMphjvIubjM)}(h **Return**h]j)}(hjIh]hReturn}(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.hhMshjvIubjM)}(h$Data that was attached to the folio.h]h$Data that was attached to the folio.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMthjvIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfgf_t (C type)c.fgf_thNtauh1hhjhhhNhNubh)}(hhh](h)}(hfgf_th]h)}(h type fgf_th](j5)}(htypeh]htype}(hjBJhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj>JhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMyubj)}(h h]h }(hjQJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>JhhhjPJhMyubh)}(hfgf_th]j)}(hjJhhhjPJhMyubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj:JhhhjPJhMyubah}(h]j5Jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjPJhMyhj7Jhhubj4)}(hhh]jM)}(h-Flags for getting folios from the page cache.h]h-Flags for getting folios from the page cache.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjJhhubah}(h]h ]h"]h$]h&]uh1j3hj7JhhhjPJhMyubeh}(h]h ](jAtypeeh"]h$]h&]jFjAjGjJjHjJjIjJjKuh1hhhhjhNhNubjM)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhhubjM)}(hXMost users of the page cache will not need to use these flags; there are convenience functions such as filemap_get_folio() and filemap_lock_folio(). For users which need more control over exactly what is done with the folios, these flags to __filemap_get_folio() are available.h]hXMost users of the page cache will not need to use these flags; there are convenience functions such as filemap_get_folio() and filemap_lock_folio(). For users which need more control over exactly what is done with the folios, these flags to __filemap_get_folio() are available.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhhubj.L)}(hhh](j+)}(h5``FGP_ACCESSED`` - The folio will be marked accessed.h]jM)}(hjJh](jS)}(h``FGP_ACCESSED``h]h FGP_ACCESSED}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubh% - The folio will be marked accessed.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjJubah}(h]h ]h"]h$]h&]uh1j+hjJubj+)}(h,``FGP_LOCK`` - The folio is returned locked.h]jM)}(hjJh](jS)}(h ``FGP_LOCK``h]hFGP_LOCK}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubh - The folio is returned locked.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjJubah}(h]h ]h"]h$]h&]uh1j+hjJubj+)}(h``FGP_CREAT`` - If no folio is present then a new folio is allocated, added to the page cache and the VM's LRU list. The folio is returned locked.h]jM)}(h``FGP_CREAT`` - If no folio is present then a new folio is allocated, added to the page cache and the VM's LRU list. The folio is returned locked.h](jS)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubh - If no folio is present then a new folio is allocated, added to the page cache and the VM’s LRU list. The folio is returned locked.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjKubah}(h]h ]h"]h$]h&]uh1j+hjJubj+)}(h``FGP_FOR_MMAP`` - The caller wants to do its own locking dance if the folio is already in cache. If the folio was allocated, unlock it before returning so the caller can do the same dance.h]jM)}(h``FGP_FOR_MMAP`` - The caller wants to do its own locking dance if the folio is already in cache. If the folio was allocated, unlock it before returning so the caller can do the same dance.h](jS)}(h``FGP_FOR_MMAP``h]h FGP_FOR_MMAP}(hjFKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBKubh - The caller wants to do its own locking dance if the folio is already in cache. If the folio was allocated, unlock it before returning so the caller can do the same dance.}(hjBKhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj>Kubah}(h]h ]h"]h$]h&]uh1j+hjJubj+)}(h;``FGP_WRITE`` - The folio will be written to by the caller.h]jM)}(hjgKh](jS)}(h ``FGP_WRITE``h]h FGP_WRITE}(hjlKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiKubh. - The folio will be written to by the caller.}(hjiKhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjeKubah}(h]h ]h"]h$]h&]uh1j+hjJubj+)}(h0``FGP_NOFS`` - __GFP_FS will get cleared in gfp.h]jM)}(hjKh](jS)}(h ``FGP_NOFS``h]hFGP_NOFS}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubh$ - __GFP_FS will get cleared in gfp.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjKubah}(h]h ]h"]h$]h&]uh1j+hjJubj+)}(h/``FGP_NOWAIT`` - Don't block on the folio lock.h]jM)}(hjKh](jS)}(h``FGP_NOWAIT``h]h FGP_NOWAIT}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubh# - Don’t block on the folio lock.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjKubah}(h]h ]h"]h$]h&]uh1j+hjJubj+)}(hE``FGP_STABLE`` - Wait for the folio to be stable (finished writeback)h]jM)}(hjKh](jS)}(h``FGP_STABLE``h]h FGP_STABLE}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubh7 - Wait for the folio to be stable (finished writeback)}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjKubah}(h]h ]h"]h$]h&]uh1j+hjJubj+)}(h(``FGP_DONTCACHE`` - Uncached buffered IOh]jM)}(hjKh](jS)}(h``FGP_DONTCACHE``h]h FGP_DONTCACHE}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubh - Uncached buffered IO}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjKubah}(h]h ]h"]h$]h&]uh1j+hjJubj+)}(hU``FGP_WRITEBEGIN`` - The flags to use in a filesystem write_begin() implementation. h]jM)}(hS``FGP_WRITEBEGIN`` - The flags to use in a filesystem write_begin() implementation.h](jS)}(h``FGP_WRITEBEGIN``h]hFGP_WRITEBEGIN}(hj+LhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'LubhA - The flags to use in a filesystem write_begin() implementation.}(hj'LhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj#Lubah}(h]h ]h"]h$]h&]uh1j+hjJubeh}(h]h ]h"]h$]h&]jPLjI uh1j-LhjJhMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfgf_set_order (C function)c.fgf_set_orderhNtauh1hhjhhhNhNubh)}(hhh](h)}(h!fgf_t fgf_set_order (size_t size)h]h)}(h fgf_t fgf_set_order(size_t size)h](h)}(hhh]j)}(hfgf_th]hfgf_t}(hjlLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiLubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnLmodnameN classnameNjpjs)}jv]jy)}jl fgf_set_ordersbc.fgf_set_orderasbuh1hhjeLhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeLhhhjLhMubh)}(h fgf_set_orderh]j)}(hjLh]h fgf_set_order}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1hhjeLhhhjLhMubj )}(h (size_t size)h]j )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjLmodnameN classnameNjpjs)}jv]jLc.fgf_set_orderasbuh1hhjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hsizeh]hsize}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjLubah}(h]h ]h"]h$]h&]jjuh1j hjeLhhhjLhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjaLhhhjLhMubah}(h]j\Lah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjLhMhj^Lhhubj4)}(hhh]jM)}(h#Encode a length in the fgf_t flags.h]h#Encode a length in the fgf_t flags.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjMhhubah}(h]h ]h"]h$]h&]uh1j3hj^LhhhjLhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj,MjHj,MjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``size_t size`` The suggested size of the folio to create. **Description** The caller of __filemap_get_folio() can use this to suggest a preferred size for the folio that is created. If there is already a folio at the index, it will be returned, no matter what its size. If a folio is freshly created, it may be of a different size than requested due to alignment constraints, memory pressure, or the presence of other folios at nearby indices.h](jM)}(h**Parameters**h]j)}(hj6Mh]h Parameters}(hj8MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4Mubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj0Mubj)}(hhh]j)}(h;``size_t size`` The suggested size of the folio to create. h](j)}(h``size_t size``h]jS)}(hjUMh]h size_t size}(hjWMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjOMubj)}(hhh]jM)}(h*The suggested size of the folio to create.h]h*The suggested size of the folio to create.}(hjnMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjMhMhjkMubah}(h]h ]h"]h$]h&]uh1jhjOMubeh}(h]h ]h"]h$]h&]uh1jhjjMhMhjLMubah}(h]h ]h"]h$]h&]uh1jhj0MubjM)}(h**Description**h]j)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj0MubjM)}(hXsThe caller of __filemap_get_folio() can use this to suggest a preferred size for the folio that is created. If there is already a folio at the index, it will be returned, no matter what its size. If a folio is freshly created, it may be of a different size than requested due to alignment constraints, memory pressure, or the presence of other folios at nearby indices.h]hXsThe caller of __filemap_get_folio() can use this to suggest a preferred size for the folio that is created. If there is already a folio at the index, it will be returned, no matter what its size. If a folio is freshly created, it may be of a different size than requested due to alignment constraints, memory pressure, or the presence of other folios at nearby indices.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj0Mubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"write_begin_get_folio (C function)c.write_begin_get_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hystruct folio * write_begin_get_folio (const struct kiocb *iocb, struct address_space *mapping, pgoff_t index, size_t len)h]h)}(hwstruct folio *write_begin_get_folio(const struct kiocb *iocb, struct address_space *mapping, pgoff_t index, size_t len)h](j5)}(hj8h]hstruct}(hjMhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjMhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhjMhMubh)}(hhh]j)}(hfolioh]hfolio}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjMmodnameN classnameNjpjs)}jv]jy)}jlwrite_begin_get_foliosbc.write_begin_get_folioasbuh1hhjMhhhjMhMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhjMhMubjF )}(hjI h]h*}(hj#NhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjMhhhjMhMubh)}(hwrite_begin_get_folioh]j)}(hjNh]hwrite_begin_get_folio}(hj4NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Nubah}(h]h ](jjeh"]h$]h&]jjuh1hhjMhhhjMhMubj )}(hT(const struct kiocb *iocb, struct address_space *mapping, pgoff_t index, size_t len)h](j )}(hconst struct kiocb *iocbh](j5)}(hjh]hconst}(hjONhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjKNubj)}(h h]h }(hj\NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKNubj5)}(hj8h]hstruct}(hjjNhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjKNubj)}(h h]h }(hjwNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKNubh)}(hhh]j)}(hkiocbh]hkiocb}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjNmodnameN classnameNjpjs)}jv]jNc.write_begin_get_folioasbuh1hhjKNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKNubjF )}(hjI h]h*}(hjNhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjKNubj)}(hiocbh]hiocb}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKNubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjGNubj )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjNhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hhh]j)}(h address_spaceh]h address_space}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjNmodnameN classnameNjpjs)}jv]jNc.write_begin_get_folioasbuh1hhjNubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjF )}(hjI h]h*}(hj$OhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjNubj)}(hmappingh]hmapping}(hj1OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjGNubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjMOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJOubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjOOmodnameN classnameNjpjs)}jv]jNc.write_begin_get_folioasbuh1hhjFOubj)}(h h]h }(hjkOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFOubj)}(hindexh]hindex}(hjyOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFOubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjGNubj )}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjOmodnameN classnameNjpjs)}jv]jNc.write_begin_get_folioasbuh1hhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hlenh]hlen}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjGNubeh}(h]h ]h"]h$]h&]jjuh1j hjMhhhjMhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjMhhhjMhMubah}(h]jMah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjMhMhjMhhubj4)}(hhh]jM)}(h%Get folio for write_begin with flags.h]h%Get folio for write_begin with flags.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjOhhubah}(h]h ]h"]h$]h&]uh1j3hjMhhhjMhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjPjHjPjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``const struct kiocb *iocb`` The kiocb passed from write_begin (may be NULL). ``struct address_space *mapping`` The address space to search. ``pgoff_t index`` The page cache index. ``size_t len`` Length of data being written. **Description** This is a helper for filesystem write_begin() implementations. It wraps __filemap_get_folio(), setting appropriate flags in the write begin context. **Return** A folio or an ERR_PTR.h](jM)}(h**Parameters**h]j)}(hj Ph]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Pubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjPubj)}(hhh](j)}(hN``const struct kiocb *iocb`` The kiocb passed from write_begin (may be NULL). h](j)}(h``const struct kiocb *iocb``h]jS)}(hj,Ph]hconst struct kiocb *iocb}(hj.PhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*Pubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj&Pubj)}(hhh]jM)}(h0The kiocb passed from write_begin (may be NULL).h]h0The kiocb passed from write_begin (may be NULL).}(hjEPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAPhMhjBPubah}(h]h ]h"]h$]h&]uh1jhj&Pubeh}(h]h ]h"]h$]h&]uh1jhjAPhMhj#Pubj)}(h?``struct address_space *mapping`` The address space to search. h](j)}(h!``struct address_space *mapping``h]jS)}(hjePh]hstruct address_space *mapping}(hjgPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcPubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj_Pubj)}(hhh]jM)}(hThe address space to search.h]hThe address space to search.}(hj~PhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzPhMhj{Pubah}(h]h ]h"]h$]h&]uh1jhj_Pubeh}(h]h ]h"]h$]h&]uh1jhjzPhMhj#Pubj)}(h(``pgoff_t index`` The page cache index. h](j)}(h``pgoff_t index``h]jS)}(hjPh]h pgoff_t index}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjPubj)}(hhh]jM)}(hThe page cache index.h]hThe page cache index.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj#Pubj)}(h-``size_t len`` Length of data being written. h](j)}(h``size_t len``h]jS)}(hjPh]h size_t len}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjPubj)}(hhh]jM)}(hLength of data being written.h]hLength of data being written.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj#Pubeh}(h]h ]h"]h$]h&]uh1jhjPubjM)}(h**Description**h]j)}(hjQh]h Description}(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.hhMhjPubjM)}(hThis is a helper for filesystem write_begin() implementations. It wraps __filemap_get_folio(), setting appropriate flags in the write begin context.h]hThis is a helper for filesystem write_begin() implementations. It wraps __filemap_get_folio(), setting appropriate flags in the write begin context.}(hj(QhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjPubjM)}(h **Return**h]j)}(hj9Qh]hReturn}(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.hhMhjPubjM)}(hA folio or an ERR_PTR.h]hA folio or an ERR_PTR.}(hjOQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_get_folio (C function)c.filemap_get_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hOstruct folio * filemap_get_folio (struct address_space *mapping, pgoff_t index)h]h)}(hMstruct folio *filemap_get_folio(struct address_space *mapping, pgoff_t index)h](j5)}(hj8h]hstruct}(hj~QhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjzQhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzQhhhjQhMubh)}(hhh]j)}(hfolioh]hfolio}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjQmodnameN classnameNjpjs)}jv]jy)}jlfilemap_get_foliosbc.filemap_get_folioasbuh1hhjzQhhhjQhMubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzQhhhjQhMubjF )}(hjI h]h*}(hjQhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjzQhhhjQhMubh)}(hfilemap_get_folioh]j)}(hjQh]hfilemap_get_folio}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1hhjzQhhhjQhMubj )}(h.(struct address_space *mapping, pgoff_t index)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjQhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjQubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j)}(h address_spaceh]h address_space}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRmodnameN classnameNjpjs)}jv]jQc.filemap_get_folioasbuh1hhjQubj)}(h h]h }(hj4RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjF )}(hjI h]h*}(hjBRhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjQubj)}(hmappingh]hmapping}(hjORhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjkRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmRmodnameN classnameNjpjs)}jv]jQc.filemap_get_folioasbuh1hhjdRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdRubj)}(hindexh]hindex}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQubeh}(h]h ]h"]h$]h&]jjuh1j hjzQhhhjQhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjvQhhhjQhMubah}(h]jqQah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjQhMhjsQhhubj4)}(hhh]jM)}(hFind and get a folio.h]hFind and get a folio.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjRhhubah}(h]h ]h"]h$]h&]uh1j3hjsQhhhjQhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjRjHjRjIjJjKuh1hhhhjhNhNubj)}(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 a folio is present, it is returned with an increased refcount. **Return** 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](jM)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjRhhhNhNubah}(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.hhMhjRubj)}(hhh](j)}(h?``struct address_space *mapping`` The address_space to search. h](j)}(h!``struct address_space *mapping``h]jS)}(hjSh]hstruct address_space *mapping}(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.hhMhjRubj)}(hhh]jM)}(hThe address_space to search.h]hThe address_space to search.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjShMhjSubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjShMhjRubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]jS)}(hj;Sh]h pgoff_t index}(hj=ShhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9Subah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj5Subj)}(hhh]jM)}(hThe page index.h]hThe page index.}(hjTShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPShMhjQSubah}(h]h ]h"]h$]h&]uh1jhj5Subeh}(h]h ]h"]h$]h&]uh1jhjPShMhjRubeh}(h]h ]h"]h$]h&]uh1jhjRubjM)}(h**Description**h]j)}(hjvSh]h Description}(hjxShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtSubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjRubjM)}(h|Looks up the page cache entry at **mapping** & **index**. If a folio is present, it is returned with an increased refcount.h](h!Looks up the page cache entry at }(hjShhhNhNubj)}(h **mapping**h]hmapping}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh & }(hjShhhNhNubj)}(h **index**h]hindex}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubhD. If a folio is present, it is returned with an increased refcount.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjRubjM)}(h **Return**h]j)}(hjSh]hReturn}(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.hhM hjRubjM)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM!hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_lock_folio (C function)c.filemap_lock_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hPstruct folio * filemap_lock_folio (struct address_space *mapping, pgoff_t index)h]h)}(hNstruct folio *filemap_lock_folio(struct address_space *mapping, pgoff_t index)h](j5)}(hj8h]hstruct}(hjThhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjThhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM+ubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThM+ubh)}(hhh]j)}(hfolioh]hfolio}(hj%ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Tubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj'TmodnameN classnameNjpjs)}jv]jy)}jlfilemap_lock_foliosbc.filemap_lock_folioasbuh1hhjThhhjThM+ubj)}(h h]h }(hjFThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThM+ubjF )}(hjI h]h*}(hjTThhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjThhhjThM+ubh)}(hfilemap_lock_folioh]j)}(hjCTh]hfilemap_lock_folio}(hjeThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaTubah}(h]h ](jjeh"]h$]h&]jjuh1hhjThhhjThM+ubj )}(h.(struct address_space *mapping, pgoff_t index)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjThhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj|Tubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Tubh)}(hhh]j)}(h address_spaceh]h address_space}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjTmodnameN classnameNjpjs)}jv]jATc.filemap_lock_folioasbuh1hhj|Tubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|TubjF )}(hjI h]h*}(hjThhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj|Tubj)}(hmappingh]hmapping}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Tubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjxTubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjTmodnameN classnameNjpjs)}jv]jATc.filemap_lock_folioasbuh1hhjTubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hindexh]hindex}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjxTubeh}(h]h ]h"]h$]h&]jjuh1j hjThhhjThM+ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjShhhjThM+ubah}(h]jSah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjThM+hjShhubj4)}(hhh]jM)}(hFind and lock a folio.h]hFind and lock a folio.}(hjIUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM+hjFUhhubah}(h]h ]h"]h$]h&]uh1j3hjShhhjThM+ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjaUjHjaUjIjJjKuh1hhhhjhNhNubj)}(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 a folio is present, it is returned locked with an increased refcount. **Context** May sleep. **Return** 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](jM)}(h**Parameters**h]j)}(hjkUh]h Parameters}(hjmUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiUubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM/hjeUubj)}(hhh](j)}(h?``struct address_space *mapping`` The address_space to search. h](j)}(h!``struct address_space *mapping``h]jS)}(hjUh]hstruct address_space *mapping}(hjUhhhNhNubah}(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.hhM,hjUubj)}(hhh]jM)}(hThe address_space to search.h]hThe address_space to search.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhM,hjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhM,hjUubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]jS)}(hjUh]h pgoff_t index}(hjUhhhNhNubah}(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.hhM-hjUubj)}(hhh]jM)}(hThe page index.h]hThe page index.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhM-hjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhM-hjUubeh}(h]h ]h"]h$]h&]uh1jhjeUubjM)}(h**Description**h]j)}(hjUh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM/hjeUubjM)}(hLooks up the page cache entry at **mapping** & **index**. If a folio is present, it is returned locked with an increased refcount.h](h!Looks up the page cache entry at }(hjVhhhNhNubj)}(h **mapping**h]hmapping}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh & }(hjVhhhNhNubj)}(h **index**h]hindex}(hj.VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhK. If a folio is present, it is returned locked with an increased refcount.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM.hjeUubjM)}(h **Context**h]j)}(hjIVh]hContext}(hjKVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGVubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM1hjeUubjM)}(h May sleep.h]h May sleep.}(hj_VhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM2hjeUubjM)}(h **Return**h]j)}(hjpVh]hReturn}(hjrVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnVubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM4hjeUubjM)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM3hjeUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_grab_folio (C function)c.filemap_grab_foliohNtauh1hhjhhhNhNubh)}(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}(hjVhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjVhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM=ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhM=ubh)}(hhh]j)}(hfolioh]hfolio}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjVmodnameN classnameNjpjs)}jv]jy)}jlfilemap_grab_foliosbc.filemap_grab_folioasbuh1hhjVhhhjVhM=ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhM=ubjF )}(hjI h]h*}(hjWhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVhhhjVhM=ubh)}(hfilemap_grab_folioh]j)}(hjVh]hfilemap_grab_folio}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1hhjVhhhjVhM=ubj )}(h.(struct address_space *mapping, pgoff_t index)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj/WhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj+Wubj)}(h h]h }(hj``struct address_space *mapping`` The address space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hj9Xh]hstruct address_space *mapping}(hj;XhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7Xubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM>hj3Xubj)}(hhh]jM)}(hThe address space to searchh]hThe address space to search}(hjRXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNXhM>hjOXubah}(h]h ]h"]h$]h&]uh1jhj3Xubeh}(h]h ]h"]h$]h&]uh1jhjNXhM>hj0Xubj)}(h!``pgoff_t index`` The page index h](j)}(h``pgoff_t index``h]jS)}(hjrXh]h pgoff_t index}(hjtXhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpXubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM?hjlXubj)}(hhh]jM)}(hThe page indexh]hThe page index}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXhM?hjXubah}(h]h ]h"]h$]h&]uh1jhjlXubeh}(h]h ]h"]h$]h&]uh1jhjXhM?hj0Xubeh}(h]h ]h"]h$]h&]uh1jhjXubjM)}(h**Description**h]j)}(hjXh]h Description}(hjXhhhNhNubah}(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.hhMAhjXubjM)}(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 }(hjXhhhNhNubj)}(h **mapping**h]hmapping}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh & }(hjXhhhNhNubj)}(h **index**h]hindex}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubhf. If no folio is found, a new folio is created. The folio is locked, marked as accessed, and returned.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM@hjXubjM)}(h **Return**h]j)}(hjXh]hReturn}(hjXhhhNhNubah}(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.hhMDhjXubjM)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMEhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfind_get_page (C function)c.find_get_pagehNtauh1hhjhhhNhNubh)}(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=YhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj9YhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMQubj)}(h h]h }(hjKYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9YhhhjJYhMQubh)}(hhh]j)}(hpageh]hpage}(hj\YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj^YmodnameN classnameNjpjs)}jv]jy)}jl find_get_pagesbc.find_get_pageasbuh1hhj9YhhhjJYhMQubj)}(h h]h }(hj}YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9YhhhjJYhMQubjF )}(hjI h]h*}(hjYhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj9YhhhjJYhMQubh)}(h find_get_pageh]j)}(hjzYh]h find_get_page}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1hhj9YhhhjJYhMQubj )}(h/(struct address_space *mapping, pgoff_t offset)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjYhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(h address_spaceh]h address_space}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYmodnameN classnameNjpjs)}jv]jxYc.find_get_pageasbuh1hhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjF )}(hjI h]h*}(hjZhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjYubj)}(hmappingh]hmapping}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(hpgoff_t offseth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj*ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Zubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,ZmodnameN classnameNjpjs)}jv]jxYc.find_get_pageasbuh1hhj#Zubj)}(h h]h }(hjHZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Zubj)}(hoffseth]hoffset}(hjVZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Zubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubeh}(h]h ]h"]h$]h&]jjuh1j hj9YhhhjJYhMQubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj5YhhhjJYhMQubah}(h]j0Yah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjJYhMQhj2Yhhubj4)}(hhh]jM)}(hfind and get a page referenceh]hfind and get a page reference}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMQhj}Zhhubah}(h]h ]h"]h$]h&]uh1j3hj2YhhhjJYhMQubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjZjHjZjIjJjKuh1hhhhjhNhNubj)}(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)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMUhjZubj)}(hhh](j)}(h>``struct address_space *mapping`` the address_space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hjZh]hstruct address_space *mapping}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMRhjZubj)}(hhh]jM)}(hthe address_space to searchh]hthe address_space to search}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZhMRhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMRhjZubj)}(h"``pgoff_t offset`` the page index h](j)}(h``pgoff_t offset``h]jS)}(hjZh]hpgoff_t offset}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMShjZubj)}(hhh]jM)}(hthe page indexh]hthe page index}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hMShj[ubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhj[hMShjZubeh}(h]h ]h"]h$]h&]uh1jhjZubjM)}(h**Description**h]j)}(hj5[h]h Description}(hj7[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3[ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMUhjZubjM)}(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 }(hjK[hhhNhNubj)}(h **mapping**h]hmapping}(hjS[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK[ubh & }(hjK[hhhNhNubj)}(h **offset**h]hoffset}(hje[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK[ubhL. If there is a page cache page, it is returned with an increased refcount.}(hjK[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMThjZubjM)}(h Otherwise, ``NULL`` is returned.h](h Otherwise, }(hj~[hhhNhNubjS)}(h``NULL``h]hNULL}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj~[ubh is returned.}(hj~[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMWhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfind_lock_page (C function)c.find_lock_pagehNtauh1hhjhhhNhNubh)}(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}(hj[hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj[hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMgubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhj[hMgubh)}(hhh]j)}(hpageh]hpage}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj[modnameN classnameNjpjs)}jv]jy)}jlfind_lock_pagesbc.find_lock_pageasbuh1hhj[hhhj[hMgubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhj[hMgubjF )}(hjI h]h*}(hj \hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj[hhhj[hMgubh)}(hfind_lock_pageh]j)}(hj[h]hfind_lock_page}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj[hhhj[hMgubj )}(h.(struct address_space *mapping, pgoff_t index)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj9\hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5\ubj)}(h h]h }(hjF\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5\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]j[c.find_lock_pageasbuh1hhj5\ubj)}(h h]h }(hju\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5\ubjF )}(hjI h]h*}(hj\hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5\ubj)}(hmappingh]hmapping}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5\ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1\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.find_lock_pageasbuh1hhj\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 hj1\ubeh}(h]h ]h"]h$]h&]jjuh1j hj[hhhj[hMgubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj[hhhj[hMgubah}(h]j[ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj[hMghj[hhubj4)}(hhh]jM)}(h%locate, pin and lock a pagecache pageh]h%locate, pin and lock a pagecache page}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMghj\hhubah}(h]h ]h"]h$]h&]uh1j3hj[hhhj[hMgubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj]jHj]jIjJjKuh1hhhhjhNhNubj)}(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 there is a page cache page, it is returned locked and with an increased refcount. **Context** May sleep. **Return** A struct page or ``NULL`` if there is no page in the cache for this index.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.hhMkhj]ubj)}(hhh](j)}(h>``struct address_space *mapping`` the address_space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hjC]h]hstruct address_space *mapping}(hjE]hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjA]ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhhj=]ubj)}(hhh]jM)}(hthe address_space to searchh]hthe address_space to search}(hj\]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjX]hMhhjY]ubah}(h]h ]h"]h$]h&]uh1jhj=]ubeh}(h]h ]h"]h$]h&]uh1jhjX]hMhhj:]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&]uh1jRhjz]ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMihjv]ubj)}(hhh]jM)}(hthe page indexh]hthe page index}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]hMihj]ubah}(h]h ]h"]h$]h&]uh1jhjv]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMihj:]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.hhMkhj]ubjM)}(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 }(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]ubhW. If there is a page cache page, it is returned locked and with an increased refcount.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMjhj]ubjM)}(h **Context**h]j)}(hj^h]hContext}(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.hhMnhj]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.hhMohj]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.hhMqhj]ubjM)}(hJA struct page or ``NULL`` if there is no page in the cache for this index.h](hA struct page or }(hj?^hhhNhNubjS)}(h``NULL``h]hNULL}(hjG^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj?^ubh1 if there is no page in the cache for this index.}(hj?^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMphj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h find_or_create_page (C function)c.find_or_create_pagehNtauh1hhjhhhNhNubh)}(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}(hj^hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj|^hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMzubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|^hhhj^hMzubh)}(hhh]j)}(hpageh]hpage}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj^modnameN classnameNjpjs)}jv]jy)}jlfind_or_create_pagesbc.find_or_create_pageasbuh1hhj|^hhhj^hMzubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|^hhhj^hMzubjF )}(hjI h]h*}(hj^hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj|^hhhj^hMzubh)}(hfind_or_create_pageh]j)}(hj^h]hfind_or_create_page}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj|^hhhj^hMzubj )}(h>(struct address_space *mapping, pgoff_t index, gfp_t gfp_mask)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_or_create_pageasbuh1hhj^ubj)}(h h]h }(hj6_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjF )}(hjI h]h*}(hjD_hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj^ubj)}(hmappingh]hmapping}(hjQ_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj^ubj )}(h pgoff_t indexh](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.find_or_create_pageasbuh1hhjf_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf_ubj)}(hindexh]hindex}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf_ubeh}(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]j^c.find_or_create_pageasbuh1hhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hgfp_maskh]hgfp_mask}(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^hMzubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjx^hhhj^hMzubah}(h]js^ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj^hMzhju^hhubj4)}(hhh]jM)}(hlocate or add a pagecache pageh]hlocate or add a pagecache page}(hj `hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMzhj`hhubah}(h]h ]h"]h$]h&]uh1j3hju^hhhj^hMzubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj#`jHj#`jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` the page's address_space ``pgoff_t index`` the page's index into the mapping ``gfp_t gfp_mask`` page allocation mode **Description** Looks up the page cache slot at **mapping** & **offset**. If there is a page cache page, it is returned locked and with an increased refcount. If the page is not present, a new page is allocated using **gfp_mask** and added to the page cache and the VM's LRU list. The page is returned locked and with an increased refcount. On memory exhaustion, ``NULL`` is returned. find_or_create_page() may sleep, even if **gfp_flags** specifies an atomic allocation!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~hj'`ubj)}(hhh](j)}(h;``struct address_space *mapping`` the page's address_space h](j)}(h!``struct address_space *mapping``h]jS)}(hjL`h]hstruct address_space *mapping}(hjN`hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJ`ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM{hjF`ubj)}(hhh]jM)}(hthe page's address_spaceh]hthe page’s address_space}(hje`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhja`hM{hjb`ubah}(h]h ]h"]h$]h&]uh1jhjF`ubeh}(h]h ]h"]h$]h&]uh1jhja`hM{hjC`ubj)}(h4``pgoff_t index`` the page's index into the mapping 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)}(h!the page's index into the mappingh]h#the page’s index into the mapping}(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|hjC`ubj)}(h(``gfp_t gfp_mask`` page allocation mode 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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM}hj`ubj)}(hhh]jM)}(hpage allocation modeh]hpage allocation mode}(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}hjC`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.hhMhj'`ubjM)}(hLooks up the page cache slot at **mapping** & **offset**. If there is a page cache page, it is returned locked and with an increased refcount.h](h Looks up the page cache slot at }(hjahhhNhNubj)}(h **mapping**h]hmapping}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh & }(hjahhhNhNubj)}(h **offset**h]hoffset}(hj)ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubhW. If there is a page cache page, it is returned locked and with an increased refcount.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM~hj'`ubjM)}(hIf the page is not present, a new page is allocated using **gfp_mask** and added to the page cache and the VM's LRU list. The page is returned locked and with an increased refcount.h](h:If the page is not present, a new page is allocated using }(hjBahhhNhNubj)}(h **gfp_mask**h]hgfp_mask}(hjJahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBaubhr and added to the page cache and the VM’s LRU list. The page is returned locked and with an increased refcount.}(hjBahhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj'`ubjM)}(h+On memory exhaustion, ``NULL`` is returned.h](hOn memory exhaustion, }(hjcahhhNhNubjS)}(h``NULL``h]hNULL}(hjkahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcaubh is returned.}(hjcahhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj'`ubjM)}(hVfind_or_create_page() may sleep, even if **gfp_flags** specifies an atomic allocation!h](h)find_or_create_page() may sleep, even if }(hjahhhNhNubj)}(h **gfp_flags**h]h gfp_flags}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh specifies an atomic allocation!}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj'`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#grab_cache_page_nowait (C function)c.grab_cache_page_nowaithNtauh1hhjhhhNhNubh)}(hhh](h)}(hSstruct page * grab_cache_page_nowait (struct address_space *mapping, pgoff_t index)h]h)}(hQstruct page *grab_cache_page_nowait(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.hhMubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjahMubh)}(hhh]j)}(hpageh]hpage}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjamodnameN classnameNjpjs)}jv]jy)}jlgrab_cache_page_nowaitsbc.grab_cache_page_nowaitasbuh1hhjahhhjahMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjahMubjF )}(hjI h]h*}(hjbhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjahhhjahMubh)}(hgrab_cache_page_nowaith]j)}(hjbh]hgrab_cache_page_nowait}(hj$bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj bubah}(h]h ](jjeh"]h$]h&]jjuh1hhjahhhjahMubj )}(h.(struct address_space *mapping, pgoff_t index)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj?bhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj;bubj)}(h h]h }(hjLbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;bubh)}(hhh]j)}(h address_spaceh]h address_space}(hj]bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZbubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_bmodnameN classnameNjpjs)}jv]jbc.grab_cache_page_nowaitasbuh1hhj;bubj)}(h h]h }(hj{bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;bubjF )}(hjI h]h*}(hjbhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj;bubj)}(hmappingh]hmapping}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;bubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj7bubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbmodnameN classnameNjpjs)}jv]jbc.grab_cache_page_nowaitasbuh1hhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hindexh]hindex}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj7bubeh}(h]h ]h"]h$]h&]jjuh1j hjahhhjahMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjahhhjahMubah}(h]jaah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjahMhjahhubj4)}(hhh]jM)}(h1returns locked page at given index in given cacheh]h1returns locked page at given index in given cache}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjchhubah}(h]h ]h"]h$]h&]uh1j3hjahhhjahMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj cjHj cjIjJjKuh1hhhhjhNhNubj)}(hX>**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)}(hj*ch]h Parameters}(hj,chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(cubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj$cubj)}(hhh](j)}(h7``struct address_space *mapping`` target address_space h](j)}(h!``struct address_space *mapping``h]jS)}(hjIch]hstruct address_space *mapping}(hjKchhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjCcubj)}(hhh]jM)}(htarget address_spaceh]htarget address_space}(hjbchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^chMhj_cubah}(h]h ]h"]h$]h&]uh1jhjCcubeh}(h]h ]h"]h$]h&]uh1jhj^chMhj@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.hhMhj|cubj)}(hhh]jM)}(hthe page indexh]hthe page index}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhj|cubeh}(h]h ]h"]h$]h&]uh1jhjchMhj@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.hhMhj$cubjM)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj$cubjM)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj$cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_next_index (C function)c.folio_next_indexhNtauh1hhjhhhNhNubh)}(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}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]jy)}jlfolio_next_indexsbc.folio_next_indexasbuh1hhj dhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hj6dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj dhhhj5dhMubh)}(hfolio_next_indexh]j)}(hj2dh]hfolio_next_index}(hjHdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDdubah}(h]h ](jjeh"]h$]h&]jjuh1hhj dhhhj5dhMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjcdhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj_dubj)}(h h]h }(hjpdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_dubj5)}(hj8h]hstruct}(hj~dhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj_dubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_dubh)}(hhh]j)}(hfolioh]hfolio}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]j0dc.folio_next_indexasbuh1hhj_dubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_dubjF )}(hjI h]h*}(hjdhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj_dubj)}(hfolioh]hfolio}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_dubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj[dubah}(h]h ]h"]h$]h&]jjuh1j hj dhhhj5dhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj dhhhj5dhMubah}(h]jdah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj5dhMhjdhhubj4)}(hhh]jM)}(h Get the index of the next folio.h]h Get the index of the next folio.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjdhhubah}(h]h ]h"]h$]h&]uh1j3hjdhhhj5dhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjejHjejIjJjKuh1hhhhjhNhNubj)}(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)}(hj!eh]h Parameters}(hj#ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjeubj)}(hhh]j)}(h1``const struct folio *folio`` The current folio. h](j)}(h``const struct folio *folio``h]jS)}(hj@eh]hconst struct folio *folio}(hjBehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>eubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:eubj)}(hhh]jM)}(hThe current folio.h]hThe current folio.}(hjYehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUehMhjVeubah}(h]h ]h"]h$]h&]uh1jhj:eubeh}(h]h ]h"]h$]h&]uh1jhjUehMhj7eubah}(h]h ]h"]h$]h&]uh1jhjeubjM)}(h **Return**h]j)}(hj{eh]hReturn}(hj}ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyeubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjeubjM)}(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}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjihMubh)}(hfolio_containsh]j)}(hfolio_containsh]hfolio_contains}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1hhjihhhjihMubj )}(h*(const struct folio *folio, pgoff_t index)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj jubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj jubj5)}(hj8h]hstruct}(hj*jhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj jubj)}(h h]h }(hj7jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj jubh)}(hhh]j)}(hfolioh]hfolio}(hjHjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjJjmodnameN classnameNjpjs)}jv]jy)}jljisbc.folio_containsasbuh1hhj jubj)}(h h]h }(hjhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj jubjF )}(hjI h]h*}(hjvjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj jubj)}(hfolioh]hfolio}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj jubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjjubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjjmodnameN classnameNjpjs)}jv]jdjc.folio_containsasbuh1hhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hindexh]hindex}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjjubeh}(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)}(h#Does this folio contain this index?h]h#Does this folio contain this index?}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjjhhubah}(h]h ]h"]h$]h&]uh1j3hjihhhjihMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj kjHj kjIjJjKuh1hhhhjhNhNubj)}(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)}(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.hhMhjkubj)}(hhh](j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hj6kh]hconst struct folio *folio}(hj8khhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4kubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj0kubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjOkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKkhMhjLkubah}(h]h ]h"]h$]h&]uh1jhj0kubeh}(h]h ]h"]h$]h&]uh1jhjKkhMhj-kubj)}(h2``pgoff_t index`` The page index within the file. h](j)}(h``pgoff_t index``h]jS)}(hjokh]h pgoff_t index}(hjqkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjmkubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjikubj)}(hhh]jM)}(hThe page index within the file.h]hThe page index within the file.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjikubeh}(h]h ]h"]h$]h&]uh1jhjkhMhj-kubeh}(h]h ]h"]h$]h&]uh1jhjkubjM)}(h **Context**h]j)}(hjkh]hContext}(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.hhMhjkubjM)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjkubjM)}(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.hhMhjkubjM)}(htrue or false.h]htrue or false.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpage_pgoff (C function) c.page_pgoffhNtauh1hhjhhhNhNubh)}(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}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlmodnameN classnameNjpjs)}jv]jy)}jl page_pgoffsb c.page_pgoffasbuh1hhjlhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hj;lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhj:lhMubh)}(h page_pgoffh]j)}(hj7lh]h page_pgoff}(hjMlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIlubah}(h]h ](jjeh"]h$]h&]jjuh1hhjlhhhj:lhMubj )}(h4(const struct folio *folio, const struct page *page)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjhlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdlubj)}(h h]h }(hjulhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdlubj5)}(hj8h]hstruct}(hjlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdlubh)}(hhh]j)}(hfolioh]hfolio}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlmodnameN classnameNjpjs)}jv]j5l c.page_pgoffasbuh1hhjdlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdlubjF )}(hjI h]h*}(hjlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjdlubj)}(hfolioh]hfolio}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`lubj )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj5)}(hj8h]hstruct}(hjmhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j)}(hpageh]hpage}(hj,mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)mubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj.mmodnameN classnameNjpjs)}jv]j5l c.page_pgoffasbuh1hhjlubj)}(h h]h }(hjJmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjF )}(hjI h]h*}(hjXmhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjlubj)}(hpageh]hpage}(hjemhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`lubeh}(h]h ]h"]h$]h&]jjuh1j hjlhhhj:lhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjlhhhj:lhMubah}(h]j lah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj:lhMhj lhhubj4)}(hhh]jM)}(h/Calculate the logical page offset of this page.h]h/Calculate the logical page offset of this page.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmhhubah}(h]h ]h"]h$]h&]uh1j3hj lhhhj:lhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjmjHjmjIjJjKuh1hhhhjhNhNubj)}(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)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmubj)}(hhh](j)}(h>``const struct folio *folio`` The folio containing this page. h](j)}(h``const struct folio *folio``h]jS)}(hjmh]hconst struct folio *folio}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjmubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmubj)}(hhh]jM)}(hThe folio containing this page.h]hThe folio containing this page.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjmubj)}(hB``const struct page *page`` The page which we need the offset of. h](j)}(h``const struct page *page``h]jS)}(hj nh]hconst struct page *page}(hj nhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjnubj)}(hhh]jM)}(h%The page which we need the offset of.h]h%The page which we need the offset of.}(hj"nhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjmubeh}(h]h ]h"]h$]h&]uh1jhjmubjM)}(h**Description**h]j)}(hjDnh]h Description}(hjFnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBnubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmubjM)}(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.}(hjZnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmubjM)}(h **Context**h]j)}(hjknh]hContext}(hjmnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjinubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmubjM)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmubjM)}(h **Return**h]j)}(hjnh]hReturn}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hjmubjM)}(h!The offset in units of PAGE_SIZE.h]h!The offset in units of PAGE_SIZE.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_pos (C function) c.folio_poshNtauh1hhjhhhNhNubh)}(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}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jy)}jl folio_possb c.folio_posasbuh1hhjnhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhMubh)}(h folio_posh]j)}(hjnh]h folio_pos}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj oubah}(h]h ](jjeh"]h$]h&]jjuh1hhjnhhhjnhMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj)ohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj%oubj)}(h h]h }(hj6ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%oubj5)}(hj8h]hstruct}(hjDohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj%oubj)}(h h]h }(hjQohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%oubh)}(hhh]j)}(hfolioh]hfolio}(hjbohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_oubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdomodnameN classnameNjpjs)}jv]jn c.folio_posasbuh1hhj%oubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%oubjF )}(hjI h]h*}(hjohhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj%oubj)}(hfolioh]hfolio}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%oubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!oubah}(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)}(h4Returns the byte position of this folio in its file.h]h4Returns the byte position of this folio in its file.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjohhubah}(h]h ]h"]h$]h&]uh1j3hjnhhhjnhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjojHjojIjJjKuh1hhhhjhNhNubj)}(h:**Parameters** ``const struct folio *folio`` The folio.h](jM)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjoubj)}(hhh]j)}(h(``const struct folio *folio`` The folio.h](j)}(h``const struct folio *folio``h]jS)}(hjph]hconst struct folio *folio}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjpubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_trylock (C function)c.folio_trylockhNtauh1hhjhhhNhNubh)}(hhh](h)}(h(bool folio_trylock (struct folio *folio)h]h)}(h'bool folio_trylock(struct folio *folio)h](j)}(hj)h]hbool}(hj`phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\phhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMUubj)}(h h]h }(hjnphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\phhhjmphMUubh)}(h folio_trylockh]j)}(h folio_trylockh]h folio_trylock}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|pubah}(h]h ](jjeh"]h$]h&]jjuh1hhj\phhhjmphMUubj )}(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 reftargetjpmodnameN classnameNjpjs)}jv]jy)}jljpsbc.folio_trylockasbuh1hhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjF )}(hjI h]h*}(hjphhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjpubj)}(hfolioh]hfolio}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpubah}(h]h ]h"]h$]h&]jjuh1j hj\phhhjmphMUubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjXphhhjmphMUubah}(h]jSpah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjmphMUhjUphhubj4)}(hhh]jM)}(hAttempt to lock a folio.h]hAttempt to lock a folio.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMUhjqhhubah}(h]h ]h"]h$]h&]uh1j3hjUphhhjmphMUubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj7qjHj7qjIjJjKuh1hhhhjhNhNubj)}(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)}(hjAqh]h Parameters}(hjCqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?qubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMYhj;qubj)}(hhh]j)}(h6``struct folio *folio`` The folio to attempt to lock. h](j)}(h``struct folio *folio``h]jS)}(hj`qh]hstruct folio *folio}(hjbqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^qubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMVhjZqubj)}(hhh]jM)}(hThe folio to attempt to lock.h]hThe folio to attempt to lock.}(hjyqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuqhMVhjvqubah}(h]h ]h"]h$]h&]uh1jhjZqubeh}(h]h ]h"]h$]h&]uh1jhjuqhMVhjWqubah}(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&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMXhj;qubjM)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMWhj;qubjM)}(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.hhM\hj;qubjM)}(h Any context.h]h Any context.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM]hj;qubjM)}(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.hhM_hj;qubjM)}(h+Whether the lock was successfully acquired.h]h+Whether the lock was successfully acquired.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM^hj;qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_lock (C function) c.folio_lockhNtauh1hhjhhhNhNubh)}(hhh](h)}(h%void folio_lock (struct folio *folio)h]h)}(h$void folio_lock(struct folio *folio)h](j)}(hvoidh]hvoid}(hj.rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*rhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMnubj)}(h h]h }(hj=rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*rhhhjmapping 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)}(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.hhMrhj subj)}(hhh]j)}(h+``struct folio *folio`` The folio to lock. h](j)}(h``struct folio *folio``h]jS)}(hj/sh]hstruct folio *folio}(hj1shhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-subah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMohj)subj)}(hhh]jM)}(hThe folio to lock.h]hThe folio to lock.}(hjHshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDshMohjEsubah}(h]h ]h"]h$]h&]uh1jhj)subeh}(h]h ]h"]h$]h&]uh1jhjDshMohj&subah}(h]h ]h"]h$]h&]uh1jhj subjM)}(h**Description**h]j)}(hjjsh]h Description}(hjlshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhsubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMqhj subjM)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMphj subjM)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMvhj subjM)}(h **Context**h]j)}(hjsh]hContext}(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.hhM|hj subjM)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM}hj subeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlock_page (C function) c.lock_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h"void lock_page (struct page *page)h]h)}(h!void lock_page(struct page *page)h](j)}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjshMubh)}(h lock_pageh]j)}(h lock_pageh]h lock_page}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1hhjshhhjshMubj )}(h(struct page *page)h]j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hj"thhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjtubj)}(h h]h }(hj/thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j)}(hpageh]hpage}(hj@thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=tubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBtmodnameN classnameNjpjs)}jv]jy)}jljtsb c.lock_pageasbuh1hhjtubj)}(h h]h }(hj`thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjF )}(hjI h]h*}(hjnthhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjtubj)}(hpageh]hpage}(hj{thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjtubah}(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)}(h$Lock the folio containing this page.h]h$Lock the folio containing this page.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjthhubah}(h]h ]h"]h$]h&]uh1j3hjshhhjshMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjtjHjtjIjJjKuh1hhhhjhNhNubj)}(hXS**Parameters** ``struct page *page`` The page to lock. **Description** See folio_lock() for a description of what the lock protects. This is a legacy function and new code should probably use folio_lock() instead. **Context** May sleep. Pages in the same folio share a lock, so do not attempt to lock two pages which share a folio.h](jM)}(h**Parameters**h]j)}(hjth]h Parameters}(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.hhMhjtubj)}(hhh]j)}(h(``struct page *page`` The page to lock. h](j)}(h``struct page *page``h]jS)}(hjth]hstruct page *page}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjtubj)}(hhh]jM)}(hThe page to lock.h]hThe page to lock.}(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)}(hj!uh]h Description}(hj#uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjtubjM)}(hSee folio_lock() for a description of what the lock protects. This is a legacy function and new code should probably use folio_lock() instead.h]hSee folio_lock() for a description of what the lock protects. This is a legacy function and new code should probably use folio_lock() instead.}(hj7uhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjtubjM)}(h **Context**h]j)}(hjHuh]hContext}(hjJuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFuubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjtubjM)}(hjMay sleep. Pages in the same folio share a lock, so do not attempt to lock two pages which share a folio.h]hjMay sleep. Pages in the same folio share a lock, so do not attempt to lock two pages which share a folio.}(hj^uhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_lock_killable (C function)c.folio_lock_killablehNtauh1hhjhhhNhNubh)}(hhh](h)}(h-int folio_lock_killable (struct folio *folio)h]h)}(h,int folio_lock_killable(struct folio *folio)h](j)}(hinth]hint}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjuhMubh)}(hfolio_lock_killableh]j)}(hfolio_lock_killableh]hfolio_lock_killable}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1hhjuhhhjuhMubj )}(h(struct folio *folio)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_lock_killableasbuh1hhjuubj)}(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 hjuubah}(h]h ]h"]h$]h&]jjuh1j hjuhhhjuhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjuhhhjuhMubah}(h]juah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjuhMhjuhhubj4)}(hhh]jM)}(h1Lock this folio, interruptible by a fatal signal.h]h1Lock this folio, interruptible by a fatal signal.}(hjMvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjJvhhubah}(h]h ]h"]h$]h&]uh1j3hjuhhhjuhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjevjHjevjIjJjKuh1hhhhjhNhNubj)}(hXF**Parameters** ``struct folio *folio`` The folio to lock. **Description** Attempts to lock the folio, like folio_lock(), except that the sleep to acquire the lock is interruptible by a fatal signal. **Context** May sleep; see folio_lock(). **Return** 0 if the lock was acquired; -EINTR if a fatal signal was received.h](jM)}(h**Parameters**h]j)}(hjovh]h Parameters}(hjqvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmvubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjivubj)}(hhh]j)}(h+``struct folio *folio`` The folio to lock. h](j)}(h``struct folio *folio``h]jS)}(hjvh]hstruct folio *folio}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjvubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjvubj)}(hhh]jM)}(hThe folio to lock.h]hThe folio to lock.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjivubjM)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(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.hhMhjivubjM)}(h|Attempts to lock the folio, like folio_lock(), except that the sleep to acquire the lock is interruptible by a fatal signal.h]h|Attempts to lock the folio, like folio_lock(), except that the sleep to acquire the lock is interruptible by a fatal signal.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjivubjM)}(h **Context**h]j)}(hjvh]hContext}(hjvhhhNhNubah}(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.hhMhjivubjM)}(hMay sleep; see folio_lock().h]hMay sleep; see folio_lock().}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjivubjM)}(h **Return**h]j)}(hjwh]hReturn}(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.hhMhjivubjM)}(hB0 if the lock was acquired; -EINTR if a fatal signal was received.h]hB0 if the lock was acquired; -EINTR if a fatal signal was received.}(hj-whhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjivubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*filemap_range_needs_writeback (C function)c.filemap_range_needs_writebackhNtauh1hhjhhhNhNubh)}(hhh](h)}(hfbool filemap_range_needs_writeback (struct address_space *mapping, loff_t start_byte, loff_t end_byte)h]h)}(hebool filemap_range_needs_writeback(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hj)h]hbool}(hj\whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXwhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXwhhhjiwhMubh)}(hfilemap_range_needs_writebackh]j)}(hfilemap_range_needs_writebackh]hfilemap_range_needs_writeback}(hj|whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxwubah}(h]h ](jjeh"]h$]h&]jjuh1hhjXwhhhjiwhMubj )}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjwhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]j)}(h address_spaceh]h address_space}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjwmodnameN classnameNjpjs)}jv]jy)}jlj~wsbc.filemap_range_needs_writebackasbuh1hhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjF )}(hjI h]h*}(hjwhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwubj)}(hmappingh]hmapping}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjwubj )}(hloff_t start_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hj xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj xubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjxmodnameN classnameNjpjs)}jv]jwc.filemap_range_needs_writebackasbuh1hhjxubj)}(h h]h }(hj+xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h start_byteh]h start_byte}(hj9xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjwubj )}(hloff_t end_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjUxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRxubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWxmodnameN classnameNjpjs)}jv]jwc.filemap_range_needs_writebackasbuh1hhjNxubj)}(h h]h }(hjsxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNxubj)}(hend_byteh]hend_byte}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjwubeh}(h]h ]h"]h$]h&]jjuh1j hjXwhhhjiwhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjTwhhhjiwhMubah}(h]jOwah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjiwhMhjQwhhubj4)}(hhh]jM)}(h*check if range potentially needs writebackh]h*check if range potentially needs writeback}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjxhhubah}(h]h ]h"]h$]h&]uh1j3hjQwhhhjiwhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjxjHjxjIjJjKuh1hhhhjhNhNubj)}(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. Used by O_DIRECT read/write with IOCB_NOWAIT, to see if the caller needs to do filemap_write_and_wait_range() before proceeding. **Return** ``true`` if the caller should do filemap_write_and_wait_range() before doing O_DIRECT to a page in this range, ``false`` otherwise.h](jM)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjxhhhNhNubah}(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.hhMhjxubj)}(hhh](j)}(hF``struct address_space *mapping`` address space within which to check h](j)}(h!``struct address_space *mapping``h]jS)}(hjxh]hstruct address_space *mapping}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjxubj)}(hhh]jM)}(h#address space within which to checkh]h#address space within which to check}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjxubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]jS)}(hj%yh]hloff_t start_byte}(hj'yhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#yubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjyubj)}(hhh]jM)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hj>yhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:yhMhj;yubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhj:yhMhjxubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]jS)}(hj^yh]hloff_t end_byte}(hj`yhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\yubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjXyubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjwyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjsyhMhjtyubah}(h]h ]h"]h$]h&]uh1jhjXyubeh}(h]h ]h"]h$]h&]uh1jhjsyhMhjxubeh}(h]h ]h"]h$]h&]uh1jhjxubjM)}(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.hhMhjxubjM)}(hFind at least one page in the range supplied, usually used to check if direct writing in this range will trigger a writeback. Used by O_DIRECT read/write with IOCB_NOWAIT, to see if the caller needs to do filemap_write_and_wait_range() before proceeding.h]hFind at least one page in the range supplied, usually used to check if direct writing in this range will trigger a writeback. Used by O_DIRECT read/write with IOCB_NOWAIT, to see if the caller needs to do filemap_write_and_wait_range() before proceeding.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjxubjM)}(h **Return**h]j)}(hjyh]hReturn}(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.hhM#hjxubjM)}(h``true`` if the caller should do filemap_write_and_wait_range() before doing O_DIRECT to a page in this range, ``false`` otherwise.h](jS)}(h``true``h]htrue}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubhg if the caller should do filemap_write_and_wait_range() before doing O_DIRECT to a page in this range, }(hjyhhhNhNubjS)}(h ``false``h]hfalse}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubh otherwise.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM$hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_control (C struct)c.readahead_controlhNtauh1hhjhhhNhNubh)}(hhh](h)}(hreadahead_controlh]h)}(hstruct readahead_controlh](j5)}(hj8h]hstruct}(hj%zhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj!zhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM*ubj)}(h h]h }(hj3zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!zhhhj2zhM*ubh)}(hreadahead_controlh]j)}(hjzh]hreadahead_control}(hjEzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAzubah}(h]h ](jjeh"]h$]h&]jjuh1hhj!zhhhj2zhM*ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjzhhhj2zhM*ubah}(h]jzah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj2zhM*hjzhhubj4)}(hhh]jM)}(hDescribes a readahead request.h]hDescribes a readahead request.}(hjgzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM4hjdzhhubah}(h]h ]h"]h$]h&]uh1j3hjzhhhj2zhM*ubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGjzjHjzjIjJjKuh1hhhhjhNhNubj)}(hX**Definition**:: struct readahead_control { struct file *file; struct address_space *mapping; struct file_ra_state *ra; }; **Members** ``file`` The file, used primarily by network filesystems for authentication. May be NULL if invoked internally by the filesystem. ``mapping`` Readahead this filesystem object. ``ra`` File readahead state. May be NULL.h](jM)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh:}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM8hjzubj()}(hustruct readahead_control { struct file *file; struct address_space *mapping; struct file_ra_state *ra; };h]hustruct readahead_control { struct file *file; struct address_space *mapping; struct file_ra_state *ra; };}hjzsbah}(h]h ]h"]h$]h&]jjuh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM:hjzubjM)}(h **Members**h]j)}(hjzh]hMembers}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM@hjzubj)}(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)}(hjzh]hfile}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM@hjzubj)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM?hjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhM@hjzubj)}(h.``mapping`` Readahead this filesystem object. h](j)}(h ``mapping``h]jS)}(hj{h]hmapping}(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.hhMAhj{ubj)}(hhh]jM)}(h!Readahead this filesystem object.h]h!Readahead this filesystem object.}(hj'{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#{hMAhj${ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj#{hMAhjzubj)}(h*``ra`` File readahead state. May be NULL.h](j)}(h``ra``h]jS)}(hjG{h]hra}(hjI{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjE{ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMAhjA{ubj)}(hhh]jM)}(h#File readahead state. May be NULL.h]h#File readahead state. May be NULL.}(hj`{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMBhj]{ubah}(h]h ]h"]h$]h&]uh1jhjA{ubeh}(h]h ]h"]h$]h&]uh1jhj\{hMAhjzubeh}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubjM)}(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.hhMEhjhhubjM)}(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.hhM5hjhhubjM)}(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.hhM:hjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&page_cache_sync_readahead (C function)c.page_cache_sync_readaheadhNtauh1hhjhhhNhNubh)}(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}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMcubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhj{hMcubh)}(hpage_cache_sync_readaheadh]j)}(hpage_cache_sync_readaheadh]hpage_cache_sync_readahead}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj{hhhj{hMcubj )}(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}(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}(hj2|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/|ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4|modnameN classnameNjpjs)}jv]jy)}jlj{sbc.page_cache_sync_readaheadasbuh1hhj|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)}(hmappingh]hmapping}(hjm|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj |ubj )}(hstruct file_ra_state *rah](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 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]jN|c.page_cache_sync_readaheadasbuh1hhj|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)}(hrah]hra}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj |ubj )}(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}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jN|c.page_cache_sync_readaheadasbuh1hhj|ubj)}(h h]h }(hj2}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjF )}(hjI h]h*}(hj@}hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj|ubj)}(hfileh]hfile}(hjM}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj |ubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hji}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjk}modnameN classnameNjpjs)}jv]jN|c.page_cache_sync_readaheadasbuh1hhjb}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb}ubj)}(hindexh]hindex}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb}ubeh}(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}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h req_counth]h req_count}(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{hMcubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj{hhhj{hMcubah}(h]j{ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj{hMchj{hhubj4)}(hhh]jM)}(hgeneric file readaheadh]hgeneric file readahead}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMchj ~hhubah}(h]h ]h"]h$]h&]uh1j3hj{hhhj{hMcubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj(~jHj(~jIjJjKuh1hhhhjhNhNubj)}(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)}(hj2~h]h Parameters}(hj4~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0~ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMghj,~ubj)}(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)}(hjQ~h]hstruct address_space *mapping}(hjS~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjO~ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMdhjK~ubj)}(hhh]jM)}(h7address_space which holds the pagecache and I/O vectorsh]h7address_space which holds the pagecache and I/O vectors}(hjj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjf~hMdhjg~ubah}(h]h ]h"]h$]h&]uh1jhjK~ubeh}(h]h ]h"]h$]h&]uh1jhjf~hMdhjH~ubj)}(hK``struct file_ra_state *ra`` file_ra_state which holds the readahead state h](j)}(h``struct file_ra_state *ra``h]jS)}(hj~h]hstruct file_ra_state *ra}(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.hhMehj~ubj)}(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&]uh1jLhj~hMehj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMehjH~ubj)}(hA``struct file *file`` Used by the filesystem for authentication. 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.hhMfhj~ubj)}(hhh]jM)}(h*Used by the filesystem for authentication.h]h*Used by the filesystem for authentication.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hMfhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMfhjH~ubj)}(h2``pgoff_t index`` Index of first page to be read. 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.hhMghj~ubj)}(hhh]jM)}(hIndex of first page to be read.h]hIndex of first page to be read.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMghjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMghjH~ubj)}(hL``unsigned long req_count`` Total number of pages being read by the caller. h](j)}(h``unsigned long req_count``h]jS)}(hj5h]hunsigned long req_count}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhhj/ubj)}(hhh]jM)}(h/Total number of pages being read by the caller.h]h/Total number of pages being read by the caller.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhMhhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhhjH~ubeh}(h]h ]h"]h$]h&]uh1jhj,~ubjM)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMjhj,~ubjM)}(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.hhMihj,~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'page_cache_async_readahead (C function)c.page_cache_async_readaheadhNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMyubh)}(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&]jjuh1hhjhhhjhMyubj )}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(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]jy)}jljsbc.page_cache_async_readaheadasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj>hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct file_ra_state *rah](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 file_ra_stateh]h file_ra_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j,c.page_cache_async_readaheadasbuh1hhj`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)}(hrah]hra}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct file *fileh](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)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j,c.page_cache_async_readaheadasbuh1hhjЀ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)}(hfileh]hfile}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЀubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjDhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j)}(hfolioh]hfolio}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]j,c.page_cache_async_readaheadasbuh1hhj@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 hjubj )}(hunsigned long req_counth](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)}(h req_counth]h req_count}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMyubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMyubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMyhjhhubj4)}(hhh]jM)}(hfile readahead for marked pagesh]hfile readahead for marked pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMyhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMyubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj.jHj.jIjJjKuh1hhhhjhNhNubj)}(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)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM}hj2ubj)}(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)}(hjWh]hstruct address_space *mapping}(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.hhMzhjQubj)}(hhh]jM)}(h7address_space which holds the pagecache and I/O vectorsh]h7address_space which holds the pagecache and I/O vectors}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhMzhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMzhjNubj)}(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.hhM{hjubj)}(hhh]jM)}(h-file_ra_state which holds the readahead stateh]h-file_ra_state which holds the readahead state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjNubj)}(hA``struct file *file`` Used by the filesystem for authentication. 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.hhM|hjÂubj)}(hhh]jM)}(h*Used by the filesystem for authentication.h]h*Used by the filesystem for authentication.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjނhM|hj߂ubah}(h]h ]h"]h$]h&]uh1jhjÂubeh}(h]h ]h"]h$]h&]uh1jhjނhM|hjNubj)}(hF``struct folio *folio`` The folio which triggered the readahead call. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct 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.hhM}hjubj)}(hhh]jM)}(h-The folio which triggered the readahead call.h]h-The folio which triggered the readahead call.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM}hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjNubj)}(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&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM~hj5ubj)}(hhh]jM)}(h/Total number of pages being read by the caller.h]h/Total number of pages being read by the caller.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhM~hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhM~hjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubjM)}(h**Description**h]j)}(hjvh]h Description}(hjxhhhNhNubah}(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.hhMhj2ubjM)}(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.hhMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_folio (C function)c.readahead_foliohNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhW/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)}(hhh]j)}(hfolioh]hfolio}(hjڃhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׃ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj܃modnameN classnameNjpjs)}jv]jy)}jlreadahead_foliosbc.readahead_folioasbuh1hhjhhhjȃhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjȃhMubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjȃhMubh)}(hreadahead_folioh]j)}(hjh]hreadahead_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjȃhMubj )}(h!(struct readahead_control *ractl)h]j )}(hstruct readahead_control *ractlh](j5)}(hj8h]hstruct}(hj5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jc.readahead_folioasbuh1hhj1ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1ubj)}(hractlh]hractl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-ubah}(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)}(hGet the next folio to read.h]hGet the next folio to read.}(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&]jFjAjGj΄jHj΄jIjJjKuh1hhhhjhNhNubj)}(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)}(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.hhMhj҄ubj)}(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.}(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 **Context**h]j)}(hj2h]hContext}(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.hhMhj҄ubjM)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj҄ubjM)}(h **Return**h]j)}(hjYh]hReturn}(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.hhMhj҄ubjM)}(h8A pointer to the next folio, or ``NULL`` if we are done.h](h A pointer to the next folio, or }(hjohhhNhNubjS)}(h``NULL``h]hNULL}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoubh if we are done.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj҄ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_pos (C function)c.readahead_poshNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jl readahead_possbc.readahead_posasbuh1hhjhhhW/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)}(h readahead_posh]j)}(hjхh]h readahead_pos}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjԅhMubj )}(h%(const struct readahead_control *rac)h]j )}(h#const struct readahead_control *rach](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 }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj=modnameN classnameNjpjs)}jv]jυc.readahead_posasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjghhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hrach]hrac}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(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)}(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&]uh1j3hjhhhjԅhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hP**Parameters** ``const struct readahead_control *rac`` The readahead request.h](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: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)}(hj߆h]h#const struct readahead_control *rac}(hjhhhNhNubah}(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.}(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&]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](hreadahead_length (C function)c.readahead_lengthhNtauh1hhjhhhNhNubh)}(hhh](h)}(h=size_t readahead_length (const struct readahead_control *rac)h]h)}(hmodnameN classnameNjpjs)}jv]jy)}jlreadahead_lengthsbc.readahead_lengthasbuh1hhj5hhhW/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&]uh1jhj5hhhj]hMubh)}(hreadahead_lengthh]j)}(hjZh]hreadahead_length}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1hhj5hhhj]hMubj )}(h%(const struct readahead_control *rac)h]j )}(h#const struct readahead_control *rach](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)}(hreadahead_controlh]hreadahead_control}(hjćhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjƇmodnameN classnameNjpjs)}jv]jXc.readahead_lengthasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hrach]hrac}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hj5hhhj]hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj1hhhj]hMubah}(h]j,ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj]hMhj.hhubj4)}(hhh]jM)}(h.The number of bytes in this readahead request.h]h.The number of bytes in this 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$hhubah}(h]h ]h"]h$]h&]uh1j3hj.hhhj]hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj?jHj?jIjJjKuh1hhhhjhNhNubj)}(hP**Parameters** ``const struct readahead_control *rac`` The readahead request.h](jM)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjCubj)}(hhh]j)}(h>``const struct readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]jS)}(hjhh]h#const struct readahead_control *rac}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjbubj)}(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.hhMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_index (C function)c.readahead_indexhNtauh1hhjhhhNhNubh)}(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.hhMhjubj)}(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.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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_count (C function)c.readahead_counthNtauh1hhjhhhNhNubh)}(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}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjYhMubj)}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjYhMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjYhMubh)}(hreadahead_counth]j)}(hreadahead_counth]hreadahead_count}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjGhhhjYhMubj )}(h%(const struct readahead_control *rac)h]j )}(h#const struct readahead_control *rach](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 }(hj̊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hj݊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڊubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjߊmodnameN classnameNjpjs)}jv]jy)}jljsbc.readahead_countasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hrach]hrac}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjGhhhjYhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjChhhjYhMubah}(h]j>ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjYhMhj@hhubj4)}(hhh]jM)}(h.The number of pages in this readahead request.h]h.The number of pages in this readahead request.}(hjBhhhNhNubah}(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@hhhjYhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjZjHjZjIjJjKuh1hhhhjhNhNubj)}(hP**Parameters** ``const struct readahead_control *rac`` The readahead request.h](jM)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(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.hhMhj}ubj)}(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&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#readahead_batch_length (C function)c.readahead_batch_lengthhNtauh1hhjhhhNhNubh)}(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&]uh1jhj݋ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlreadahead_batch_lengthsbc.readahead_batch_lengthasbuh1hhjً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)}(hreadahead_batch_lengthh]j)}(hjh]hreadahead_batch_length}(hjhhhNhNubah}(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 }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj5)}(hj8h]hstruct}(hjJhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj+ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjjmodnameN classnameNjpjs)}jv]jc.readahead_batch_lengthasbuh1hhj+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)}(hrach]hrac}(hjhhhNhNubah}(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)}(h)The number of bytes in the current batch.h]h)The number of bytes in the current batch.}(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&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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)}(hj h]h#const struct readahead_control *rac}(hjhhhNhNubah}(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.hhMhjubj)}(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&]uh1jhjubeh}(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)folio_mkwrite_check_truncate (C function)c.folio_mkwrite_check_truncatehNtauh1hhjhhhNhNubh)}(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}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjkmodnameN classnameNjpjs)}jv]jy)}jlfolio_mkwrite_check_truncatesbc.folio_mkwrite_check_truncateasbuh1hhjbhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjhMubh)}(hfolio_mkwrite_check_truncateh]j)}(hjh]hfolio_mkwrite_check_truncate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjbhhhjhMubj )}(h6(const struct folio *folio, const struct inode *inode)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}(hjӍhhhNhNubah}(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_mkwrite_check_truncateasbuh1hhjubj)}(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 )}(hconst struct inode *inodeh](j5)}(hjh]hconst}(hjChhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj?ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj5)}(hj8h]hstruct}(hj^hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj?ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hhh]j)}(hinodeh]hinode}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj~modnameN classnameNjpjs)}jv]jc.folio_mkwrite_check_truncateasbuh1hhj?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)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjbhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj^hhhjhMubah}(h]jYah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhj[hhubj4)}(hhh]jM)}(hcheck if folio was truncatedh]hcheck if 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.hhMhj܎hhubah}(h]h ]h"]h$]h&]uh1j3hj[hhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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)}(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)}(h1``const struct folio *folio`` the folio to check 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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubj)}(hhh]jM)}(hthe folio to checkh]hthe folio to check}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(hC``const struct inode *inode`` the inode to check the folio against h](j)}(h``const struct inode *inode``h]jS)}(hjYh]hconst struct inode *inode}(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.hhMhjSubj)}(hhh]jM)}(h$the inode to check the folio againsth]h$the inode to check the folio against}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubeh}(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.}(hjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hi_blocks_per_folio (C function)c.i_blocks_per_foliohNtauh1hhjhhhNhNubh)}(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}(hjُhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՏ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ՏhhhjhMubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՏhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՏhhhjhMubh)}(hi_blocks_per_folioh]j)}(hi_blocks_per_folioh]hi_blocks_per_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjՏhhhjhMubj )}(h6(const struct inode *inode, const struct folio *folio)h](j )}(hconst struct inode *inodeh](j5)}(hjh]hconst}(hj2hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj.ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj5)}(hj8h]hstruct}(hjMhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj.ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(hhh]j)}(hinodeh]hinode}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmmodnameN classnameNjpjs)}jv]jy)}jljsbc.i_blocks_per_folioasbuh1hhj.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)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj*ubj )}(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}(hjڐhhhNhNubah}(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.i_blocks_per_folioasbuh1hhjubj)}(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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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)}(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.hhMhjXhhubah}(h]h ]h"]h$]h&]uh1j3hjΏhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjsjHjsjIjJjKuh1hhhhjhNhNubj)}(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)}(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:85: ./include/linux/pagemap.hhM#hjwubj)}(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.hhM hjubj)}(hhh]jM)}(h$The inode which contains the blocks.h]h$The inode which contains the blocks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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&]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 The folio.h]h The folio.}(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&]uh1jhjwubjM)}(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#hjwubjM)}(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.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM"hjwubjM)}(h **Context**h]j)}(hj7h]hContext}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM$hjwubjM)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM%hjwubjM)}(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.hhM(hjwubjM)}(h6The number of filesystem blocks covered by this folio.h]h6The number of filesystem blocks covered by this folio.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM'hjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]truncateah ]h"]truncateah$]h&]uh1hhjhhhhhKPubeh}(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}(hjĒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKubj)}(h h]h }(hjӒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjҒhKubh)}(h mempool_exith]j)}(h mempool_exith]h mempool_exit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjҒhKubj )}(h(struct mempool *pool)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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj!modnameN classnameNjpjs)}jv]jy)}jljsbc.mempool_exitasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjMhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpoolh]hpool}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(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.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&]uh1j3hjhhhjҒhKubeh}(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)}(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.chKhjubj)}(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)}(hjœh]hstruct mempool *pool}(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.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().}(hjޓhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjۓ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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubjM)}(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}(hj1hhhNhNubah}(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.chKhjubjM)}(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()).}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubeh}(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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhKubh)}(hmempool_destroyh]j)}(hmempool_destroyh]hmempool_destroy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjuhhhjhKubj )}(h(struct mempool *pool)h]j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjÔhhhNhNubah}(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_destroyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjuhhhjhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjqhhhjhKubah}(h]jlah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjnhhubj4)}(hhh]jM)}(hdeallocate a memory poolh]hdeallocate a memory pool}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj6hhubah}(h]h ]h"]h$]h&]uh1j3hjnhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjQjHjQjIjJjKuh1hhhhjhNhNubj)}(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}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjUubj)}(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)}(hjzh]hstruct mempool *pool}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjtubj)}(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&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhKhjqubah}(h]h ]h"]h$]h&]uh1jhjUubjM)}(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.chKhjUubjM)}(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 }(hj̕hhhNhNubj)}(h**pool**h]hpool}(hjԕhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̕ubh and }(hj̕hhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̕ubhE itself. This function only sleeps if the free_fn() function sleeps.}(hj̕hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjUubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj-hMubh)}(h mempool_inith]j)}(h mempool_inith]h mempool_init}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj-hMubj )}(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&]uh1j4hjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]j)}(hmempoolh]hmempool}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj|modnameN classnameNjpjs)}jv]jy)}jljBsbc.mempool_initasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjXubj)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubj )}(h int min_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)}(hmin_nrh]hmin_nr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʖubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubj )}(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]jc.mempool_initasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj2hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(halloc_fnh]halloc_fn}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubj )}(hmempool_free_t *free_fnh](h)}(hhh]j)}(hmempool_free_th]hmempool_free_t}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj]modnameN classnameNjpjs)}jv]jc.mempool_initasbuh1hhjTubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjTubj)}(hfree_fnh]hfree_fn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubj )}(hvoid *pool_datah](j)}(hvoidh]hvoid}(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)}(h pool_datah]h pool_data}(hj֗hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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)}(hinitialize a memory poolh]hinitialize 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&]uh1j3hjhhhj-hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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)}(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.chMhjubj)}(hhh](j)}(hO``struct mempool *pool`` pointer to the memory pool that should be initialized h](j)}(h``struct mempool *pool``h]jS)}(hjAh]hstruct mempool *pool}(hjChhhNhNubah}(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)}(h5pointer to the memory pool that should be initializedh]h5pointer to the memory pool that should be initialized}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj8ubj)}(hX``int min_nr`` the minimum number of elements guaranteed to be allocated for this pool. h](j)}(h``int min_nr``h]jS)}(hjzh]h int min_nr}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjtubj)}(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&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubj)}(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.chMhjubj)}(hhh]jM)}(h)user-defined element-allocation function.h]h)user-defined element-allocation function.}(hj͘hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjɘhMhjʘubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɘhMhj8ubj)}(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&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(h&user-defined element-freeing function.h]h&user-defined element-freeing function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubj)}(hS``void *pool_data`` optional private data available to the user-defined functions. h](j)}(h``void *pool_data``h]jS)}(hj&h]hvoid *pool_data}(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>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;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj8ubeh}(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:91: ./mm/mempool.chMhjubjM)}(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).}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.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:91: ./mm/mempool.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:91: ./mm/mempool.chMhjubeh}(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}(hjۙhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjיhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM(ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjיhhhjhM(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_nodeasbuh1hhjי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)}(hmempool_create_nodeh]j)}(hjh]hmempool_create_node}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjיhhhjhM(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}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hmin_nrh]hmin_nr}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubj )}(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]jc.mempool_create_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(halloc_fnh]halloc_fn}(hjƚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubj )}(hmempool_free_t *free_fnh](h)}(hhh]j)}(hmempool_free_th]hmempool_free_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߚubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mempool_create_nodeasbuh1hhjۚ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)}(hfree_fnh]hfree_fn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۚubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubj )}(hvoid *pool_datah](j)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjF )}(hjI h]h*}(hjPhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj0ubj)}(h pool_datah]h pool_data}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubj )}(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]jc.mempool_create_nodeasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubj )}(h int node_idh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj̛hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnode_idh]hnode_id}(hjڛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubeh}(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)}(hcreate a memory poolh]hcreate a memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM(hjhhubah}(h]h ]h"]h$]h&]uh1j3hjЙhhhjhM(ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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)}(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.chM,hj ubj)}(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)}(hjEh]h int min_nr}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM*hj?ubj)}(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.}(hj^hhhNhNubah}(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&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhM*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&]uh1jRhj}ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM+hjyubj)}(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&]uh1jhjyubeh}(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)}(hjh]hmempool_free_t *free_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-freeing function.h]h&user-defined element-freeing function.}(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)}(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-hjubj)}(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&]uh1jLhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hj<ubj)}(h+``gfp_t gfp_mask`` memory allocation flags 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.chM.hj$ubj)}(hhh]jM)}(hmemory allocation flagsh]hmemory allocation flags}(hjChhhNhNubah}(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 node_id`` numa node to allocate on h](j)}(h``int node_id``h]jS)}(hjch]h int node_id}(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.chM/hj]ubj)}(hhh]jM)}(hnuma node to allocate onh]hnuma node to allocate on}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhM/hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM/hj<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:91: ./mm/mempool.chM1hj ubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM0hj 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:91: ./mm/mempool.chM6hj ubjM)}(h?pointer to the created memory pool object or ``NULL`` on error.h](h-pointer to the created memory pool object 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:91: ./mm/mempool.chM7hj ubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMNubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj*hMNubh)}(hmempool_resizeh]j)}(hmempool_resizeh]hmempool_resize}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj*hMNubj )}(h&(struct mempool *pool, int new_min_nr)h](j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hjYhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(hhh]j)}(hmempoolh]hmempool}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjymodnameN classnameNjpjs)}jv]jy)}jlj?sbc.mempool_resizeasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjUubj)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQubj )}(hint new_min_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)}(h new_min_nrh]h new_min_nr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǞubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj*hMNubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj*hMNubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj*hMNhjhhubj4)}(hhh]jM)}(hresize an existing memory poolh]hresize an existing memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMNhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj*hMNubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj)jHj)jIjJjKuh1hhhhjhNhNubj)}(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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMRhj-ubj)}(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)}(hjRh]hstruct mempool *pool}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMPhjLubj)}(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().}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMOhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMPhjIubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjIubeh}(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.chMThj-ubjM)}(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.}(hjޟhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMShj-ubjM)}(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.chMXhj-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.chM\hj-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:91: ./mm/mempool.chM]hj-ubeh}(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)}(hgint mempool_alloc_bulk (struct mempool *pool, void **elems, unsigned int count, unsigned int allocated)h]h)}(hfint mempool_alloc_bulk(struct mempool *pool, void **elems, unsigned int count, unsigned int allocated)h](j)}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj_hMubh)}(hmempool_alloc_bulkh]j)}(hmempool_alloc_bulkh]hmempool_alloc_bulk}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1hhjMhhhj_hMubj )}(hP(struct mempool *pool, void **elems, unsigned int count, unsigned int allocated)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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljtsbc.mempool_alloc_bulkasbuh1hhjubj)}(h h]h }(hj̠hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjڠhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h void **elemsh](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 hjubjF )}(hjI h]h*}(hj)hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(helemsh]helems}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int counth](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)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int allocatedh](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 allocatedh]h allocated}(hjءhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjMhhhj_hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjIhhhj_hMubah}(h]jDah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj_hMhjFhhubj4)}(hhh]jM)}(h-allocate multiple elements from a memory poolh]h-allocate multiple elements 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&]uh1j3hjFhhhj_hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**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 ``unsigned int allocated`` number of entries in **elem** already allocated **Description** Allocate elements for each slot in **elem** that is non-``NULL``. 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)}(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.chMhjubj)}(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.chMhj=ubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhj:ubj)}(h=``void **elems`` partially or fully populated elements array h](j)}(h``void **elems``h]jS)}(hj|h]h void **elems}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjvubj)}(hhh]jM)}(h+partially or fully populated elements arrayh]h+partially or fully populated elements array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhj: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 }(hj΢hhhNhNubj)}(h**elem**h]helem}(hj֢hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj΢ubh that need to be allocated}(hj΢hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjʢhMhjˢubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjʢhMhj:ubj)}(hK``unsigned int allocated`` number of entries in **elem** already allocated h](j)}(h``unsigned int allocated``h]jS)}(hjh]hunsigned int allocated}(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)}(h/number of entries in **elem** already allocatedh](hnumber of entries in }(hjhhhNhNubj)}(h**elem**h]helem}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh already 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)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubjM)}(hAllocate elements for each slot in **elem** that is non-``NULL``. 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 elements for each slot in }(hjchhhNhNubj)}(h**elem**h]helem}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh that is non-}(hjchhhNhNubjS)}(h``NULL``h]hNULL}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubh. 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.}(hjchhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh elements in }(hjhhhNhNubj)}(h **elems**h]helems}(hjhhhNhNubah}(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)}(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: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.}(hjhhhNhNubah}(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&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(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)}(h mempool_alloch]j)}(h mempool_alloch]h mempool_alloc}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhjhMubj )}(h&(struct mempool *pool, gfp_t gfp_mask)h](j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hjZhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j)}(hmempoolh]hmempool}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjzmodnameN classnameNjpjs)}jv]jy)}jlj@sbc.mempool_allocasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVubj)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubj )}(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.mempool_allocasbuh1hhjȤubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȤubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȤubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubeh}(h]h ]h"]h$]h&]jjuh1j hj hhhjhMubeh}(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}(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&]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)}(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:91: ./mm/mempool.chMhjAubj)}(hhh](j)}(h4``struct mempool *pool`` pointer to the memory pool h](j)}(h``struct mempool *pool``h]jS)}(hjfh]hstruct mempool *pool}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(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&]uh1jLhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj]ubj)}(hB``gfp_t gfp_mask`` GFP_* flags. ``__GFP_ZERO`` is not supported. 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:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(h.GFP_* flags. ``__GFP_ZERO`` is not supported.h](hGFP_* flags. }(hjhhhNhNubjS)}(h``__GFP_ZERO``h]h __GFP_ZERO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh is not supported.}(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&]uh1jhjAubjM)}(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.chMhjAubjM)}(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}(hj hhhNhNubah}(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.chMhjAubjM)}(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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM hjAubjM)}(h **Return**h]j)}(hj4h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM#hjAubjM)}(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 }(hjJhhhNhNubjS)}(h``NULL``h]hNULL}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubhO when failing to allocate an element. Allocation failure can only happen when }(hjJhhhNhNubj)}(h **gfp_mask**h]hgfp_mask}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh does not include }(hjJhhhNhNubjS)}(h``__GFP_DIRECT_RECLAIM``h]h__GFP_DIRECT_RECLAIM}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubh.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM$hjAubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMQubjF )}(hjI h]h*}(hj̦hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMQubh)}(hmempool_alloc_preallocatedh]j)}(hmempool_alloc_preallocatedh]hmempool_alloc_preallocated}(hjݦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj٦ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMQubj )}(h(struct mempool *pool)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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljߦsbc.mempool_alloc_preallocatedasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjEhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpoolh]hpool}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(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]jM)}(hIallocate an element from preallocated elements belonging to a memory poolh]hIallocate an element from preallocated elements belonging to a memory pool}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMQhjyhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMQubeh}(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)}(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.chMUhjubj)}(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.chMShjubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hj֧hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjҧhMShjӧubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjҧhMShjubah}(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.chMUhjubjM)}(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.chMThjubjM)}(h **Return**h]j)}(hjh]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.chMXhjubjM)}(hJpointer to the allocated element or ``NULL`` if no elements are available.h](h$pointer to the allocated element or }(hj5hhhNhNubjS)}(h``NULL``h]hNULL}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5ubh if no elements are available.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMYhjubeh}(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}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhMfubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhMfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhMfubh)}(hmempool_free_bulkh]j)}(hmempool_free_bulkh]hmempool_free_bulk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjrhhhjhMfubj )}(h8(struct mempool *pool, void **elems, unsigned int count)h](j )}(hstruct mempool *poolh](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)}(hmempoolh]hmempool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.mempool_free_bulkasbuh1hhj˨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)}(hpoolh]hpool}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˨ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjǨubj )}(h void **elemsh](j)}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=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=ubjF )}(hjI h]h*}(hjjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj=ubj)}(helemsh]helems}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjǨubj )}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcounth]hcount}(hjȩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjǨubeh}(h]h ]h"]h$]h&]jjuh1j hjrhhhjhMfubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjnhhhjhMfubah}(h]jiah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMfhjkhhubj4)}(hhh]jM)}(hreturn elements to a mempoolh]hreturn elements to a mempool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMfhjhhubah}(h]h ]h"]h$]h&]uh1j3hjkhhhjhMfubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(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.chMjhjubj)}(hhh](j)}(h4``struct mempool *pool`` pointer to the memory pool h](j)}(h``struct mempool *pool``h]jS)}(hj3h]hstruct mempool *pool}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj1ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMghj-ubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHhMghjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMghj*ubj)}(h$``void **elems`` elements to return h](j)}(h``void **elems``h]jS)}(hjlh]h void **elems}(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.chMhhjfubj)}(hhh]jM)}(helements to returnh]helements to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhhj*ubj)}(h4``unsigned int count`` number of elements to return 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.chMihjubj)}(hhh]jM)}(hnumber of elements to returnh]hnumber of elements to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMihjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMihj*ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]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.chMkhjubjM)}(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 }(hjhhhNhNubj)}(h**elem**h]helem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if }(hjhhhNhNubj)}(h**pool**h]hpool}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, needs replenishing and sets their slots in }(hjhhhNhNubj)}(h**elem**h]helem}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh& to NULL. Other elements are left in }(hjhhhNhNubj)}(h**elem**h]helem}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMjhjubjM)}(h **Return**h]j)}(hjah]hReturn}(hjchhhNhNubah}(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)}(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 }(hjwhhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh9. Elements are always transferred from the beginning of }(hjwhhhNhNubj)}(h**elem**h]helem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh4, so the return value can be used as an offset into }(hjwhhhNhNubj)}(h**elem**h]helem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh6 for the freeing the remaining elements in the caller.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMohjubeh}(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}(hjܫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjثhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjثhhhjhMubh)}(h mempool_freeh]j)}(h mempool_freeh]h mempool_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjثhhhjhMubj )}(h%(void *element, struct mempool *pool)h](j )}(h void *elementh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj5hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(helementh]helement}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hj[hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j)}(hmempoolh]hmempool}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj{modnameN classnameNjpjs)}jv]jy)}jljsbc.mempool_freeasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjWubj)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(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)}(hreturn an element to the pool.h]hreturn an element to the 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&]uh1j3hjѫhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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}(hj!hhhNhNubah}(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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubj)}(h4``struct mempool *pool`` pointer to the memory pool h](j)}(h``struct mempool *pool``h]jS)}(hjXh]hstruct mempool *pool}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjRubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjubeh}(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 }(hjhhhNhNubj)}(h **element**h]helement}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h**pool**h]hpool}(hjíhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhG if it needs replenishing, else frees it using the free_fn callback in }(hjhhhNhNubj)}(h**pool**h]hpool}(hjխhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(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.}(hjhhhNhNubah}(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&]uh1hhj hhhhhK_ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"zap_special_vma_range (C function)c.zap_special_vma_rangehNtauh1hhj hhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjDhMubh)}(hzap_special_vma_rangeh]j)}(hzap_special_vma_rangeh]hzap_special_vma_range}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1hhj2hhhjDhMubj )}(hG(struct vm_area_struct *vma, unsigned long address, unsigned long size)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(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)}jljYsbc.zap_special_vma_rangeasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjoubj)}(hvmah]hvma}(hj̮hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkubj )}(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 hjkubj )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hlongh]hlong}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hsizeh]hsize}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkubeh}(h]h ]h"]h$]h&]jjuh1j hj2hhhjDhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj.hhhjDhMubah}(h]j)ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjDhMhj+hhubj4)}(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&]uh1j3hj+hhhjDhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMhjubj)}(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}(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!the vma covering the range to zaph]h!the vma covering the range to zap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjӯubeh}(h]h ]h"]h$]h&]uh1jhjhMhjЯubj)}(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.chMhj ubj)}(hhh]jM)}(h$starting address of the range to zaph]h$starting address of the range to zap}(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.``unsigned long size`` number of bytes to zap h](j)}(h``unsigned long size``h]jS)}(hjKh]hunsigned long size}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjEubj)}(hhh]jM)}(hnumber of bytes to zaph]hnumber of bytes to zap}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjЯ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.chMhjubjM)}(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 }(hjhhhNhNubj)}(h**vma**h]hvma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, or when the }(hjhhhNhNubj)}(h**vma**h]hvma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh! is not VM_PFNMAP or VM_MIXEDMAP.}(hjhhhNhNubeh}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_insert_pages (C function)c.vm_insert_pageshNtauh1hhj hhhNhNubh)}(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}(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)}(hvm_insert_pagesh]j)}(hvm_insert_pagesh]hvm_insert_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM 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}(hj,hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj(ubj)}(h h]h }(hj9hhhNhNubah}(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.vm_insert_pagesasbuh1hhj(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)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$ubj )}(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 }(hjȱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jfc.vm_insert_pagesasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj9hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubjF )}(hjI h]h*}(hjFhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpagesh]hpages}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$ubj )}(hunsigned long *numh](j)}(hunsignedh]hunsigned}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhubj)}(hnumh]hnum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(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)}(h;insert multiple pages into user vma, batching the pmd lock.h]h;insert multiple pages into user vma, batching the pmd lock.}(hj۲hhhNhNubah}(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&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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 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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hM hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM hjubj)}(h@``unsigned long addr`` target start user address of these pages h](j)}(h``unsigned long addr``h]jS)}(hjUh]hunsigned long addr}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjOubj)}(hhh]jM)}(h(target start user address of these pagesh]h(target start user address of these pages}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjhM hjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhM 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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM 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)}(hjdzh]hunsigned long *num}(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)}(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 }(hjhhhNhNubj_)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjubh6 mapped. (0 means all pages were successfully mapped).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjݳubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjܳhM 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)}(h>Preferred over vm_insert_page() when inserting multiple pages.h]h>Preferred over vm_insert_page() when inserting multiple pages.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(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.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h3The same restrictions apply as in vm_insert_page().h]h3The same restrictions apply as in vm_insert_page().}(hjIhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_insert_page (C function)c.vm_insert_pagehNtauh1hhj hhhNhNubh)}(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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjhM ubh)}(hvm_insert_pageh]j)}(hvm_insert_pageh]hvm_insert_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjthhhjhM ubj )}(hC(struct vm_area_struct *vma, unsigned long addr, struct page *page)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}(hjӴhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjдubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjմmodnameN classnameNjpjs)}jv]jy)}jljsbc.vm_insert_pageasbuh1hhjubj)}(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}(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)}(haddrh]haddr}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjxhhhNhNubah}(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]jc.vm_insert_pageasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjF )}(hjI h]h*}(hjµhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjtubj)}(hpageh]hpage}(hjϵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjthhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjphhhjhM ubah}(h]jkah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjmhhubj4)}(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 hjhhubah}(h]h ]h"]h$]h&]uh1j3hjmhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hj:h]hstruct vm_area_struct *vma}(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)}(huser vma to map toh]huser vma to map to}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjOhM hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hj1ubj)}(h8``unsigned long addr`` target user address of this page h](j)}(h``unsigned long addr``h]jS)}(hjsh]hunsigned long addr}(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 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&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhM hj1ubj)}(h)``struct page *page`` source kernel 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&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(hsource kernel pageh]hsource kernel page}(hjŶhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hj¶ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj1ubeh}(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 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()).}(hj hhhNhNubah}(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.}(hj*hhhNhNubah}(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.}(hj9hhhNhNubah}(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)}(hjJh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(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}(hjdhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_map_pages (C function)c.vm_map_pageshNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM2 ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM2 ubh)}(h vm_map_pagesh]j)}(h vm_map_pagesh]h vm_map_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM2 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 }(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]jy)}jljsbc.vm_map_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ַubj)}(hvmah]hvma}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjַubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjҷubj )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hjLhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjHubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]j)}(hpageh]hpage}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlmodnameN classnameNjpjs)}jv]jc.vm_map_pagesasbuh1hhjHubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjHubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjHubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjҷubj )}(hunsigned long numh](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)}(hnumh]hnum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŸubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjҷubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM2 ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM2 ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM2 hjhhubj4)}(hhh]jM)}(h6maps range of kernel pages starts with non zero offseth]h6maps range of kernel pages starts with non zero offset}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM2 hj(hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM2 ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjCjHjCjIjJjKuh1hhhhj hNhNubj)}(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)}(hjMh]h Parameters}(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.chM6 hjGubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjlh]hstruct vm_area_struct *vma}(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.chM3 hjfubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM3 hjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhM3 hjcubj)}(h@``struct page **pages`` pointer to array of 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.chM4 hjubj)}(hhh]jM)}(h'pointer to array of source kernel pagesh]h'pointer to array of source kernel pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM4 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4 hjcubj)}(h4``unsigned long num`` number of pages in page array h](j)}(h``unsigned long num``h]jS)}(hj޹h]hunsigned long num}(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.chM5 hjعubj)}(hhh]jM)}(hnumber of pages in page arrayh]hnumber of pages in page array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM5 hjubah}(h]h ]h"]h$]h&]uh1jhjعubeh}(h]h ]h"]h$]h&]uh1jhjhM5 hjcubeh}(h]h ]h"]h$]h&]uh1jhjGubjM)}(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.chM7 hjGubjM)}(hVMaps an object consisting of **num** pages, catering for the user's requested vm_pgoffh](hMaps an object consisting of }(hj/hhhNhNubj)}(h**num**h]hnum}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh4 pages, catering for the user’s requested vm_pgoff}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM6 hjGubjM)}(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().}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM9 hjGubjM)}(h **Context**h]j)}(hjah]hContext}(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? hjGubjM)}(h)Process context. Called by mmap handlers.h]h)Process context. Called by mmap handlers.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM@ hjGubjM)}(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.chMB hjGubjM)}(h&0 on success and error code otherwise.h]h&0 on success and error code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMA hjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_map_pages_zero (C function)c.vm_map_pages_zerohNtauh1hhj hhhNhNubh)}(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}(hjͺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɺhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMK ubj)}(h h]h }(hjܺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɺhhhjۺhMK ubh)}(hvm_map_pages_zeroh]j)}(hvm_map_pages_zeroh]hvm_map_pages_zero}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjɺhhhjۺhMK 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&]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_map_pages_zeroasbuh1hhjubj)}(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 hjubj )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hj|hhhNhNubah}(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]jDc.vm_map_pages_zeroasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjF )}(hjI h]h*}(hjƻhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjxubjF )}(hjI h]h*}(hjӻhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjxubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(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 }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnumh]hnum}(hj1hhhNh9Nubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjɺhhhjۺhMK ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjźhhhjۺhMK ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjۺhMK hjºhhubj4)}(hhh]jM)}(h1map range of kernel pages starts with zero offseth]h1map range of kernel pages starts with zero offset}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMK hjXhhubah}(h]h ]h"]h$]h&]uh1j3hjºhhhjۺhMK ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjsjHjsjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMO hjwubj)}(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.chML hjubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhML hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhML 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.chMM hjϼubj)}(hhh]jM)}(h'pointer to array of source kernel pagesh]h'pointer to array of source kernel pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMM hjubah}(h]h ]h"]h$]h&]uh1jhjϼubeh}(h]h ]h"]h$]h&]uh1jhjhMM 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&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMN hjubj)}(hhh]jM)}(hnumber of pages in page arrayh]hnumber of pages in page array}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#hMN hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMN hjubeh}(h]h ]h"]h$]h&]uh1jhjwubjM)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMP hjwubjM)}(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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMO hjwubjM)}(h **Context**h]j)}(hjph]hContext}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMS hjwubjM)}(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.chMT 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.chMV hjwubjM)}(h&0 on success and error code otherwise.h]h&0 on success and error code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMU hjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h vmf_insert_pfn_prot (C function)c.vmf_insert_pfn_prothNtauh1hhj hhhNhNubh)}(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}(hj߽hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܽubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN 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}(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}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjNmodnameN classnameNjpjs)}jv]jc.vmf_insert_pfn_protasbuh1hhj*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)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj&ubj )}(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 }(hjȾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hj־hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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}(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 hj&ubj )}(hpgprot_t pgproth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjEmodnameN classnameNjpjs)}jv]jc.vmf_insert_pfn_protasbuh1hhj<ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hpgproth]hpgprot}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(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)}(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&]uh1j3hjѽhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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 hjԿubj)}(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&]uh1jhjԿubeh}(h]h ]h"]h$]h&]uh1jhjhM hjѿubj)}(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 hj ubj)}(hhh]jM)}(h target user address of this pageh]h target user address of this 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ѿubj)}(h(``unsigned long pfn`` source kernel pfn h](j)}(h``unsigned long pfn``h]jS)}(hjLh]hunsigned long pfn}(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)}(hsource kernel pfnh]hsource kernel pfn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahM hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM hjѿubj)}(h7``pgprot_t pgprot`` pgprot flags for the inserted page h](j)}(h``pgprot_t pgprot``h]jS)}(hjh]hpgprot_t pgprot}(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"pgprot flags for the inserted pageh]h"pgprot flags for the inserted page}(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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(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 }(hjhhhNhNubj)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhG when drivers set caching- and encryption bits different than those of }(hjhhhNhNubj)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhJ, because the caching- or encryption mode may not be known at mmap() time.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(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 }(hj'hhhNhNubj)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubhX$ 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()).}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(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.}(hjHhhhNhNubah}(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)}(hjYh]hContext}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(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 }(hjohhhNhNubjS)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoubh.}(hjohhhNhNubeh}(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)}(hvm_fault_t value.h]hvm_fault_t value.}(hjhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmf_insert_pfn (C function)c.vmf_insert_pfnhNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlvmf_insert_pfnsbc.vmf_insert_pfnasbuh1hhjhhhK/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)}(hvmf_insert_pfnh]j)}(hjh]hvmf_insert_pfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(hC(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj)hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjImodnameN classnameNjpjs)}jv]jc.vmf_insert_pfnasbuh1hhj%ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjF )}(hjI h]h*}(hjshhhNhNubah}(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 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 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!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)}(hinsert single pfn into user vmah]hinsert single pfn into user vma}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjIhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjdjHjdjIjJjKuh1hhhhj hNhNubj)}(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)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhubj)}(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)}(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(``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 hjubeh}(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&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhubjM)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhubjM)}(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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhubjM)}(hvma cannot be a COW mapping.h]hvma cannot be a COW mapping.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhubjM)}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhubjM)}(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 hjhubjM)}(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 hjhubjM)}(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 hjhubjM)}(hvm_fault_t value.h]hvm_fault_t value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hremap_pfn_range (C function)c.remap_pfn_rangehNtauh1hhj hhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMg ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMg ubh)}(hremap_pfn_rangeh]j)}(hremap_pfn_rangeh]hremap_pfn_range}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMg 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}(hjIhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjimodnameN classnameNjpjs)}jv]jy)}jlj/sbc.remap_pfn_rangeasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjEubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(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 hjAubj )}(hunsigned long pfnh](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 }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(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]jc.remap_pfn_rangeasbuh1hhjubj)}(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 hjAubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMg ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMg ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMg 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.chMg hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMg ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMk 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)}(hjHh]hstruct vm_area_struct *vma}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMh hjBubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]hMh hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMh hj?ubj)}(hD``unsigned long addr`` target page aligned user address to start at 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.chMi hj{ubj)}(hhh]jM)}(h,target page aligned user address to start ath]h,target page aligned user address to start at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMi hjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMi hj?ubj)}(hJ``unsigned long pfn`` page frame number of kernel physical memory address 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.chMj hjubj)}(hhh]jM)}(h3page frame number of kernel physical memory addressh]h3page frame number of kernel physical memory address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMj hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMj hj?ubj)}(h,``unsigned long size`` size of mapping area h](j)}(h``unsigned long size``h]jS)}(hjh]hunsigned long size}(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.chMk hjubj)}(hhh]jM)}(hsize of mapping areah]hsize of mapping area}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMk hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMk hj?ubj)}(h9``pgprot_t prot`` page protection flags for this mapping h](j)}(h``pgprot_t prot``h]jS)}(hj,h]h pgprot_t prot}(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.chMl hj&ubj)}(hhh]jM)}(h&page protection flags for this mappingh]h&page protection flags for this mapping}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMl hjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMl hj?ubeh}(h]h ]h"]h$]h&]uh1jhj#ubjM)}(h**Note**h]j)}(hjgh]hNote}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMn hj#ubjM)}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMn 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.chMp hj#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&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMp hj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_iomap_memory (C function)c.vm_iomap_memoryhNtauh1hhj hhhNhNubh)}(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}(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)}(hvm_iomap_memoryh]j)}(hvm_iomap_memoryh]hvm_iomap_memory}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM 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 }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj>modnameN classnameNjpjs)}jv]jy)}jljsbc.vm_iomap_memoryasbuh1hhjubj)}(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 )}(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]jXc.vm_iomap_memoryasbuh1hhjubj)}(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 lenh](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)}(hlenh]hlen}(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)}(hremap memory to userspaceh]hremap memory to userspace}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj7hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjRjHjRjIjJjKuh1hhhhj hNhNubj)}(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)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjVubj)}(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&]uh1jRhjyubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjuubj)}(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&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM hjrubj)}(h@``phys_addr_t start`` start of the physical memory to be mapped h](j)}(h``phys_addr_t start``h]jS)}(hjh]hphys_addr_t start}(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)start of the physical memory to be mappedh]h)start of the physical memory to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjrubj)}(h#``unsigned long len`` size of area h](j)}(h``unsigned long len``h]jS)}(hjh]hunsigned long 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)}(h size of areah]h size of area}(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&]uh1jhjVubjM)}(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:97: ./mm/memory.chM hjVubjM)}(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.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjVubjM)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjVubjM)}(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 hjVubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtubh+ on success, negative error code otherwise.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h unmap_mapping_pages (C function)c.unmap_mapping_pageshNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hunmap_mapping_pagesh]j)}(hunmap_mapping_pagesh]hunmap_mapping_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hJ(struct address_space *mapping, pgoff_t start, pgoff_t nr, bool even_cows)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)}jljsbc.unmap_mapping_pagesasbuh1hhjubj)}(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 hjubj )}(h pgoff_t starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjemodnameN classnameNjpjs)}jv]j(c.unmap_mapping_pagesasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t nrh](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.unmap_mapping_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hbool even_cowsh](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h even_cowsh]h even_cows}(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)}(hUnmap pages from processes.h]hUnmap pages from processes.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj2hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjMjHjMjIjJjKuh1hhhhj hNhNubj)}(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)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjQubj)}(hhh](j)}(hU``struct address_space *mapping`` The address space containing pages to be unmapped. h](j)}(h!``struct address_space *mapping``h]jS)}(hjvh]hstruct address_space *mapping}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjpubj)}(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&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubj)}(h6``pgoff_t start`` Index of first page to be unmapped. h](j)}(h``pgoff_t start``h]jS)}(hjh]h pgoff_t start}(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#Index of first page to be unmapped.h]h#Index of first page to be unmapped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubj)}(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)}(hjh]h pgoff_t nr}(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;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&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubj)}(h>``bool even_cows`` Whether to unmap even private COWed pages. h](j)}(h``bool even_cows``h]jS)}(hj!h]hbool even_cows}(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)}(h*Whether to unmap even private COWed pages.h]h*Whether to unmap even private COWed pages.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hM hj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hM hjmubeh}(h]h ]h"]h$]h&]uh1jhjQubjM)}(h**Description**h]j)}(hj\h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM"hjQubjM)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM!hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h unmap_mapping_range (C function)c.unmap_mapping_rangehNtauh1hhj hhhNhNubh)}(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}(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)}(hunmap_mapping_rangeh]j)}(hunmap_mapping_rangeh]hunmap_mapping_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM;ubj )}(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}(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.unmap_mapping_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj*hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t const holebeginh](h)}(hhh]j)}(hloff_th]hloff_t}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jc.unmap_mapping_rangeasbuh1hhjLubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h holebeginh]h holebegin}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t const holelenh](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)}(hholelenh]hholelen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int even_cowsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h even_cowsh]h even_cows}(hj2hhhNhNubah}(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)}(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.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM;hjYhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM;ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjtjHjtjIjJjKuh1hhhhj hNhNubj)}(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)}(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?hjxubj)}(hhh](j)}(hU``struct address_space *mapping`` the address space containing mmaps 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 mmaps to be unmapped.h]h2the address space containing mmaps to be unmapped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjubj)}(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)}(hjh]hloff_t const holebegin}(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.chMDhjubj)}(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.Mh]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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubj)}(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.chMGhj ubj)}(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.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMEhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMGhjubj)}(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)}(hjJh]h int even_cows}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMHhjDubj)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hMHhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMHhjubeh}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h follow_pfnmap_start (C function)c.follow_pfnmap_starthNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfollow_pfnmap_starth]j)}(hfollow_pfnmap_starth]hfollow_pfnmap_start}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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)}jljsbc.follow_pfnmap_startasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj,hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hargsh]hargs}(hj9hhhNhNubah}(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/Look up a pfn mapping at a user virtual addressh]h/Look up a pfn mapping at a user virtual address}(hjchhhNhNubah}(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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj{jHj{jIjJjKuh1hhhhj hNhNubj)}(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)}(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.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)}(hjh]hstruct follow_pfnmap_args *args}(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(Pointer to struct **follow_pfnmap_args**h](hPointer to struct }(hjhhhNhNubj)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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&]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 }(hj!hhhNhNubj)}(h**args**h]hargs}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh[ will be valid as proper locks will be held. After the end() is called, all the fields in }(hj!hhhNhNubj)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh 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.}(hj!hhhNhNubeh}(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.}(hjThhhNhNubah}(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.}(hjchhhNhNubah}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(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.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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfollow_pfnmap_end (C function)c.follow_pfnmap_endhNtauh1hhj hhhNhNubh)}(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}(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)}(hfollow_pfnmap_endh]j)}(hfollow_pfnmap_endh]hfollow_pfnmap_end}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM:ubj )}(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}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj%modnameN classnameNjpjs)}jv]jy)}jljsbc.follow_pfnmap_endasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjQhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hargsh]hargs}(hj^hhhNhNubah}(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#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.chM:hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM:ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(hM``struct follow_pfnmap_args *args`` Pointer to struct **follow_pfnmap_args** h](j)}(h#``struct follow_pfnmap_args *args``h]jS)}(hjh]hstruct follow_pfnmap_args *args}(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(Pointer to struct **follow_pfnmap_args**h](hPointer to struct }(hjhhhNhNubj)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM=hjubjM)}(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.}(hj(hhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h generic_access_phys (C function)c.generic_access_physhNtauh1hhj hhhNhNubh)}(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}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMKubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjehMKubh)}(hgeneric_access_physh]j)}(hgeneric_access_physh]hgeneric_access_phys}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1hhjShhhjehMKubj )}(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 }(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)}jljzsbc.generic_access_physasbuh1hhjubj)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h void *bufh](j)}(hvoidh]hvoid}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjF )}(hjI h]h*}(hjshhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjSubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(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 )}(h int writeh](j)}(hinth]hint}(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 hjShhhjehMKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjOhhhjehMKubah}(h]jJah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjehMKhjLhhubj4)}(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.chMKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjLhhhjehMKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj,jHj,jIjJjKuh1hhhhj hNhNubj)}(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)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMOhj0ubj)}(hhh](j)}(h1``struct vm_area_struct *vma`` the vma to access h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjUh]hstruct vm_area_struct *vma}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMLhjOubj)}(hhh]jM)}(hthe vma to accessh]hthe vma to access}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjhMLhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMLhjLubj)}(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.chMMhjubj)}(hhh]jM)}(h5userspace address, not relative offset within **vma**h](h.userspace address, not relative offset within }(hjhhhNhNubj)}(h**vma**h]hvma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjLubj)}(h#``void *buf`` buffer to read/write h](j)}(h ``void *buf``h]jS)}(hjh]h void *buf}(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.chMNhjubj)}(hhh]jM)}(hbuffer to read/writeh]hbuffer to read/write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjLubj)}(h``int len`` length of transfer h](j)}(h ``int len``h]jS)}(hjh]hint len}(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.chMOhjubj)}(hhh]jM)}(hlength of transferh]hlength of transfer}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#hMOhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMOhjLubj)}(h@``int write`` set to FOLL_WRITE when writing, otherwise reading h](j)}(h ``int write``h]jS)}(hjGh]h int write}(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.chMPhjAubj)}(hhh]jM)}(h1set to FOLL_WRITE when writing, otherwise readingh]h1set to FOLL_WRITE when writing, otherwise reading}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\hMPhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMPhjLubeh}(h]h ]h"]h$]h&]uh1jhj0ubjM)}(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.chMRhj0ubjM)}(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)}(hjh]hvm_operations_struct.access}(hjhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNvm_operations_structuh1hhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMQhjubhM for an iomem mapping. This callback is used by access_process_vm() when the }(hjhhhNhNubj)}(h**vma**h]hvma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not page based.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhMQhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcopy_remote_vm_str (C function)c.copy_remote_vm_strhNtauh1hhj hhhNhNubh)}(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&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMVubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMVubh)}(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&]jjuh1hhjhhhj hMVubj )}(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}(hj9hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j)}(h task_structh]h task_struct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYmodnameN classnameNjpjs)}jv]jy)}jljsbc.copy_remote_vm_strasbuh1hhj5ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5ubj)}(htskh]htsk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(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 hj1ubj )}(h void *bufh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(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)}(hbufh]hbuf}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hint lenh](j)}(hinth]hint}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hlenh]hlen}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hunsigned int gup_flagsh](j)}(hunsignedh]hunsigned}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h gup_flagsh]h gup_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj hMVubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj hMVubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hMVhjhhubj4)}(hhh]jM)}(h3copy a string from another process's address space.h]h5copy a string from another process’s address space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMVhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hMVubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMZhjubj)}(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.chMWhjubj)}(hhh]jM)}(h$the task of the target address spaceh]h$the task of the target address space}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+hMWhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMWhj ubj)}(h2``unsigned long addr`` start address to read from h](j)}(h``unsigned long addr``h]jS)}(hjOh]hunsigned long addr}(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.chMXhjIubj)}(hhh]jM)}(hstart address to read fromh]hstart address to read from}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjdhMXhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMXhj ubj)}(h!``void *buf`` destination buffer h](j)}(h ``void *buf``h]jS)}(hjh]h void *buf}(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.chMYhjubj)}(hhh]jM)}(hdestination bufferh]hdestination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhj ubj)}(h$``int len`` number of bytes to copy 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.chMZhjubj)}(hhh]jM)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhj ubj)}(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&]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 flags modifying lookup behaviourh]h flags modifying lookup behaviour}(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)}(hj5h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM]hjubjM)}(h+The caller must hold a reference on **mm**.h](h$The caller must hold a reference on }(hjKhhhNhNubj)}(h**mm**h]hmm}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh.}(hjKhhhNhNubeh}(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)}(hjnh]hReturn}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM^hjubjM)}(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 }(hjhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (source) to }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (destination); not including the trailing NUL. Always guaranteed to leave NUL-terminated buffer. On any error, return -EFAULT.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&__get_pfnblock_flags_mask (C function)c.__get_pfnblock_flags_maskhNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMpubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMpubh)}(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&]jjuh1hhjhhhjhMpubj )}(h@(const struct page *page, unsigned long pfn, unsigned long mask)h](j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj,ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj5)}(hj8h]hstruct}(hjKhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj,ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubh)}(hhh]j)}(hpageh]hpage}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjkmodnameN classnameNjpjs)}jv]jy)}jljsbc.__get_pfnblock_flags_maskasbuh1hhj,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 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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(ubj )}(hunsigned long maskh](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 }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hmaskh]hmask}(hjFhhhNhNubah}(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)}(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}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMphjmhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMpubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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.chMthjubj)}(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.chMrhjubj)}(hhh]jM)}(h%The page within the block of interesth]h%The page within the block of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubj)}(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.chMshjubj)}(hhh]jM)}(hThe target page frame numberh]hThe target page frame number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubj)}(hE``unsigned long mask`` mask of bits that the caller is interested in 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMthjubj)}(hhh]jM)}(h-mask of bits that the caller is interested inh]h-mask of bits that the caller is interested in}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hMthj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMthjubeh}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMvhjubjM)}(hpageblock_bits flagsh]hpageblock_bits flags}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMvhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_pfnblock_bit (C function)c.get_pfnblock_bithNtauh1hhj hhhNhNubh)}(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}(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)}(hget_pfnblock_bith]j)}(hget_pfnblock_bith]hget_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.get_pfnblock_bitasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjFhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum pageblock_bits pb_bith](j5)}(henumh]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]j4c.get_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'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h/Check if a standalone bit of a pageblock is seth]h/Check if a standalone bit of a pageblock is set}(hj2hhhNhNubah}(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&]jFjAjGjJjHjJjIjJjKuh1hhhhj hNhNubj)}(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)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubj)}(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)}(h6``enum pageblock_bits pb_bit`` pageblock bit to check h](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 checkh]hpageblock bit to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubjM)}(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.chMhjNubjM)}(h'true if the bit is set, otherwise falseh]h'true if the bit is set, otherwise false}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%get_pfnblock_migratetype (C function)c.get_pfnblock_migratetypehNtauh1hhj hhhNhNubh)}(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)}(hjh]henum}(hjehhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjahhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjrhMubh)}(hhh]j)}(h migratetypeh]h migratetype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlget_pfnblock_migratetypesbc.get_pfnblock_migratetypeasbuh1hhjahhhjrhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjrhMubh)}(hget_pfnblock_migratetypeh]j)}(hjh]hget_pfnblock_migratetype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjahhhjrhMubj )}(h,(const struct page *page, unsigned long pfn)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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jc.get_pfnblock_migratetypeasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj7hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hlongh]hlong}(hjyhhhNhNubah}(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 hjubeh}(h]h ]h"]h$]h&]jjuh1j hjahhhjrhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj]hhhjrhMubah}(h]jXah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjrhMhjZhhubj4)}(hhh]jM)}(h%Return the migratetype of a pageblockh]h%Return 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&]uh1j3hjZhhhjrhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(hj9h]hunsigned long pfn}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj3ubj)}(hhh]jM)}(hThe target page frame numberh]hThe target page frame number}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhMhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjth]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(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.chMhjubjM)}(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)}(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 }(hjhhhNhNubj)}(h**page**h]hpage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh! to save a call to page_to_pfn().}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&__set_pfnblock_flags_mask (C function)c.__set_pfnblock_flags_maskhNtauh1hhj hhhNhNubh)}(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}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(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}(hjAhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj=ubj)}(h h]h }(hjNhhhNhNubah}(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 reftargetjamodnameN classnameNjpjs)}jv]jy)}jlj'sbc.__set_pfnblock_flags_maskasbuh1hhj=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 hj9ubj )}(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 hj9ubj )}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj9ubj )}(hunsigned long maskh](j)}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hlongh]hlong}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj9ubeh}(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)}(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}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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<``struct page *page`` The page within the block of interest 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.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&]uh1jLhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]jS)}(hj1h]hunsigned long pfn}(hj3hhhNhNubah}(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}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjubj)}(h)``unsigned long flags`` The flags to set h](j)}(h``unsigned long flags``h]jS)}(hjjh]hunsigned long flags}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjhubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjdubj)}(hhh]jM)}(hThe flags to seth]hThe flags to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hD``unsigned long mask`` mask of bits that the caller is interested inh](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&]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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hset_pfnblock_bit (C function)c.set_pfnblock_bithNtauh1hhj hhhNhNubh)}(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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubh)}(hset_pfnblock_bith]j)}(hset_pfnblock_bith]hset_pfnblock_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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&]uh1j4hj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj5)}(hj8h]hstruct}(hjUhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj6ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j)}(hpageh]hpage}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjumodnameN classnameNjpjs)}jv]jy)}jlj sbc.set_pfnblock_bitasbuh1hhj6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj6ubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2ubj )}(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 hj2ubj )}(henum pageblock_bits pb_bith](j5)}(hjh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageblock_bitsh]hpageblock_bits}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj8modnameN classnameNjpjs)}jv]jc.set_pfnblock_bitasbuh1hhjubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpb_bith]hpb_bit}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2ubeh}(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#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&]uh1j3hjhhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(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&]uh1jhjhMhjubj)}(h3``enum pageblock_bits pb_bit`` pageblock bit to seth](j)}(h``enum pageblock_bits pb_bit``h]jS)}(hj?h]henum pageblock_bits pb_bit}(hjAhhhNhNubah}(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.chMhj9ubj)}(hhh]jM)}(hpageblock bit to seth]hpageblock bit to set}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_pfnblock_bit (C function)c.clear_pfnblock_bithNtauh1hhj hhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hclear_pfnblock_bith]j)}(hclear_pfnblock_bith]hclear_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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.clear_pfnblock_bitasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(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 )}(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}(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 hjubj )}(henum pageblock_bits pb_bith](j5)}(hjh]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]j+c.clear_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'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h%Clear a standalone bit of a pageblockh]h%Clear a standalone bit of a pageblock}(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&]jFjAjGj@jHj@jIjJjKuh1hhhhj hNhNubj)}(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)}(hjJh]h Parameters}(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.chMhjDubj)}(hhh](j)}(hB``const struct page *page`` The page within the block of interest h](j)}(h``const struct page *page``h]jS)}(hjih]hconst struct page *page}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjcubj)}(hhh]jM)}(h%The page within the block of interesth]h%The page within the block of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj`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`ubj)}(h5``enum pageblock_bits pb_bit`` pageblock bit to clearh](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 clearh]hpageblock bit to clear}(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&]uh1jhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&set_pageblock_migratetype (C function)c.set_pageblock_migratetypehNtauh1hhj hhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjChMubh)}(hset_pageblock_migratetypeh]j)}(hset_pageblock_migratetypeh]hset_pageblock_migratetype}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1hhj1hhhjChMubj )}(h1(struct page *page, enum migratetype migratetype)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjrhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljXsbc.set_pageblock_migratetypeasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjnubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjjubj )}(henum migratetype migratetypeh](j5)}(hjh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h migratetypeh]h migratetype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.set_pageblock_migratetypeasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h migratetypeh]h migratetype}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjjubeh}(h]h ]h"]h$]h&]jjuh1j hj1hhhjChMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj-hhhjChMubah}(h]j(ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjChMhj*hhubj4)}(hhh]jM)}(h"Set the migratetype of a pageblockh]h"Set the migratetype of a pageblock}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjUhhubah}(h]h ]h"]h$]h&]uh1j3hj*hhhjChMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjpjHjpjIjJjKuh1hhhhj hNhNubj)}(h**Parameters** ``struct page *page`` The page within the block of interest ``enum migratetype migratetype`` migratetype to seth](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:100: ./mm/page_alloc.chMhjtubj)}(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}(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``enum migratetype migratetype`` migratetype to seth](j)}(h ``enum migratetype migratetype``h]jS)}(hjh]henum migratetype migratetype}(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)}(hmigratetype to seth]hmigratetype 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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+__move_freepages_block_isolate (C function) c.__move_freepages_block_isolatehNtauh1hhj hhhNhNubh)}(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}(hj,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 }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj9hM ubh)}(h__move_freepages_block_isolateh]j)}(h__move_freepages_block_isolateh]h__move_freepages_block_isolate}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1hhj(hhhj9hM ubj )}(h4(struct zone *zone, struct page *page, bool isolate)h](j )}(hstruct zone *zoneh](j5)}(hj8h]hstruct}(hjhhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j)}(hzoneh]hzone}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljNsb c.__move_freepages_block_isolateasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjdubj)}(hzoneh]hzone}(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]j c.__move_freepages_block_isolateasbuh1hhjubj)}(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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubj )}(h bool isolateh](j)}(hj)h]hbool}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hisolateh]hisolate}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubeh}(h]h ]h"]h$]h&]jjuh1j hj(hhhj9hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj$hhhj9hM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj9hM hj!hhubj4)}(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&]uh1j3hj!hhhj9hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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 zone *zone`` the zone h](j)}(h``struct zone *zone``h]jS)}(hjh]hstruct zone *zone}(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 zoneh]hthe zone}(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 pageblock page 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)}(hthe pageblock pageh]hthe pageblock page}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjubj)}(h@``bool isolate`` to isolate the given pageblock or unisolate it h](j)}(h``bool isolate``h]jS)}(hjBh]h bool isolate}(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.chM#hj<ubj)}(hhh]jM)}(h.to isolate the given pageblock or unisolate ith]h.to isolate the given pageblock or unisolate it}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWhM#hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM#hjubeh}(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:100: ./mm/page_alloc.chM%hjubjM)}(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$hjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM(hjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM,hjubjM)}(h>Returns ``true`` if pages could be moved, ``false`` otherwise.h](hReturns }(hjhhhNhNubjS)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if pages could be moved, }(hjhhhNhNubjS)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh otherwise.}(hjhhhNhNubeh}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$__putback_isolated_page (C function)c.__putback_isolated_pagehNtauh1hhj hhhNhNubh)}(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.chMT ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hMT ubh)}(h__putback_isolated_pageh]j)}(h__putback_isolated_pageh]h__putback_isolated_page}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj!hMT ubj )}(h/(struct page *page, unsigned int order, int mt)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjPhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]j)}(hpageh]hpage}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjpmodnameN classnameNjpjs)}jv]jy)}jlj6sbc.__putback_isolated_pageasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjLubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubj )}(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 hjHubj )}(hint mth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmth]hmt}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj!hMT ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj!hMT ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj!hMT 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}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMT hjVhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj!hMT ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjqjHjqjIjJjKuh1hhhhj hNhNubj)}(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)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMX hjuubj)}(hhh](j)}(h-``struct page *page`` Page that was isolated 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.chMU hjubj)}(hhh]jM)}(hPage that was isolatedh]hPage that was isolated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMU hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMU hjubj)}(h2``unsigned int order`` Order of the isolated page 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.chMV hjubj)}(hhh]jM)}(hOrder of the isolated pageh]hOrder of the isolated page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMV hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMV hjubj)}(h.``int mt`` The page's pageblock's migratetype h](j)}(h ``int mt``h]jS)}(hj h]hint mt}(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.chMW hjubj)}(hhh]jM)}(h"The page's pageblock's migratetypeh]h&The page’s pageblock’s migratetype}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj!hMW hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMW hjubeh}(h]h ]h"]h$]h&]uh1jhjuubjM)}(h**Description**h]j)}(hjGh]h Description}(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.chMY hjuubjM)}(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.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMX hjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__free_pages (C function)c.__free_pageshNtauh1hhj hhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h __free_pagesh]j)}(h __free_pagesh]h __free_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h'(struct page *page, unsigned int order)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.__free_pagesasbuh1hhjubj)}(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 int orderh](j)}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hinth]hint}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(horderh]horder}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(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(Free pages allocated with alloc_pages().h]h(Free pages allocated with alloc_pages().}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(hD``struct page *page`` The page pointer returned from alloc_pages(). 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.chMhjubj)}(hhh]jM)}(h-The page pointer returned from alloc_pages().h]h-The page pointer returned from alloc_pages().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.}(hj0hhhNhNubah}(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)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(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 }(hjhhhhNhNubj)}(h **order**h]horder}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh 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.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h **Context**h]j)}(hjh]hContext}(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~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.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfree_pages (C function) c.free_pageshNtauh1hhj hhhNhNubh)}(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}(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 free_pagesh]j)}(h free_pagesh]h free_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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 }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(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-Free pages allocated with __get_free_pages().h]h-Free pages allocated with __get_free_pages().}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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 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.chMhj ubj)}(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().}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubj)}(h4``unsigned int order`` The order of the allocation. h](j)}(h``unsigned int order``h]jS)}(hjIh]hunsigned int order}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjCubj)}(hhh]jM)}(hThe order of the allocation.h]hThe order of the allocation.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhjubeh}(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)}(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.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_pages_exact (C function)c.alloc_pages_exacthNtauh1hhj hhhNhNubh)}(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}(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_exacth]j)}(halloc_pages_exacth]halloc_pages_exact}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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 }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjDhhhNhNubah}(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 reftargetjbmodnameN classnameNjpjs)}jv]j2c.alloc_pages_exactasbuh1hhjYubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hgfp_maskh]hgfp_mask}(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)}(h5allocate an exact number physically-contiguous pages.h]h5allocate an exact number physically-contiguous pages.}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(h0``size_t size`` the number of bytes to allocate 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:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hthe number of bytes to allocateh]hthe number of bytes to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hj0h]hgfp_t gfp_mask}(hj2hhhNhNubah}(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}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjubeh}(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:100: ./mm/page_alloc.chMhjubjM)}(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.chMhjubjM)}(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.chMhjubjM)}(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().}(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.chM hjubjM)}(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.chM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"alloc_pages_exact_nid (C function)c.alloc_pages_exact_nidhNtauh1hhj hhhNhNubh)}(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.chM1ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM1ubjF )}(hjI h]h*}(hj$hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM1ubh)}(halloc_pages_exact_nidh]j)}(halloc_pages_exact_nidh]halloc_pages_exact_nid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM1ubj )}(h&(int nid, size_t size, gfp_t gfp_mask)h](j )}(hint nidh](j)}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hnidh]hnid}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubj )}(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)}jlj7sbc.alloc_pages_exact_nidasbuh1hhjubj)}(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 hjIubj )}(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_exact_nidasbuh1hhjubj)}(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 hjIubeh}(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)}(hBallocate an exact number of physically-contiguous pages on a node.h]hBallocate an exact number of physically-contiguous pages on a node.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM1hj&hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM1ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjAjHjAjIjJjKuh1hhhhj hNhNubj)}(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)}(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:100: ./mm/page_alloc.chM5hjEubj)}(hhh](j)}(hC``int nid`` the preferred node ID where memory should be allocated h](j)}(h ``int nid``h]jS)}(hjjh]hint nid}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjhubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM3hjdubj)}(hhh]jM)}(h6the preferred node ID where memory should be allocatedh]h6the preferred node ID where memory should be allocated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjaubj)}(h0``size_t size`` the number of bytes to allocate 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:100: ./mm/page_alloc.chM4hjubj)}(hhh]jM)}(hthe number of bytes to allocateh]hthe number of bytes to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjaubj)}(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.chM5hjubj)}(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&]uh1jLhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjaubeh}(h]h ]h"]h$]h&]uh1jhjEubjM)}(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.chM7hjEubjM)}(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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM6hjEubjM)}(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.chM9hjEubjM)}(h;pointer to the allocated area or ``NULL`` in case of error.h](h!pointer to the allocated area or }(hjThhhNhNubjS)}(h``NULL``h]hNULL}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjTubh in case of error.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM:hjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfree_pages_exact (C function)c.free_pages_exacthNtauh1hhj hhhNhNubh)}(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.chMKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMKubh)}(hfree_pages_exacth]j)}(hfree_pages_exacth]hfree_pages_exact}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMKubj )}(h(void *virt, size_t size)h](j )}(h void *virth](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)}(hvirth]hvirt}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.free_pages_exactasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMKhjhhubj4)}(hhh]jM)}(h0release memory allocated via alloc_pages_exact()h]h0release memory allocated via alloc_pages_exact()}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMKhjlhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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.chMOhjubj)}(hhh](j)}(h8``void *virt`` the value returned by alloc_pages_exact. h](j)}(h``void *virt``h]jS)}(hjh]h void *virt}(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.chMLhjubj)}(hhh]jM)}(h(the value returned by alloc_pages_exact.h]h(the value returned by alloc_pages_exact.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjubj)}(hQ``size_t size`` size of allocation, same value as passed to alloc_pages_exact(). 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:100: ./mm/page_alloc.chMMhjubj)}(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&]uh1jLhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubeh}(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.chMOhjubjM)}(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.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMNhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hnr_free_zone_pages (C function)c.nr_free_zone_pageshNtauh1hhj hhhNhNubh)}(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}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM^ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjwhM^ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjwhM^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjwhM^ubh)}(hnr_free_zone_pagesh]j)}(hnr_free_zone_pagesh]hnr_free_zone_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjehhhjwhM^ubj )}(h (int offset)h]j )}(h int offseth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjehhhjwhM^ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjahhhjwhM^ubah}(h]j\ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjwhM^hj^hhubj4)}(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.chM^hjhhubah}(h]h ]h"]h$]h&]uh1j3hj^hhhjwhM^ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMbhj$ubj)}(hhh]j)}(h2``int offset`` The zone index of the highest zone h](j)}(h``int offset``h]jS)}(hjIh]h int offset}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM_hjCubj)}(hhh]jM)}(h"The zone index of the highest zoneh]h"The zone index of the highest zone}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hM_hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMahj$ubjM)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM`hj$ubji)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMdhjubah}(h]h ]h"]h$]h&]uh1jhhjhMdhj$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.chMfhj$ubjM)}(h&number of pages beyond high watermark.h]h&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.chMghj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!nr_free_buffer_pages (C function)c.nr_free_buffer_pageshNtauh1hhj hhhNhNubh)}(hhh](h)}(h)unsigned long nr_free_buffer_pages (void)h]h)}(h(unsigned long nr_free_buffer_pages(void)h](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(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~ubj)}(hlongh]hlong}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM~ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM~ubh)}(hnr_free_buffer_pagesh]j)}(hnr_free_buffer_pagesh]hnr_free_buffer_pages}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM~ubj )}(h(void)h]j )}(hvoidh]j)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]noemphjjuh1j hjZubah}(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+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.chM~hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM~ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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``void`` no arguments h](j)}(h``void``h]jS)}(hjh]hvoid}(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.chKhjubj)}(hhh]jM)}(h no argumentsh]h no arguments}(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)}(hjh]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.chKhjubjM)}(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.chMhjubjM)}(h **Return**h]j)}(hj/h]hReturn}(hj1hhhNhNubah}(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)}(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.}(hjEhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h find_next_best_node (C function)c.find_next_best_nodehNtauh1hhj hhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubh)}(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&]jjuh1hhjphhhjhMubj )}(h&(int node, nodemask_t *used_node_mask)h](j )}(hint nodeh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hnodemask_t *used_node_maskh](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]jy)}jljsbc.find_next_best_nodeasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hused_node_maskh]hused_node_mask}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjphhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjlhhhjhMubah}(h]jgah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjihhubj4)}(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}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjKhhubah}(h]h ]h"]h$]h&]uh1j3hjihhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjfjHjfjIjJjKuh1hhhhj hNhNubj)}(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)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjjubj)}(hhh](j)}(h6``int node`` node whose fallback list we're appending h](j)}(h ``int node``h]jS)}(hjh]hint node}(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(node whose fallback list we're appendingh]h*node whose fallback list we’re appending}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h@``nodemask_t *used_node_mask`` nodemask_t of already used nodes h](j)}(h``nodemask_t *used_node_mask``h]jS)}(hjh]hnodemask_t *used_node_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 nodemask_t of already used nodesh]h nodemask_t of already used 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&]uh1jhjjubjM)}(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.chMhjjubjM)}(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 }(hjhhhNhNubj)}(h**node**h]hnode}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX.’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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjjubjM)}(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.chMhjjubjM)}(hBnode id of the found node or ``NUMA_NO_NODE`` if no node is found.h](hnode id of the found node or }(hjRhhhNhNubjS)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjRubh if no node is found.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"setup_per_zone_wmarks (C function)c.setup_per_zone_wmarkshNtauh1hhj hhhNhNubh)}(hhh](h)}(h!void setup_per_zone_wmarks (void)h]h)}(h void setup_per_zone_wmarks(void)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)}(hsetup_per_zone_wmarksh]j)}(hsetup_per_zone_wmarksh]hsetup_per_zone_wmarks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM%ubj )}(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 hjhhhjhM%ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM%ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM%hjhhubj4)}(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}}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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``void`` no arguments h](j)}(h``void``h]jS)}(hj;h]hvoid}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chKhj5ubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhKhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKhj2ubah}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chKhjubjM)}(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.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&alloc_contig_frozen_range (C function)c.alloc_contig_frozen_rangehNtauh1hhj hhhNhNubh)}(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}(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)}(halloc_contig_frozen_rangeh]j)}(halloc_contig_frozen_rangeh]halloc_contig_frozen_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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 }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hlongh]hlong}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(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_frozen_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_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 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.L)}(hhh]j+)}(h-tries to allocate given range of frozen pagesh]jM)}(hjBh]h-tries to allocate given range of frozen pages}(hjDhhhNhNubah}(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&]uh1j+hj=hhhjQhNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjQhMhj:hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjgjHjgjIjJjKuh1hhhhj hNhNubj)}(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)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjkubj)}(hhh](j)}(h.``unsigned long start`` start PFN to allocate h](j)}(h``unsigned long start``h]jS)}(hjh]hunsigned long start}(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 allocateh]hstart PFN to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhjhMhjubj)}(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)}(hj;h]hgfp_t gfp_mask}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj5ubj)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjubeh}(h]h ]h"]h$]h&]uh1jhjkubjM)}(h**Description**h]j)}(hjwh]h Description}(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.chMhjkubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjkubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjkubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjkubjM)}(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.chMhjkubjM)}(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.chMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_contig_range (C function)c.alloc_contig_rangehNtauh1hhj hhhNhNubh)}(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}(hj hhhNhNubah}(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)}(halloc_contig_rangeh]j)}(halloc_contig_rangeh]halloc_contig_range}(hj" hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj 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 }(hjL hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj: ubj)}(hlongh]hlong}(hjZ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj: ubj)}(h h]h }(hjh hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj: ubj)}(hstarth]hstart}(hjv hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj: ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6 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 }(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 hj6 ubj )}(hacr_flags_t alloc_flagsh](h)}(hhh]j)}(h acr_flags_th]h acr_flags_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jlj$ sbc.alloc_contig_rangeasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h alloc_flagsh]h alloc_flags}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6 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]j c.alloc_contig_rangeasbuh1hhj& ubj)}(h h]h }(hjK hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj& ubj)}(hgfp_maskh]hgfp_mask}(hjY hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj& ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6 ubeh}(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]j.L)}(hhh]j+)}(h&tries to allocate given range of pagesh]jM)}(hj h]h&tries to allocate given range 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 ubah}(h]h ]h"]h$]h&]uh1j+hj hhhj hNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-Lhj hMhj hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhj hNhNubj)}(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.chMhj ubj)}(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&]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)}(hstart PFN to allocateh]hstart PFN to allocate}(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)}(h8``unsigned long end`` one-past-the-last PFN to allocate h](j)}(h``unsigned long end``h]jS)}(hj h]hunsigned long end}(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!one-past-the-last PFN to allocateh]h!one-past-the-last PFN to allocate}(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)}(h3``acr_flags_t alloc_flags`` allocation information h](j)}(h``acr_flags_t alloc_flags``h]jS)}(hjH h]hacr_flags_t alloc_flags}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjF ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjB ubj)}(hhh]jM)}(hallocation informationh]hallocation information}(hja 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``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.chMhj{ ubj)}(hhh]jM)}(h GFP mask.h]h GFP mask.}(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&]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_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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj ubjM)}(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.}(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)}(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)}(h'zero on success or negative error code.h]h'zero on success or negative error code.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&alloc_contig_frozen_pages (C function)c.alloc_contig_frozen_pageshNtauh1hhj hhhNhNubh)}(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}(hj7 hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj3 hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjE hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3 hhhjD hMubh)}(hhh]j)}(hpageh]hpage}(hjV hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjX modnameN classnameNjpjs)}jv]jy)}jlalloc_contig_frozen_pagessbc.alloc_contig_frozen_pagesasbuh1hhj3 hhhjD hMubj)}(h h]h }(hjw hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3 hhhjD hMubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj3 hhhjD hMubh)}(halloc_contig_frozen_pagesh]j)}(hjt h]halloc_contig_frozen_pages}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj3 hhhjD hMubj )}(hG(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h](j )}(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 )}(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]jr c.alloc_contig_frozen_pagesasbuh1hhj ubj)}(h h]h }(hj# hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hgfp_maskh]hgfp_mask}(hj1 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hint nidh](j)}(hinth]hint}(hjJ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF ubj)}(h h]h }(hjX hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF ubj)}(hnidh]hnid}(hjf hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(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]jr c.alloc_contig_frozen_pagesasbuh1hhj{ 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)}(hnodemaskh]hnodemask}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubeh}(h]h ]h"]h$]h&]jjuh1j hj3 hhhjD hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj/ hhhjD hMubah}(h]j* ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjD hMhj, hhubj4)}(hhh]j.L)}(hhh]j+)}(h;tries to find and allocate contiguous range of frozen pagesh]jM)}(hj h]h;tries to find and allocate contiguous range of frozen pages}(hj hhhNhNubah}(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&]uh1j+hj hhhj hNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-Lhj hMhj hhubah}(h]h ]h"]h$]h&]uh1j3hj, hhhjD hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hj8h]hunsigned long nr_pages}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj2ubj)}(hhh]jM)}(h&Number of contiguous pages to allocateh]h&Number of contiguous pages to allocate}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj/ubj)}(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)}(hjqh]hgfp_t gfp_mask}(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)}(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.}(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&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhj/ubj)}(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&]uh1jhjhMhj/ubj)}(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&]uh1jhjhMhj/ubeh}(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&]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.}(hj5hhhNhNubah}(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).}(hjDhhhNhNubah}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjubjM)}(h **Return**h]j)}(hjdh]hReturn}(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.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.}(hjzhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_contig_pages (C function)c.alloc_contig_pageshNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMKubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlalloc_contig_pagessbc.alloc_contig_pagesasbuh1hhjhhhjhMKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMKubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMKubh)}(halloc_contig_pagesh]j)}(hjh]halloc_contig_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMKubj )}(hG(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h](j )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(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}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjymodnameN classnameNjpjs)}jv]jc.alloc_contig_pagesasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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 )}(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*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnodemaskh]hnodemask}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMKhjhhubj4)}(hhh]j.L)}(hhh]j+)}(h4tries to find and allocate contiguous range of pagesh]jM)}(hj\h]h4tries to find and allocate contiguous range of pages}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMKhjZubah}(h]h ]h"]h$]h&]uh1j+hjWhhhjkhNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjkhMKhjThhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMOhjubj)}(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.chMLhjubj)}(hhh]jM)}(h&Number of contiguous pages to allocateh]h&Number of contiguous pages to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjubj)}(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.chMMhjubj)}(hhh]jM)}(h GFP mask.h]h GFP mask.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubj)}(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.chMNhjubj)}(hhh]jM)}(h Target nodeh]h Target node}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hMNhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMNhjubj)}(h7``nodemask_t *nodemask`` Mask for other possible nodes h](j)}(h``nodemask_t *nodemask``h]jS)}(hjUh]hnodemask_t *nodemask}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMOhjOubj)}(hhh]jM)}(hMask for other possible nodesh]hMask for other possible nodes}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjhMOhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMOhjubeh}(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.chMQhjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMPhjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMThjubjM)}(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.chMWhjubjM)}(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.chMXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%free_contig_frozen_range (C function)c.free_contig_frozen_rangehNtauh1hhj hhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMlubh)}(hfree_contig_frozen_rangeh]j)}(hfree_contig_frozen_rangeh]hfree_contig_frozen_range}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMlubj )}(h+(unsigned long pfn, unsigned long nr_pages)h](j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hlongh]hlong}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(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 hj@ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMlubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMlubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMlhjhhubj4)}(hhh]j.L)}(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.chMlhjubah}(h]h ]h"]h$]h&]uh1j+hjhhhjhNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjhMlhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMlubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj%jHj%jIjJjKuh1hhhhj hNhNubj)}(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)}(hj/h]h Parameters}(hj1hhhNhNubah}(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.chMphj)ubj)}(hhh](j)}(h(``unsigned long pfn`` start PFN to free h](j)}(h``unsigned long pfn``h]jS)}(hjNh]hunsigned long pfn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMmhjHubj)}(hhh]jM)}(hstart PFN to freeh]hstart PFN to free}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjchMmhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMmhjEubj)}(hE``unsigned long nr_pages`` Number of contiguous frozen pages to free 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.chMnhjubj)}(hhh]jM)}(h)Number of contiguous frozen pages to freeh]h)Number of contiguous frozen pages to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjEubeh}(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.chMphj)ubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMohj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfree_contig_range (C function)c.free_contig_rangehNtauh1hhj hhhNhNubh)}(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.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfree_contig_rangeh]j)}(hfree_contig_rangeh]hfree_contig_range}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h+(unsigned long pfn, unsigned long nr_pages)h](j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjRhhhNhNubah}(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)}(hpfnh]hpfn}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj<ubj )}(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 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]j.L)}(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.chMhjubah}(h]h ]h"]h$]h&]uh1j+hjhhhj hNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-Lhj hMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj!jHj!jIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMhj%ubj)}(hhh](j)}(h(``unsigned long pfn`` start PFN to free h](j)}(h``unsigned long pfn``h]jS)}(hjJh]hunsigned long pfn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjDubj)}(hhh]jM)}(hstart PFN to freeh]hstart PFN to free}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubj)}(h>``unsigned long nr_pages`` Number of contiguous pages to free 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.chMhj}ubj)}(hhh]jM)}(h"Number of contiguous pages to freeh]h"Number of contiguous pages to free}(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:100: ./mm/page_alloc.chMhj%ubjM)}(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.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_pages_nolock (C function)c.alloc_pages_nolockhNtauh1hhj hhhNhNubh)}(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.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)}jlalloc_pages_nolocksbc.alloc_pages_nolockasbuh1hhjhhhjhM`ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM`ubjF )}(hjI h]h*}(hjQhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM`ubh)}(halloc_pages_nolockh]j)}(hj@h]halloc_pages_nolock}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM`ubj )}(h.(gfp_t gfp_flags, int nid, unsigned int order)h](j )}(hgfp_t gfp_flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j>c.alloc_pages_nolockasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h gfp_flagsh]h gfp_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubj )}(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 hjuubj )}(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 }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(horderh]horder}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubeh}(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)}(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.chM`hjYhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM`ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjtjHjtjIjJjKuh1hhhhj hNhNubj)}(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 (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}(hjhhhNhNubah}(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.chMdhjxubj)}(hhh](j)}(h;``gfp_t gfp_flags`` GFP flags. Only __GFP_ACCOUNT allowed. h](j)}(h``gfp_t gfp_flags``h]jS)}(hjh]hgfp_t gfp_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.chMahjubj)}(hhh]jM)}(h&GFP flags. Only __GFP_ACCOUNT allowed.h]h&GFP flags. Only __GFP_ACCOUNT allowed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubj)}(h"``int nid`` node to allocate from 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.chMbhjubj)}(hhh]jM)}(hnode to allocate fromh]hnode to allocate from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMbhjubj)}(h-``unsigned int order`` allocation order size h](j)}(h``unsigned int order``h]jS)}(hjh]hunsigned int order}(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.chMchj ubj)}(hhh]jM)}(hallocation order sizeh]hallocation order size}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$hMchj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMchjubeh}(h]h ]h"]h$]h&]uh1jhjxubjM)}(h**Description**h]j)}(hjJh]h Description}(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.chMehjxubjM)}(hXhAllocates pages of a given order from the given node. This is safe to call from any context (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]hXhAllocates pages of a given order from the given node. This is safe to call from any context (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.chMdhjxubjM)}(h **Return**h]j)}(hjqh]hReturn}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMkhjxubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMlhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hnuma_nearest_node (C function)c.numa_nearest_nodehNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hnuma_nearest_nodeh]j)}(hnuma_nearest_nodeh]hnuma_nearest_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(int node, unsigned int state)h](j )}(hint nodeh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int stateh](j)}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hstateh]hstate}(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)}(hFind nearest node by stateh]hFind nearest node by state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjubj)}(hhh](j)}(h)``int node`` Node id to start the search h](j)}(h ``int node``h]jS)}(hjh]hint node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjubj)}(hhh]jM)}(hNode id to start the searchh]hNode id to start the search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``unsigned int state`` State to filter the search h](j)}(h``unsigned int state``h]jS)}(hjh]hunsigned int state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjubj)}(hhh]jM)}(hState to filter the searchh]hState to filter the search}(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}(hjAhhhNhNubah}(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.chMhjubjM)}(h?Lookup the closest node by distance if **nid** is not in state.h](h'Lookup the closest node by distance if }(hjUhhhNhNubj)}(h**nid**h]hnid}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh is not in state.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjubjM)}(h **Return**h]j)}(hjxh]hReturn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjubjM)}(hGthis **node** if it is in state, otherwise the closest node by distanceh](hthis }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh: if it is in state, otherwise the closest node by distance}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"nearest_node_nodemask (C function)c.nearest_node_nodemaskhNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM6ubh)}(hnearest_node_nodemaskh]j)}(hnearest_node_nodemaskh]hnearest_node_nodemask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM6ubj )}(h(int node, nodemask_t *mask)h](j )}(hint nodeh](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hnodemask_t *maskh](h)}(hhh]j)}(h nodemask_th]h nodemask_t}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjFmodnameN classnameNjpjs)}jv]jy)}jljsbc.nearest_node_nodemaskasbuh1hhj=ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjF )}(hjI h]h*}(hjrhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj=ubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM6ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM6ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM6hjhhubj4)}(hhh]jM)}(h@Find the node in **mask** at the nearest distance from **node**.h](hFind the node in }(hjhhhNhNubj)}(h**mask**h]hmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh at the nearest distance from }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM6hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM6ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM:hjubj)}(hhh](j)}(h7``int node`` a valid node ID to start the search from. h](j)}(h ``int node``h]jS)}(hjh]hint node}(hjhhhNhNubah}(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.chM9hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hM9hjubj)}(hM``nodemask_t *mask`` a pointer to a nodemask representing the allowed nodes. h](j)}(h``nodemask_t *mask``h]jS)}(hjGh]hnodemask_t *mask}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM:hjAubj)}(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&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM: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&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM<hjubjM)}(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 }(hjhhhNhNubj)}(h**mask**h]hmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ and calculates the distance from the starting }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5, then it returns the node ID that is the closest to }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh&, or MAX_NUMNODES if no node is found.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM;hjubjM)}(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 }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM?hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_can_map_prot_numa (C function)c.folio_can_map_prot_numahNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM7ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj+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&]jjuh1hhjhhhj+hM7ubj )}(hR(struct folio *folio, struct vm_area_struct *vma, bool is_private_single_threaded)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjZhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j)}(hfolioh]hfolio}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjzmodnameN classnameNjpjs)}jv]jy)}jlj@sbc.folio_can_map_prot_numaasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubj )}(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_can_map_prot_numaasbuh1hhjubj)}(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 hjRubj )}(hbool is_private_single_threadedh](j)}(hj)h]hbool}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(his_private_single_threadedh]his_private_single_threaded}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj+hM7ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj+hM7ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj+hM7hjhhubj4)}(hhh]jM)}(h)check whether the folio can map prot numah]h)check whether the folio can map prot numa}(hjhhhNhNubah}(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&]uh1j3hjhhhj+hM7ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM;hjubj)}(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]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM8hjubj)}(hhh]jM)}(h?The folio whose mapping considered for being made NUMA hintableh]h?The folio whose mapping considered for being made NUMA hintable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubj)}(hB``struct vm_area_struct *vma`` The VMA that the folio belongs 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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM9hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM9hjubj)}(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)}(hj4 h]hbool is_private_single_threaded}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2 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}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjI hM:hjJ ubah}(h]h ]h"]h$]h&]uh1jhj. ubeh}(h]h ]h"]h$]h&]uh1jhjI hM:hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjo h]h Description}(hjq hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM<hjubjM)}(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;hjubjM)}(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@hjubjM)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_pages_mpol (C function)c.alloc_pages_mpolhNtauh1hhj hhhNhNubh)}(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&]uh1jhj6!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}(hjX!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU!ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjZ!modnameN classnameNjpjs)}jv]j!c.alloc_pages_mpolasbuh1hhjQ!ubj)}(h h]h }(hjv!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ!ubj)}(hgfph]hgfp}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjM!ubj )}(hunsigned int orderh](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)}(horderh]horder}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjM!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*}(hj8"hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubj)}(hpolh]hpol}(hjE"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjM!ubj )}(h pgoff_t ilxh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hja"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^"ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjc"modnameN classnameNjpjs)}jv]j!c.alloc_pages_mpolasbuh1hhjZ"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ"ubj)}(hilxh]hilx}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjM!ubj )}(hint nidh](j)}(hinth]hint}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hnidh]hnid}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjM!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+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&]uh1j3hj hhhj hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj#jHj#jIjJjKuh1hhhhj hNhNubj)}(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.}(hjF#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjB#hM hjC#ubah}(h]h ]h"]h$]h&]uh1jhj'#ubeh}(h]h ]h"]h$]h&]uh1jhjB#hM hj$#ubj)}(h5``unsigned int order`` Order of the page allocation. h](j)}(h``unsigned int order``h]jS)}(hjf#h]hunsigned int order}(hjh#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjd#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)}(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)}(hPointer to the NUMA mempolicy.h]hPointer to the NUMA mempolicy.}(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)}(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 hj#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&]uh1jhj#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}(hj2$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.}(hjt$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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvma_alloc_folio (C function)c.vma_alloc_foliohNtauh1hhj hhhNhNubh)}(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}(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)}(hfolioh]hfolio}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj$modnameN classnameNjpjs)}jv]jy)}jlvma_alloc_foliosbc.vma_alloc_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)}(hvma_alloc_folioh]j)}(hj$h]hvma_alloc_folio}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj$hhhj$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}(hjL%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj%ubj )}(h int orderh](j)}(hinth]hint}(hje%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja%ubj)}(h h]h }(hjs%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja%ubj)}(horderh]horder}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja%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}(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 }(hj4&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(haddrh]haddr}(hjB&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 uba!h}(h]j$ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj$hM hj$hhubj4)}(hhh]jM)}(hAllocate a folio for a VMA.h]hAllocate a folio for a VMA.}(hjl&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hji&hhubah}(h]h ]h"]h$]h&]uh1j3hj$hhhj$hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj&jHj&jIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(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 hj&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.}(hj8'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4'hM hj5'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj4'hM hj&ubj)}(hS``unsigned long addr`` Virtual address of the allocation. Must be inside **vma**. h](j)}(h``unsigned long addr``h]jS)}(hjX'h]hunsigned long addr}(hjZ'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjV'ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjR'ubj)}(hhh]jM)}(h;Virtual address of the allocation. Must be inside **vma**.h](h3Virtual address of the allocation. Must be inside }(hjq'hhhNhNubj)}(h**vma**h]hvma}(hjy'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq'ubh.}(hjq'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjm'hM hjn'ubah}(h]h ]h"]h$]h&]uh1jhjR'ubeh}(h]h ]h"]h$]h&]uh1jhjm'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)}(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 }(hj'hhhNhNubj)}(h**vma**h]hvma}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'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.}(hj'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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_pages (C function) c.alloc_pageshNtauh1hhj hhhNhNubh)}(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 }(hj1(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj0(hM ubh)}(hhh]j)}(hpageh]hpage}(hjB(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjD(modnameN classnameNjpjs)}jv]jy)}jl alloc_pagessb c.alloc_pagesasbuh1hhj(hhhj0(hM ubj)}(h h]h }(hjc(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj0(hM ubjF )}(hjI h]h*}(hjq(hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj(hhhj0(hM ubh)}(h alloc_pagesh]j)}(hj`(h]h alloc_pages}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~(ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj(hhhj0(hM ubj )}(h(gfp_t gfp, unsigned int order)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_pagesasbuh1hhj(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}(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)}(horderh]horder}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(ubeh}(h]h ]h"]h$]h&]jjuh1j hj(hhhj0(hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj(hhhj0(hM ubah}(h]j(ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj0(hM hj(hhubj4)}(hhh]jM)}(hAllocate pages.h]hAllocate pages.}(hjG)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjD)hhubah}(h]h ]h"]h$]h&]uh1j3hj(hhhj0(hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj_)jHj_)jIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(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)}(hD``unsigned int order`` Power of two of number of pages to allocate. 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)}(h,Power of two of number of pages to allocate.h]h,Power of two of number of pages to allocate.}(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)}(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 << }(hj*hhhNhNubj)}(h **order**h]horder}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh 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.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjc)ubjM)}(h **Context**h]j)}(hj5*h]hContext}(hj7*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3*ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjc)ubjM)}(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.}(hjK*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&]uh1jhjZ*ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjc)ubjM)}(h0The page on success or NULL if allocation fails.h]h0The page on success or NULL if allocation fails.}(hjr*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjc)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmpol_misplaced (C function)c.mpol_misplacedhNtauh1hhj hhhNhNubh)}(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}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*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)}(hmpol_misplacedh]j)}(hmpol_misplacedh]hmpol_misplaced}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj*hhhj*hM ubj )}(h?(struct folio *folio, struct vm_fault *vmf, unsigned long addr)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.mpol_misplacedasbuh1hhj*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}(hj7+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj*ubj )}(hstruct vm_fault *vmfh](j5)}(hj8h]hstruct}(hjP+hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjL+ubj)}(h h]h }(hj]+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL+ubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hjn+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk+ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjp+modnameN classnameNjpjs)}jv]j+c.mpol_misplacedasbuh1hhjL+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL+ubjF )}(hjI h]h*}(hj+hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjL+ubj)}(hvmfh]hvmf}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL+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 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)}(h3check whether current folio node is valid in policyh]h3check whether current folio node is valid in policy}(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*hhhj*hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj:,jHj:,jIjJjKuh1hhhhj hNhNubj)}(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)}(hjD,h]h Parameters}(hjF,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB,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,``struct folio *folio`` folio to be checked h](j)}(h``struct folio *folio``h]jS)}(hjc,h]hstruct folio *folio}(hje,hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhja,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)}(hfolio to be checkedh]hfolio to be checked}(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 hjZ,ubj)}(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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj,ubj)}(hhh]jM)}(hstructure describing the faulth]hstructure describing the fault}(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 hjZ,ubj)}(ha``unsigned long addr`` virtual address in **vma** for shared policy lookup and interleave policy 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)}(hIvirtual address in **vma** for shared policy lookup and interleave policyh](hvirtual address in }(hj,hhhNhNubj)}(h**vma**h]hvma}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh/ for shared policy lookup and interleave policy}(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 hjZ,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)}(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.}(hj8-hhhNhNubah}(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)}(hjI-h]hReturn}(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 hj>,ubjM)}(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.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$mpol_shared_policy_init (C function)c.mpol_shared_policy_inithNtauh1hhj hhhNhNubh)}(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}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-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)}(hmpol_shared_policy_inith]j)}(hmpol_shared_policy_inith]hmpol_shared_policy_init}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj-hhhj-hM ubj )}(h2(struct shared_policy *sp, struct mempolicy *mpol)h](j )}(hstruct shared_policy *sph](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 shared_policyh]h shared_policy}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj-modnameN classnameNjpjs)}jv]jy)}jlj-sbc.mpol_shared_policy_initasbuh1hhj-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)}(hsph]hsp}(hj$.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-ubj )}(hstruct mempolicy *mpolh](j5)}(hj8h]hstruct}(hj=.hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj9.ubj)}(h h]h }(hjJ.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9.ubh)}(hhh]j)}(h mempolicyh]h mempolicy}(hj[.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX.ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj].modnameN classnameNjpjs)}jv]j.c.mpol_shared_policy_initasbuh1hhj9.ubj)}(h h]h }(hjy.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9.ubjF )}(hjI h]h*}(hj.hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj9.ubj)}(hmpolh]hmpol}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9.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"initialize shared policy for inodeh]h"initialize shared policy for inode}(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-hhhj-hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj.jHj.jIjJjKuh1hhhhj hNhNubj)}(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)}(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<``struct shared_policy *sp`` pointer to inode shared policy h](j)}(h``struct shared_policy *sp``h]jS)}(hj.h]hstruct shared_policy *sp}(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 inode shared policyh]hpointer to inode shared policy}(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)}(h7``struct mempolicy *mpol`` struct mempolicy to install h](j)}(h``struct mempolicy *mpol``h]jS)}(hj8/h]hstruct mempolicy *mpol}(hj:/hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6/ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj2/ubj)}(hhh]jM)}(hstruct mempolicy to installh]hstruct mempolicy to install}(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.ubeh}(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&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj.ubjM)}(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/hhhNhNubj)}(h**mpol**h]hmpol}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh^ in inode’s shared policy rb-tree. On entry, the current task has a reference on a non-NULL }(hj/hhhNhNubj)}(h**mpol**h]hmpol}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh_. This must be released on exit. This is called at get_inode() calls and we can use GFP_KERNEL.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmpol_parse_str (C function)c.mpol_parse_strhNtauh1hhj hhhNhNubh)}(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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMR ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj/hMR ubh)}(hmpol_parse_strh]j)}(hmpol_parse_strh]hmpol_parse_str}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/hhhj/hMR ubj )}(h$(char *str, struct mempolicy **mpol)h](j )}(h char *strh](j)}(hcharh]hchar}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj'0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjF )}(hjI h]h*}(hj50hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj0ubj)}(hstrh]hstr}(hjB0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubj )}(hstruct mempolicy **mpolh](j5)}(hj8h]hstruct}(hj[0hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjW0ubj)}(h h]h }(hjh0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW0ubh)}(hhh]j)}(h mempolicyh]h mempolicy}(hjy0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj{0modnameN classnameNjpjs)}jv]jy)}jlj/sbc.mpol_parse_strasbuh1hhjW0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW0ubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjW0ubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjW0ubj)}(hmpolh]hmpol}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubeh}(h]h ]h"]h$]h&]jjuh1j hj/hhhj/hMR ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj/hhhj/hMR ubah}(h]j/ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj/hMR hj/hhubj4)}(hhh]jM)}(h7parse string to mempolicy, for tmpfs mpol mount option.h]h7parse string to mempolicy, for tmpfs mpol mount option.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMR hj0hhubah}(h]h ]h"]h$]h&]uh1j3hj/hhhj/hMR ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj1jHj1jIjJjKuh1hhhhj hNhNubj)}(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)}(hj 1h]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.chMV hj1ubj)}(hhh](j)}(h3``char *str`` string containing mempolicy to parse h](j)}(h ``char *str``h]jS)}(hj,1h]h char *str}(hj.1hhhNhNubah}(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.chMS hj&1ubj)}(hhh]jM)}(h$string containing mempolicy to parseh]h$string containing mempolicy to parse}(hjE1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjA1hMS hjB1ubah}(h]h ]h"]h$]h&]uh1jhj&1ubeh}(h]h ]h"]h$]h&]uh1jhjA1hMS hj#1ubj)}(hV``struct mempolicy **mpol`` pointer to struct mempolicy pointer, returned on success. h](j)}(h``struct mempolicy **mpol``h]jS)}(hje1h]hstruct mempolicy **mpol}(hjg1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjc1ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMT hj_1ubj)}(hhh]jM)}(h9pointer to struct mempolicy pointer, returned on success.h]h9pointer to struct mempolicy pointer, returned on success.}(hj~1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjz1hMT hj{1ubah}(h]h ]h"]h$]h&]uh1jhj_1ubeh}(h]h ]h"]h$]h&]uh1jhjz1hMT hj#1ubeh}(h]h ]h"]h$]h&]uh1jhj1ubjM)}(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.chMV hj1ubj)}(hhh]j)}(h/Format of input: [=][:] h](j)}(hFormat of input:h]hFormat of input:}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMV hj1ubj)}(hhh]jM)}(h[=][:]h]h[=][:]}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hMV hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMV hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubjM)}(h **Return**h]j)}(hj1h]hReturn}(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.chMX hj1ubjM)}(h``0`` on success, else ``1``h](jS)}(h``0``h]h0}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubh on success, else }(hj2hhhNhNubjS)}(h``1``h]h1}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMY hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmpol_to_str (C function) c.mpol_to_strhNtauh1hhj hhhNhNubh)}(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}(hjR2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN2hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hja2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN2hhhj`2hM ubh)}(h mpol_to_strh]j)}(h mpol_to_strh]h mpol_to_str}(hjs2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo2ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjN2hhhj`2hM ubj )}(h1(char *buffer, int maxlen, struct mempolicy *pol)h](j )}(h char *bufferh](j)}(hcharh]hchar}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjF )}(hjI h]h*}(hj2hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2ubj)}(hbufferh]hbuffer}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2ubj )}(h int maxlenh](j)}(hinth]hint}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hmaxlenh]hmaxlen}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2ubj )}(hstruct mempolicy *polh](j5)}(hj8h]hstruct}(hj3hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(h mempolicyh]h mempolicy}(hj$3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj&3modnameN classnameNjpjs)}jv]jy)}jlju2sb c.mpol_to_strasbuh1hhj3ubj)}(h h]h }(hjD3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjF )}(hjI h]h*}(hjR3hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj3ubj)}(hpolh]hpol}(hj_3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2ubeh}(h]h ]h"]h$]h&]jjuh1j hjN2hhhj`2hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjJ2hhhj`2hM ubah}(h]jE2ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj`2hM hjG2hhubj4)}(hhh]jM)}(h)format a mempolicy structure for printingh]h)format a mempolicy structure for printing}(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&]uh1j3hjG2hhhj`2hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj3jHj3jIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(h7``char *buffer`` to contain formatted mempolicy string h](j)}(h``char *buffer``h]jS)}(hj3h]h char *buffer}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj3ubj)}(hhh]jM)}(h%to contain formatted mempolicy stringh]h%to contain formatted mempolicy string}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3hM hj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hM hj3ubj)}(h$``int maxlen`` length of **buffer** h](j)}(h``int maxlen``h]jS)}(hj4h]h int maxlen}(hj4hhhNhNubah}(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 hj3ubj)}(hhh]jM)}(hlength of **buffer**h](h length of }(hj4hhhNhNubj)}(h **buffer**h]hbuffer}(hj$4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jLhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj4hM hj3ubj)}(h?``struct mempolicy *pol`` pointer to mempolicy to be formatted h](j)}(h``struct mempolicy *pol``h]jS)}(hjJ4h]hstruct mempolicy *pol}(hjL4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjH4ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjD4ubj)}(hhh]jM)}(h$pointer to mempolicy to be formattedh]h$pointer to mempolicy to be formatted}(hjc4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_4hM hj`4ubah}(h]h ]h"]h$]h&]uh1jhjD4ubeh}(h]h ]h"]h$]h&]uh1jhj_4hM hj3ubeh}(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)}(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 }(hj4hhhNhNubj)}(h**pol**h]hpol}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh into a string. If }(hj4hhhNhNubj)}(h **buffer**h]hbuffer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh0 is too short, truncate the string. Recommend a }(hj4hhhNhNubj)}(h **maxlen**h]hmaxlen}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh 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.}(hj4hhhNhNubeh}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsoftleaf_t (C type) c.softleaf_thNtauh1hhj hhhY/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)}(hjDJh]htype}(hj5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj4hhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhj5hKubh)}(h softleaf_th]j)}(hj4h]h softleaf_t}(hj!5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj4hhhj5hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj4hhhj5hKubah}(h]j4ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj5hKhj4hhubj4)}(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.}(hjC5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM"hj@5hhubah}(h]h ]h"]h$]h&]uh1j3hj4hhhj5hKubeh}(h]h ](jAtypeeh"]h$]h&]jFjAjGj[5jHj[5jIjJjKuh1hhhhj hj4hNubjM)}(h**Description**h]j)}(hja5h]h Description}(hjc5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_5ubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM$hj hhubjM)}(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.}(hjw5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM#hj hhubjM)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM'hj hhubjM)}(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 }(hj5hhhNhNubj)}(h**softleaf_type**h]h softleaf_type}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh9 for a list of all possible kinds of software leaf entry.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM+hj hhubjM)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM/hj hhubjM)}(h**NOTE**h]j)}(hj5h]hNOTE}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM2hj hhubj)}(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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM9hj5ubj)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM5hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM9hj5ubah}(h]h ]h"]h$]h&]uh1jhj hhhj4hNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio (C struct)c.foliohNtauh1hhj hhhj4hNubh)}(hhh](h)}(hfolioh]h)}(h struct folioh](j5)}(hj8h]hstruct}(hj06hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj,6hhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM;ubj)}(h h]h }(hj>6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,6hhhj=6hM;ubh)}(hfolioh]j)}(hj*6h]hfolio}(hjP6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL6ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj,6hhhj=6hM;ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj(6hhhj=6hM;ubah}(h]j#6ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj=6hM;hj%6hhubj4)}(hhh]jM)}(h%Represents a contiguous set of bytes.h]h%Represents a contiguous set of bytes.}(hjr6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMfhjo6hhubah}(h]h ]h"]h$]h&]uh1j3hj%6hhhj=6hM;ubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGj6jHj6jIjJjKuh1hhhhj hj4hNubj)}(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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh:}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMjhj6ubj()}(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; };}hj6sbah}(h]h ]h"]h$]h&]jjuh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMlhj6ubjM)}(h **Members**h]j)}(hj6h]hMembers}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj6ubj)}(hhh](j)}(h'``flags`` Identical to the page flags. h](j)}(h ``flags``h]jS)}(hj6h]hflags}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhhj6ubj)}(hhh]jM)}(hIdentical to the page flags.h]hIdentical to the page flags.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hMhhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhhj6ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hj7h]h{unnamed_union}}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhj7ubj)}(hhh]jM)}(h anonymoush]h anonymous}(hj17hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj-7hKhj.7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj-7hKhj6ubj)}(hK``lru`` Least Recently Used list; tracks how recently this folio was used. h](j)}(h``lru``h]jS)}(hjQ7h]hlru}(hjS7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjO7ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMihjK7ubj)}(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.}(hjj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjf7hMihjg7ubah}(h]h ]h"]h$]h&]uh1jhjK7ubeh}(h]h ]h"]h$]h&]uh1jhjf7hMihj6ubj)}(hG``mlock_count`` Number of times this folio has been pinned by mlock(). h](j)}(h``mlock_count``h]jS)}(hj7h]h mlock_count}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMjhj7ubj)}(hhh]jM)}(h6Number of times this folio has been pinned by mlock().h]h6Number of times this folio has been pinned by mlock().}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7hMjhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMjhj6ubj)}(h,``pgmap`` Metadata for ZONE_DEVICE mappings h](j)}(h ``pgmap``h]jS)}(hj7h]hpgmap}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMxhj7ubj)}(hhh]jM)}(h!Metadata for ZONE_DEVICE mappingsh]h!Metadata for ZONE_DEVICE mappings}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7hMxhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMxhj6ubj)}(h[``mapping`` The file this page belongs to, or refers to the anon_vma for anonymous memory. h](j)}(h ``mapping``h]jS)}(hj7h]hmapping}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMlhj7ubj)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMkhj8ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj8hMlhj6ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hj68h]h{unnamed_union}}(hj88hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj48ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhj08ubj)}(hhh]jM)}(h anonymoush]h anonymous}(hjO8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjK8hKhjL8ubah}(h]h ]h"]h$]h&]uh1jhj08ubeh}(h]h ]h"]h$]h&]uh1jhjK8hKhj6ubj)}(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)}(hjo8h]hindex}(hjq8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjm8ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMnhji8ubj)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMmhj8ubah}(h]h ]h"]h$]h&]uh1jhji8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMnhj6ubj)}(hU``share`` number of DAX mappings that reference this folio. See dax_associate_entry. h](j)}(h ``share``h]jS)}(hj8h]hshare}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMphj8ubj)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMohj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMphj6ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hj8h]h{unnamed_union}}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhj8ubj)}(hhh]jM)}(h anonymoush]h anonymous}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhj6ubj)}(hD``private`` Filesystem per-folio data (see folio_attach_private()). h](j)}(h ``private``h]jS)}(hj9h]hprivate}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMqhj9ubj)}(hhh]jM)}(h7Filesystem per-folio data (see folio_attach_private()).h]h7Filesystem per-folio data (see folio_attach_private()).}(hj59hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj19hMqhj29ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj19hMqhj6ubj)}(h9``swap`` Used for swp_entry_t if folio_test_swapcache(). h](j)}(h``swap``h]jS)}(hjU9h]hswap}(hjW9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjS9ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMrhjO9ubj)}(hhh]jM)}(h/Used for swp_entry_t if folio_test_swapcache().h]h/Used for swp_entry_t if folio_test_swapcache().}(hjn9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjj9hMrhjk9ubah}(h]h ]h"]h$]h&]uh1jhjO9ubeh}(h]h ]h"]h$]h&]uh1jhjj9hMrhj6ubj)}(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)}(hj9h]h _mapcount}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMthj9ubj)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMshj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMthj6ubj)}(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)}(hj9h]h _refcount}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMvhj9ubj)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMuhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMvhj6ubj)}(h*``memcg_data`` Memory Control Group data. h](j)}(h``memcg_data``h]jS)}(hj:h]h memcg_data}(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.hhMwhj9ubj)}(hhh]jM)}(hMemory Control Group data.h]hMemory Control Group data.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hMwhj:ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj:hMwhj6ubj)}(hH``_unused_slab_obj_exts`` Placeholder to match obj_exts in struct slab. h](j)}(h``_unused_slab_obj_exts``h]jS)}(hj;:h]h_unused_slab_obj_exts}(hj=:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9:ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj5:ubj)}(hhh]jM)}(h-Placeholder to match obj_exts in struct slab.h]h-Placeholder to match obj_exts in struct slab.}(hjT:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjP:hMhjQ:ubah}(h]h ]h"]h$]h&]uh1jhj5:ubeh}(h]h ]h"]h$]h&]uh1jhjP:hMhj6ubj)}(h6``virtual`` Virtual address in the kernel direct map. h](j)}(h ``virtual``h]jS)}(hjt:h]hvirtual}(hjv:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjr:ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMyhjn:ubj)}(hhh]jM)}(h)Virtual address in the kernel direct map.h]h)Virtual address in the kernel direct map.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hMyhj:ubah}(h]h ]h"]h$]h&]uh1jhjn:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMyhj6ubj)}(hK``_last_cpupid`` IDs of last CPU and last process that accessed the folio. h](j)}(h``_last_cpupid``h]jS)}(hj:h]h _last_cpupid}(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.hhMzhj:ubj)}(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.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hMzhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMzhj6ubj)}(h@``_large_mapcount`` Do not use directly, call folio_mapcount(). h](j)}(h``_large_mapcount``h]jS)}(hj:h]h_large_mapcount}(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.hhM|hj:ubj)}(hhh]jM)}(h+Do not use directly, call folio_mapcount().h]h+Do not use directly, call folio_mapcount().}(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|hj6ubj)}(h@``_nr_pages_mapped`` Do not use outside of rmap and debug code. h](j)}(h``_nr_pages_mapped``h]jS)}(hj;h]h_nr_pages_mapped}(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.hhM}hj;ubj)}(hhh]jM)}(h*Do not use outside of rmap and debug code.h]h*Do not use outside of rmap and debug code.}(hj8;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4;hM}hj5;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj4;hM}hj6ubj)}(hH``_entire_mapcount`` Do not use directly, call folio_entire_mapcount(). h](j)}(h``_entire_mapcount``h]jS)}(hjX;h]h_entire_mapcount}(hjZ;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjV;ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM{hjR;ubj)}(hhh]jM)}(h2Do not use directly, call folio_entire_mapcount().h]h2Do not use directly, call folio_entire_mapcount().}(hjq;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjm;hM{hjn;ubah}(h]h ]h"]h$]h&]uh1jhjR;ubeh}(h]h ]h"]h$]h&]uh1jhjm;hM{hj6ubj)}(hB``_pincount`` Do not use directly, call folio_maybe_dma_pinned(). h](j)}(h ``_pincount``h]jS)}(hj;h]h _pincount}(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.hhM~hj;ubj)}(hhh]jM)}(h3Do not use directly, call folio_maybe_dma_pinned().h]h3Do not use directly, call folio_maybe_dma_pinned().}(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~hj6ubj)}(h5``_mm_id_mapcount`` Do not use outside of rmap code. h](j)}(h``_mm_id_mapcount``h]jS)}(hj;h]h_mm_id_mapcount}(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.hhMhj;ubj)}(hhh]jM)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj6ubj)}(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<hKhj6ubj)}(h,``_mm_id`` Do not use outside of rmap code. h](j)}(h ``_mm_id``h]jS)}(hj<<h]h_mm_id}(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.hhMhj6<ubj)}(hhh]jM)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hjU<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQ<hMhjR<ubah}(h]h ]h"]h$]h&]uh1jhj6<ubeh}(h]h ]h"]h$]h&]uh1jhjQ<hMhj6ubj)}(h-``_mm_ids`` Do not use outside of rmap code. h](j)}(h ``_mm_ids``h]jS)}(hju<h]h_mm_ids}(hjw<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjs<ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjo<ubj)}(hhh]jM)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhjo<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj6ubj)}(h:``_nr_pages`` Do not use directly, call folio_nr_pages(). h](j)}(h ``_nr_pages``h]jS)}(hj<h]h _nr_pages}(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.hhMhj<ubj)}(hhh]jM)}(h+Do not use directly, call folio_nr_pages().h]h+Do not use directly, call folio_nr_pages().}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj6ubj)}(h=``_deferred_list`` Folios to be split under memory pressure. h](j)}(h``_deferred_list``h]jS)}(hj<h]h_deferred_list}(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.hhMhj<ubj)}(hhh]jM)}(h)Folios to be split under memory pressure.h]h)Folios to be split under memory pressure.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj6ubj)}(hH``_entire_mapcount`` Do not use directly, call folio_entire_mapcount(). h](j)}(h``_entire_mapcount``h]jS)}(hj =h]h_entire_mapcount}(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.hhM{hj=ubj)}(hhh]jM)}(h2Do not use directly, call folio_entire_mapcount().h]h2Do not use directly, call folio_entire_mapcount().}(hj9=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5=hM{hj6=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj5=hM{hj6ubj)}(hB``_pincount`` Do not use directly, call folio_maybe_dma_pinned(). h](j)}(h ``_pincount``h]jS)}(hjY=h]h _pincount}(hj[=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjW=ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM~hjS=ubj)}(hhh]jM)}(h3Do not use directly, call folio_maybe_dma_pinned().h]h3Do not use directly, call folio_maybe_dma_pinned().}(hjr=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjn=hM~hjo=ubah}(h]h ]h"]h$]h&]uh1jhjS=ubeh}(h]h ]h"]h$]h&]uh1jhjn=hM~hj6ubj)}(hE``_hugetlb_subpool`` Do not use directly, use accessor in hugetlb.h. h](j)}(h``_hugetlb_subpool``h]jS)}(hj=h]h_hugetlb_subpool}(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.hhMhj=ubj)}(hhh]jM)}(h/Do not use directly, use accessor in hugetlb.h.h]h/Do not use directly, use accessor in hugetlb.h.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj6ubj)}(hK``_hugetlb_cgroup`` Do not use directly, use accessor in hugetlb_cgroup.h. h](j)}(h``_hugetlb_cgroup``h]jS)}(hj=h]h_hugetlb_cgroup}(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.hhMhj=ubj)}(hhh]jM)}(h6Do not use directly, use accessor in hugetlb_cgroup.h.h]h6Do not use directly, use accessor in hugetlb_cgroup.h.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj6ubj)}(hP``_hugetlb_cgroup_rsvd`` Do not use directly, use accessor in hugetlb_cgroup.h. h](j)}(h``_hugetlb_cgroup_rsvd``h]jS)}(hj>h]h_hugetlb_cgroup_rsvd}(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.hhMhj=ubj)}(hhh]jM)}(h6Do not use directly, use accessor in hugetlb_cgroup.h.h]h6Do not use directly, use accessor in hugetlb_cgroup.h.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj6ubj)}(hD``_hugetlb_hwpoison`` Do not use directly, call raw_hwp_list_head().h](j)}(h``_hugetlb_hwpoison``h]jS)}(hj=>h]h_hugetlb_hwpoison}(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.hhMhj7>ubj)}(hhh]jM)}(h.Do not use directly, call raw_hwp_list_head().h]h.Do not use directly, call raw_hwp_list_head().}(hjV>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjS>ubah}(h]h ]h"]h$]h&]uh1jhj7>ubeh}(h]h ]h"]h$]h&]uh1jhjR>hMhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhj4hNubjM)}(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.hhMhj hhubjM)}(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 }(hj>hhhNhNubjS)}(h ``PAGE_SIZE``h]h PAGE_SIZE}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubh. 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.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hptdesc (C struct)c.ptdeschNtauh1hhj hhhj4hNubh)}(hhh](h)}(hptdesch]h)}(h struct ptdesch](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.hhMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hMubh)}(hptdesch]j)}(hj>h]hptdesc}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj>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"Memory descriptor for page tables.h]h"Memory descriptor for page tables.}(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>hMubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGj*?jHj*?jIjJjKuh1hhhhj hj4hNubj)}(hX**Definition**:: struct 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; }; **Members** ``pt_flags`` enum pt_flags plus zone/node/section. ``{unnamed_union}`` anonymous ``pt_rcu_head`` For freeing page table pages. ``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. ``{unnamed_struct}`` anonymous ``_pt_pad_1`` Padding that aliases with page's compound head. ``pmd_huge_pte`` Protected by ptdesc->ptl, 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}(hj6?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2?ubh:}(hj2?hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM*hj.?ubj()}(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; };}hjO?sbah}(h]h ]h"]h$]h&]jjuh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM,hj.?ubjM)}(h **Members**h]j)}(hj`?h]hMembers}(hjb?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.hhMNhj.?ubj)}(hhh](j)}(h3``pt_flags`` enum pt_flags plus zone/node/section. h](j)}(h ``pt_flags``h]jS)}(hj?h]hpt_flags}(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.hhM(hjy?ubj)}(hhh]jM)}(h%enum pt_flags plus zone/node/section.h]h%enum pt_flags plus zone/node/section.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj?hM(hj?ubah}(h]h ]h"]h$]h&]uh1jhjy?ubeh}(h]h ]h"]h$]h&]uh1jhj?hM(hjv?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?hKhjv?ubj)}(h.``pt_rcu_head`` For freeing page table pages. h](j)}(h``pt_rcu_head``h]jS)}(hj?h]h pt_rcu_head}(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.hhM)hj?ubj)}(hhh]jM)}(hFor freeing page table pages.h]hFor freeing page table 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)hjv?ubj)}(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)}(hj*@h]hpt_list}(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.hhM,hj$@ubj)}(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.}(hjC@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM*hj@@ubah}(h]h ]h"]h$]h&]uh1jhj$@ubeh}(h]h ]h"]h$]h&]uh1jhj?@hM,hjv?ubj)}(h``{unnamed_struct}`` anonymous h](j)}(h``{unnamed_struct}``h]jS)}(hjd@h]h{unnamed_struct}}(hjf@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjb@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&]uh1jLhjy@hKhjz@ubah}(h]h ]h"]h$]h&]uh1jhj^@ubeh}(h]h ]h"]h$]h&]uh1jhjy@hKhjv?ubj)}(h>``_pt_pad_1`` Padding that aliases with page's compound head. h](j)}(h ``_pt_pad_1``h]jS)}(hj@h]h _pt_pad_1}(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.hhM-hj@ubj)}(hhh]jM)}(h/Padding that aliases with page's compound head.h]h1Padding that aliases with page’s compound head.}(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-hjv?ubj)}(h:``pmd_huge_pte`` Protected by ptdesc->ptl, used for THPs. h](j)}(h``pmd_huge_pte``h]jS)}(hj@h]h pmd_huge_pte}(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.hhM.hj@ubj)}(hhh]jM)}(h(Protected by ptdesc->ptl, used for THPs.h]h(Protected by ptdesc->ptl, used for THPs.}(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.hjv?ubj)}(hG``__page_mapping`` Aliases with page->mapping. Unused for page tables. h](j)}(h``__page_mapping``h]jS)}(hjAh]h__page_mapping}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj Aubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM/hj Aubj)}(hhh]jM)}(h3Aliases with page->mapping. Unused for page tables.h]h3Aliases with page->mapping. Unused for page tables.}(hj(AhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$AhM/hj%Aubah}(h]h ]h"]h$]h&]uh1jhj Aubeh}(h]h ]h"]h$]h&]uh1jhj$AhM/hjv?ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hjHAh]h{unnamed_union}}(hjJAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFAubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhjBAubj)}(hhh]jM)}(h anonymoush]h anonymous}(hjaAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]AhKhj^Aubah}(h]h ]h"]h$]h&]uh1jhjBAubeh}(h]h ]h"]h$]h&]uh1jhj]AhKhjv?ubj)}(h!``pt_index`` Used for s390 gmap. h](j)}(h ``pt_index``h]jS)}(hjAh]hpt_index}(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.hhM0hj{Aubj)}(hhh]jM)}(hUsed for s390 gmap.h]hUsed for s390 gmap.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhM0hjAubah}(h]h ]h"]h$]h&]uh1jhj{Aubeh}(h]h ]h"]h$]h&]uh1jhjAhM0hjv?ubj)}(h``pt_mm`` Used for x86 pgds. h](j)}(h ``pt_mm``h]jS)}(hjAh]hpt_mm}(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.hhM1hjAubj)}(hhh]jM)}(hUsed for x86 pgds.h]hUsed for x86 pgds.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhM1hjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhM1hjv?ubj)}(hG``pt_frag_refcount`` For fragmented page table tracking. Powerpc only. h](j)}(h``pt_frag_refcount``h]jS)}(hjAh]hpt_frag_refcount}(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.hhM2hjAubj)}(hhh]jM)}(h1For fragmented page table tracking. Powerpc only.h]h1For fragmented page table tracking. Powerpc only.}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhM2hj Bubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjBhM2hjv?ubj)}(h@``pt_share_count`` Used for HugeTLB PMD page table share count. h](j)}(h``pt_share_count``h]jS)}(hj,Bh]hpt_share_count}(hj.BhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*Bubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM3hj&Bubj)}(hhh]jM)}(h,Used for HugeTLB PMD page table share count.h]h,Used for HugeTLB PMD page table share count.}(hjEBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjABhM3hjBBubah}(h]h ]h"]h$]h&]uh1jhj&Bubeh}(h]h ]h"]h$]h&]uh1jhjABhM3hjv?ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hjeBh]h{unnamed_union}}(hjgBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcBubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhj_Bubj)}(hhh]jM)}(h anonymoush]h anonymous}(hj~BhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzBhKhj{Bubah}(h]h ]h"]h$]h&]uh1jhj_Bubeh}(h]h ]h"]h$]h&]uh1jhjzBhKhjv?ubj)}(h2``_pt_pad_2`` Padding to ensure proper alignment. h](j)}(h ``_pt_pad_2``h]jS)}(hjBh]h _pt_pad_2}(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.hhM4hjBubj)}(hhh]jM)}(h#Padding to ensure proper alignment.h]h#Padding to ensure proper alignment.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhM4hjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM4hjv?ubj)}(h!``ptl`` Lock for the page table. h](j)}(h``ptl``h]jS)}(hjBh]hptl}(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.hhM5hjBubj)}(hhh]jM)}(hLock for the page table.h]hLock for the page table.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhM5hjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM5hjv?ubj)}(h!``ptl`` Lock for the page table. h](j)}(h``ptl``h]jS)}(hjCh]hptl}(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.hhM5hj Cubj)}(hhh]jM)}(hLock for the page table.h]hLock for the page table.}(hj)ChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%ChM5hj&Cubah}(h]h ]h"]h$]h&]uh1jhj Cubeh}(h]h ]h"]h$]h&]uh1jhj%ChM5hjv?ubj)}(hA``__page_type`` Same as page->page_type. Unused for page tables. h](j)}(h``__page_type``h]jS)}(hjICh]h __page_type}(hjKChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGCubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM6hjCCubj)}(hhh]jM)}(h0Same as page->page_type. Unused for page tables.h]h0Same as page->page_type. Unused for page tables.}(hjbChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^ChM6hj_Cubah}(h]h ]h"]h$]h&]uh1jhjCCubeh}(h]h ]h"]h$]h&]uh1jhj^ChM6hjv?ubj)}(h+``__page_refcount`` Same as page refcount. h](j)}(h``__page_refcount``h]jS)}(hjCh]h__page_refcount}(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.hhM7hj|Cubj)}(hhh]jM)}(hSame as page refcount.h]hSame as page refcount.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChM7hjCubah}(h]h ]h"]h$]h&]uh1jhj|Cubeh}(h]h ]h"]h$]h&]uh1jhjChM7hjv?ubj)}(h;``pt_memcg_data`` Memcg data. Tracked for page tables here.h](j)}(h``pt_memcg_data``h]jS)}(hjCh]h pt_memcg_data}(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.hhM7hjCubj)}(hhh]jM)}(h)Memcg data. Tracked for page tables here.h]h)Memcg data. Tracked for page tables here.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM8hjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChM7hjv?ubeh}(h]h ]h"]h$]h&]uh1jhj.?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhj4hNubjM)}(h**Description**h]j)}(hjCh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM;hj hhubjM)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM8hj hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_fault_t (C type) c.vm_fault_thNtauh1hhj hhhj4hNubh)}(hhh](h)}(h vm_fault_th]h)}(htype vm_fault_th](j5)}(hjDJh]htype}(hjubj)}(h h]h }(hjJDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8DhhhjIDhM>ubh)}(h vm_fault_th]j)}(hj6Dh]h vm_fault_t}(hj\DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXDubah}(h]h ](jjeh"]h$]h&]jjuh1hhj8DhhhjIDhM>ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj4DhhhjIDhM>ubah}(h]j/Dah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjIDhM>hj1Dhhubj4)}(hhh]jM)}(h$Return type for page fault handlers.h]h$Return type for page fault handlers.}(hj~DhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhhj{Dhhubah}(h]h ]h"]h$]h&]uh1j3hj1DhhhjIDhM>ubeh}(h]h ](jAtypeeh"]h$]h&]jFjAjGjDjHjDjIjJjKuh1hhhhj hj4hNubjM)}(h**Description**h]j)}(hjDh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMjhj hhubjM)}(hfault 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)}(hjPEh]h Constants}(hjREhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNEubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMshjJEubj)}(hhh](j)}(h``VM_FAULT_OOM`` Out Of Memory h](j)}(h``VM_FAULT_OOM``h]jS)}(hjoEh]h VM_FAULT_OOM}(hjqEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjmEubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMvhjiEubj)}(hhh]jM)}(h Out Of Memoryh]h Out Of Memory}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMvhjEubah}(h]h ]h"]h$]h&]uh1jhjiEubeh}(h]h ]h"]h$]h&]uh1jhjEhMvhjfEubj)}(h``VM_FAULT_SIGBUS`` Bad access h](j)}(h``VM_FAULT_SIGBUS``h]jS)}(hjEh]hVM_FAULT_SIGBUS}(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.hhMyhjEubj)}(hhh]jM)}(h Bad accessh]h Bad access}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMyhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMyhjfEubj)}(h*``VM_FAULT_MAJOR`` Page read from storage h](j)}(h``VM_FAULT_MAJOR``h]jS)}(hjEh]hVM_FAULT_MAJOR}(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.hhM|hjEubj)}(hhh]jM)}(hPage read from storageh]hPage read from storage}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhM|hjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhM|hjfEubj)}(h.``VM_FAULT_HWPOISON`` Hit poisoned small page h](j)}(h``VM_FAULT_HWPOISON``h]jS)}(hjFh]hVM_FAULT_HWPOISON}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjFubj)}(hhh]jM)}(hHit poisoned small pageh]hHit poisoned small page}(hj3FhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/FhMhj0Fubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhj/FhMhjfEubj)}(hQ``VM_FAULT_HWPOISON_LARGE`` Hit poisoned large page. Index encoded in upper bits h](j)}(h``VM_FAULT_HWPOISON_LARGE``h]jS)}(hjSFh]hVM_FAULT_HWPOISON_LARGE}(hjUFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQFubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjMFubj)}(hhh]jM)}(h4Hit poisoned large page. Index encoded in upper bitsh]h4Hit poisoned large page. Index encoded in upper bits}(hjlFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjiFubah}(h]h ]h"]h$]h&]uh1jhjMFubeh}(h]h ]h"]h$]h&]uh1jhjhFhMhjfEubj)}(h(``VM_FAULT_SIGSEGV`` segmentation fault h](j)}(h``VM_FAULT_SIGSEGV``h]jS)}(hjFh]hVM_FAULT_SIGSEGV}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjFubj)}(hhh]jM)}(hsegmentation faulth]hsegmentation fault}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjfEubj)}(h?``VM_FAULT_NOPAGE`` ->fault installed the pte, not return page h](j)}(h``VM_FAULT_NOPAGE``h]jS)}(hjFh]hVM_FAULT_NOPAGE}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjFubj)}(hhh]jM)}(h*->fault installed the pte, not return pageh]h*->fault installed the pte, not return page}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjfEubj)}(h5``VM_FAULT_LOCKED`` ->fault locked the returned page h](j)}(h``VM_FAULT_LOCKED``h]jS)}(hjFh]hVM_FAULT_LOCKED}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjFubj)}(hhh]jM)}(h ->fault locked the returned pageh]h ->fault locked the returned page}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjfEubj)}(h/``VM_FAULT_RETRY`` ->fault blocked, must retry h](j)}(h``VM_FAULT_RETRY``h]jS)}(hj8Gh]hVM_FAULT_RETRY}(hj:GhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6Gubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj2Gubj)}(hhh]jM)}(h->fault blocked, must retryh]h->fault blocked, must retry}(hjQGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMGhMhjNGubah}(h]h ]h"]h$]h&]uh1jhj2Gubeh}(h]h ]h"]h$]h&]uh1jhjMGhMhjfEubj)}(hA``VM_FAULT_FALLBACK`` huge page fault failed, fall back to small h](j)}(h``VM_FAULT_FALLBACK``h]jS)}(hjqGh]hVM_FAULT_FALLBACK}(hjsGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoGubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjkGubj)}(hhh]jM)}(h*huge page fault failed, fall back to smallh]h*huge page fault failed, fall back to small}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjkGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjfEubj)}(h4``VM_FAULT_DONE_COW`` ->fault has fully handled COW h](j)}(h``VM_FAULT_DONE_COW``h]jS)}(hjGh]hVM_FAULT_DONE_COW}(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.hhMhjGubj)}(hhh]jM)}(h->fault has fully handled COWh]h->fault has fully handled COW}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjfEubj)}(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)}(hjGh]hVM_FAULT_NEEDDSYNC}(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.hhMhjGubj)}(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)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjfEubj)}(hG``VM_FAULT_COMPLETED`` ->fault completed, meanwhile mmap lock released h](j)}(h``VM_FAULT_COMPLETED``h]jS)}(hjHh]hVM_FAULT_COMPLETED}(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.hhMhjHubj)}(hhh]jM)}(h/->fault completed, meanwhile mmap lock releasedh]h/->fault completed, meanwhile mmap lock released}(hj6HhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2HhMhj3Hubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhj2HhMhjfEubj)}(h*``VM_FAULT_HINDEX_MASK`` mask HINDEX valueh](j)}(h``VM_FAULT_HINDEX_MASK``h]jS)}(hjVHh]hVM_FAULT_HINDEX_MASK}(hjXHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjTHubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjPHubj)}(hhh]jM)}(hmask HINDEX valueh]hmask HINDEX value}(hjoHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjlHubah}(h]h ]h"]h$]h&]uh1jhjPHubeh}(h]h ]h"]h$]h&]uh1jhjkHhMhjfEubeh}(h]h ]h"]h$]h&]uh1jhjJEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhj4hNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfault_flag (C enum) c.fault_flaghNtauh1hhj hhhj4hNubh)}(hhh](h)}(h fault_flagh]h)}(henum fault_flagh](j5)}(hjh]henum}(hjHhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjHhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjHhMubh)}(h fault_flagh]j)}(hjHh]h fault_flag}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1hhjHhhhjHhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjHhhhjHhMubah}(h]jHah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjHhMhjHhhubj4)}(hhh]jM)}(hFault flag definitions.h]hFault flag definitions.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjHhhubah}(h]h ]h"]h$]h&]uh1j3hjHhhhjHhMubeh}(h]h ](jAenumeh"]h$]h&]jFjAjGj IjHj IjIjJjKuh1hhhhj hj4hNubj)}(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)}(hjIh]h Constants}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjIubj)}(hhh](j)}(h.``FAULT_FLAG_WRITE`` Fault was a write fault. h](j)}(h``FAULT_FLAG_WRITE``h]jS)}(hj3Ih]hFAULT_FLAG_WRITE}(hj5IhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj1Iubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj-Iubj)}(hhh]jM)}(hFault was a write fault.h]hFault was a write fault.}(hjLIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHIhMhjIIubah}(h]h ]h"]h$]h&]uh1jhj-Iubeh}(h]h ]h"]h$]h&]uh1jhjHIhMhj*Iubj)}(h:``FAULT_FLAG_MKWRITE`` Fault was mkwrite of existing PTE. h](j)}(h``FAULT_FLAG_MKWRITE``h]jS)}(hjlIh]hFAULT_FLAG_MKWRITE}(hjnIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjIubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjfIubj)}(hhh]jM)}(h"Fault was mkwrite of existing PTE.h]h"Fault was mkwrite of existing PTE.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjfIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj*Iubj)}(h@``FAULT_FLAG_ALLOW_RETRY`` Allow to retry the fault if blocked. h](j)}(h``FAULT_FLAG_ALLOW_RETRY``h]jS)}(hjIh]hFAULT_FLAG_ALLOW_RETRY}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjIubj)}(hhh]jM)}(h$Allow to retry the fault if blocked.h]h$Allow to retry the fault if blocked.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj*Iubj)}(hI``FAULT_FLAG_RETRY_NOWAIT`` Don't drop mmap_lock and wait when retrying. h](j)}(h``FAULT_FLAG_RETRY_NOWAIT``h]jS)}(hjIh]hFAULT_FLAG_RETRY_NOWAIT}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjIubj)}(hhh]jM)}(h,Don't drop mmap_lock and wait when retrying.h]h.Don’t drop mmap_lock and wait when retrying.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj*Iubj)}(hF``FAULT_FLAG_KILLABLE`` The fault task is in SIGKILL killable region. h](j)}(h``FAULT_FLAG_KILLABLE``h]jS)}(hjJh]hFAULT_FLAG_KILLABLE}(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.hhMhjJubj)}(hhh]jM)}(h-The fault task is in SIGKILL killable region.h]h-The fault task is in SIGKILL killable region.}(hj0JhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,JhMhj-Jubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhj,JhMhj*Iubj)}(h4``FAULT_FLAG_TRIED`` The fault has been tried once. h](j)}(h``FAULT_FLAG_TRIED``h]jS)}(hjPJh]hFAULT_FLAG_TRIED}(hjRJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNJubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjJJubj)}(hhh]jM)}(hThe fault has been tried once.h]hThe fault has been tried once.}(hjiJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjeJhMhjfJubah}(h]h ]h"]h$]h&]uh1jhjJJubeh}(h]h ]h"]h$]h&]uh1jhjeJhMhj*Iubj)}(h7``FAULT_FLAG_USER`` The fault originated in userspace. h](j)}(h``FAULT_FLAG_USER``h]jS)}(hjJh]hFAULT_FLAG_USER}(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.hhMhjJubj)}(hhh]jM)}(h"The fault originated in userspace.h]h"The fault originated in userspace.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj*Iubj)}(h<``FAULT_FLAG_REMOTE`` The fault is not for current task/mm. h](j)}(h``FAULT_FLAG_REMOTE``h]jS)}(hjJh]hFAULT_FLAG_REMOTE}(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.hhMhjJubj)}(hhh]jM)}(h%The fault is not for current task/mm.h]h%The fault is not for current task/mm.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj*Iubj)}(hF``FAULT_FLAG_INSTRUCTION`` The fault was during an instruction fetch. h](j)}(h``FAULT_FLAG_INSTRUCTION``h]jS)}(hjJh]hFAULT_FLAG_INSTRUCTION}(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.hhMhjJubj)}(hhh]jM)}(h*The fault was during an instruction fetch.h]h*The fault was during an instruction fetch.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj*Iubj)}(hP``FAULT_FLAG_INTERRUPTIBLE`` The fault can be interrupted by non-fatal signals. h](j)}(h``FAULT_FLAG_INTERRUPTIBLE``h]jS)}(hj4Kh]hFAULT_FLAG_INTERRUPTIBLE}(hj6KhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2Kubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj.Kubj)}(hhh]jM)}(h2The fault can be interrupted by non-fatal signals.h]h2The fault can be interrupted by non-fatal signals.}(hjMKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIKhMhjJKubah}(h]h ]h"]h$]h&]uh1jhj.Kubeh}(h]h ]h"]h$]h&]uh1jhjIKhMhj*Iubj)}(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)}(hjmKh]hFAULT_FLAG_UNSHARE}(hjoKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjkKubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjgKubj)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjKubah}(h]h ]h"]h$]h&]uh1jhjgKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj*Iubj)}(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)}(hjKh]hFAULT_FLAG_ORIG_PTE_VALID}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjKubj)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj*Iubj)}(h<``FAULT_FLAG_VMA_LOCK`` The fault is handled under VMA lock.h](j)}(h``FAULT_FLAG_VMA_LOCK``h]jS)}(hjKh]hFAULT_FLAG_VMA_LOCK}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjKubj)}(hhh]jM)}(h$The fault is handled under VMA lock.h]h$The fault is handled under VMA lock.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj*Iubeh}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhj4hNubjM)}(h**Description**h]j)}(hj$Lh]h Description}(hj&LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Lubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj hhubjM)}(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 }(hj:LhhhNhNubj)}(h**FAULT_FLAG_ALLOW_RETRY**h]hFAULT_FLAG_ALLOW_RETRY}(hjBLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Lubh and }(hj:LhhhNhNubj)}(h**FAULT_FLAG_TRIED**h]hFAULT_FLAG_TRIED}(hjTLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Lubh: 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:}(hj:LhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj hhubj+)}(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{LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjwLubj)}(hhh]jM)}(hthis is the first tryh]hthis is the first try}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjwLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjtLubah}(h]h ]h"]h$]h&]uh1jhjpLubah}(h]h ]h"]h$]h&]uh1j+hjmLubj+)}(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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjLubj)}(hhh]jM)}(h!we've already tried at least onceh]h#we’ve already tried at least once}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1j+hjmLubj+)}(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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjLubah}(h]h ]h"]h$]h&]uh1j+hjmLubeh}(h]h ]h"]h$]h&]j+ loweralphaj+j!j+j!uh1j+hj hhhj4hNubjM)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj hhubjM)}(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.}(hj%MhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_is_file_lru (C function)c.folio_is_file_lruhNtauh1hhj hhhNhNubh)}(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}(hjMMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIMhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKubj)}(h h]h }(hj\MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIMhhhj[MhKubh)}(hfolio_is_file_lruh]j)}(hfolio_is_file_lruh]hfolio_is_file_lru}(hjnMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjMubah}(h]h ](jjeh"]h$]h&]jjuh1hhjIMhhhj[MhKubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](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)}(hfolioh]hfolio}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjMmodnameN classnameNjpjs)}jv]jy)}jljpMsbc.folio_is_file_lruasbuh1hhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjF )}(hjI h]h*}(hjMhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjMubj)}(hfolioh]hfolio}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubah}(h]h ]h"]h$]h&]jjuh1j hjIMhhhj[MhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjEMhhhj[MhKubah}(h]j@Mah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj[MhKhjBMhhubj4)}(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?}(hj(NhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhj%Nhhubah}(h]h ]h"]h$]h&]uh1j3hjBMhhhj[MhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj@NjHj@NjIjJjKuh1hhhhj hNhNubj)}(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)}(hjJNh]h Parameters}(hjLNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjDNubj)}(hhh]j)}(h1``const struct folio *folio`` The folio to test. h](j)}(h``const struct folio *folio``h]jS)}(hjiNh]hconst struct folio *folio}(hjkNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjcNubj)}(hhh]jM)}(hThe folio to test.h]hThe folio to test.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~NhKhjNubah}(h]h ]h"]h$]h&]uh1jhjcNubeh}(h]h ]h"]h$]h&]uh1jhj~NhKhj`Nubah}(h]h ]h"]h$]h&]uh1jhjDNubjM)}(h**Description**h]j)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjDNubjM)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjDNubjM)}(h **Return**h]j)}(hjNh]hReturn}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjDNubjM)}(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 }(hjNhhhNhNubj)}(h **folio**h]hfolio}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubhn is a regular filesystem backed page cache folio or a lazily freed anonymous folio (e.g. via MADV_FREE). 0 if }(hjNhhhNhNubj)}(h **folio**h]hfolio}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubhR is a normal anonymous folio, a tmpfs folio or otherwise ram or swap backed folio.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjDNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$__folio_clear_lru_flags (C function)c.__folio_clear_lru_flagshNtauh1hhj hhhNhNubh)}(hhh](h)}(h2void __folio_clear_lru_flags (struct folio *folio)h]h)}(h1void __folio_clear_lru_flags(struct folio *folio)h](j)}(hvoidh]hvoid}(hj4OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0OhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK:ubj)}(h h]h }(hjCOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0OhhhjBOhK:ubh)}(h__folio_clear_lru_flagsh]j)}(h__folio_clear_lru_flagsh]h__folio_clear_lru_flags}(hjUOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQOubah}(h]h ](jjeh"]h$]h&]jjuh1hhj0OhhhjBOhK:ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjqOhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjmOubj)}(h h]h }(hj~OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmOubh)}(hhh]j)}(hfolioh]hfolio}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjOmodnameN classnameNjpjs)}jv]jy)}jljWOsbc.__folio_clear_lru_flagsasbuh1hhjmOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmOubjF )}(hjI h]h*}(hjOhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjmOubj)}(hfolioh]hfolio}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmOubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjiOubah}(h]h ]h"]h$]h&]jjuh1j hj0OhhhjBOhK:ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj,OhhhjBOhK:ubah}(h]j'Oah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjBOhK:hj)Ohhubj4)}(hhh]jM)}(h-Clear page lru flags before releasing a page.h]h-Clear page lru flags before releasing a page.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK:hjOhhubah}(h]h ]h"]h$]h&]uh1j3hj)OhhhjBOhK:ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj PjHj PjIjJjKuh1hhhhj hNhNubj)}(ha**Parameters** ``struct folio *folio`` The folio that was on lru and now has a zero reference.h](jM)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK>hjPubj)}(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)}(hj5Ph]hstruct folio *folio}(hj7PhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3Pubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK@hj/Pubj)}(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.}(hjNPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK;hjKPubah}(h]h ]h"]h$]h&]uh1jhj/Pubeh}(h]h ]h"]h$]h&]uh1jhjJPhK@hj,Pubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_lru_list (C function)c.folio_lru_listhNtauh1hhj hhhNhNubh)}(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)}(hjh]henum}(hjPhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjPhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKLubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjPhKLubh)}(hhh]j)}(hlru_listh]hlru_list}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjPmodnameN classnameNjpjs)}jv]jy)}jlfolio_lru_listsbc.folio_lru_listasbuh1hhjPhhhjPhKLubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjPhKLubh)}(hfolio_lru_listh]j)}(hjPh]hfolio_lru_list}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1hhjPhhhjPhKLubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjPhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjPubj)}(h h]h }(hj QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj5)}(hj8h]hstruct}(hjQhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjPubj)}(h h]h }(hj$QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]j)}(hfolioh]hfolio}(hj5QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Qubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7QmodnameN classnameNjpjs)}jv]jPc.folio_lru_listasbuh1hhjPubj)}(h h]h }(hjSQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjF )}(hjI h]h*}(hjaQhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjPubj)}(hfolioh]hfolio}(hjnQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPubah}(h]h ]h"]h$]h&]jjuh1j hjPhhhjPhKLubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjPhhhjPhKLubah}(h]jPah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjPhKLhjPhhubj4)}(hhh]jM)}(h$Which LRU list should a folio be on?h]h$Which LRU list should a folio be on?}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKLhjQhhubah}(h]h ]h"]h$]h&]uh1j3hjPhhhjPhKLubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjQjHjQjIjJjKuh1hhhhj hNhNubj)}(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)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKPhjQubj)}(hhh]j)}(h1``const struct folio *folio`` The folio to test. h](j)}(h``const struct folio *folio``h]jS)}(hjQh]hconst struct folio *folio}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKMhjQubj)}(hhh]jM)}(hThe folio to test.h]hThe folio to test.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhKMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhKMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubjM)}(h **Return**h]j)}(hjRh]hReturn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKOhjQubjM)}(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.}(hj*RhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKOhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!num_pages_contiguous (C function)c.num_pages_contiguoushNtauh1hhj hhhNhNubh)}(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}(hj\RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj^RmodnameN classnameNjpjs)}jv]jy)}jlnum_pages_contiguoussbc.num_pages_contiguousasbuh1hhjURhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhM{ubj)}(h h]h }(hj~RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjURhhhj}RhM{ubh)}(hnum_pages_contiguoush]j)}(hjzRh]hnum_pages_contiguous}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1hhjURhhhj}RhM{ubj )}(h&(struct page **pages, size_t nr_pages)h](j )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hjRhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j)}(hpageh]hpage}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRmodnameN classnameNjpjs)}jv]jxRc.num_pages_contiguousasbuh1hhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjF )}(hjI h]h*}(hjRhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjRubjF )}(hjI h]h*}(hjShhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjRubj)}(hpagesh]hpages}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubj )}(hsize_t nr_pagesh](h)}(hhh]j)}(hsize_th]hsize_t}(hj+ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Subah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj-SmodnameN classnameNjpjs)}jv]jxRc.num_pages_contiguousasbuh1hhj$Subj)}(h h]h }(hjIShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Subj)}(hnr_pagesh]hnr_pages}(hjWShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Subeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubeh}(h]h ]h"]h$]h&]jjuh1j hjURhhhj}RhM{ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjQRhhhj}RhM{ubah}(h]jLRah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj}RhM{hjNRhhubj4)}(hhh]jM)}(hGdetermine the number of contiguous pages that represent contiguous PFNsh]hGdetermine the number of contiguous pages that represent contiguous PFNs}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhM{hj~Shhubah}(h]h ]h"]h$]h&]uh1j3hjNRhhhj}RhM{ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjSjHjSjIjJjKuh1hhhhj hNhNubj)}(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)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMhjSubj)}(hhh](j)}(h2``struct page **pages`` an array of page pointers h](j)}(h``struct page **pages``h]jS)}(hjSh]hstruct page **pages}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhM}hjSubj)}(hhh]jM)}(han array of page pointersh]han array of page pointers}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjShM}hjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShM}hjSubj)}(h4``size_t nr_pages`` length of the array, at least 1 h](j)}(h``size_t nr_pages``h]jS)}(hjSh]hsize_t nr_pages}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhM~hjSubj)}(hhh]jM)}(hlength of the array, at least 1h]hlength of the array, at least 1}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjThM~hjTubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjThM~hjSubeh}(h]h ]h"]h$]h&]uh1jhjSubjM)}(h**Description**h]j)}(hj6Th]h Description}(hj8ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4Tubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMhjSubjM)}(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 }(hjLThhhNhNubj)}(h **pages**h]hpages}(hjTThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLTubh, starting from the first page.}(hjLThhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMhjSubjM)}(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().}(hjmThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMhjSubjM)}(h'Returns the number of contiguous pages.h]h'Returns the number of contiguous pages.}(hj|ThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpage_folio (C macro) c.page_foliohNtauh1hhj hhhNhNubh)}(hhh](h)}(h page_folioh]h)}(h page_folioh]h)}(h page_folioh]j)}(hjTh]h page_folio}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1hhjThhh[/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'hjThhhjThM ubah}(h]jTah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjThM hjThhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjThhhjThM ubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjTjHjTjIjJjKuh1hhhhj hNhNubjM)}(h``page_folio (p)``h]jS)}(hjTh]hpage_folio (p)}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjTubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM"hj hhubji)}(hConverts from page to folio. h]jM)}(hConverts from page to folio.h]hConverts from page to folio.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hjTubah}(h]h ]h"]h$]h&]uh1jhhj UhM hj hhubj)}(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)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM$hjUubj)}(hhh]j)}(h``p`` The page. h](j)}(h``p``h]jS)}(hj5Uh]hp}(hj7UhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3Uubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM!hj/Uubj)}(hhh]jM)}(h The page.h]h The page.}(hjNUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJUhM!hjKUubah}(h]h ]h"]h$]h&]uh1jhj/Uubeh}(h]h ]h"]h$]h&]uh1jhjJUhM!hj,Uubah}(h]h ]h"]h$]h&]uh1jhjUubjM)}(h**Description**h]j)}(hjpUh]h Description}(hjrUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnUubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM#hjUubjM)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM"hjUubjM)}(h **Context**h]j)}(hjUh]hContext}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM%hjUubjM)}(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 }(hjUhhhNhNubj)}(h**page**h]hpage}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh. 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.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM&hjUubjM)}(h **Return**h]j)}(hjUh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM+hjUubjM)}(h#The folio which contains this page.h]h#The folio which contains this page.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM*hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_page (C macro) c.folio_pagehNtauh1hhj hhhNhNubh)}(hhh](h)}(h folio_pageh]h)}(h folio_pageh]h)}(h folio_pageh]j)}(hjVh]h folio_page}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1hhjVhhh[/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 Vhhhj,VhM1ubah}(h]jVah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj,VhM1hj Vhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hj Vhhhj,VhM1ubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjEVjHjEVjIjJjKuh1hhhhj hNhNubjM)}(h``folio_page (folio, n)``h]jS)}(hjKVh]hfolio_page (folio, n)}(hjMVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIVubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM3hj hhubji)}(hReturn a page from a folio. h]jM)}(hReturn a page from a folio.h]hReturn a page from a folio.}(hjeVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM1hjaVubah}(h]h ]h"]h$]h&]uh1jhhjsVhM1hj hhubj)}(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)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Vubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM5hjzVubj)}(hhh](j)}(h``folio`` The folio. h](j)}(h ``folio``h]jS)}(hjVh]hfolio}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM2hjVubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhM2hjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhM2hjVubj)}(h!``n`` The page number to return. h](j)}(h``n``h]jS)}(hjVh]hn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM3hjVubj)}(hhh]jM)}(hThe page number to return.h]hThe page number to return.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhM3hjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhM3hjVubeh}(h]h ]h"]h$]h&]uh1jhjzVubjM)}(h**Description**h]j)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM5hjzVubjM)}(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-WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)Wubhg is relative to the start of the folio. This function does not check that the page number lies within }(hj)WhhhNhNubj)}(h **folio**h]hfolio}(hj?WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)Wubh9; the caller is presumed to have a reference to the page.}(hj)WhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM4hjzVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(folio_xor_flags_has_waiters (C function)c.folio_xor_flags_has_waitershNtauh1hhj hhhNhNubh)}(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}(hjxWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtWhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtWhhhjWhMubh)}(hfolio_xor_flags_has_waitersh]j)}(hfolio_xor_flags_has_waitersh]hfolio_xor_flags_has_waiters}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1hhjtWhhhjWhMubj )}(h)(struct folio *folio, unsigned long mask)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjWhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j)}(hfolioh]hfolio}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWmodnameN classnameNjpjs)}jv]jy)}jljWsbc.folio_xor_flags_has_waitersasbuh1hhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjF )}(hjI h]h*}(hjXhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjWubj)}(hfolioh]hfolio}(hj XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubj )}(hunsigned long maskh](j)}(hunsignedh]hunsigned}(hj&XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Xubj)}(h h]h }(hj4XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Xubj)}(hlongh]hlong}(hjBXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Xubj)}(h h]h }(hjPXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Xubj)}(hmaskh]hmask}(hj^XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Xubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubeh}(h]h ]h"]h$]h&]jjuh1j hjtWhhhjWhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjpWhhhjWhMubah}(h]jkWah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjWhMhjmWhhubj4)}(hhh]jM)}(hChange some folio flags.h]hChange some folio flags.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjXhhubah}(h]h ]h"]h$]h&]uh1j3hjmWhhhjWhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjXjHjXjIjJjKuh1hhhhj hNhNubj)}(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)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjXubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjXh]hstruct folio *folio}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjXubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjXubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjXubj)}(h>``unsigned long mask`` Bits set in this word will be changed. h](j)}(h``unsigned long mask``h]jS)}(hjYh]hunsigned long mask}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjXubj)}(hhh]jM)}(h&Bits set in this word will be changed.h]h&Bits set in this word will be changed.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYhMhjYubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjXubeh}(h]h ]h"]h$]h&]uh1jhjXubjM)}(h**Description**h]j)}(hj=Yh]h Description}(hj?YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Yubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjXubjM)}(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.}(hjSYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjXubjM)}(h **Return**h]j)}(hjdYh]hReturn}(hjfYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbYubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjXubjM)}(h-Whether there are tasks waiting on the folio.h]h-Whether there are tasks waiting on the folio.}(hjzYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_test_uptodate (C function)c.folio_test_uptodatehNtauh1hhj hhhNhNubh)}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjYhMubh)}(hfolio_test_uptodateh]j)}(hfolio_test_uptodateh]hfolio_test_uptodate}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1hhjYhhhjYhMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj5)}(hj8h]hstruct}(hjZhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjYubj)}(h h]h }(hj ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(hfolioh]hfolio}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj ZmodnameN classnameNjpjs)}jv]jy)}jljYsbc.folio_test_uptodateasbuh1hhjYubj)}(h h]h }(hj>ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjF )}(hjI h]h*}(hjLZhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjYubj)}(hfolioh]hfolio}(hjYZhhhNhNubah}(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)}(hIs this folio up to date?h]hIs this folio up to date?}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjZhhubah}(h]h ]h"]h$]h&]uh1j3hjYhhhjYhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjZjHjZjIjJjKuh1hhhhj hNhNubj)}(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)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hjZubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjZh]hconst struct folio *folio}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjZubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjZubjM)}(h**Description**h]j)}(hjZh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hjZubjM)}(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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_test_large (C function)c.folio_test_largehNtauh1hhj hhhNhNubh)}(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}(hjD[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@[hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMYubj)}(h h]h }(hjR[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@[hhhjQ[hMYubh)}(hfolio_test_largeh]j)}(hfolio_test_largeh]hfolio_test_large}(hjd[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj@[hhhjQ[hMYubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](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}(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)}jljf[sbc.folio_test_largeasbuh1hhj|[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 hjx[ubah}(h]h ]h"]h$]h&]jjuh1j hj@[hhhjQ[hMYubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj<[hhhjQ[hMYubah}(h]j7[ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjQ[hMYhj9[hhubj4)}(hhh]jM)}(h+Does this folio contain more than one page?h]h+Does this folio contain more than one page?}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMYhj\hhubah}(h]h ]h"]h$]h&]uh1j3hj9[hhhjQ[hMYubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj6\jHj6\jIjJjKuh1hhhhj hNhNubj)}(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)}(hj@\h]h Parameters}(hjB\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)}(h1``const struct folio *folio`` The folio to test. h](j)}(h``const struct folio *folio``h]jS)}(hj_\h]hconst struct folio *folio}(hja\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.hhMZhjY\ubj)}(hhh]jM)}(hThe folio to test.h]hThe folio to test.}(hjx\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjt\hMZhju\ubah}(h]h ]h"]h$]h&]uh1jhjY\ubeh}(h]h ]h"]h$]h&]uh1jhjt\hMZhjV\ubah}(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&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM\hj:\ubjM)}(h*True if the folio is larger than one page.h]h*True if the folio is larger than one 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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hPageHuge (C function) c.PageHugehNtauh1hhj hhhNhNubh)}(hhh](h)}(h'bool PageHuge (const struct page *page)h]h)}(h&bool PageHuge(const struct page *page)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.hhM)ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj\hM)ubh)}(hPageHugeh]j)}(hPageHugeh]hPageHuge}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj\hhhj\hM)ubj )}(h(const struct page *page)h]j )}(hconst struct page *pageh](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}(hj6]hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj]ubj)}(h h]h }(hjC]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hhh]j)}(hpageh]hpage}(hjT]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjV]modnameN classnameNjpjs)}jv]jy)}jlj]sb c.PageHugeasbuh1hhj]ubj)}(h h]h }(hjt]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]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*Determine if the page belongs to hugetlbfsh]h*Determine if the page belongs to hugetlbfs}(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]hhubah}(h]h ]h"]h$]h&]uh1j3hj\hhhj\hM)ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj]jHj]jIjJjKuh1hhhhj hNhNubj)}(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)}(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.``const struct page *page`` The page to test. 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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM*hj]ubj)}(hhh]jM)}(hThe page to test.h]hThe page to test.}(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 **Context**h]j)}(hj5^h]hContext}(hj7^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3^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 Any context.h]h Any context.}(hjK^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 **Return**h]j)}(hj\^h]hReturn}(hj^^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ^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)}(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.}(hjr^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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!page_has_movable_ops (C function)c.page_has_movable_opshNtauh1hhj hhhNhNubh)}(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}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMnubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj^hMnubh)}(hpage_has_movable_opsh]j)}(hpage_has_movable_opsh]hpage_has_movable_ops}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj^hhhj^hMnubj )}(h(const struct page *page)h]j )}(hconst struct page *pageh](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}(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.page_has_movable_opsasbuh1hhj^ubj)}(h h]h }(hj6_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjF )}(hjI h]h*}(hjD_hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj^ubj)}(hpageh]hpage}(hjQ_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj^ubah}(h]h ]h"]h$]h&]jjuh1j hj^hhhj^hMnubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj^hhhj^hMnubah}(h]j^ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj^hMnhj^hhubj4)}(hhh]jM)}(htest for a movable_ops pageh]htest for a movable_ops page}(hj{_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMnhjx_hhubah}(h]h ]h"]h$]h&]uh1j3hj^hhhj^hMnubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj_jHj_jIjJjKuh1hhhhj hNhNubj)}(h**Parameters** ``const struct page *page`` The page to test. **Description** Test whether this is a movable_ops page. Such pages will stay that way until freed. Returns true if this is a movable_ops page, 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&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMrhj_ubj)}(hhh]j)}(h.``const struct page *page`` The page to test. 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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMohj_ubj)}(hhh]jM)}(hThe page to test.h]hThe page to test.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hMohj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMohj_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.hhMqhj_ubjM)}(hSTest whether this is a movable_ops page. Such pages will stay that way until freed.h]hSTest whether this is a movable_ops page. Such pages will stay that way until freed.}(hj `hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMphj_ubjM)}(h`ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjY`hMhj@`hhubj4)}(hhh]jM)}(h$Determine if folio has private stuffh]h$Determine if folio has private stuff}(hj&ahhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj#ahhubah}(h]h ]h"]h$]h&]uh1j3hj@`hhhjY`hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj>ajHj>ajIjJjKuh1hhhhj hNhNubj)}(h**Parameters** ``const struct folio *folio`` The folio to be checked **Description** Determine if a folio has private stuff, indicating that release routines should be invoked upon it.h](jM)}(h**Parameters**h]j)}(hjHah]h Parameters}(hjJahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFaubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjBaubj)}(hhh]j)}(h6``const struct folio *folio`` The folio to be checked h](j)}(h``const struct folio *folio``h]jS)}(hjgah]hconst struct folio *folio}(hjiahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeaubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjaaubj)}(hhh]jM)}(hThe folio to be checkedh]hThe folio to be checked}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|ahMhj}aubah}(h]h ]h"]h$]h&]uh1jhjaaubeh}(h]h ]h"]h$]h&]uh1jhj|ahMhj^aubah}(h]h ]h"]h$]h&]uh1jhjBaubjM)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(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.hhMhjBaubjM)}(hcDetermine if a folio has private stuff, indicating that release routines should be invoked upon it.h]hcDetermine if a folio has private stuff, indicating that release routines should be invoked upon it.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjBaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_page_idx (C function)c.folio_page_idxhNtauh1hhj hhhNhNubh)}(hhh](h)}(hQunsigned long folio_page_idx (const struct folio *folio, const struct page *page)h]h)}(hPunsigned long folio_page_idx(const struct folio *folio, const struct page *page)h](j)}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhKubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjahKubj)}(hlongh]hlong}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjahKubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjahKubh)}(hfolio_page_idxh]j)}(hfolio_page_idxh]hfolio_page_idx}(hj$bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj bubah}(h]h ](jjeh"]h$]h&]jjuh1hhjahhhjahKubj )}(h4(const struct folio *folio, const struct page *page)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj@bhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjunsigned 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}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjfhMubj)}(hlongh]hlong}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjfhMubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjfhMubh)}(hvma_kernel_pagesizeh]j)}(hvma_kernel_pagesizeh]hvma_kernel_pagesize}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1hhjfhhhjfhMubj )}(h(struct vm_area_struct *vma)h]j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjfhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjfubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjgmodnameN classnameNjpjs)}jv]jy)}jljfsbc.vma_kernel_pagesizeasbuh1hhjfubj)}(h h]h }(hj2ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjF )}(hjI h]h*}(hj@ghhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjfubj)}(hvmah]hvma}(hjMghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjfubah}(h]h ]h"]h$]h&]jjuh1j hjfhhhjfhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjfhhhjfhMubah}(h]jfah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjfhMhjfhhubj4)}(hhh]jM)}(h+Default page size granularity for this VMA.h]h+Default page size granularity for this VMA.}(hjwghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjtghhubah}(h]h ]h"]h$]h&]uh1j3hjfhhhjfhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjgjHjgjIjJjKuh1hhhhj hNhNubj)}(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)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjgubj)}(hhh]j)}(h1``struct vm_area_struct *vma`` The user mapping. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjgh]hstruct vm_area_struct *vma}(hjghhhNhNubah}(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.hhMhjgubj)}(hhh]jM)}(hThe user mapping.h]hThe user mapping.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubjM)}(h**Description**h]j)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjgubjM)}(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.}(hj hhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjgubjM)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM!hjgubjM)}(h **Return**h]j)}(hj)hh]hReturn}(hj+hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'hubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM$hjgubjM)}(h/The default page size granularity for this VMA.h]h/The default page size granularity for this VMA.}(hj?hhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM%hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_order (C function) c.folio_orderhNtauh1hhj hhhNhNubh)}(hhh](h)}(h4unsigned int folio_order (const struct folio *folio)h]h)}(h3unsigned int folio_order(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjnhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj}hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhhj|hhMubj)}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhhj|hhMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhhj|hhMubh)}(h folio_orderh]j)}(h folio_orderh]h folio_order}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1hhjjhhhhj|hhMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjhhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj5)}(hj8h]hstruct}(hjhhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]j)}(hfolioh]hfolio}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjimodnameN classnameNjpjs)}jv]jy)}jljhsb c.folio_orderasbuh1hhjhubj)}(h h]h }(hj ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjF )}(hjI h]h*}(hj.ihhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhubj)}(hfolioh]hfolio}(hj;ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjhubah}(h]h ]h"]h$]h&]jjuh1j hjjhhhhj|hhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjfhhhhj|hhMubah}(h]jahah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj|hhMhjchhhubj4)}(hhh]jM)}(h The allocation order of a folio.h]h The allocation order of a folio.}(hjeihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjbihhubah}(h]h ]h"]h$]h&]uh1j3hjchhhhj|hhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj}ijHj}ijIjJjKuh1hhhhj hNhNubj)}(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)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjiubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjih]hconst struct folio *folio}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjiubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjiubjM)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjiubjM)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjiubjM)}(h **Return**h]j)}(hjjh]hReturn}(hj jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjiubjM)}(hThe order of the folio.h]hThe order of the folio.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_reset_order (C function)c.folio_reset_orderhNtauh1hhj hhhNhNubh)}(hhh](h)}(h,void folio_reset_order (struct folio *folio)h]h)}(h+void folio_reset_order(struct folio *folio)h](j)}(hvoidh]hvoid}(hjMjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj\jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIjhhhj[jhMubh)}(hfolio_reset_orderh]j)}(hfolio_reset_orderh]hfolio_reset_order}(hjnjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjIjhhhj[jhMubj )}(h(struct folio *folio)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)}jljpjsbc.folio_reset_orderasbuh1hhjjubj)}(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 hjjubah}(h]h ]h"]h$]h&]jjuh1j hjIjhhhj[jhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjEjhhhj[jhMubah}(h]j@jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj[jhMhjBjhhubj4)}(hhh]jM)}(h+Reset the folio order and derived _nr_pagesh]h+Reset the folio order and derived _nr_pages}(hj khhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj khhubah}(h]h ]h"]h$]h&]uh1j3hjBjhhhj[jhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj%kjHj%kjIjJjKuh1hhhhj hNhNubj)}(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)}(hj/kh]h Parameters}(hj1khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-kubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj)kubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjNkh]hstruct folio *folio}(hjPkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLkubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjHkubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjgkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjckhMhjdkubah}(h]h ]h"]h$]h&]uh1jhjHkubeh}(h]h ]h"]h$]h&]uh1jhjckhMhjEkubah}(h]h ]h"]h$]h&]uh1jhj)kubjM)}(h**Description**h]j)}(hjkh]h Description}(hjkhhhNhNubah}(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.hhMhj)kubjM)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj)kubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mapcount (C function)c.folio_mapcounthNtauh1hhj hhhNhNubh)}(hhh](h)}(h.int folio_mapcount (const struct folio *folio)h]h)}(h-int folio_mapcount(const struct folio *folio)h](j)}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM8ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhjkhM8ubh)}(hfolio_mapcounth]j)}(hfolio_mapcounth]hfolio_mapcount}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1hhjkhhhjkhM8ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj lhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj5)}(hj8h]hstruct}(hj&lhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlubj)}(h h]h }(hj3lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j)}(hfolioh]hfolio}(hjDlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjFlmodnameN classnameNjpjs)}jv]jy)}jljksbc.folio_mapcountasbuh1hhjlubj)}(h h]h }(hjdlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjF )}(hjI h]h*}(hjrlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjlubj)}(hfolioh]hfolio}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubah}(h]h ]h"]h$]h&]jjuh1j hjkhhhjkhM8ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjkhhhjkhM8ubah}(h]jkah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjkhM8hjkhhubj4)}(hhh]jM)}(h!Number of mappings of this folio.h]h!Number of mappings of this folio.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM8hjlhhubah}(h]h ]h"]h$]h&]uh1j3hjkhhhjkhM8ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjljHjljIjJjKuh1hhhhj hNhNubj)}(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)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM<hjlubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjlh]hconst struct folio *folio}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM9hjlubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhM9hjmubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhM9hjlubah}(h]h ]h"]h$]h&]uh1jhjlubjM)}(h**Description**h]j)}(hj%mh]h Description}(hj'mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#mubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM;hjlubjM)}(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.}(hj;mhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM:hjlubjM)}(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.}(hjJmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM>hjlubjM)}(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.}(hjYmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMAhjlubjM)}(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.}(hjhmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMEhjlubjM)}(h **Return**h]j)}(hjymh]hReturn}(hj{mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwmubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMHhjlubjM)}(h)The number of times this folio is mapped.h]h)The number of times this folio is mapped.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMIhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mapped (C function)c.folio_mappedhNtauh1hhj hhhNhNubh)}(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}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMYubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjmhMYubh)}(h folio_mappedh]j)}(h folio_mappedh]h folio_mapped}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1hhjmhhhjmhMYubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjmhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjmubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj5)}(hj8h]hstruct}(hjnhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjmubj)}(h h]h }(hj"nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hhh]j)}(hfolioh]hfolio}(hj3nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0nubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5nmodnameN classnameNjpjs)}jv]jy)}jljmsbc.folio_mappedasbuh1hhjmubj)}(h h]h }(hjSnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjF )}(hjI h]h*}(hjanhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjmubj)}(hfolioh]hfolio}(hjnnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjmubah}(h]h ]h"]h$]h&]jjuh1j hjmhhhjmhMYubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjmhhhjmhMYubah}(h]jmah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjmhMYhjmhhubj4)}(hhh]jM)}(h$Is this folio mapped into userspace?h]h$Is this folio mapped into userspace?}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMYhjnhhubah}(h]h ]h"]h$]h&]uh1j3hjmhhhjmhMYubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjnjHjnjIjJjKuh1hhhhj hNhNubj)}(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)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM]hjnubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjnh]hconst struct folio *folio}(hjnhhhNhNubah}(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.hhMZhjnubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjnhMZhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMZhjnubah}(h]h ]h"]h$]h&]uh1jhjnubjM)}(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.hhM\hjnubjM)}(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.}(hj*ohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM\hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hthp_order (C function) c.thp_orderhNtauh1hhj hhhNhNubh)}(hhh](h)}(h*unsigned int thp_order (struct page *page)h]h)}(h)unsigned int thp_order(struct page *page)h](j)}(hunsignedh]hunsigned}(hjYohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUohhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjhohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUohhhjgohMubj)}(hinth]hint}(hjvohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUohhhjgohMubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUohhhjgohMubh)}(h thp_orderh]j)}(h thp_orderh]h thp_order}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1hhjUohhhjgohMubj )}(h(struct page *page)h]j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j)}(hpageh]hpage}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjomodnameN classnameNjpjs)}jv]jy)}jljosb c.thp_orderasbuh1hhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjF )}(hjI h]h*}(hjohhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjoubj)}(hpageh]hpage}(hj phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubah}(h]h ]h"]h$]h&]jjuh1j hjUohhhjgohMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjQohhhjgohMubah}(h]jLoah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjgohMhjNohhubj4)}(hhh]jM)}(h!Order of a transparent huge page.h]h!Order of a transparent huge page.}(hj5phhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj2phhubah}(h]h ]h"]h$]h&]uh1j3hjNohhhjgohMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjMpjHjMpjIjJjKuh1hhhhj hNhNubj)}(hM**Parameters** ``struct page *page`` Head page of a transparent huge page.h](jM)}(h**Parameters**h]j)}(hjWph]h Parameters}(hjYphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUpubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjQpubj)}(hhh]j)}(h;``struct page *page`` Head page of a transparent huge page.h](j)}(h``struct page *page``h]jS)}(hjvph]hstruct page *page}(hjxphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtpubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjppubj)}(hhh]jM)}(h%Head page of a transparent huge page.h]h%Head page of a transparent huge page.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjpubah}(h]h ]h"]h$]h&]uh1jhjppubeh}(h]h ]h"]h$]h&]uh1jhjphMhjmpubah}(h]h ]h"]h$]h&]uh1jhjQpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hthp_size (C function) c.thp_sizehNtauh1hhj hhhNhNubh)}(hhh](h)}(h*unsigned long thp_size (struct page *page)h]h)}(h)unsigned long thp_size(struct page *page)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 }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjphMubj)}(hlongh]hlong}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjphMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjphMubh)}(hthp_sizeh]j)}(hthp_sizeh]hthp_size}(hj qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj qubah}(h]h ](jjeh"]h$]h&]jjuh1hhjphhhjphMubj )}(h(struct page *page)h]j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hj)qhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj%qubj)}(h h]h }(hj6qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%qubh)}(hhh]j)}(hpageh]hpage}(hjGqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDqubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjIqmodnameN classnameNjpjs)}jv]jy)}jljqsb c.thp_sizeasbuh1hhj%qubj)}(h h]h }(hjgqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%qubjF )}(hjI h]h*}(hjuqhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj%qubj)}(hpageh]hpage}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%qubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!qubah}(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)}(h Size of a transparent huge page.h]h Size of a transparent huge page.}(hjqhhhNhNubah}(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&]uh1j3hjphhhjphMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjqjHjqjIjJjKuh1hhhhj hNhNubj)}(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)}(hjqh]h Parameters}(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.hhMhjqubj)}(hhh]j)}(h<``struct page *page`` Head page of a transparent huge page. h](j)}(h``struct page *page``h]jS)}(hjqh]hstruct page *page}(hjqhhhNhNubah}(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.hhMhjqubj)}(hhh]jM)}(h%Head page of a transparent huge page.h]h%Head page of a transparent huge page.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjqubah}(h]h ]h"]h$]h&]uh1jhjqubjM)}(h **Return**h]j)}(hj(rh]hReturn}(hj*rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&rubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjqubjM)}(hNumber of bytes in this page.h]hNumber of bytes in this page.}(hj>rhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_get (C function) c.folio_gethNtauh1hhj hhhNhNubh)}(hhh](h)}(h$void folio_get (struct folio *folio)h]h)}(h#void folio_get(struct folio *folio)h](j)}(hvoidh]hvoid}(hjmrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjirhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj|rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjirhhhj{rhMubh)}(h folio_geth]j)}(h folio_geth]h folio_get}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ](jjeh"]h$]h&]jjuh1hhjirhhhj{rhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(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]jy)}jljrsb c.folio_getasbuh1hhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjF )}(hjI h]h*}(hjrhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjrubj)}(hfolioh]hfolio}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubah}(h]h ]h"]h$]h&]jjuh1j hjirhhhj{rhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjerhhhj{rhMubah}(h]j`rah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj{rhMhjbrhhubj4)}(hhh]jM)}(h)Increment the reference count on a folio.h]h)Increment the reference count on a folio.}(hj-shhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj*shhubah}(h]h ]h"]h$]h&]uh1j3hjbrhhhj{rhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjEsjHjEsjIjJjKuh1hhhhj hNhNubj)}(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)}(hjOsh]h Parameters}(hjQshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMsubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjIsubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjnsh]hstruct folio *folio}(hjpshhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlsubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjhsubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjshMhjsubah}(h]h ]h"]h$]h&]uh1jhjhsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjesubah}(h]h ]h"]h$]h&]uh1jhjIsubjM)}(h **Context**h]j)}(hjsh]hContext}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjIsubjM)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjIsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_put (C function) c.folio_puthNtauh1hhj hhhNhNubh)}(hhh](h)}(h$void folio_put (struct folio *folio)h]h)}(h#void folio_put(struct folio *folio)h](j)}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjshMubh)}(h folio_puth]j)}(h folio_puth]h folio_put}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj tubah}(h]h ](jjeh"]h$]h&]jjuh1hhjshhhjshMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj+thhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj'tubj)}(h h]h }(hj8thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'tubh)}(hhh]j)}(hfolioh]hfolio}(hjIthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFtubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKtmodnameN classnameNjpjs)}jv]jy)}jljtsb c.folio_putasbuh1hhj'tubj)}(h h]h }(hjithhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'tubjF )}(hjI h]h*}(hjwthhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj'tubj)}(hfolioh]hfolio}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'tubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#tubah}(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)}(h)Decrement the reference count on a folio.h]h)Decrement the reference count on a folio.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjthhubah}(h]h ]h"]h$]h&]uh1j3hjshhhjshMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjtjHjtjIjJjKuh1hhhhj hNhNubj)}(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)}(hjth]h Parameters}(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.hhMhjtubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjth]hstruct 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.hhMhjtubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubjM)}(h**Description**h]j)}(hj*uh]h Description}(hj,uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(uubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjtubjM)}(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@uhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjtubjM)}(h **Context**h]j)}(hjQuh]hContext}(hjSuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOuubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM#hjtubjM)}(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.}(hjguhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM$hjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_put_refs (C function)c.folio_put_refshNtauh1hhj hhhNhNubh)}(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}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhS/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&]uh1jhjuhhhjuhM.ubh)}(hfolio_put_refsh]j)}(hfolio_put_refsh]hfolio_put_refs}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1hhjuhhhjuhM.ubj )}(h(struct folio *folio, int refs)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_put_refsasbuh1hhjuubj)}(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 )}(hint refsh](j)}(hinth]hint}(hjEvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAvubj)}(h h]h }(hjSvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAvubj)}(hrefsh]hrefs}(hjavhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubeh}(h]h ]h"]h$]h&]jjuh1j hjuhhhjuhM.ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjuhhhjuhM.ubah}(h]juah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjuhM.hjuhhubj4)}(hhh]jM)}(h&Reduce the reference count on a folio.h]h&Reduce the reference count on a folio.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM.hjvhhubah}(h]h ]h"]h$]h&]uh1j3hjuhhhjuhM.ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjvjHjvjIjJjKuh1hhhhj hNhNubj)}(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)}(hjvh]h Parameters}(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.hhM2hjvubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjvh]hstruct folio *folio}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjvubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM/hjvubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvhM/hjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhM/hjvubj)}(hF``int refs`` The amount to subtract from the folio's reference count. h](j)}(h ``int refs``h]jS)}(hjwh]hint refs}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM0hjvubj)}(hhh]jM)}(h8The amount to subtract from the folio's reference count.h]h:The amount to subtract from the folio’s reference count.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwhM0hjwubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjwhM0hjvubeh}(h]h ]h"]h$]h&]uh1jhjvubjM)}(h**Description**h]j)}(hj@wh]h Description}(hjBwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>wubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM2hjvubjM)}(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.}(hjVwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM1hjvubjM)}(h **Context**h]j)}(hjgwh]hContext}(hjiwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjewubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM7hjvubjM)}(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}whhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM8hjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolios_put (C function) c.folios_puthNtauh1hhj hhhNhNubh)}(hhh](h)}(h,void folios_put (struct folio_batch *folios)h]h)}(h+void folios_put(struct folio_batch *folios)h](j)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMWubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjwhMWubh)}(h folios_puth]j)}(h folios_puth]h folios_put}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1hhjwhhhjwhMWubj )}(h(struct folio_batch *folios)h]j )}(hstruct folio_batch *foliosh](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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj xmodnameN classnameNjpjs)}jv]jy)}jljwsb c.folios_putasbuh1hhjwubj)}(h h]h }(hj'xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjF )}(hjI h]h*}(hj5xhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwubj)}(hfoliosh]hfolios}(hjBxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjwubah}(h]h ]h"]h$]h&]jjuh1j hjwhhhjwhMWubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjwhhhjwhMWubah}(h]jwah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjwhMWhjwhhubj4)}(hhh]jM)}(h4Decrement the reference count on an array of folios.h]h4Decrement the reference count on an array of folios.}(hjlxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMWhjixhhubah}(h]h ]h"]h$]h&]uh1j3hjwhhhjwhMWubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjxjHjxjIjJjKuh1hhhhj hNhNubj)}(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)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM[hjxubj)}(hhh]j)}(h+``struct folio_batch *folios`` The folios. h](j)}(h``struct folio_batch *folios``h]jS)}(hjxh]hstruct folio_batch *folios}(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.hhMXhjxubj)}(hhh]jM)}(h The folios.h]h The folios.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhMXhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMXhjxubah}(h]h ]h"]h$]h&]uh1jhjxubjM)}(h**Description**h]j)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMZhjxubjM)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMYhjxubjM)}(h **Context**h]j)}(hjyh]hContext}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj yubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM_hjxubjM)}(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%yhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM`hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_pfn (C function) c.folio_pfnhNtauh1hhj hhhNhNubh)}(hhh](h)}(h3unsigned long folio_pfn (const struct folio *folio)h]h)}(h2unsigned long folio_pfn(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjTyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPyhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjcyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPyhhhjbyhM ubj)}(hlongh]hlong}(hjqyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPyhhhjbyhM ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPyhhhjbyhM ubh)}(h folio_pfnh]j)}(h folio_pfnh]h folio_pfn}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1hhjPyhhhjbyhM ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj5)}(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)}jljysb c.folio_pfnasbuh1hhjyubj)}(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 hjPyhhhjbyhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjLyhhhjbyhM ubah}(h]jGyah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjbyhM hjIyhhubj4)}(hhh]jM)}(h(Return the Page Frame Number of a folio.h]h(Return the Page Frame Number of a folio.}(hjKzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjHzhhubah}(h]h ]h"]h$]h&]uh1j3hjIyhhhjbyhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjczjHjczjIjJjKuh1hhhhj hNhNubj)}(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)}(hjmzh]h Parameters}(hjozhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkzubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjgzubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjzh]hconst struct folio *folio}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjzubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzhM hjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhM hjzubah}(h]h ]h"]h$]h&]uh1jhjgzubjM)}(h**Description**h]j)}(hjzh]h Description}(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 hjgzubjM)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjgzubjM)}(h **Return**h]j)}(hjzh]hReturn}(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 hjgzubjM)}(h5The Page Frame Number of the first page in the folio.h]h5The Page Frame Number of the first page in the folio.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjgzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mk_pte (C function)c.folio_mk_ptehNtauh1hhj hhhNhNubh)}(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}(hj6{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3{ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj8{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 }(hjX{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/{hhhjW{hM ubh)}(h folio_mk_pteh]j)}(hjT{h]h folio_mk_pte}(hjj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf{ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/{hhhjW{hM 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 }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj5)}(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]jR{c.folio_mk_pteasbuh1hhj{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 )}(hpgprot_t pgproth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj|modnameN classnameNjpjs)}jv]jR{c.folio_mk_pteasbuh1hhj |ubj)}(h h]h }(hj1|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 hj}{ubeh}(h]h ]h"]h$]h&]jjuh1j hj/{hhhjW{hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj+{hhhjW{hM ubah}(h]j&{ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjW{hM hj({hhubj4)}(hhh]jM)}(hCreate a PTE for this folioh]hCreate a PTE for this folio}(hji|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjf|hhubah}(h]h ]h"]h$]h&]uh1j3hj({hhhjW{hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj|jHj|jIjJjKuh1hhhhj hNhNubj)}(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)}(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 to create a PTE for h](j)}(h``const struct folio *folio``h]jS)}(hj|h]hconst struct 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)}(hThe folio to create a PTE forh]hThe folio to create a PTE 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|ubj)}(h4``pgprot_t pgprot`` The page protection bits to use 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&]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}(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&]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().}(hj4}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)}(hjE}h]hReturn}(hjG}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC}ubah}(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.}(hj[}hhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mk_pmd (C function)c.folio_mk_pmdhNtauh1hhj hhhNhNubh)}(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}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN 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 }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhj}hM ubh)}(h folio_mk_pmdh]j)}(hj}h]h folio_mk_pmd}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj}hhhj}hM 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 }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj5)}(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]j}c.folio_mk_pmdasbuh1hhj}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)}(hfolioh]hfolio}(hjN~hhhNhNubah}(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}(hjj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg~ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjl~modnameN classnameNjpjs)}jv]j}c.folio_mk_pmdasbuh1hhjc~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc~ubj)}(hpgproth]hpgprot}(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}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)}(hCreate a PMD for this folioh]hCreate a PMD for 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 hj~hhubah}(h]h ]h"]h$]h&]uh1j3hj}hhhj}hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj~jHj~jIjJjKuh1hhhhj hNhNubj)}(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)}(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 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&]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 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&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhM hj~ubj)}(h4``pgprot_t pgprot`` The page protection bits to use h](j)}(h``pgprot_t pgprot``h]jS)}(hj:h]hpgprot_t pgprot}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj4ubj)}(hhh]jM)}(hThe page protection bits to useh]hThe page protection bits to use}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjOhM hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~ubjM)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj~ubjM)}(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().}(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)}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mk_pud (C function)c.folio_mk_pudhNtauh1hhj hhhNhNubh)}(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.hhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(h folio_mk_pudh]j)}(hjh]h folio_mk_pud}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h,(const struct folio *folio, pgprot_t pgprot)h](j )}(hconst struct folio *folioh](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)}(hfolioh]hfolio}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jc.folio_mk_pudasbuh1hhj/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 reftargetjÀmodnameN classnameNjpjs)}jv]jc.folio_mk_pudasbuh1hhjubj)}(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 hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjhhubj4)}(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.hhM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj/jHj/jIjJjKuh1hhhhj hNhNubj)}(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)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj3ubj)}(hhh](j)}(h<``const struct folio *folio`` The folio to create a PUD for h](j)}(h``const struct folio *folio``h]jS)}(hjXh]hconst struct folio *folio}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjRubj)}(hhh]jM)}(hThe folio to create a PUD forh]hThe folio to create a PUD for}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmhM hjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhM hjOubj)}(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 hjOubeh}(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&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj3ubjM)}(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.hhM hj3ubjM)}(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 hj3ubjM)}(h3A page table entry suitable for mapping this folio.h]h3A page table entry suitable for mapping 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 hj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#folio_maybe_dma_pinned (C function)c.folio_maybe_dma_pinnedhNtauh1hhj hhhNhNubh)}(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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM, ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjEhM, ubh)}(hfolio_maybe_dma_pinnedh]j)}(hfolio_maybe_dma_pinnedh]hfolio_maybe_dma_pinned}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1hhj4hhhjEhM, ubj )}(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_maybe_dma_pinnedasbuh1hhjpubj)}(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 hj4hhhjEhM, ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj0hhhjEhM, ubah}(h]j+ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjEhM, 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.hhM, hjhhubah}(h]h ]h"]h$]h&]uh1j3hj-hhhjEhM, ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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.hhM0 hjubj)}(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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM- hj2ubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhM- hjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhM- hj/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&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM/ 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM. 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”.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM1 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM6 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.}(hjhhhNhNubah}(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.}(hjŃhhhNhNubah}(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)}(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.hhMA hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](his_zero_page (C function)c.is_zero_pagehNtauh1hhj hhhNhNubh)}(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.hhMg ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj(hMg ubh)}(h is_zero_pageh]j)}(h is_zero_pageh]h is_zero_page}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj(hMg ubj )}(h(const struct page *page)h]j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjWhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj5)}(hj8h]hstruct}(hjrhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj=sbc.is_zero_pageasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjSubj)}(hpageh]hpage}(hj˄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj(hMg ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj(hMg ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj(hMg 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.hhMg hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj(hMg ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhj hNhNubj)}(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.hhMk hjubj)}(hhh]j)}(h.``const struct page *page`` The page to query h](j)}(h``const struct page *page``h]jS)}(hj6h]hconst struct page *page}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMh hj0ubj)}(hhh]jM)}(hThe page to queryh]hThe page to query}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhMh hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMh hj-ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjqh]h Description}(hjshhhNhNubah}(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.hhMj hjubjM)}(hAThis returns true if **page** is one of the permanent zero pages.h](hThis returns true if }(hjhhhNhNubj)}(h**page**h]hpage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ is one of the permanent zero pages.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMi hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](his_zero_folio (C function)c.is_zero_foliohNtauh1hhj hhhNhNubh)}(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}(hjȅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjąhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMr ubj)}(h h]h }(hjօhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjąhhhjՅhMr 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&]jjuh1hhjąhhhjՅhMr 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}(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&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj?modnameN classnameNjpjs)}jv]jy)}jljsbc.is_zero_folioasbuh1hhjubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjkhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjąhhhjՅhMr ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjՅhMr ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjՅhMr hjhhubj4)}(hhh]jM)}(hQuery if a folio is a zero pageh]hQuery if a folio 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.hhMr hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjՅhMr ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.hhMv hjubj)}(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.hhMs hj݆ubj)}(hhh]jM)}(hThe folio to queryh]hThe folio to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMs hjubah}(h]h ]h"]h$]h&]uh1jhj݆ubeh}(h]h ]h"]h$]h&]uh1jhjhMs hjچubah}(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&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMu hjubjM)}(hBThis returns true if **folio** is one of the permanent zero pages.h](hThis returns true if }(hj4hhhNhNubj)}(h **folio**h]hfolio}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh$ is one of the permanent zero pages.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMt hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_nr_pages (C function)c.folio_nr_pageshNtauh1hhj hhhNhNubh)}(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}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhS/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&]uh1jhjqhhhjhM ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhM ubh)}(hfolio_nr_pagesh]j)}(hfolio_nr_pagesh]hfolio_nr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjqhhhjhM ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](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)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljsbc.folio_nr_pagesasbuh1hhjʇubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʇubjF )}(hjI h]h*}(hj5hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjʇubj)}(hfolioh]hfolio}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʇubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjƇubah}(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!The number of pages in the folio.h]h!The number of pages in the folio.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjihhubah}(h]h ]h"]h$]h&]uh1j3hjjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(h`**Parameters** ``const struct folio *folio`` The folio. **Return** A positive power of two.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. 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)}(h The folio.h]h The folio.}(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 **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 hjubjM)}(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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_next (C function) c.folio_nexthNtauh1hhj hhhNhNubh)}(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 }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj:hM ubh)}(hhh]j)}(hfolioh]hfolio}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjNmodnameN classnameNjpjs)}jv]jy)}jl folio_nextsb c.folio_nextasbuh1hhj)hhhj:hM ubj)}(h h]h }(hjmhhhNhNubah}(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)}(h folio_nexth]j)}(hjjh]h folio_next}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj)hhhj:hM 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}(hjʼnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj‰ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjljmodnameN classnameNjpjs)}jv]jh c.folio_nextasbuh1hhjubj)}(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: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 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"hhhj:hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj@jHj@jIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(h@``struct folio *folio`` The folio we're currently operating on. h](j)}(h``struct folio *folio``h]jS)}(hjih]hstruct folio *folio}(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 folio we're currently operating on.h]h)The folio we’re currently operating on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hM hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubjM)}(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 hjDubjM)}(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 }(hjhhhNhNubh)}(h":c:type:`struct bio_vec `h]jS)}(hjĊh]hstruct bio_vec}(hjƊhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjŠubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNbio_vecuh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubh), 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 }(hjhhhNhNubjS)}(h ``page++``h]hpage++}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhM hjDubjM)}(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 hjDubjM)}(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 hjDubjM)}(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 hjDubjM)}(hThe next struct folio.h]hThe next struct folio.}(hj=hhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_shift (C function) c.folio_shifthNtauh1hhj hhhNhNubh)}(hhh](h)}(h4unsigned int folio_shift (const struct folio *folio)h]h)}(h3unsigned int folio_shift(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhS/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&]uh1jhjhhhhjzhM ubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjzhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjzhM ubh)}(h folio_shifth]j)}(h folio_shifth]h folio_shift}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhhjzhM ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjŋhhhNhNubah}(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 }(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)}jljsb c.folio_shiftasbuh1hhjubj)}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhhjzhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjdhhhjzhM ubah}(h]j_ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjzhM hjahhubj4)}(hhh]jM)}(h/The size of the memory described by this folio.h]h/The size of the memory described by this folio.}(hjchhhNhNubah}(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&]uh1j3hjahhhjzhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj{jHj{jIjJjKuh1hhhhj hNhNubj)}(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)}(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. 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)}(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&]uh1jhjubjM)}(h**Description**h]j)}(hjߌh]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:106: ./include/linux/mm.hhM hjubjM)}(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 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)}(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 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)}(h/The base-2 logarithm of the size of this folio.h]h/The base-2 logarithm of the size of this folio.}(hjChhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_size (C function) c.folio_sizehNtauh1hhj hhhNhNubh)}(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}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjwmodnameN classnameNjpjs)}jv]jy)}jl folio_sizesb c.folio_sizeasbuh1hhjnhhhS/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&]uh1jhjnhhhjhM ubh)}(h folio_sizeh]j)}(hjh]h folio_size}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjnhhhjhM ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjčhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjэhhhNhNubah}(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)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j c.folio_sizeasbuh1hhjubj)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjnhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjjhhhjhM ubah}(h]jeah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjghhubj4)}(hhh]jM)}(hThe number of bytes in a folio.h]hThe number of bytes in a 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&]uh1j3hjghhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjxjHjxjIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(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)}(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 **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.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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&folio_maybe_mapped_shared (C function)c.folio_maybe_mapped_sharedhNtauh1hhj hhhNhNubh)}(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}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhS/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&]uh1jhjDhhhjUhM ubh)}(hfolio_maybe_mapped_sharedh]j)}(hfolio_maybe_mapped_sharedh]hfolio_maybe_mapped_shared}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1hhjDhhhjUhM 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)}jljjsbc.folio_maybe_mapped_sharedasbuh1hhjubj)}(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 hj|ubah}(h]h ]h"]h$]h&]jjuh1j hjDhhhjUhM 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)}(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&]uh1j3hj=hhhjUhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hjHh]hstruct folio *folio}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjBubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]hM hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(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: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”).}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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)}(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:}(hj͐hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjɐubj)}(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.hhM hjubah}(h]h ]h"]h$]h&]uh1j+hjߐubj+)}(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.hhM hjubah}(h]h ]h"]h$]h&]uh1j+hjߐubeh}(h]h ]h"]h$]h&]j+j+j+hj+j+uh1j+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)}(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:}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM# hj>ubj)}(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).}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjWubah}(h]h ]h"]h$]h&]uh1j+hjTubj+)}(h/If the folio is mapped differently (VM_PFNMAP).h]jM)}(hjrh]h/If the folio is mapped differently (VM_PFNMAP).}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM! hjpubah}(h]h ]h"]h$]h&]uh1j+hjTubj+)}(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().}(hjhhhNhNubah}(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&]uh1j+hjTubeh}(h]h ]h"]h$]h&]j+j+j+hj+j+uh1j+hjQubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjPhM# 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)}(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.}(hjёhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%folio_expected_ref_count (C function)c.folio_expected_ref_counthNtauh1hhj hhhNhNubh)}(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.hhMC ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMC ubh)}(hfolio_expected_ref_counth]j)}(hfolio_expected_ref_counth]hfolio_expected_ref_count}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMC ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj=hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj5)}(hj8h]hstruct}(hjXhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj9ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(hfolioh]hfolio}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjxmodnameN classnameNjpjs)}jv]jy)}jlj#sbc.folio_expected_ref_countasbuh1hhj9ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj9ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj5ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMC ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMC ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMC hjhhubj4)}(hhh]jM)}(h%calculate the expected folio refcounth]h%calculate the expected folio refcount}(hjےhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMC hjؒhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMC ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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.hhMG hjubj)}(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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMD hjubj)}(hhh]jM)}(h the folioh]h the folio}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hMD hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMD hjubah}(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&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMF 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).}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhME 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.hhMJ 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMN 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()).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMQ 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMU 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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMY 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.}(hjǓhhhNhNubah}(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 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.hhMa hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hzap_vma (C function) c.zap_vmahNtauh1hhj hhhNhNubh)}(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}(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)}(hzap_vmah]j)}(hzap_vmah]hzap_vma}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj+hM ubj )}(h(struct vm_area_struct *vma)h]j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjZhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjzmodnameN classnameNjpjs)}jv]jy)}jlj@sb c.zap_vmaasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubah}(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}(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&]uh1j3hjhhhj+hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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.hhM hjubj)}(hhh]j)}(h.``struct vm_area_struct *vma`` The vma to zap.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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubj)}(hhh]jM)}(hThe vma to zap.h]hThe vma to zap.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hptdesc_address (C function)c.ptdesc_addresshNtauh1hhj hhhNhNubh)}(hhh](h)}(h/void * ptdesc_address (const struct ptdesc *pt)h]h)}(h-void *ptdesc_address(const struct ptdesc *pt)h](j)}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjthhhjhMubh)}(hptdesc_addressh]j)}(hptdesc_addressh]hptdesc_address}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjthhhjhMubj )}(h(const struct ptdesc *pt)h]j )}(hconst struct ptdesc *pth](j5)}(hjh]hconst}(hj•hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjϕhhhNhNubah}(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)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.ptdesc_addressasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj)hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpth]hpt}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjthhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjphhhjhMubah}(h]jkah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjmhhubj4)}(hhh]jM)}(hVirtual address of page table.h]hVirtual address of page table.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj]hhubah}(h]h ]h"]h$]h&]uh1j3hjmhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjxjHjxjIjJjKuh1hhhhj hNhNubj)}(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)}(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.hhMhj|ubj)}(hhh]j)}(h3``const struct ptdesc *pt`` Page table descriptor. h](j)}(h``const struct ptdesc *pt``h]jS)}(hjh]hconst struct 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.hhMhjubj)}(hhh]jM)}(hPage table descriptor.h]hPage table descriptor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(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&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj|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.hhMhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hptdesc_set_kernel (C function)c.ptdesc_set_kernelhNtauh1hhj hhhNhNubh)}(hhh](h)}(h.void ptdesc_set_kernel (struct ptdesc *ptdesc)h]h)}(h-void ptdesc_set_kernel(struct ptdesc *ptdesc)h](j)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhjAhMubh)}(hptdesc_set_kernelh]j)}(hptdesc_set_kernelh]hptdesc_set_kernel}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/hhhjAhMubj )}(h(struct ptdesc *ptdesc)h]j )}(hstruct ptdesc *ptdesch](j5)}(hj8h]hstruct}(hjphhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljVsbc.ptdesc_set_kernelasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjlubj)}(hptdesch]hptdesc}(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)}(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.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj(hhhjAhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhj hNhNubj)}(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.hhMhjubj)}(hhh]j)}(h2``struct ptdesc *ptdesc`` The ptdesc to be marked h](j)}(h``struct ptdesc *ptdesc``h]jS)}(hj4h]hstruct ptdesc *ptdesc}(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.hhMhj.ubj)}(hhh]jM)}(hThe ptdesc to be markedh]hThe ptdesc to be marked}(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&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubjM)}(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.}(hjhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h ptdesc_clear_kernel (C function)c.ptdesc_clear_kernelhNtauh1hhj hhhNhNubh)}(hhh](h)}(h0void ptdesc_clear_kernel (struct ptdesc *ptdesc)h]h)}(h/void ptdesc_clear_kernel(struct ptdesc *ptdesc)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 }(hjØhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj˜hMubh)}(hptdesc_clear_kernelh]j)}(hptdesc_clear_kernelh]hptdesc_clear_kernel}(hj՘hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjјubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj˜hMubj )}(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&]uh1jhj ubah}(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*}(hj=hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hptdesch]hptdesc}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(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)}(h1Mark a ptdesc as no longer used to map the kernelh]h1Mark a ptdesc as no longer used to map the kernel}(hjthhhNhNubah}(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&]uh1j3hjhhhj˜hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(h4``struct ptdesc *ptdesc`` The ptdesc to be unmarked h](j)}(h``struct ptdesc *ptdesc``h]jS)}(hjh]hstruct 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.hhMhjubj)}(hhh]jM)}(hThe ptdesc to be unmarkedh]hThe ptdesc to be unmarked}(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)}(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.hhMhjubjM)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hptdesc_test_kernel (C function)c.ptdesc_test_kernelhNtauh1hhj hhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM-ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjBhM-ubh)}(hptdesc_test_kernelh]j)}(hptdesc_test_kernelh]hptdesc_test_kernel}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1hhj1hhhjBhM-ubj )}(h(const struct ptdesc *ptdesc)h]j )}(hconst struct ptdesc *ptdesch](j5)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hhh]j)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljWsbc.ptdesc_test_kernelasbuh1hhjmubj)}(h h]h }(hjʚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjF )}(hjI h]h*}(hjؚhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjmubj)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjiubah}(h]h ]h"]h$]h&]jjuh1j hj1hhhjBhM-ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj-hhhjBhM-ubah}(h]j(ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjBhM-hj*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.hhM-hj hhubah}(h]h ]h"]h$]h&]uh1j3hj*hhhjBhM-ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj'jHj'jIjJjKuh1hhhhj hNhNubj)}(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)}(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.hhM1hj+ubj)}(hhh]j)}(h8``const struct ptdesc *ptdesc`` The ptdesc being tested h](j)}(h``const struct ptdesc *ptdesc``h]jS)}(hjPh]hconst struct ptdesc *ptdesc}(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 ptdesc being testedh]hThe ptdesc being tested}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehM.hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehM.hjGubah}(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.hhM0hj+ubjM)}(h2Call to tell if the ptdesc used to map the kernel.h]h2Call to tell if the 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.hhM/hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpagetable_alloc (C function)c.pagetable_allochNtauh1hhj hhhNhNubh)}(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}(hjЛhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj̛hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM8ubj)}(h h]h }(hjޛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̛hhhjݛhM8ubh)}(hhh]j)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlpagetable_allocsbc.pagetable_allocasbuh1hhj̛hhhjݛhM8ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̛hhhjݛhM8ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj̛hhhjݛhM8ubh)}(hpagetable_alloch]j)}(hj h]hpagetable_alloc}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj̛hhhjݛhM8ubj )}(h(gfp_t gfp, unsigned int order)h](j )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjOmodnameN classnameNjpjs)}jv]j c.pagetable_allocasbuh1hhjFubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hgfph]hgfp}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjBubj )}(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 hjBubeh}(h]h ]h"]h$]h&]jjuh1j hj̛hhhjݛhM8ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjțhhhjݛhM8ubah}(h]jÛah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjݛhM8hjśhhubj4)}(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.hhM8hjhhubah}(h]h ]h"]h$]h&]uh1j3hjśhhhjݛhM8ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhj hNhNubj)}(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)}(hj5h]h gfp_t gfp}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM9hj/ubj)}(hhh]jM)}(h GFP flagsh]h GFP flags}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhM9hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM9hj,ubj)}(h/``unsigned int order`` desired pagetable order h](j)}(h``unsigned int order``h]jS)}(hjnh]hunsigned int order}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM:hjhubj)}(hhh]jM)}(hdesired pagetable orderh]hdesired pagetable order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM:hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(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&]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.}(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)}(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.hhM?hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpagetable_free (C function)c.pagetable_freehNtauh1hhj hhhNhNubh)}(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.hhMYubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hMYubh)}(hpagetable_freeh]j)}(hpagetable_freeh]hpagetable_free}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj#hMYubj )}(h(struct ptdesc *pt)h]j )}(hstruct ptdesc *pth](j5)}(hj8h]hstruct}(hjRhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hhh]j)}(hptdesch]hptdesc}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrmodnameN classnameNjpjs)}jv]jy)}jlj8sbc.pagetable_freeasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjNubj)}(hpth]hpt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj#hMYubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj#hMYubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj#hMYhj hhubj4)}(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.hhMYhjҞhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj#hMYubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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.hhM]hjubj)}(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.hhMZhjubj)}(hhh]jM)}(hThe page table descriptorh]hThe page table descriptor}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+hMZhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMZhj ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjQh]h Description}(hjShhhNhNubah}(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.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.}(hjghhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvma_lookup (C function) c.vma_lookuphNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMcubh)}(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)}jl vma_lookupsb c.vma_lookupasbuh1hhjhhhjhMcubj)}(h h]h }(hj֟hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMcubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMcubh)}(h vma_lookuph]j)}(hjӟh]h vma_lookup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMcubj )}(h*(struct mm_struct *mm, unsigned long addr)h](j )}(hstruct mm_struct *mmh](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 mm_structh]h mm_struct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj0modnameN classnameNjpjs)}jv]jџ c.vma_lookupasbuh1hhj 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)}(hmmh]hmm}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](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)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(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 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.hhMchjߠhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMcubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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.hhMghjubj)}(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.hhMdhjubj)}(hhh]jM)}(hThe process address space.h]hThe process address space.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hMdhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMdhjubj)}(h)``unsigned long addr`` The user address. h](j)}(h``unsigned long addr``h]jS)}(hj\h]hunsigned long addr}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMehjVubj)}(hhh]jM)}(hThe user address.h]hThe user address.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjqhMehjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMehjubeh}(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.hhMghjubjM)}(hubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjCmodnameN classnameNjpjs)}jv]jy)}jlj sbc.mmap_action_remap_fullasbuh1hhjubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjohhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hdesch]hdesc}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long start_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)}(h start_pfnh]h start_pfn}(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'hjޤhhhjhMubah}(h]j٤ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjۤhhubj4)}(hhh]jM)}(hZhelper for mmap_prepare hook to specify that the entirety of a VMA should be PFN remapped.h]hZhelper for mmap_prepare hook to specify that the entirety of a VMA should be PFN remapped.}(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&]uh1j3hjۤhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(h**Parameters** ``struct vm_area_desc *desc`` The VMA descriptor for the VMA requiring remap. ``unsigned long start_pfn`` The first PFN in the range to remap.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)}(hN``struct vm_area_desc *desc`` The VMA descriptor for the VMA requiring remap. h](j)}(h``struct vm_area_desc *desc``h]jS)}(hj8h]hstruct vm_area_desc *desc}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj2ubj)}(hhh]jM)}(h/The VMA descriptor for the VMA requiring remap.h]h/The VMA descriptor for the VMA requiring remap.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj/ubj)}(h@``unsigned long start_pfn`` The first PFN in the range to remap.h](j)}(h``unsigned long start_pfn``h]jS)}(hjqh]hunsigned long start_pfn}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjkubj)}(hhh]jM)}(h$The first PFN in the range to remap.h]h$The first PFN in the range to remap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhj/ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h mmap_action_ioremap (C function)c.mmap_action_ioremaphNtauh1hhj hhhNhNubh)}(hhh](h)}(hvvoid mmap_action_ioremap (struct vm_area_desc *desc, unsigned long start, unsigned long start_pfn, unsigned long size)h]h)}(huvoid mmap_action_ioremap(struct vm_area_desc *desc, unsigned long start, unsigned long start_pfn, unsigned long size)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.hhMubj)}(h h]h }(hjڦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǦhhhj٦hMubh)}(hmmap_action_ioremaph]j)}(hmmap_action_ioremaph]hmmap_action_ioremap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjǦhhhj٦hMubj )}(h](struct vm_area_desc *desc, unsigned long start, unsigned long start_pfn, unsigned long size)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}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj(modnameN classnameNjpjs)}jv]jy)}jljsbc.mmap_action_ioremapasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjThhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hdesch]hdesc}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long start_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)}(h start_pfnh]h start_pfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǧubeh}(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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjThhhNhNubah}(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'hjæhhhj٦hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj٦hMhjhhubj4)}(hhh]jM)}(hNhelper for mmap_prepare hook to specify that a pure PFN I/O remap is required.h]hNhelper for mmap_prepare hook to specify that a pure PFN I/O remap is required.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj{hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj٦hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(hXq**Parameters** ``struct vm_area_desc *desc`` The VMA descriptor for the VMA requiring remap. ``unsigned long start`` The virtual address to start the remap from, must be within the VMA. ``unsigned long start_pfn`` The first PFN in the range to remap. ``unsigned long size`` The size of the range to remap, in bytes, at most spanning to the end of the VMA.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)}(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.}(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 start`` The virtual address to start the remap from, must be within the VMA. 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)}(hDThe virtual address to start the remap from, must be within the VMA.h]hDThe virtual address to start the remap from, must be within the VMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hA``unsigned long start_pfn`` The first PFN in the range to remap. h](j)}(h``unsigned long start_pfn``h]jS)}(hj1h]hunsigned long start_pfn}(hj3hhhNhNubah}(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 first PFN in the range to remap.h]h$The first PFN in the range to remap.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjubj)}(hh``unsigned long size`` The size of the range to remap, in bytes, at most spanning to the end of the VMA.h](j)}(h``unsigned long size``h]jS)}(hjjh]hunsigned long size}(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.hhMhjdubj)}(hhh]jM)}(hQThe size of the range to remap, in bytes, at most spanning to the end of the VMA.h]hQThe size of the range to remap, in bytes, at most spanning to the end of the VMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%mmap_action_ioremap_full (C function)c.mmap_action_ioremap_fullhNtauh1hhj hhhNhNubh)}(hhh](h)}(hRvoid mmap_action_ioremap_full (struct vm_area_desc *desc, unsigned long start_pfn)h]h)}(hQvoid mmap_action_ioremap_full(struct vm_area_desc *desc, unsigned long start_pfn)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.hhMubj)}(h h]h }(hjҩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjѩhMubh)}(hmmap_action_ioremap_fullh]j)}(hmmap_action_ioremap_fullh]hmmap_action_ioremap_full}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjѩhMubj )}(h4(struct vm_area_desc *desc, unsigned long start_pfn)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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljsbc.mmap_action_ioremap_fullasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjLhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hdesch]hdesc}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long start_pfnh](j)}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h start_pfnh]h start_pfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(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)}(h^helper for mmap_prepare hook to specify that the entirety of a VMA should be PFN I/O remapped.h]h^helper for mmap_prepare hook to specify that the entirety of a VMA should be PFN I/O remapped.}(hjԪhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjѪhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjѩhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(h**Parameters** ``struct vm_area_desc *desc`` The VMA descriptor for the VMA requiring remap. ``unsigned long start_pfn`` The first PFN in the range to remap.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)}(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.}(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@``unsigned long start_pfn`` The first PFN in the range to remap.h](j)}(h``unsigned long start_pfn``h]jS)}(hjNh]hunsigned long start_pfn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjHubj)}(hhh]jM)}(h$The first PFN in the range to remap.h]h$The first PFN in the range to remap.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'mmap_action_simple_ioremap (C function)c.mmap_action_simple_ioremaphNtauh1hhj hhhNhNubh)}(hhh](h)}(hlvoid mmap_action_simple_ioremap (struct vm_area_desc *desc, phys_addr_t start_phys_addr, unsigned long size)h]h)}(hkvoid mmap_action_simple_ioremap(struct vm_area_desc *desc, phys_addr_t start_phys_addr, unsigned long size)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)}(hmmap_action_simple_ioremaph]j)}(hmmap_action_simple_ioremaph]hmmap_action_simple_ioremap}(hjɫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjūubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hL(struct vm_area_desc *desc, phys_addr_t start_phys_addr, unsigned long size)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)}jlj˫sbc.mmap_action_simple_ioremapasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj1hhhNhNubah}(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 )}(hphys_addr_t start_phys_addrh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj\modnameN classnameNjpjs)}jv]jc.mmap_action_simple_ioremapasbuh1hhjSubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hstart_phys_addrh]hstart_phys_addr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjݫubj )}(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}(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)}(hhelper for mmap_prepare hook to specify that the physical range in [start_phys_addr, start_phys_addr + size) should be I/O remapped.h]hhelper for mmap_prepare hook to specify that the physical range in [start_phys_addr, start_phys_addr + size) should be I/O remapped.}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(hXF**Parameters** ``struct vm_area_desc *desc`` The VMA descriptor for the VMA requiring remap. ``phys_addr_t start_phys_addr`` Start of the physical memory to be mapped. ``unsigned long size`` Size of the area to map. **NOTE** Some drivers might want to tweak desc->page_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.hhMhjubj)}(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)}(hjBh]hstruct vm_area_desc *desc}(hjDhhhNhNubah}(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 VMA descriptor for the VMA requiring remap.h]h/The VMA descriptor for the VMA requiring remap.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj9ubj)}(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&]uh1jRhjyubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjuubj)}(hhh]jM)}(h*Start of the physical memory to be mapped.h]h*Start of the physical memory to be mapped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhj9ubj)}(h0``unsigned long size`` Size of the area to map. h](j)}(h``unsigned long size``h]jS)}(hjh]hunsigned long size}(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)}(hSize of the area to map.h]hSize of the area to map.}(hjͭhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjɭhMhjʭubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɭhMhj9ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(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.hhMhjubjM)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)mmap_action_map_kernel_pages (C function)c.mmap_action_map_kernel_pageshNtauh1hhj hhhNhNubh)}(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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjBhMubh)}(hmmap_action_map_kernel_pagesh]j)}(hmmap_action_map_kernel_pagesh]hmmap_action_map_kernel_pages}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1hhj0hhhjBhMubj )}(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}(hjqhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(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)}jljWsbc.mmap_action_map_kernel_pagesasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjmubj)}(hdesch]hdesc}(hjʮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjiubj )}(hunsigned long starth](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)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߮ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjiubj )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hj4hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]j)}(hpageh]hpage}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjTmodnameN classnameNjpjs)}jv]jc.mmap_action_map_kernel_pagesasbuh1hhj0ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjF )}(hjI h]h*}(hj~hhhNhNubah}(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 hjiubj )}(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}(hjͯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjۯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjiubeh}(h]h ]h"]h$]h&]jjuh1j hj0hhhjBhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj,hhhjBhMubah}(h]j'ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjBhMhj)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}(hj?hhhNhNubah}(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.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj)hhhjBhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjajHjajIjJjKuh1hhhhj hNhNubj)}(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)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjeubj)}(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.hhMhjubj)}(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&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hD``unsigned long start`` The virtual address from which to map them. h](j)}(h``unsigned long start``h]jS)}(hjðh]hunsigned long start}(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+The virtual address from which to map them.h]h+The virtual address from which to map them.}(hjܰhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjذhMhjٰubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjذhMhjubj)}(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.hhMhjubj)}(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&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hG``unsigned long nr_pages`` The number of entries in the **pages** aray.h](j)}(h``unsigned long nr_pages``h]jS)}(hj5h]hunsigned long nr_pages}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(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 }(hjNhhhNhNubj)}(h **pages**h]hpages}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh aray.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM hjubeh}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.mmap_action_map_kernel_pages_full (C function)#c.mmap_action_map_kernel_pages_fullhNtauh1hhj hhhNhNubh)}(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}(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!mmap_action_map_kernel_pages_fullh]j)}(h!mmap_action_map_kernel_pages_fullh]h!mmap_action_map_kernel_pages_full}(hj±hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h0(struct vm_area_desc *desc, struct page **pages)h](j )}(hstruct vm_area_desc *desch](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 vm_area_desch]h vm_area_desc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljısb#c.mmap_action_map_kernel_pages_fullasbuh1hhjڱ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)}(hdesch]hdesc}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڱubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjֱubj )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hjPhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]j)}(hpageh]hpage}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjpmodnameN classnameNjpjs)}jv]j#c.mmap_action_map_kernel_pages_fullasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjLubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjLubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(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)}(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 }(hj޲hhhNhNubj)}(h **pages**h]hpages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj޲ubh) array should be mapped to userland from }(hj޲hhhNhNubj)}(h**desc->start**h]h desc->start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj޲ubh to }(hj޲hhhNhNubj)}(h **desc->end**h]h desc->end}(hj hhhNhNubah}(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:106: ./include/linux/mm.hhMhj۲hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj,jHj,jIjJjKuh1hhhhj hNhNubj)}(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)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj0ubj)}(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)}(hjUh]hstruct vm_area_desc *desc}(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.hhMhjOubj)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjLubj)}(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.hhMhjubj)}(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&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjLubeh}(h]h ]h"]h$]h&]uh1jhj0ubjM)}(h**Description**h]j)}(hjɳh]h Description}(hj˳hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdzubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj0ubjM)}(hrThe caller must ensure that **pages** contains sufficient entries to cover the entire range described by **desc**.h](hThe caller must ensure that }(hj߳hhhNhNubj)}(h **pages**h]hpages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj߳ubhD contains sufficient entries to cover the entire range described by }(hj߳hhhNhNubj)}(h**desc**h]hdesc}(hjhhhNhNubah}(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:106: ./include/linux/mm.hhMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_is_subset (C function)c.range_is_subsethNtauh1hhj hhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM9ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj?hM9ubh)}(hrange_is_subseth]j)}(hrange_is_subseth]hrange_is_subset}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1hhj.hhhj?hM9ubj )}(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}(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)}(h outer_starth]h outer_start}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjfubj )}(hunsigned long outer_endh](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 outer_endh]h outer_end}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjfubj )}(hunsigned long inner_starth](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 ubj)}(h inner_starth]h inner_start}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjfubj )}(hunsigned long inner_endh](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)}(h inner_endh]h inner_end}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjfubeh}(h]h ]h"]h$]h&]jjuh1j hj.hhhj?hM9ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj*hhhj?hM9ubah}(h]j%ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj?hM9hj'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?}(hjõhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM9hjhhubah}(h]h ]h"]h$]h&]uh1j3hj'hhhj?hM9ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj۵jHj۵jIjJjKuh1hhhhj hNhNubj)}(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=hjߵubj)}(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.}(hjhhhNhNubah}(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)}(hj=h]hunsigned long outer_end}(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;hj7ubj)}(hhh]jM)}(h%The exclusive end of the outer range.h]h%The exclusive end of the outer range.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjRhM;hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhM;hjubj)}(h<``unsigned long inner_start`` The start of the inner range. h](j)}(h``unsigned long inner_start``h]jS)}(hjvh]hunsigned long inner_start}(hjxhhhNhNubah}(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.hhM<hjpubj)}(hhh]jM)}(hThe start of the inner range.h]hThe start of the inner range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjubj)}(hB``unsigned long inner_end`` The exclusive end of the inner range. h](j)}(h``unsigned long inner_end``h]jS)}(hjh]hunsigned long inner_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=hjubj)}(hhh]jM)}(h%The exclusive end of the inner range.h]h%The exclusive end of the inner range.}(hjȶhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjĶhM=hjŶubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjĶhM=hjubeh}(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)}(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.hhM?hjߵubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_in_vma (C function)c.range_in_vmahNtauh1hhj hhhNhNubh)}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMKubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj\hMKubh)}(h range_in_vmah]j)}(h range_in_vmah]h range_in_vma}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1hhjKhhhj\hMKubj )}(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}(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)}(hvm_area_structh]hvm_area_struct}(hjķhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjƷmodnameN classnameNjpjs)}jv]jy)}jljqsbc.range_in_vmaasbuh1hhjubj)}(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 starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjKhhhj\hMKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjGhhhj\hMKubah}(h]jBah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj\hMKhjDhhubj4)}(hhh]jM)}(h@is the specified [**start**, **end**) range a subset of the VMA?h](his the specified [}(hj˸hhhNhNubj)}(h **start**h]hstart}(hjӸhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˸ubh, }(hj˸hhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˸ubh) range a subset of the VMA?}(hj˸hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMKhjȸhhubah}(h]h ]h"]h$]h&]uh1j3hjDhhhj\hMKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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.hhMOhj ubj)}(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)}(hj0h]h const struct vm_area_struct *vma}(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.hhMLhj*ubj)}(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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**end**h]hend}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) is a subset of [}(hjhhhNhNubj)}(h**vma->vm_start**h]h vma->vm_start}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**vma->vm_end**h]h vma->vm_end}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh), }(hjhhhNhNubjS)}(h ``false``h]hfalse}(hjuhhhNhNubah}(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.hhMPhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_in_vma_desc (C function)c.range_in_vma_deschNtauh1hhj hhhNhNubh)}(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}(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)}(hrange_in_vma_desch]j)}(hrange_in_vma_desch]hrange_in_vma_desc}(hjκhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʺubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM]ubj )}(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}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj%modnameN classnameNjpjs)}jv]jy)}jljкsbc.range_in_vma_descasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjQhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hdesch]hdesc}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĻubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĻubj)}(hendh]hend}(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'hjhhhjhM]ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM]hjhhubj4)}(hhh]jM)}(hhis the specified [**start**, **end**) range a subset of the VMA described by **desc**, a VMA descriptor?h](his the specified [}(hj*hhhNhNubj)}(h **start**h]hstart}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh, }(hj*hhhNhNubj)}(h**end**h]hend}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh)) range a subset of the VMA described by }(hj*hhhNhNubj)}(h**desc**h]hdesc}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh, a VMA descriptor?}(hj*hhhNhNubeh}(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&]uh1j3hjhhhjhM]ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjxjHjxjIjJjKuh1hhhhj hNhNubj)}(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)}(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.hhMahj|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)}(hjh]hconst struct 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)}(hGThe VMA descriptor against which we want to check [**start**, **end**).h](h3The VMA descriptor against which we want to check [}(hjhhhNhNubj)}(h **start**h]hstart}(hj¼hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**end**h]hend}(hjԼhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjubj)}(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.hhM`hjubj)}(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&]uh1jLhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjubj)}(hG``unsigned long end`` The exclusive end of the range we wish to check. h](j)}(h``unsigned long end``h]jS)}(hj7h]hunsigned long end}(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.hhMahj1ubj)}(hhh]jM)}(h0The exclusive end of the range we wish to check.h]h0The exclusive end of the range we wish to check.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhMahjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMahjubeh}(h]h ]h"]h$]h&]uh1jhj|ubjM)}(h **Return**h]j)}(hjrh]hReturn}(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.hhMchj|ubjM)}(hf``true`` if [**start**, **end**) is a subset of [**desc->start**, **desc->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**desc->start**h]h desc->start}(hj½hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h **desc->end**h]h desc->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.hhMchj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_pages (C function) c.clear_pageshNtauh1hhj hhhNhNubh)}(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 }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj-hMubh)}(h clear_pagesh]j)}(h clear_pagesh]h clear_pages}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj-hMubj )}(h!(void *addr, unsigned int npages)h](j )}(h void *addrh](j)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjF )}(hjI h]h*}(hjxhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjXubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubj )}(hunsigned int npagesh](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)}(hnpagesh]hnpages}(hj־hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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 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&]uh1j3hjhhhj-hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.hhMhjubj)}(hhh](j)}(h``void *addr`` start address h](j)}(h``void *addr``h]jS)}(hjAh]h void *addr}(hjChhhNhNubah}(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 start addressh]h start address}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj8ubj)}(h(``unsigned int npages`` number of pages h](j)}(h``unsigned int npages``h]jS)}(hjzh]hunsigned int npages}(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)}(hnumber of pagesh]hnumber of pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubeh}(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.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.}(hj˿hhhNhNubah}(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.}(hjڿhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_ref_count (C function)c.folio_ref_counthNtauh1hhj hhhNhNubh)}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKGubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhjGhKGubh)}(hfolio_ref_counth]j)}(hfolio_ref_counth]hfolio_ref_count}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1hhj5hhhjGhKGubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjvhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj\sbc.folio_ref_countasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjrubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjnubah}(h]h ]h"]h$]h&]jjuh1j hj5hhhjGhKGubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj1hhhjGhKGubah}(h]j,ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjGhKGhj.hhubj4)}(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&]uh1j3hj.hhhjGhKGubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj,jHj,jIjJjKuh1hhhhj hNhNubj)}(hX**Parameters** ``const struct folio *folio`` The folio. **Description** 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 **Return** The number of references to this folio.h](jM)}(h**Parameters**h]j)}(hj6h]h Parameters}(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.hhKKhj0ubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjUh]hconst struct folio *folio}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKHhjOubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjhKHhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhKHhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubjM)}(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.hhKJhj0ubjM)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKIhj0ubj.L)}(hhh](j+)}(h Each reference from a page tableh]jM)}(hjh]h Each reference from a page table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKMhjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(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.hhKNhjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(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.hhKOhjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(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.hhKPhjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(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.hhKQhjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKRhj0ubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjhKMhj0ubjM)}(h **Return**h]j)}(hjQh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKThj0ubjM)}(h'The number of references to this folio.h]h'The number of references to this folio.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKUhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_try_get (C function)c.folio_try_gethNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(h folio_try_geth]j)}(h folio_try_geth]h folio_try_get}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubj )}(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_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}(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'hjhhhjhKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjhhubj4)}(hhh]jM)}(h,Attempt to increase the refcount on a folio.h]h,Attempt to increase the refcount on a folio.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhjRhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjmjHjmjIjJjKuh1hhhhj hNhNubj)}(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)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhjqubj)}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjqubjM)}(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.hhKhjqubjM)}(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.hhKhjqubjM)}(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.hhKhjqubjM)}(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.hhKhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](his_highmem (C function) c.is_highmemhNtauh1hhj hhhNhNubh)}(hhh](h)}(h(int is_highmem (const struct zone *zone)h]h)}(h'int is_highmem(const struct zone *zone)h](j)}(hinth]hint}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhjKhMubh)}(h is_highmemh]j)}(h is_highmemh]h is_highmem}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1hhj9hhhjKhMubj )}(h(const struct zone *zone)h]j )}(hconst struct zone *zoneh](j5)}(hjh]hconst}(hjzhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j)}(hzoneh]hzone}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj`sb c.is_highmemasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjvubj)}(hzoneh]hzone}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubah}(h]h ]h"]h$]h&]jjuh1j hj9hhhjKhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj5hhhjKhMubah}(h]j0ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjKhMhj2hhubj4)}(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&]uh1j3hj2hhhjKhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj0jHj0jIjJjKuh1hhhhj hNhNubj)}(h|**Parameters** ``const struct zone *zone`` pointer to struct zone variable **Return** 1 for a highmem zone, 0 otherwiseh](jM)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj4ubj)}(hhh]j)}(h<``const struct zone *zone`` pointer to struct zone variable h](j)}(h``const struct zone *zone``h]jS)}(hjYh]hconst struct zone *zone}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjSubj)}(hhh]jM)}(hpointer to struct zone variableh]hpointer to struct zone variable}(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 **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.hhMhj4ubjM)}(h!1 for a highmem zone, 0 otherwiseh]h!1 for a highmem zone, 0 otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfor_each_online_pgdat (C macro)c.for_each_online_pgdathNtauh1hhj hhhNhNubh)}(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&]jFjAjGj jHj jIjJjKuh1hhhhj hNhNubjM)}(h!``for_each_online_pgdat (pgdat)``h]jS)}(hjh]hfor_each_online_pgdat (pgdat)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj hhubji)}(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}(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&]uh1jhhj7hMhj hhubj)}(h;**Parameters** ``pgdat`` pointer to a pg_data_t variableh](jM)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj>ubj)}(hhh]j)}(h)``pgdat`` pointer to a pg_data_t variableh](j)}(h ``pgdat``h]jS)}(hjch]hpgdat}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(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.hhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfor_each_zone (C macro)c.for_each_zonehNtauh1hhj hhhNhNubh)}(hhh](h)}(h for_each_zoneh]h)}(h for_each_zoneh]h)}(h for_each_zoneh]j)}(hjh]h for_each_zone}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubjM)}(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.hhMhj hhubji)}(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}(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&]uh1jhhjhMhj hhubj)}(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)}(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:109: ./include/linux/mmzone.hhMhj"ubj)}(hhh]j)}(h)``zone`` pointer to struct zone variable h](j)}(h``zone``h]jS)}(hjGh]hzone}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjAubj)}(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&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj>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&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj"ubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h next_zones_zonelist (C function)c.next_zones_zonelisthNtauh1hhj hhhNhNubh)}(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.hhM(ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM(ubh)}(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_zonelistasbuh1hhjhhhjhM(ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM(ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM(ubh)}(hnext_zones_zonelisth]j)}(hjh]hnext_zones_zonelist}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM(ubj )}(hF(struct zoneref *z, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j )}(hstruct zoneref *zh](j5)}(hj8h]hstruct}(hjAhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]j)}(hzonerefh]hzoneref}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjamodnameN classnameNjpjs)}jv]jc.next_zones_zonelistasbuh1hhj=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)}(hzh]hz}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj9ubj )}(henum zone_type highest_zoneidxh](j5)}(hjh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(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_zonelistasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hhighest_zoneidxh]hhighest_zoneidx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj9ubj )}(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 }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjChhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnodesh]hnodes}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj9ubeh}(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)}(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}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM(hjwhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM(ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.hhM,hjubj)}(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&]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)}(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&]uh1jLhjhM)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjubj)}(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.hhM*hjubj)}(hhh]jM)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(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)}(hG``nodemask_t *nodes`` An optional nodemask to filter the zonelist with h](j)}(h``nodemask_t *nodes``h]jS)}(hj-h]hnodemask_t *nodes}(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.hhM+hj'ubj)}(hhh]jM)}(h0An optional nodemask to filter the zonelist withh]h0An optional nodemask to filter the zonelist with}(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&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM-hjubjM)}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM,hjubjM)}(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.hhM2hjubjM)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM3hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!first_zones_zonelist (C function)c.first_zones_zonelisthNtauh1hhj hhhNhNubh)}(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.hhM@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM@ubh)}(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_zonelistasbuh1hhjhhhjhM@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM@ubjF )}(hjI h]h*}(hj"hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM@ubh)}(hfirst_zones_zonelisth]j)}(hjh]hfirst_zones_zonelist}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM@ubj )}(hN(struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j )}(hstruct zonelist *zonelisth](j5)}(hj8h]hstruct}(hjNhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]j)}(hzonelisth]hzonelist}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jc.first_zones_zonelistasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjJubj)}(hzonelisth]hzonelist}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjFubj )}(henum zone_type highest_zoneidxh](j5)}(hjh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(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_zonelistasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hhighest_zoneidxh]hhighest_zoneidx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjFubj )}(hnodemask_t *nodesh](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.first_zones_zonelistasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjPhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnodesh]hnodes}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjFubeh}(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\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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM@hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM@ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.hhMDhjubj)}(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.hhMAhjubj)}(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&]uh1jLhjhMAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMAhjubj)}(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.hhMBhjubj)}(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&]uh1jLhjhMBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjubj)}(hG``nodemask_t *nodes`` An optional nodemask to filter the zonelist with h](j)}(h``nodemask_t *nodes``h]jS)}(hj:h]hnodemask_t *nodes}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMChj4ubj)}(hhh]jM)}(h0An optional nodemask to filter the zonelist withh]h0An optional nodemask to filter the zonelist with}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjOhMChjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMChjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMEhjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMDhjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMIhjubjM)}(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.hhMMhjubjM)}(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.hhMNhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)for_each_zone_zonelist_nodemask (C macro)!c.for_each_zone_zonelist_nodemaskhNtauh1hhj hhhNhNubh)}(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.hhMYubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMYubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMYhjhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjhhhjhMYubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhj hNhNubjM)}(hG``for_each_zone_zonelist_nodemask (zone, z, zlist, highidx, nodemask)``h]jS)}(hj&h]hCfor_each_zone_zonelist_nodemask (zone, z, zlist, highidx, nodemask)}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM[hj hhubji)}(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}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMYhj<ubah}(h]h ]h"]h$]h&]uh1jhhjNhMYhj hhubj)}(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)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM]hjUubj)}(hhh](j)}(h*``zone`` The current zone in the iterator h](j)}(h``zone``h]jS)}(hjzh]hzone}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMZhjtubj)}(hhh]jM)}(h The current zone in the iteratorh]h The current zone in the iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjqubj)}(hD``z`` The current pointer within zonelist->_zonerefs being iterated h](j)}(h``z``h]jS)}(hjh]hz}(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)}(h=The current pointer within zonelist->_zonerefs being iteratedh]h=The current pointer within zonelist->_zonerefs being iterated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjqubj)}(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.hhM\hjubj)}(hhh]jM)}(hThe zonelist being iteratedh]hThe zonelist being iterated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjqubj)}(h9``highidx`` The zone index of the highest zone to return h](j)}(h ``highidx``h]jS)}(hj%h]hhighidx}(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.hhM]hjubj)}(hhh]jM)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hM]hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hM]hjqubj)}(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.hhM^hjXubj)}(hhh]jM)}(h!Nodemask allowed by the allocatorh]h!Nodemask allowed by the allocator}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjshM^hjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshM^hjqubeh}(h]h ]h"]h$]h&]uh1jhjUubjM)}(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.hhM`hjUubjM)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM_hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h for_each_zone_zonelist (C macro)c.for_each_zone_zonelisthNtauh1hhj hhhNhNubh)}(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.hhMqubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMqubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMqhjhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjhhhjhMqubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubjM)}(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.hhMshj hhubji)}(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}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMqhj*ubah}(h]h ]h"]h$]h&]uh1jhhj<hMqhj hhubj)}(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)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMuhjCubj)}(hhh](j)}(h*``zone`` The current zone in the iterator h](j)}(h``zone``h]jS)}(hjhh]hzone}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMrhjbubj)}(hhh]jM)}(h The current zone in the iteratorh]h The current zone in the iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}hMrhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMrhj_ubj)}(h@``z`` The current pointer within zonelist->zones being iterated h](j)}(h``z``h]jS)}(hjh]hz}(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.hhMshjubj)}(hhh]jM)}(h9The current pointer within zonelist->zones being iteratedh]h9The current pointer within zonelist->zones being iterated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshj_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.hhMthjubj)}(hhh]jM)}(hThe zonelist being iteratedh]hThe zonelist being iterated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMthjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMthj_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.hhMuhj ubj)}(hhh]jM)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj(hMuhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMuhj_ubeh}(h]h ]h"]h$]h&]uh1jhjCubjM)}(h**Description**h]j)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMwhjCubjM)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMvhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpfn_valid (C function) c.pfn_validhNtauh1hhj hhhNhNubh)}(hhh](h)}(h!int pfn_valid (unsigned long pfn)h]h)}(h int pfn_valid(unsigned long pfn)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 pfn_validh]j)}(h pfn_validh]h pfn_valid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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 hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(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}(hj2hhhNhNubah}(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&]jFjAjGjJjHjJjIjJjKuh1hhhhj hNhNubj)}(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)}(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:109: ./include/linux/mmzone.hhMhjNubj)}(hhh]j)}(h5``unsigned long pfn`` the page frame number to check h](j)}(h``unsigned long pfn``h]jS)}(hjsh]hunsigned long pfn}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjqubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjmubj)}(hhh]jM)}(hthe page frame number to checkh]hthe page frame number to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubah}(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:109: ./include/linux/mmzone.hhMhjNubjM)}(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.hhMhjNubjM)}(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.hhMhjNubjM)}(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.hhMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mapping (C function)c.folio_mappinghNtauh1hhj hhhNhNubh)}(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}(hj>hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjKhMubh)}(hhh]j)}(h address_spaceh]h address_space}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]jy)}jl folio_mappingsbc.folio_mappingasbuh1hhj:hhhjKhMubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjKhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj:hhhjKhMubh)}(h folio_mappingh]j)}(hj{h]h folio_mapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhjKhMubj )}(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}(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.folio_mappingasbuh1hhjubj)}(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 hjubah}(h]h ]h"]h$]h&]jjuh1j hj:hhhjKhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6hhhjKhMubah}(h]j1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjKhMhj3hhubj4)}(hhh]jM)}(h,Find the mapping where this folio is stored.h]h,Find the mapping where this folio is stored.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjQhhubah}(h]h ]h"]h$]h&]uh1j3hj3hhhjKhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjljHjljIjJjKuh1hhhhj hNhNubj)}(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)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjpubj)}(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&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubjM)}(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.chMhjpubjM)}(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.chMhjpubjM)}(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.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__anon_vma_prepare (C function)c.__anon_vma_preparehNtauh1hhj hhhNhNubh)}(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}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj2hKubh)}(h__anon_vma_prepareh]j)}(h__anon_vma_prepareh]h__anon_vma_prepare}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj2hKubj )}(h(struct vm_area_struct *vma)h]j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjahhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj]ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljGsbc.__anon_vma_prepareasbuh1hhj]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 hjYubah}(h]h ]h"]h$]h&]jjuh1j hj hhhj2hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj2hKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj2hKhjhhubj4)}(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&]uh1j3hjhhhj2hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chKhjubj)}(hhh]jM)}(hthe memory region in questionh]hthe memory region in question}(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)}(hj`h]h Description}(hjbhhhNhNubah}(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.}(hjvhhhNhNubah}(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.}(hjhhhNhNubah}(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).}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hanon_vma_clone (C function)c.anon_vma_clonehNtauh1hhj hhhNhNubh)}(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&]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]jy)}jljsbc.anon_vma_cloneasbuh1hhj 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)}(hdsth]hdst}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *srch](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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jIc.anon_vma_cloneasbuh1hhj}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)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum vma_operation operationh](j5)}(hjh]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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jIc.anon_vma_cloneasbuh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h operationh]h operation}(hj;hhhNhNubah}(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 }(hjehhhNhNubj)}(h**dst**h]hdst}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh9 linking to all of the anon_vma objects contained within }(hjehhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh anon_vma_chain’s.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM%hjbhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM%ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chM)hjubj)}(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)}(hj<h]henum vma_operation operation}(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)}(h2The type of operation which resulted in the clone.h]h2The type of operation which resulted in the clone.}(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&]uh1jhjubjM)}(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+hjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM*hjubjM)}(hThis is invoked for:h]hThis is invoked for:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM-hjubj.L)}(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 }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is unfaulted and }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is faulted - meaning we clone }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh into }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM/hjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(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+hjubj+)}(h VMA (m)remap.h]jM)}(hj)h]h VMA (m)remap.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM2hj'ubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(hFork of faulted VMA. h]jM)}(hFork of faulted VMA.h]hFork of faulted VMA.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM3hj?ubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjhM/hjubjM)}(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.chM5hjubjM)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM8hjubjM)}(h **Return**h]j)}(hj~h]hReturn}(hjhhhNhNubah}(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=hjubjM)}(h!0 on success, -ENOMEM on failure.h]h!0 on success, -ENOMEM on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM>hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hunlink_anon_vmas (C function)c.unlink_anon_vmashNtauh1hhj hhhNhNubh)}(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 }(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)}jljsbc.unlink_anon_vmasasbuh1hhjubj)}(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 hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(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.}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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 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&]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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h page_address_in_vma (C function)c.page_address_in_vmahNtauh1hhj hhhNhNubh)}(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}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMGubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjRhMGubj)}(hlongh]hlong}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjRhMGubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjRhMGubh)}(hpage_address_in_vmah]j)}(hpage_address_in_vmah]hpage_address_in_vma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj@hhhjRhMGubj )}(hV(const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)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_address_in_vmaasbuh1hhjubj)}(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 )}(hconst struct page *pageh](j5)}(hjh]hconst}(hj*hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj5)}(hj8h]hstruct}(hjEhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj&ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]j)}(hpageh]hpage}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjemodnameN classnameNjpjs)}jv]jc.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)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h const struct vm_area_struct *vmah](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)}(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_vmaasbuh1hhjubj)}(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 hjubeh}(h]h ]h"]h$]h&]jjuh1j hj@hhhjRhMGubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj<hhhjRhMGubah}(h]j7ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjRhMGhj9hhubj4)}(hhh]jM)}(h*The virtual address of a page in this VMA.h]h*The virtual address of a page in this VMA.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMGhjNhhubah}(h]h ]h"]h$]h&]uh1j3hj9hhhjRhMGubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjijHjijIjJjKuh1hhhhj hNhNubj)}(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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMKhjmubj)}(hhh](j)}(h=``const struct folio *folio`` The folio containing the 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.chMHhjubj)}(hhh]jM)}(hThe folio containing the page.h]hThe folio containing the page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubj)}(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&]uh1jhjhMIhjubj)}(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&]uh1jhjhMJhjubeh}(h]h ]h"]h$]h&]uh1jhjmubjM)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(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.chMLhjmubjM)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMKhjmubjM)}(h **Context**h]j)}(hjfh]hContext}(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.chMQhjmubjM)}(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.chMRhjmubjM)}(h **Return**h]j)}(hjh]hReturn}(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.chMVhjmubjM)}(h:The virtual address corresponding to this page in the VMA.h]h:The virtual address corresponding to this page in the VMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMVhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_referenced (C function)c.folio_referencedhNtauh1hhj hhhNhNubh)}(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&]uh1j4hj ubj)}(h h]h }(hjhhhNhNubah}(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)}jljsbc.folio_referencedasbuh1hhj 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)}(hfolioh]hfolio}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int is_lockedh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h is_lockedh]h is_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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]jIc.folio_referencedasbuh1hhjubj)}(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 )}(hvm_flags_t *vm_flagsh](h)}(hhh]j)}(h vm_flags_th]h vm_flags_t}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj+modnameN classnameNjpjs)}jv]jIc.folio_referencedasbuh1hhj"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)}(hvm_flagsh]hvm_flags}(hjbhhhNhNubah}(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!Test if the folio was referenced.h]h!Test if the folio was referenced.}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chM!hjubj)}(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)}(hj?h]hstruct mem_cgroup *memcg}(hjAhhhNhNubah}(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 hj9ubj)}(hhh]jM)}(htarget memory cgrouph]htarget memory cgroup}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjThM hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThM 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)}(hjxh]hvm_flags_t *vm_flags}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjvubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM!hjrubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(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&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM#hjubjM)}(hThe page offset at which **pfn** is mapped within **mapping**.h](hThe page offset at which }(hj\hhhNhNubj)}(h**pfn**h]hpfn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh is mapped within }(hj\hhhNhNubj)}(h **mapping**h]hmapping}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjubj)}(hN``unsigned long pfn`` The PFN of the page mapped in **mapping** at **pgoff**. 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)}(h7The PFN of the page mapped in **mapping** at **pgoff**.h](hThe PFN of the page mapped in }(hjhhhNhNubj)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh at }(hjhhhNhNubj)}(h **pgoff**h]hpgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(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 }(hjNhhhNhNubj)}(h **mapping**h]hmapping}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh, 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).}(hjNhhhNhNubeh}(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 }(hjohhhNhNubj)}(h**pfn**h]hpfn}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh 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 }(hjohhhNhNubj)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh and }(hjohhhNhNubj)}(h **pgoff**h]hpgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(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)}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpfn_mkclean_range (C function)c.pfn_mkclean_rangehNtauh1hhj hhhNhNubh)}(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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubh)}(hpfn_mkclean_rangeh]j)}(hpfn_mkclean_rangeh]hpfn_mkclean_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hMubj )}(hV(unsigned long pfn, unsigned long nr_pages, pgoff_t pgoff, struct vm_area_struct *vma)h](j )}(hunsigned long pfnh](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)}(hpfnh]hpfn}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubj )}(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 hj0ubj )}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj$hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDmodnameN classnameNjpjs)}jv]jc.pfn_mkclean_rangeasbuh1hhj ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjnhhhNhNubah}(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 hj0ubeh}(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)}(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 [}(hjhhhNhNubj)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h **nr_pages**h]hnr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) at the specific offset (}(hjhhhNhNubj)}(h **pgoff**h]hpgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ) within the }(hjhhhNhNubj)}(h**vma**h]hvma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh[ of shared mappings. And since clean PTEs should also be readonly, write protects them too.}(hjhhhNhNubeh}(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&]uh1j3hjhhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hj!h]h Parameters}(hj#hhhNhNubah}(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)}(hj@h]hunsigned long pfn}(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 start pfn.h]h start pfn.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubj)}(hX``unsigned long nr_pages`` number of physically contiguous pages srarting with **pfn**. h](j)}(h``unsigned long nr_pages``h]jS)}(hjyh]hunsigned long nr_pages}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjsubj)}(hhh]jM)}(h``unsigned long address`` User virtual address of the mapping h](j)}(h``unsigned long address``h]jS)}(hj3h]hunsigned long address}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj1ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj-ubj)}(hhh]jM)}(h#User virtual address of the mappingh]h#User virtual address of the mapping}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjubj)}(hA``bool exclusive`` Whether the folio is exclusive to the process.h](j)}(h``bool exclusive``h]jS)}(hjlh]hbool exclusive}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjfubj)}(hhh]jM)}(h.Whether the folio is exclusive to the process.h]h.Whether the folio is exclusive to the process.}(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&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__page_check_anon_rmap (C function)c.__page_check_anon_rmaphNtauh1hhj hhhNhNubh)}(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 }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj>modnameN classnameNjpjs)}jv]jy)}jljsbc.__page_check_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)}(hfolioh]hfolio}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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]jXc.__page_check_anon_rmapasbuh1hhjubj)}(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 )}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj;modnameN classnameNjpjs)}jv]jXc.__page_check_anon_rmapasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(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}(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 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$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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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&]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)}(h=``const struct folio *folio`` The folio containing **page**. h](j)}(h``const struct folio *folio``h]jS)}(hj.h]hconst struct folio *folio}(hj0hhhNhNubah}(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 containing **page**.h](hThe folio containing }(hjGhhhNhNubj)}(h**page**h]hpage}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhj%ubj)}(h=``const struct page *page`` the page to check the mapping of h](j)}(h``const struct page *page``h]jS)}(hjyh]hconst struct page *page}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjsubj)}(hhh]jM)}(h the page to check the mapping ofh]h the page to check the mapping of}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhj%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)}(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)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj%ubj)}(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&]uh1jhjhMhj%ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%folio_add_anon_rmap_ptes (C function)c.folio_add_anon_rmap_pteshNtauh1hhj hhhNhNubh)}(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}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM,ubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjShM,ubh)}(hfolio_add_anon_rmap_ptesh]j)}(hfolio_add_anon_rmap_ptesh]hfolio_add_anon_rmap_ptes}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1hhjAhhhjShM,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}(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_add_anon_rmap_ptesasbuh1hhj~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 hjzubj )}(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 }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj>hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjzubj )}(h int nr_pagesh](j)}(hinth]hint}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjzubj )}(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_ptesasbuh1hhjubj)}(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 hjzubj )}(hunsigned long addressh](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 }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddressh]haddress}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjzubj )}(h rmap_t flagsh](h)}(hhh]j)}(hrmap_th]hrmap_t}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]jc.folio_add_anon_rmap_ptesasbuh1hhjVubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjzubeh}(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)}(h1add PTE mappings to a page range of an anon folioh]h1add PTE mappings 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.chM,hjhhubah}(h]h ]h"]h$]h&]uh1j3hj:hhhjShM,ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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}(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,``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.chM.hj'ubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhM.hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM.hjubj)}(h:``int nr_pages`` The number of pages which will be mapped h](j)}(h``int nr_pages``h]jS)}(hjfh]h int nr_pages}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(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}(hjhhhNhNubah}(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)}(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.chM0hjubj)}(hhh]jM)}(h+The vm area in which the mappings are addedh]h+The vm area in which the mappings are added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubj)}(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.chM2hj ubj)}(hhh]jM)}(hThe rmap flagsh]hThe rmap flags}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&hM2hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hM2hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(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)}(hjbhhhNhNubah}(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).}(hjqhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_add_anon_rmap_pmd (C function)c.folio_add_anon_rmap_pmdhNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMDubh)}(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&]jjuh1hhjhhhjhMDubj )}(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*}(hj)hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hj6hhhNhNubah}(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}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjomodnameN classnameNjpjs)}jv]jc.folio_add_anon_rmap_pmdasbuh1hhjKubj)}(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 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*}(hj hhhNhNubah}(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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hlongh]hlong}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(haddressh]haddress}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(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_anon_rmap_pmdasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMDubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMDubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMDhjhhubj4)}(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&]uh1j3hjhhhjhMDubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hMEhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMEhjubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hjSh]hstruct page *page}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMFhjMubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhMFhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMFhjubj)}(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.chMGhjubj)}(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&]uh1jLhjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjubj)}(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)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(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)}(hjOhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_add_new_anon_rmap (C function)c.folio_add_new_anon_rmaphNtauh1hhj hhhNhNubh)}(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}(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_add_new_anon_rmaph]j)}(hfolio_add_new_anon_rmaph]hfolio_add_new_anon_rmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM\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)}jljsbc.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}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj<hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj\modnameN classnameNjpjs)}jv]jc.folio_add_new_anon_rmapasbuh1hhj8ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj8ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(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 )}(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}(hj,hhhNhNubah}(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%Add mapping to a new anonymous folio.h]h%Add mapping to a new anonymous folio.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM\hjShhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM\ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjnjHjnjIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(h9``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.chM]hjubj)}(hhh]jM)}(h The folio to add the mapping to.h]h The folio to add the mapping to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjubj)}(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^hjubj)}(h:``unsigned long address`` the user virtual address mapped h](j)}(h``unsigned long address``h]jS)}(hj h]hunsigned long address}(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.chM_hjubj)}(hhh]jM)}(hthe user virtual address mappedh]hthe user virtual address mapped}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjubj)}(h ``rmap_t flags`` The rmap flags h](j)}(h``rmap_t flags``h]jS)}(hjBh]h rmap_t flags}(hjDhhhNhNubah}(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 rmap flagsh]hThe rmap flags}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWhM`hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM`hjubeh}(h]h ]h"]h$]h&]uh1jhjrubjM)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(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.chMbhjrubjM)}(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 }(hjhhhNhNubj_)}(h*new*h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMahjrubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMghjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%folio_add_file_rmap_ptes (C function)c.folio_add_file_rmap_pteshNtauh1hhj hhhNhNubh)}(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}(hj hhhNhNubah}(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&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj@modnameN classnameNjpjs)}jv]jy)}jljsbc.folio_add_file_rmap_ptesasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjyhhhNhNubah}(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 }(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]jZc.folio_add_file_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 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}(hj7hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWmodnameN classnameNjpjs)}jv]jZc.folio_add_file_rmap_ptesasbuh1hhj3ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj3ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(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}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hj2h]hstruct page *page}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(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}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjubj)}(hD``int nr_pages`` The number of pages that will be mapped using PTEs h](j)}(h``int nr_pages``h]jS)}(hjkh]h int nr_pages}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjeubj)}(hhh]jM)}(h2The number of pages that will be mapped using PTEsh]h2The number of pages that will be mapped using PTEs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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]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)}(h+The vm area in which the mappings are addedh]h+The vm area in which the mappings are added}(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)}(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.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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_add_file_rmap_pmd (C function)c.folio_add_file_rmap_pmdhNtauh1hhj hhhNhNubh)}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhjAhMubh)}(hfolio_add_file_rmap_pmdh]j)}(hfolio_add_file_rmap_pmdh]hfolio_add_file_rmap_pmd}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/hhhjAhMubj )}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljVsbc.folio_add_file_rmap_pmdasbuh1hhjlubj)}(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 )}(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_file_rmap_pmdasbuh1hhjubj)}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjhubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjRhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrmodnameN classnameNjpjs)}jv]jc.folio_add_file_rmap_pmdasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjNubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjhubeh}(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)}(h,add a PMD mapping to a page range of a folioh]h,add a PMD mapping to 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&]uh1j3hj(hhhjAhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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}(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,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hjMh]hstruct page *page}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjGubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj 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)}(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)}(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&]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&]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_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.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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_add_file_rmap_pud (C function)c.folio_add_file_rmap_pudhNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hMubh)}(hfolio_add_file_rmap_pudh]j)}(hfolio_add_file_rmap_pudh]hfolio_add_file_rmap_pud}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj#hMubj )}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjRhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hhh]j)}(hfolioh]hfolio}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrmodnameN classnameNjpjs)}jv]jy)}jlj8sbc.folio_add_file_rmap_pudasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjNubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubj )}(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_file_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 hjJubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj4hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjTmodnameN classnameNjpjs)}jv]jc.folio_add_file_rmap_pudasbuh1hhj0ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjF )}(hjI h]h*}(hj~hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj0ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(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)}(h,add a PUD mapping to a page range of a folioh]h,add a PUD mapping to 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&]uh1j3hj hhhj#hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hj/h]hstruct page *page}(hj1hhhNhNubah}(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}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj)}(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)}(hjhh]hstruct vm_area_struct *vma}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjbubj)}(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&]uh1jLhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhjubeh}(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)}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#folio_remove_rmap_ptes (C function)c.folio_remove_rmap_pteshNtauh1hhj hhhNhNubh)}(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}(hj4hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]j)}(hfolioh]hfolio}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjTmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_remove_rmap_ptesasbuh1hhj0ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj0ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(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]jnc.folio_remove_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 }(hj$ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hnr_pagesh]hnr_pages}(hj2 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj,ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjK hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjG ubj)}(h h]h }(hjX hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hji hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjk modnameN classnameNjpjs)}jv]jnc.folio_remove_rmap_ptesasbuh1hhjG ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjG ubj)}(hvmah]hvma}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG ubeh}(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)}(h0remove PTE mappings from a page range of a folioh]h0remove PTE mappings from 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.chM_hj hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM_ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMchj ubj)}(hhh](j)}(h>``struct folio *folio`` The folio to remove the mappings from 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.chM`hj ubj)}(hhh]jM)}(h%The folio to remove the mappings fromh]h%The folio to remove the mappings from}(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/``struct page *page`` The first page to remove h](j)}(h``struct page *page``h]jS)}(hjF h]hstruct page *page}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjD ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMahj@ ubj)}(hhh]jM)}(hThe first page to removeh]hThe first page to remove}(hj_ hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[ hMahj\ ubah}(h]h ]h"]h$]h&]uh1jhj@ ubeh}(h]h ]h"]h$]h&]uh1jhj[ hMahj ubj)}(hK``int nr_pages`` The number of pages that will be removed from the mapping 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.chMbhjy 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&]uh1jLhj hMbhj ubah}(h]h ]h"]h$]h&]uh1jhjy ubeh}(h]h ]h"]h$]h&]uh1jhj hMbhj ubj)}(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&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMchj ubj)}(hhh]jM)}(h/The vm area from which the mappings are removedh]h/The vm area from which the mappings are removed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMchj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMchj 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.chMehj ubjM)}(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.chMdhj 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.chMfhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_remove_rmap_pmd (C function)c.folio_remove_rmap_pmdhNtauh1hhj hhhNhNubh)}(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}(hjG hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMpubj)}(h h]h }(hjV hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC hhhjU hMpubh)}(hfolio_remove_rmap_pmdh]j)}(hfolio_remove_rmap_pmdh]hfolio_remove_rmap_pmd}(hjh hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjC hhhjU hMpubj )}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljj sbc.folio_remove_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)}(hfolioh]hfolio}(hj 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]j c.folio_remove_rmap_pmdasbuh1hhj ubj)}(h h]h }(hj2 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hj@ hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hpageh]hpage}(hjM hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj| ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjf hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjb ubj)}(h h]h }(hjs hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb 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_remove_rmap_pmdasbuh1hhjb ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjb ubj)}(hvmah]hvma}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj| ubeh}(h]h ]h"]h$]h&]jjuh1j hjC hhhjU hMpubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj? hhhjU hMpubah}(h]j: ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjU hMphj< hhubj4)}(hhh]jM)}(h1remove a PMD mapping from a page range of a folioh]h1remove a PMD mapping from 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.chMphj hhubah}(h]h ]h"]h$]h&]uh1j3hj< hhhjU hMpubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMthj ubj)}(hhh](j)}(h=``struct folio *folio`` The folio to remove the mapping from 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.chMqhj" ubj)}(hhh]jM)}(h$The folio to remove the mapping fromh]h$The folio to remove the mapping from}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj= hMqhj> ubah}(h]h ]h"]h$]h&]uh1jhj" ubeh}(h]h ]h"]h$]h&]uh1jhj= hMqhj ubj)}(h/``struct page *page`` The first page to remove h](j)}(h``struct page *page``h]jS)}(hja h]hstruct page *page}(hjc 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.chMrhj[ ubj)}(hhh]jM)}(hThe first page to removeh]hThe first page to remove}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjv hMrhjw ubah}(h]h ]h"]h$]h&]uh1jhj[ ubeh}(h]h ]h"]h$]h&]uh1jhjv hMrhj ubj)}(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.chMshj ubj)}(hhh]jM)}(h-The vm area from which the mapping is removedh]h-The vm area from which the mapping is removed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMshj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMshj 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.chMuhj 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.chMthj 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.chMvhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_remove_rmap_pud (C function)c.folio_remove_rmap_pudhNtauh1hhj hhhNhNubh)}(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}(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 }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj7hMubh)}(hfolio_remove_rmap_pudh]j)}(hfolio_remove_rmap_pudh]hfolio_remove_rmap_pud}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1hhj%hhhj7hMubj )}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljLsbc.folio_remove_rmap_pudasbuh1hhjbubj)}(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_remove_rmap_pudasbuh1hhjubj)}(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 hj^ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjHhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjhmodnameN classnameNjpjs)}jv]jc.folio_remove_rmap_pudasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj^ubeh}(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)}(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&]uh1j3hjhhhj7hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hj h]hstruct folio *folio}(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 folio to remove the mapping fromh]h$The folio to remove the mapping from}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhj ubah}(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)}(hjCh]hstruct page *page}(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.chMhj=ubj)}(hhh]jM)}(hThe first page to removeh]hThe first page to remove}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjubj)}(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&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjvubj)}(hhh]jM)}(h-The vm area from which the mapping is removedh]h-The vm area from which the mapping is removed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(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)}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htry_to_unmap (C function)c.try_to_unmaphNtauh1hhj hhhNhNubh)}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhJ/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&]uh1jhjKhhhj]hM ubh)}(htry_to_migrateh]j)}(htry_to_migrateh]htry_to_migrate}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1hhjKhhhj]hM ubj )}(h+(struct folio *folio, enum ttu_flags 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)}jljrsbc.try_to_migrateasbuh1hhjubj)}(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 )}(henum ttu_flags flagsh](j5)}(hjh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(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 }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjKhhhj]hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjGhhhj]hM ubah}(h]jBah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj]hM hjDhhubj4)}(hhh]jM)}(h8try to replace all page table mappings with swap entriesh]h8try to replace all page table mappings with swap entries}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjohhubah}(h]h ]h"]h$]h&]uh1j3hjDhhhj]hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chM hjubj)}(hhh](j)}(hD``struct folio *folio`` the folio to replace page table entries 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.chM hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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 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&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubjM)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"make_device_exclusive (C function)c.make_device_exclusivehNtauh1hhj hhhNhNubh)}(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}(hjlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjyhM ubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlmake_device_exclusivesbc.make_device_exclusiveasbuh1hhjhhhhjyhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjyhM ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhhjyhM ubh)}(hmake_device_exclusiveh]j)}(hjh]hmake_device_exclusive}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhhjyhM 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]jc.make_device_exclusiveasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj0hhhNhNubah}(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}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hlongh]hlong}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h void *ownerh](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)}(hownerh]howner}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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 reftargetj modnameN classnameNjpjs)}jv]jc.make_device_exclusiveasbuh1hhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj3hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubjF )}(hjI h]h*}(hj@hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioph]hfoliop}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhhjyhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjdhhhjyhM ubah}(h]j_ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjyhM hjahhubj4)}(hhh]jM)}(h)Mark a page for exclusive use by a deviceh]h)Mark a page for exclusive use by a device}(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&]uh1j3hjahhhjyhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chM hjubj)}(hhh](j)}(h@``struct mm_struct *mm`` mm_struct of associated target process 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&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hQ``void *owner`` passed to MMU_NOTIFY_EXCLUSIVE range notifier to allow filtering h](j)}(h``void *owner``h]jS)}(hj*h]h void *owner}(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@passed to MMU_NOTIFY_EXCLUSIVE range notifier to allow filteringh]h@passed to MMU_NOTIFY_EXCLUSIVE range notifier to allow filtering}(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)}(hH``struct folio **foliop`` folio pointer will be stored here on success. h](j)}(h``struct folio **foliop``h]jS)}(hjch]hstruct folio **foliop}(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.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&]uh1jLhjxhM hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM 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&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubjM)}(h **Notes**h]j)}(hjh]hNotes}(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 hjubji)}(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 }(hjhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubah}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjSubah}(h]h ]h"]h$]h&]uh1j+hj ubeh}(h]h ]h"]h$]h&]j+j+j+hj+j+uh1j+hjubah}(h]h ]h"]h$]h&]uh1jhhj3hM hjubjM)}(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.chM hjubjM)}(h>pointer to mapped page on success, otherwise a negative error.h]h>pointer to mapped page on success, otherwise a negative error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__rmap_walk_file (C function)c.__rmap_walk_filehNtauh1hhj hhhNhNubh)}(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}(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)}(h__rmap_walk_fileh]j)}(h__rmap_walk_fileh]h__rmap_walk_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM 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}(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.__rmap_walk_fileasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(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 )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjnhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjjubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j6c.__rmap_walk_fileasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjjubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hpgoff_t pgoff_starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j6c.__rmap_walk_fileasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h pgoff_starth]h pgoff_start}(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 }(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)}(hnr_pagesh]hnr_pages}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct rmap_walk_control *rwch](j5)}(hj8h]hstruct}(hjwhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j)}(hrmap_walk_controlh]hrmap_walk_control}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j6c.__rmap_walk_fileasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsubj)}(hrwch]hrwc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h bool lockedh](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlockedh]hlocked}(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)}(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&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjDjHjDjIjJjKuh1hhhhj hNhNubj)}(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)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjHubj)}(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)}(hjmh]hstruct folio *folio}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjkubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjgubj)}(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 }(hjhhhNhNubj)}(h**rwc**h]hrwc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhE will be configured such as to be able to look up mappings correctly.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhM hjdubj)}(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)}(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.chM hjubj)}(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 }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; is non-NULL, this should be equal to folio_mapping(folio).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjdubj)}(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)}(hjh]hpgoff_t pgoff_start}(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 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 }(hjhhhNhNubj)}(h **mapping**h]hmapping}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) of the page which we are looking up. If }(hjhhhNhNubj)}(h **folio**h]hfolio}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh9 is non-NULL, this should be equal to folio_pgoff(folio).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjdubj)}(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)}(hjch]hunsigned long 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.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}(hjhhhNhNubah}(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 hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM hjdubj)}(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)}(hjh]hstruct rmap_walk_control *rwc}(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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjdubj)}(hO``bool locked`` Is the **mapping** already locked? If not, we acquire the lock.h](j)}(h``bool locked``h]jS)}(hjh]h bool 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.chM hjubj)}(hhh]jM)}(h?Is the **mapping** already locked? If not, we acquire the lock.h](hIs the }(hjhhhNhNubj)}(h **mapping**h]hmapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh- already locked? If not, we acquire the lock.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjdubeh}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%isolate_movable_ops_page (C function)c.isolate_movable_ops_pagehNtauh1hhj hhhNhNubh)}(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}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKdubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjahKdubh)}(hisolate_movable_ops_pageh]j)}(hisolate_movable_ops_pageh]hisolate_movable_ops_page}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1hhjPhhhjahKdubj )}(h((struct page *page, isolate_mode_t mode)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)}jljvsbc.isolate_movable_ops_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 )}(hisolate_mode_t modeh](h)}(hhh]j)}(hisolate_mode_th]hisolate_mode_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.isolate_movable_ops_pageasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmodeh]hmode}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjPhhhjahKdubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjLhhhjahKdubah}(h]jGah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjahKdhjIhhubj4)}(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.chKdhjXhhubah}(h]h ]h"]h$]h&]uh1j3hjIhhhjahKdubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjsjHjsjIjJjKuh1hhhhj hNhNubj)}(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)}(hj}h]h Parameters}(hjhhhNhNubah}(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.chKhhjwubj)}(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&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKehjubj)}(hhh]jM)}(h The page.h]h The page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKehjubj)}(h,``isolate_mode_t mode`` The isolation mode. h](j)}(h``isolate_mode_t mode``h]jS)}(hjh]hisolate_mode_t mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKfhjubj)}(hhh]jM)}(hThe isolation mode.h]hThe isolation mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKfhjubeh}(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&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhhjwubjM)}(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.chKghjwubjM)}(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.}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKkhjwubjM)}(h5Returns true if isolation succeeded, otherwise false.h]h5Returns true if isolation succeeded, otherwise false.}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKnhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%putback_movable_ops_page (C function)c.putback_movable_ops_pagehNtauh1hhj hhhNhNubh)}(hhh](h)}(h1void putback_movable_ops_page (struct page *page)h]h)}(h0void putback_movable_ops_page(struct page *page)h](j)}(hvoidh]hvoid}(hjs hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo 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&]uh1jhjo hhhj hKubh)}(hputback_movable_ops_pageh]j)}(hputback_movable_ops_pageh]hputback_movable_ops_page}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjo hhhj hKubj )}(h(struct page *page)h]j )}(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]jy)}jlj sbc.putback_movable_ops_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)}(hpageh]hpage}(hj !hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubah}(h]h ]h"]h$]h&]jjuh1j hjo hhhj hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjk hhhj hKubah}(h]jf ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hKhjh hhubj4)}(hhh]jM)}(h$putback an isolated movable_ops pageh]h$putback an isolated movable_ops page}(hj3!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj0!hhubah}(h]h ]h"]h$]h&]uh1j3hjh hhhj hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjK!jHjK!jIjJjKuh1hhhhj hNhNubj)}(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)}(hjU!h]h Parameters}(hjW!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS!ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjO!ubj)}(hhh]j)}(h)``struct page *page`` The isolated page. h](j)}(h``struct page *page``h]jS)}(hjt!h]hstruct page *page}(hjv!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjr!ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjn!ubj)}(hhh]jM)}(hThe isolated page.h]hThe isolated page.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj!hKhj!ubah}(h]h ]h"]h$]h&]uh1jhjn!ubeh}(h]h ]h"]h$]h&]uh1jhj!hKhjk!ubah}(h]h ]h"]h$]h&]uh1jhjO!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.chKhjO!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.chKhjO!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.chKhjO!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%migrate_movable_ops_page (C function)c.migrate_movable_ops_pagehNtauh1hhj hhhNhNubh)}(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 }(hjM"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 }(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 hj8"ubj )}(hstruct page *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)}(hpageh]hpage}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj"modnameN classnameNjpjs)}jv]jz"c.migrate_movable_ops_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)}(hsrch]hsrc}(hj #hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj8"ubj )}(henum migrate_mode modeh](j5)}(hjh]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 reftargetjB#modnameN classnameNjpjs)}jv]jz"c.migrate_movable_ops_pageasbuh1hhj#ubj)}(h h]h }(hj^#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hmodeh]hmode}(hjl#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj8"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}(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!hhhj"hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj#jHj#jIjJjKuh1hhhhj hNhNubj)}(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&]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 *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)}(hjI$h]henum migrate_mode mode}(hjK$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjG$ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjC$ubj)}(hhh]jM)}(hThe migration mode.h]hThe migration mode.}(hjb$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^$hKhj_$ubah}(h]h ]h"]h$]h&]uh1jhjC$ubeh}(h]h ]h"]h$]h&]uh1jhj^$hKhj#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.chKhj#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.chKhj#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.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj#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.chKhj#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.chKhj#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.chKhj#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.chKhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmigrate_folio (C function)c.migrate_foliohNtauh1hhj hhhNhNubh)}(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}(hj5%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1%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}(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]jy)}jlj7%sbc.migrate_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 )}(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]j%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 hjI%ubj )}(hstruct folio *srch](j5)}(hj8h]hstruct}(hj3&hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj/&ubj)}(h h]h }(hj@&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/&ubh)}(hhh]j)}(hfolioh]hfolio}(hjQ&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN&ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjS&modnameN classnameNjpjs)}jv]j%c.migrate_folioasbuh1hhj/&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)}(hsrch]hsrc}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjI%ubj )}(henum migrate_mode modeh](j5)}(hjh]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_folioasbuh1hhj&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 hjI%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/'jIjJjKuh1hhhhj hNhNubj)}(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)}(hj9'h]h Parameters}(hj;'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7'ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMwhj3'ubj)}(hhh](j)}(hJ``struct address_space *mapping`` The address_space containing the folio. h](j)}(h!``struct address_space *mapping``h]jS)}(hjX'h]hstruct address_space *mapping}(hjZ'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjV'ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMthjR'ubj)}(hhh]jM)}(h'The address_space containing the folio.h]h'The address_space containing the folio.}(hjq'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjm'hMthjn'ubah}(h]h ]h"]h$]h&]uh1jhjR'ubeh}(h]h ]h"]h$]h&]uh1jhjm'hMthjO'ubj)}(h8``struct folio *dst`` The folio to migrate the data to. h](j)}(h``struct folio *dst``h]jS)}(hj'h]hstruct folio *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.chMuhj'ubj)}(hhh]jM)}(h!The folio to migrate the data to.h]h!The folio to migrate the data to.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'hMuhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMuhjO'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'hMvhjO'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(hMwhjO'ubeh}(h]h ]h"]h$]h&]uh1jhj3'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.chMyhj3'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.}(hjT(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMxhj3'ubjM)}(h&Folios are locked upon entry and exit.h]h&Folios are locked upon entry and exit.}(hjc(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM{hj3'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!buffer_migrate_folio (C function)c.buffer_migrate_foliohNtauh1hhj hhhNhNubh)}(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}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj(hMubh)}(hbuffer_migrate_folioh]j)}(hbuffer_migrate_folioh]hbuffer_migrate_folio}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj(hhhj(hMubj )}(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}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj(modnameN classnameNjpjs)}jv]jy)}jlj(sbc.buffer_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)}(hmappingh]hmapping}(hj()hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(ubj )}(hstruct folio *dsth](j5)}(hj8h]hstruct}(hjA)hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj=)ubj)}(h h]h }(hjN)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 reftargetja)modnameN classnameNjpjs)}jv]j )c.buffer_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]j )c.buffer_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)}(hsrch]hsrc}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(ubj )}(henum migrate_mode modeh](j5)}(hjh]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 reftargetjA*modnameN classnameNjpjs)}jv]j )c.buffer_migrate_folioasbuh1hhj*ubj)}(h h]h }(hj]*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hmodeh]hmode}(hjk*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+Migration function for folios with buffers.h]h+Migration function for folios with buffers.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhj*hhubah}(h]h ]h"]h$]h&]uh1j3hj(hhhj(hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj*jHj*jIjJjKuh1hhhhj hNhNubj)}(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*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.chMhj*ubj)}(hhh](j)}(hH``struct address_space *mapping`` The address space containing **src**. 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.chMhj*ubj)}(hhh]jM)}(h%The address space containing **src**.h](hThe address space containing }(hj*hhhNhNubj)}(h**src**h]hsrc}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh.}(hj*hhhNhNubeh}(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 folio *dst`` The folio to migrate to. h](j)}(h``struct folio *dst``h]jS)}(hj!+h]hstruct folio *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.chMhj+ubj)}(hhh]jM)}(hThe folio to migrate to.h]hThe folio to migrate to.}(hj:+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6+hMhj7+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj6+hMhj*ubj)}(h1``struct folio *src`` The folio to migrate from. h](j)}(h``struct folio *src``h]jS)}(hjZ+h]hstruct folio *src}(hj\+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjX+ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjT+ubj)}(hhh]jM)}(hThe folio to migrate from.h]hThe folio to migrate from.}(hjs+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjo+hMhjp+ubah}(h]h ]h"]h$]h&]uh1jhjT+ubeh}(h]h ]h"]h$]h&]uh1jhjo+hMhj*ubj)}(h5``enum migrate_mode mode`` How to migrate the folio. 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.chMhj+ubj)}(hhh]jM)}(hHow to migrate the folio.h]hHow to migrate 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*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.chMhj*ubjM)}(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 }(hj+hhhNhNubj)}(h**src**h]hsrc}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh 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.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.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:114: ./mm/migrate.chMhj*ubjM)}(h,0 on success or a negative errno on failure.h]h,0 on success or a negative errno on failure.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(buffer_migrate_folio_norefs (C function)c.buffer_migrate_folio_norefshNtauh1hhj hhhNhNubh)}(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}(hjL,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH,hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMubj)}(h h]h }(hj[,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH,hhhjZ,hMubh)}(hbuffer_migrate_folio_norefsh]j)}(hbuffer_migrate_folio_norefsh]hbuffer_migrate_folio_norefs}(hjm,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji,ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjH,hhhjZ,hMubj )}(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}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,modnameN classnameNjpjs)}jv]jy)}jljo,sbc.buffer_migrate_folio_norefsasbuh1hhj,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 )}(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]j,c.buffer_migrate_folio_norefsasbuh1hhj,ubj)}(h h]h }(hj7-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjF )}(hjI h]h*}(hjE-hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj,ubj)}(hdsth]hdst}(hjR-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj,ubj )}(hstruct folio *srch](j5)}(hj8h]hstruct}(hjk-hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjg-ubj)}(h h]h }(hjx-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg-ubh)}(hhh]j)}(hfolioh]hfolio}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj-modnameN classnameNjpjs)}jv]j,c.buffer_migrate_folio_norefsasbuh1hhjg-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg-ubjF )}(hjI h]h*}(hj-hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjg-ubj)}(hsrch]hsrc}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj,ubj )}(henum migrate_mode modeh](j5)}(hjh]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.buffer_migrate_folio_norefsasbuh1hhj-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 hj,ubeh}(h]h ]h"]h$]h&]jjuh1j hjH,hhhjZ,hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjD,hhhjZ,hMubah}(h]j?,ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjZ,hMhjA,hhubj4)}(hhh]jM)}(h+Migration function for folios with buffers.h]h+Migration function for folios with buffers.}(hjO.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjL.hhubah}(h]h ]h"]h$]h&]uh1j3hjA,hhhjZ,hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjg.jHjg.jIjJjKuh1hhhhj hNhNubj)}(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)}(hjq.h]h Parameters}(hjs.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo.ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM hjk.ubj)}(hhh](j)}(hH``struct address_space *mapping`` The address space containing **src**. 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.chMhj.ubj)}(hhh]jM)}(h%The address space containing **src**.h](hThe address space containing }(hj.hhhNhNubj)}(h**src**h]hsrc}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh.}(hj.hhhNhNubeh}(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 folio *dst`` The folio to migrate to. h](j)}(h``struct folio *dst``h]jS)}(hj.h]hstruct folio *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.chMhj.ubj)}(hhh]jM)}(hThe folio to migrate to.h]hThe folio to migrate 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)}(h1``struct folio *src`` The folio to migrate from. 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.chM hj/ubj)}(hhh]jM)}(hThe folio to migrate from.h]hThe folio to migrate from.}(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``enum migrate_mode mode`` How to migrate the folio. h](j)}(h``enum migrate_mode mode``h]jS)}(hjM/h]henum migrate_mode mode}(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:114: ./mm/migrate.chM hjG/ubj)}(hhh]jM)}(hHow to migrate the folio.h]hHow to migrate the folio.}(hjf/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjb/hM hjc/ubah}(h]h ]h"]h$]h&]uh1jhjG/ubeh}(h]h ]h"]h$]h&]uh1jhjb/hM hj.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&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM hjk.ubjM)}(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).}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM hjk.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:114: ./mm/migrate.chMhjk.ubjM)}(h,0 on success or a negative errno on failure.h]h,0 on success or a negative errno on failure.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjk.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdo_mmap (C function) c.do_mmaphNtauh1hhj hhhNhNubh)}(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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj0hMubj)}(hlongh]hlong}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj0hMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj0hMubh)}(hdo_mmaph]j)}(hdo_mmaph]hdo_mmap}(hj10hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-0ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/hhhj0hMubj )}(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}(hjM0hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjI0ubj)}(h h]h }(hjZ0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI0ubh)}(hhh]j)}(hfileh]hfile}(hjk0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjm0modnameN classnameNjpjs)}jv]jy)}jlj30sb c.do_mmapasbuh1hhjI0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI0ubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjI0ubj)}(hfileh]hfile}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE0ubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hlongh]hlong}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(haddrh]haddr}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE0ubj )}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubj)}(hlongh]hlong}(hj,1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubj)}(h h]h }(hj:1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubj)}(hlenh]hlen}(hjH1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE0ubj )}(hunsigned long proth](j)}(hunsignedh]hunsigned}(hja1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]1ubj)}(h h]h }(hjo1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]1ubj)}(hlongh]hlong}(hj}1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]1ubj)}(hproth]hprot}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE0ubj )}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hlongh]hlong}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hflagsh]hflags}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE0ubj )}(hvm_flags_t vm_flagsh](h)}(hhh]j)}(h vm_flags_th]h vm_flags_t}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj2modnameN classnameNjpjs)}jv]j0 c.do_mmapasbuh1hhj1ubj)}(h h]h }(hj$2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hvm_flagsh]hvm_flags}(hj22hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE0ubj )}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hjK2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG2ubj)}(h h]h }(hjY2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG2ubj)}(hlongh]hlong}(hjg2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG2ubj)}(h h]h }(hju2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG2ubj)}(hpgoffh]hpgoff}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE0ubj )}(hunsigned long *populateh](j)}(hunsignedh]hunsigned}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hlongh]hlong}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjF )}(hjI h]h*}(hj2hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2ubj)}(hpopulateh]hpopulate}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE0ubj )}(hstruct list_head *ufh](j5)}(hj8h]hstruct}(hj2hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj2ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]j)}(h list_headh]h list_head}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3modnameN classnameNjpjs)}jv]j0 c.do_mmapasbuh1hhj2ubj)}(h h]h }(hj63hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjF )}(hjI h]h*}(hjD3hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2ubj)}(hufh]huf}(hjQ3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjE0ubeh}(h]h ]h"]h$]h&]jjuh1j hj/hhhj0hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj/hhhj0hMubah}(h]j/ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj0hMhj/hhubj4)}(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{3hhhNhNubj)}(h**len**h]hlen}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{3ubh with protection bits }(hj{3hhhNhNubj)}(h**prot**h]hprot}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{3ubh , mmap flags }(hj{3hhhNhNubj)}(h **flags**h]hflags}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{3ubhP (from which VMA flags will be inferred), and any additional VMA flags to apply }(hj{3hhhNhNubj)}(h **vm_flags**h]hvm_flags}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{3ubhA. If this is a file-backed mapping then the file is specified in }(hj{3hhhNhNubj)}(h**file**h]hfile}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{3ubh# and page offset into the file via }(hj{3hhhNhNubj)}(h **pgoff**h]hpgoff}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{3ubh.}(hj{3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjx3hhubah}(h]h ]h"]h$]h&]uh1j3hj/hhhj0hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj3jHj3jIjJjKuh1hhhhj hNhNubj)}(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 4h]h Parameters}(hj 4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj4ubj)}(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(4h]hstruct file *file}(hj*4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&4ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM9hj"4ubj)}(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.}(hjA4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM8hj>4ubah}(h]h ]h"]h$]h&]uh1jhj"4ubeh}(h]h ]h"]h$]h&]uh1jhj=4hM9hj4ubj)}(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)}(hjb4h]hunsigned long addr}(hjd4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`4ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM<hj\4ubj)}(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{4hhhNhNubj)}(h **flags**h]hflags}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{4ubh| has MAP_FIXED set, specifies) the address at which to perform this mapping. See mmap (2) for details. Must be page-aligned.}(hj{4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM:hjx4ubah}(h]h ]h"]h$]h&]uh1jhj\4ubeh}(h]h ]h"]h$]h&]uh1jhjw4hM<hj4ubj)}(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)}(hj4h]hunsigned long len}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM>hj4ubj)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM=hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM>hj4ubj)}(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)}(hj4h]hunsigned long prot}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM@hj4ubj)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM?hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM@hj4ubj)}(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"5h]hunsigned long flags}(hj$5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj 5ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMBhj5ubj)}(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;5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMAhj85ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj75hMBhj4ubj)}(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\5h]hvm_flags_t vm_flags}(hj^5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZ5ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMChjV5ubj)}(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.}(hju5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjq5hMChjr5ubah}(h]h ]h"]h$]h&]uh1jhjV5ubeh}(h]h ]h"]h$]h&]uh1jhjq5hMChj4ubj)}(h]``unsigned long pgoff`` Page offset into the **file** if file-backed, should be 0 otherwise. h](j)}(h``unsigned long pgoff``h]jS)}(hj5h]hunsigned long pgoff}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMDhj5ubj)}(hhh]jM)}(hDPage offset into the **file** if file-backed, should be 0 otherwise.h](hPage offset into the }(hj5hhhNhNubj)}(h**file**h]hfile}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh' if file-backed, should be 0 otherwise.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj5hMDhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMDhj4ubj)}(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)}(hj5h]hunsigned long *populate}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMHhj5ubj)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMEhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMHhj4ubj)}(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)}(hj6h]hstruct list_head *uf}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMKhj6ubj)}(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.}(hj36hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMIhj06ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj/6hMKhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubjM)}(h**Description**h]j)}(hjV6h]h Description}(hjX6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT6ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMMhj4ubjM)}(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 }(hjl6hhhNhNubj)}(h**uf**h]huf}(hjt6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl6ubhX is non-NULL, the caller has provided a list head to track unmap events for userfaultfd }(hjl6hhhNhNubj)}(h**uf**h]huf}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl6ubh.}(hjl6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj4ubjM)}(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 }(hj6hhhNhNubj)}(h **populate**h]hpopulate}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubhc, which must be non-NULL, expecting the caller to actually perform this task itself if appropriate.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj4ubjM)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM!hj4ubjM)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM%hj4ubjM)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM(hj4ubjM)}(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 }(hj6hhhNhNubj)}(h**len**h]hlen}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh. bytes, rounded down to the nearest page size.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM,hj4ubjM)}(h2The caller must write-lock current->mm->mmap_lock.h]h2The caller must write-lock current->mm->mmap_lock.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM1hj4ubjM)}(h **Return**h]j)}(hj7h]hReturn}(hj!7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM3hj4ubjM)}(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.}(hj57hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"find_vma_intersection (C function)c.find_vma_intersectionhNtauh1hhj hhhNhNubh)}(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}(hjd7hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj`7hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMlubj)}(h h]h }(hjr7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`7hhhjq7hMlubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7modnameN classnameNjpjs)}jv]jy)}jlfind_vma_intersectionsbc.find_vma_intersectionasbuh1hhj`7hhhjq7hMlubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`7hhhjq7hMlubjF )}(hjI h]h*}(hj7hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj`7hhhjq7hMlubh)}(hfind_vma_intersectionh]j)}(hj7h]hfind_vma_intersection}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj`7hhhjq7hMlubj )}(hH(struct mm_struct *mm, unsigned long start_addr, unsigned long end_addr)h](j )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hj7hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(h mm_structh]h mm_struct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7modnameN classnameNjpjs)}jv]j7c.find_vma_intersectionasbuh1hhj7ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjF )}(hjI h]h*}(hj(8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj7ubj)}(hmmh]hmm}(hj58hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj7ubj )}(hunsigned long start_addrh](j)}(hunsignedh]hunsigned}(hjN8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ8ubj)}(h h]h }(hj\8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ8ubj)}(hlongh]hlong}(hjj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ8ubj)}(h h]h }(hjx8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ8ubj)}(h start_addrh]h start_addr}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj7ubj )}(hunsigned long end_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)}(hend_addrh]hend_addr}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj7ubeh}(h]h ]h"]h$]h&]jjuh1j hj`7hhhjq7hMlubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj\7hhhjq7hMlubah}(h]jW7ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjq7hMlhjY7hhubj4)}(hhh]jM)}(h3Look up the first VMA which intersects the intervalh]h3Look up the first VMA which intersects the interval}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMlhj8hhubah}(h]h ]h"]h$]h&]uh1j3hjY7hhhjq7hMlubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj9jHj9jIjJjKuh1hhhhj hNhNubj)}(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#9h]h Parameters}(hj%9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!9ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMphj9ubj)}(hhh](j)}(h4``struct mm_struct *mm`` The process address space. h](j)}(h``struct mm_struct *mm``h]jS)}(hjB9h]hstruct mm_struct *mm}(hjD9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@9ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMmhj<9ubj)}(hhh]jM)}(hThe process address space.h]hThe process address space.}(hj[9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjW9hMmhjX9ubah}(h]h ]h"]h$]h&]uh1jhj<9ubeh}(h]h ]h"]h$]h&]uh1jhjW9hMmhj99ubj)}(h?``unsigned long start_addr`` The inclusive start user address. h](j)}(h``unsigned long start_addr``h]jS)}(hj{9h]hunsigned long start_addr}(hj}9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjy9ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMnhju9ubj)}(hhh]jM)}(h!The inclusive start user address.h]h!The inclusive start user address.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9hMnhj9ubah}(h]h ]h"]h$]h&]uh1jhju9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMnhj99ubj)}(h;``unsigned long end_addr`` The exclusive end user address. h](j)}(h``unsigned long end_addr``h]jS)}(hj9h]hunsigned long end_addr}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMohj9ubj)}(hhh]jM)}(hThe exclusive end user address.h]hThe exclusive end user address.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9hMohj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMohj99ubeh}(h]h ]h"]h$]h&]uh1jhj9ubjM)}(h **Return**h]j)}(hj9h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMqhj9ubjM)}(h\The first VMA within the provided range, ``NULL`` otherwise. Assumes start_addr < end_addr.h](h)The first VMA within the provided range, }(hj:hhhNhNubjS)}(h``NULL``h]hNULL}(hj :hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:ubh+ otherwise. Assumes start_addr < end_addr.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMqhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfind_vma (C function) c.find_vmahNtauh1hhj hhhNhNubh)}(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}(hjF:hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjB:hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMubj)}(h h]h }(hjT:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB:hhhjS:hMubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hje:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb:ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjg:modnameN classnameNjpjs)}jv]jy)}jlfind_vmasb c.find_vmaasbuh1hhjB:hhhjS:hMubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB:hhhjS:hMubjF )}(hjI h]h*}(hj:hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjB:hhhjS:hMubh)}(hfind_vmah]j)}(hj:h]hfind_vma}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjB:hhhjS:hMubj )}(h*(struct mm_struct *mm, unsigned long 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]j: c.find_vmaasbuh1hhj: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 addrh](j)}(hunsignedh]hunsigned}(hj0;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,;ubj)}(h h]h }(hj>;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,;ubj)}(hlongh]hlong}(hjL;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,;ubj)}(h h]h }(hjZ;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,;ubj)}(haddrh]haddr}(hjh;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,;ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj:ubeh}(h]h ]h"]h$]h&]jjuh1j hjB:hhhjS:hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj>:hhhjS:hMubah}(h]j9:ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjS:hMhj;:hhubj4)}(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.}(hj;hhhNhNubah}(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&]uh1j3hj;:hhhjS:hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj;jHj;jIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(h0``struct mm_struct *mm`` The mm_struct to check 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&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj;ubj)}(hhh]jM)}(hThe mm_struct to checkh]hThe mm_struct to check}(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#``unsigned long addr`` The address 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.chMhj<ubj)}(hhh]jM)}(h The addressh]h The address}(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 **Return**h]j)}(hjG<h]hReturn}(hjI<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE<ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj;ubjM)}(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]<hhhNhNubjS)}(h``NULL``h]hNULL}(hje<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj]<ubh( in the case of no VMA at addr or above.}(hj]<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfind_vma_prev (C function)c.find_vma_prevhNtauh1hhj hhhNhNubh)}(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}(hj<hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj<hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhj<hMubh)}(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)}jl find_vma_prevsbc.find_vma_prevasbuh1hhj<hhhj<hMubj)}(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 find_vma_prevh]j)}(hj<h]h find_vma_prev}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj<hhhj<hMubj )}(hI(struct mm_struct *mm, unsigned long addr, struct vm_area_struct **pprev)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}(hj6=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3=ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj8=modnameN classnameNjpjs)}jv]j<c.find_vma_prevasbuh1hhj=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)}(hmmh]hmm}(hjo=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=ubj )}(hstruct vm_area_struct **pprevh](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}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj=modnameN classnameNjpjs)}jv]j<c.find_vma_prevasbuh1hhj=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=ubjF )}(hjI h]h*}(hj0>hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj=ubj)}(hpprevh]hpprev}(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`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 }(hjg>hhhNhNubjS)}(h ``pprev``h]hpprev}(hjo>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjg>ubh to the previous VMA, if any.}(hjg>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjd>hhubah}(h]h ]h"]h$]h&]uh1j3hj<hhhj<hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj>jHj>jIjJjKuh1hhhhj hNhNubj)}(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>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)}(h0``struct mm_struct *mm`` The mm_struct to check 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&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj>ubj)}(hhh]jM)}(hThe mm_struct to checkh]hThe mm_struct to check}(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#``unsigned long addr`` The address 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.chMhj>ubj)}(hhh]jM)}(h The addressh]h The address}(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 **pprev`` The pointer to set to the previous VMA h](j)}(h!``struct vm_area_struct **pprev``h]jS)}(hj,?h]hstruct vm_area_struct **pprev}(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.chMhj&?ubj)}(hhh]jM)}(h&The pointer to set to the previous VMAh]h&The pointer to set to the previous VMA}(hjE?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjA?hMhjB?ubah}(h]h ]h"]h$]h&]uh1jhj&?ubeh}(h]h ]h"]h$]h&]uh1jhjA?hMhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>ubjM)}(h**Description**h]j)}(hjg?h]h Description}(hji?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje?ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj>ubjM)}(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.}(hj}?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj>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.chMhj>ubjM)}(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 }(hj?hhhNhNubj)}(h**addr**h]haddr}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh, or the next vma. May return }(hj?hhhNhNubjS)}(h``NULL``h]hNULL}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj?ubh( in the case of no vma at addr or above.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_alloc (C function)c.kmemleak_allochNtauh1hhj hhhNhNubh)}(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}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM5ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhj@hM5ubh__ref}(hj?hhhNhNubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhj@hM5ubh)}(hkmemleak_alloch]j)}(hkmemleak_alloch]hkmemleak_alloc}(hj*@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&@ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj?hhhj@hM5ubj )}(h8(const void *ptr, size_t size, int min_count, gfp_t gfp)h](j )}(hconst void *ptrh](j5)}(hjh]hconst}(hjF@hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjB@ubj)}(h h]h }(hjS@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB@ubj)}(hvoidh]hvoid}(hja@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB@ubj)}(h h]h }(hjo@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB@ubjF )}(hjI h]h*}(hj}@hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjB@ubj)}(hptrh]hptr}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB@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]jy)}jlj,@sbc.kmemleak_allocasbuh1hhj@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 )}(h int min_counth](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 min_counth]h min_count}(hj AhhhNhNubah}(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}(hj%AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Aubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj'AmodnameN classnameNjpjs)}jv]j@c.kmemleak_allocasbuh1hhjAubj)}(h h]h }(hjCAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hgfph]hgfp}(hjQAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>@ubeh}(h]h ]h"]h$]h&]jjuh1j hj?hhhj@hM5ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj?hhhj@hM5ubah}(h]j?ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj@hM5hj?hhubj4)}(hhh]jM)}(h!register a newly allocated objecth]h!register a newly allocated object}(hj{AhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM5hjxAhhubah}(h]h ]h"]h$]h&]uh1j3hj?hhhj@hM5ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjAjHjAjIjJjKuh1hhhhj hNhNubj)}(hX**Parameters** ``const void *ptr`` pointer to beginning of the object ``size_t size`` size of the object ``int min_count`` minimum 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) ``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocations **Description** This function is called from the kernel allocators when a new object (memory block) is allocated (kmem_cache_alloc, kmalloc etc.).h](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.chM9hjAubj)}(hhh](j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hjAh]hconst void *ptr}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM6hjAubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhM6hjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhM6hjAubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]jS)}(hjAh]h size_t size}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM7hjAubj)}(hhh]jM)}(hsize of the objecth]hsize of the object}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj BhM7hj Bubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj BhM7hjAubj)}(hXQ``int min_count`` minimum 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](j)}(h``int min_count``h]jS)}(hj.Bh]h int min_count}(hj0BhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj,Bubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM<hj(Bubj)}(hhh]jM)}(hX>minimum 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 }(hjGBhhhNhNubj)}(h **min_count**h]h min_count}(hjOBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGBubh7 is found, the object is reported as a memory leak. If }(hjGBhhhNhNubj)}(h **min_count**h]h min_count}(hjaBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGBubh2 is 0, the object is never reported as a leak. If }(hjGBhhhNhNubj)}(h **min_count**h]h min_count}(hjsBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGBubhF is -1, the object is ignored (not scanned and not reported as a leak)}(hjGBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM8hjDBubah}(h]h ]h"]h$]h&]uh1jhj(Bubeh}(h]h ]h"]h$]h&]uh1jhjCBhM<hjAubj)}(hL``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocations h](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.chM=hjBubj)}(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&]uh1jLhjBhM=hjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM=hjAubeh}(h]h ]h"]h$]h&]uh1jhjAubjM)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM?hjAubjM)}(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.).}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM>hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"kmemleak_alloc_percpu (C function)c.kmemleak_alloc_percpuhNtauh1hhj hhhNhNubh)}(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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMMubj)}(h h]h }(hj-ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhj,ChMMubh__ref}(hjChhhNhNubj)}(h h]h }(hj?ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhj,ChMMubh)}(hkmemleak_alloc_percpuh]j)}(hkmemleak_alloc_percpuh]hkmemleak_alloc_percpu}(hjQChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMCubah}(h]h ](jjeh"]h$]h&]jjuh1hhjChhhj,ChMMubj )}(h2(const void __percpu *ptr, size_t size, gfp_t gfp)h](j )}(hconst void __percpu *ptrh](j5)}(hjh]hconst}(hjmChhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjiCubj)}(h h]h }(hjzChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiCubj)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiCubh__percpu}(hjiChhhNhNubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiCubjF )}(hjI h]h*}(hjChhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjiCubj)}(hptrh]hptr}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiCubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeCubj )}(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)}jljSCsbc.kmemleak_alloc_percpuasbuh1hhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hsizeh]hsize}(hj DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeCubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj)DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Dubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj+DmodnameN classnameNjpjs)}jv]jCc.kmemleak_alloc_percpuasbuh1hhj"Dubj)}(h h]h }(hjGDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Dubj)}(hgfph]hgfp}(hjUDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Dubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeCubeh}(h]h ]h"]h$]h&]jjuh1j hjChhhj,ChMMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjChhhj,ChMMubah}(h]jCah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj,ChMMhjChhubj4)}(hhh]jM)}(h*register a newly allocated __percpu objecth]h*register a newly allocated __percpu object}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMMhj|Dhhubah}(h]h ]h"]h$]h&]uh1j3hjChhhj,ChMMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjDjHjDjIjJjKuh1hhhhj hNhNubj)}(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)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMQhjDubj)}(hhh](j)}(hI``const void __percpu *ptr`` __percpu pointer to beginning of the object h](j)}(h``const void __percpu *ptr``h]jS)}(hjDh]hconst void __percpu *ptr}(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.chMNhjDubj)}(hhh]jM)}(h+__percpu pointer to beginning of the objecth]h+__percpu pointer to beginning of the object}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhMNhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMNhjDubj)}(h#``size_t size`` size of the object 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&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMOhjDubj)}(hhh]jM)}(hsize of the objecth]hsize of the object}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMOhjEubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjEhMOhjDubj)}(hB``gfp_t gfp`` flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]jS)}(hj2Eh]h gfp_t gfp}(hj4EhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0Eubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMPhj,Eubj)}(hhh]jM)}(h3flags used for kmemleak internal memory allocationsh]h3flags used for kmemleak internal memory allocations}(hjKEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGEhMPhjHEubah}(h]h ]h"]h$]h&]uh1jhj,Eubeh}(h]h ]h"]h$]h&]uh1jhjGEhMPhjDubeh}(h]h ]h"]h$]h&]uh1jhjDubjM)}(h**Description**h]j)}(hjmEh]h Description}(hjoEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkEubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMRhjDubjM)}(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).}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMQhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_vmalloc (C function)c.kmemleak_vmallochNtauh1hhj hhhNhNubh)}(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}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM`ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjEhM`ubh__ref}(hjEhhhNhNubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjEhM`ubh)}(hkmemleak_vmalloch]j)}(hkmemleak_vmalloch]hkmemleak_vmalloc}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1hhjEhhhjEhM`ubj )}(h6(const struct vm_struct *area, size_t size, gfp_t gfp)h](j )}(hconst struct vm_struct *areah](j5)}(hjh]hconst}(hjFhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjEubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj5)}(hj8h]hstruct}(hjFhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjEubj)}(h h]h }(hj)FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(h vm_structh]h vm_struct}(hj:FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Fubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKubah}(h]h ]h"]h$]h&]uh1jhj"Kubeh}(h]h ]h"]h$]h&]uh1jhj=KhMhjKubj)}(h(``size_t size`` size to be unregistered h](j)}(h``size_t size``h]jS)}(hjbKh]h size_t size}(hjdKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`Kubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj\Kubj)}(hhh]jM)}(hsize to be unregisteredh]hsize to be unregistered}(hj{KhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwKhMhjxKubah}(h]h ]h"]h$]h&]uh1jhj\Kubeh}(h]h ]h"]h$]h&]uh1jhjwKhMhjKubeh}(h]h ]h"]h$]h&]uh1jhjKubjM)}(h**Description**h]j)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjKubjM)}(hiThis function is called when only a part of a memory block is freed (usually from the bootmem allocator).h]hiThis function is called when only a part of a memory block is freed (usually from the bootmem allocator).}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!kmemleak_free_percpu (C function)c.kmemleak_free_percpuhNtauh1hhj hhhNhNubh)}(hhh](h)}(h:void __ref kmemleak_free_percpu (const void __percpu *ptr)h]h)}(h9void __ref kmemleak_free_percpu(const void __percpu *ptr)h](j)}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhjKhMubh__ref}(hjKhhhNhNubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhjKhMubh)}(hkmemleak_free_percpuh]j)}(hkmemleak_free_percpuh]hkmemleak_free_percpu}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1hhjKhhhjKhMubj )}(h(const void __percpu *ptr)h]j )}(hconst void __percpu *ptrh](j5)}(hjh]hconst}(hj1LhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-Lubj)}(h h]h }(hj>LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Lubj)}(hvoidh]hvoid}(hjLLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Lubj)}(h h]h }(hjZLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Lubh__percpu}(hj-LhhhNhNubj)}(h h]h }(hjlLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-LubjF )}(hjI h]h*}(hjzLhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-Lubj)}(hptrh]hptr}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Lubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)Lubah}(h]h ]h"]h$]h&]jjuh1j hjKhhhjKhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjKhhhjKhMubah}(h]jKah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjKhMhjKhhubj4)}(hhh]jM)}(h2unregister a previously registered __percpu objecth]h2unregister a previously registered __percpu object}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjLhhubah}(h]h ]h"]h$]h&]uh1j3hjKhhhjKhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjLjHjLjIjJjKuh1hhhhj hNhNubj)}(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)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjLubj)}(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.chMhjLubj)}(hhh]jM)}(h+__percpu pointer to beginning of the objecth]h+__percpu pointer to beginning of the object}(hj MhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubjM)}(h**Description**h]j)}(hj-Mh]h Description}(hj/MhhhNhNubah}(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.chMhjLubjM)}(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).}(hjCMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"kmemleak_update_trace (C function)c.kmemleak_update_tracehNtauh1hhj hhhNhNubh)}(hhh](h)}(h2void __ref kmemleak_update_trace (const void *ptr)h]h)}(h1void __ref kmemleak_update_trace(const void *ptr)h](j)}(hvoidh]hvoid}(hjrMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnMhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnMhhhjMhMubh__ref}(hjnMhhhNhNubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnMhhhjMhMubh)}(hkmemleak_update_traceh]j)}(hkmemleak_update_traceh]hkmemleak_update_trace}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1hhjnMhhhjMhMubj )}(h(const void *ptr)h]j )}(hconst void *ptrh](j5)}(hjh]hconst}(hjMhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hvoidh]hvoid}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjF )}(hjI h]h*}(hjMhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjMubj)}(hptrh]hptr}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubah}(h]h ]h"]h$]h&]jjuh1j hjnMhhhjMhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjjMhhhjMhMubah}(h]jeMah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjMhMhjgMhhubj4)}(hhh]jM)}(h$update object allocation stack traceh]h$update object allocation stack trace}(hj/NhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj,Nhhubah}(h]h ]h"]h$]h&]uh1j3hjgMhhhjMhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjGNjHjGNjIjJjKuh1hhhhj hNhNubj)}(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)}(hjQNh]h Parameters}(hjSNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjONubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjKNubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hjpNh]hconst void *ptr}(hjrNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjjNubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjgNubah}(h]h ]h"]h$]h&]uh1jhjKNubjM)}(h**Description**h]j)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjKNubjM)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjKNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_not_leak (C function)c.kmemleak_not_leakhNtauh1hhj hhhNhNubh)}(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}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhMubh__ref}(hjNhhhNhNubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhMubh)}(hkmemleak_not_leakh]j)}(hkmemleak_not_leakh]hkmemleak_not_leak}(hj#OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jjuh1hhjNhhhjNhMubj )}(h(const void *ptr)h]j )}(hconst void *ptrh](j5)}(hjh]hconst}(hj?OhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj;Oubj)}(h h]h }(hjLOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Oubj)}(hvoidh]hvoid}(hjZOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Oubj)}(h h]h }(hjhOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;OubjF )}(hjI h]h*}(hjvOhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj;Oubj)}(hptrh]hptr}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Oubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj7Oubah}(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)}(h*mark an allocated object as false positiveh]h*mark an allocated object as false positive}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjOhhubah}(h]h ]h"]h$]h&]uh1j3hjNhhhjNhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjOjHjOjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMhjOubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hjOh]hconst void *ptr}(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.chMhjOubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubjM)}(h**Description**h]j)}(hj)Ph]h Description}(hj+PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Pubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjOubjM)}(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.}(hj?PhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$kmemleak_transient_leak (C function)c.kmemleak_transient_leakhNtauh1hhj hhhNhNubh)}(hhh](h)}(h4void __ref kmemleak_transient_leak (const void *ptr)h]h)}(h3void __ref kmemleak_transient_leak(const void *ptr)h](j)}(hvoidh]hvoid}(hjnPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjPhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hj}PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjPhhhj|PhMubh__ref}(hjjPhhhNhNubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjPhhhj|PhMubh)}(hkmemleak_transient_leakh]j)}(hkmemleak_transient_leakh]hkmemleak_transient_leak}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1hhjjPhhhj|PhMubj )}(h(const void *ptr)h]j )}(hconst void *ptrh](j5)}(hjh]hconst}(hjPhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjF )}(hjI h]h*}(hjPhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjPubj)}(hptrh]hptr}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPubah}(h]h ]h"]h$]h&]jjuh1j hjjPhhhj|PhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjfPhhhj|PhMubah}(h]jaPah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj|PhMhjcPhhubj4)}(hhh]jM)}(h4mark an allocated object as transient false positiveh]h4mark an allocated object as transient false positive}(hj+QhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj(Qhhubah}(h]h ]h"]h$]h&]uh1j3hjcPhhhj|PhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjCQjHjCQjIjJjKuh1hhhhj hNhNubj)}(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)}(hjMQh]h Parameters}(hjOQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKQubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjGQubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hjlQh]hconst void *ptr}(hjnQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjQubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjfQubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjfQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjcQubah}(h]h ]h"]h$]h&]uh1jhjGQubjM)}(h**Description**h]j)}(hjQh]h Description}(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.chMhjGQubjM)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjGQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#kmemleak_ignore_percpu (C function)c.kmemleak_ignore_percpuhNtauh1hhj hhhNhNubh)}(hhh](h)}(hUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjLUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjF )}(hjI h]h*}(hjZUhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjUubj)}(hptrh]hptr}(hjgUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjUubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jy)}jlj Usbc.kmemleak_scan_areaasbuh1hhj|Uubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Uubj)}(hsizeh]hsize}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Uubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjUubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jUc.kmemleak_scan_areaasbuh1hhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hgfph]hgfp}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjUubeh}(h]h ]h"]h$]h&]jjuh1j hjThhhjThMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjThhhjThMubah}(h]jTah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjThMhjThhubj4)}(hhh]jM)}(h4limit the range to be scanned in an allocated objecth]h4limit the range to be scanned in an allocated object}(hj#VhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj Vhhubah}(h]h ]h"]h$]h&]uh1j3hjThhhjThMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj;VjHj;VjIjJjKuh1hhhhj hNhNubj)}(hX**Parameters** ``const void *ptr`` pointer to beginning or inside the object. This also represents the start of the scan area ``size_t size`` size of the scan area ``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocations **Description** This 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](jM)}(h**Parameters**h]j)}(hjEVh]h Parameters}(hjGVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCVubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj?Vubj)}(hhh](j)}(ho``const void *ptr`` pointer to beginning or inside the object. This also represents the start of the scan area h](j)}(h``const void *ptr``h]jS)}(hjdVh]hconst void *ptr}(hjfVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbVubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj^Vubj)}(hhh]jM)}(hZpointer to beginning or inside the object. This also represents the start of the scan areah]hZpointer to beginning or inside the object. This also represents the start of the scan area}(hj}VhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjzVubah}(h]h ]h"]h$]h&]uh1jhj^Vubeh}(h]h ]h"]h$]h&]uh1jhjyVhMhj[Vubj)}(h&``size_t size`` size of the scan area h](j)}(h``size_t size``h]jS)}(hjVh]h size_t size}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjVubj)}(hhh]jM)}(hsize of the scan areah]hsize of the scan area}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhMhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj[Vubj)}(hL``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]jS)}(hjVh]h gfp_t gfp}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjVubj)}(hhh]jM)}(h=kmalloc() flags used for kmemleak internal memory allocationsh]h=kmalloc() flags used for kmemleak internal memory allocations}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhMhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj[Vubeh}(h]h ]h"]h$]h&]uh1jhj?VubjM)}(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.chMhj?VubjM)}(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(WhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj?Vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_no_scan (C function)c.kmemleak_no_scanhNtauh1hhj hhhNhNubh)}(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}(hjWWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSWhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM$ubj)}(h h]h }(hjfWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSWhhhjeWhM$ubh__ref}(hjSWhhhNhNubj)}(h h]h }(hjxWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSWhhhjeWhM$ubh)}(hkmemleak_no_scanh]j)}(hkmemleak_no_scanh]hkmemleak_no_scan}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1hhjSWhhhjeWhM$ubj )}(h(const void *ptr)h]j )}(hconst void *ptrh](j5)}(hjh]hconst}(hjWhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hvoidh]hvoid}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjF )}(hjI h]h*}(hjWhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjWubj)}(hptrh]hptr}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubah}(h]h ]h"]h$]h&]jjuh1j hjSWhhhjeWhM$ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjOWhhhjeWhM$ubah}(h]jJWah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjeWhM$hjLWhhubj4)}(hhh]jM)}(hdo not scan an allocated objecth]hdo not scan an allocated object}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM$hjXhhubah}(h]h ]h"]h$]h&]uh1j3hjLWhhhjeWhM$ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj,XjHj,XjIjJjKuh1hhhhj hNhNubj)}(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)}(hj6Xh]h Parameters}(hj8XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4Xubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM(hj0Xubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hjUXh]hconst void *ptr}(hjWXhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSXubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM%hjOXubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjnXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjXhM%hjkXubah}(h]h ]h"]h$]h&]uh1jhjOXubeh}(h]h ]h"]h$]h&]uh1jhjjXhM%hjLXubah}(h]h ]h"]h$]h&]uh1jhj0XubjM)}(h**Description**h]j)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM'hj0XubjM)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM&hj0Xubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h kmemleak_alloc_phys (C function)c.kmemleak_alloc_physhNtauh1hhj hhhNhNubh)}(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}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM6ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjXhM6ubh__ref}(hjXhhhNhNubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjXhM6ubh)}(hkmemleak_alloc_physh]j)}(hkmemleak_alloc_physh]hkmemleak_alloc_phys}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1hhjXhhhjXhM6ubj )}(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'YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Yubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj)YmodnameN classnameNjpjs)}jv]jy)}jlj Ysbc.kmemleak_alloc_physasbuh1hhj Yubj)}(h h]h }(hjGYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Yubj)}(hphysh]hphys}(hjUYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Yubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjqYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjsYmodnameN classnameNjpjs)}jv]jCYc.kmemleak_alloc_physasbuh1hhjjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjYubj)}(hsizeh]hsize}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYmodnameN classnameNjpjs)}jv]jCYc.kmemleak_alloc_physasbuh1hhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hgfph]hgfp}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubeh}(h]h ]h"]h$]h&]jjuh1j hjXhhhjXhM6ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjXhhhjXhM6ubah}(h]jXah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjXhM6hjXhhubj4)}(hhh]jM)}(h@similar to kmemleak_alloc but taking a physical address argumenth]h@similar to kmemleak_alloc but taking a physical address argument}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM6hj Zhhubah}(h]h ]h"]h$]h&]uh1j3hjXhhhjXhM6ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj'ZjHj'ZjIjJjKuh1hhhhj hNhNubj)}(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)}(hj1Zh]h Parameters}(hj3ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Zubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM:hj+Zubj)}(hhh](j)}(h4``phys_addr_t phys`` physical address of the object h](j)}(h``phys_addr_t phys``h]jS)}(hjPZh]hphys_addr_t phys}(hjRZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNZubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM8hjJZubj)}(hhh]jM)}(hphysical address of the objecth]hphysical address of the object}(hjiZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjeZhM8hjfZubah}(h]h ]h"]h$]h&]uh1jhjJZubeh}(h]h ]h"]h$]h&]uh1jhjeZhM8hjGZubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]jS)}(hjZh]h size_t size}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM9hjZubj)}(hhh]jM)}(hsize of the objecth]hsize of the object}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZhM9hjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhM9hjGZubj)}(hK``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocationsh](j)}(h ``gfp_t gfp``h]jS)}(hjZh]h gfp_t gfp}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM;hjZubj)}(hhh]jM)}(h=kmalloc() flags used for kmemleak internal memory allocationsh]h=kmalloc() flags used for kmemleak internal memory allocations}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM:hjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhM;hjGZubeh}(h]h ]h"]h$]h&]uh1jhj+Zubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$kmemleak_free_part_phys (C function)c.kmemleak_free_part_physhNtauh1hhj hhhNhNubh)}(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}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMJubj)}(h h]h }(hj+[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhj*[hMJubh__ref}(hj[hhhNhNubj)}(h h]h }(hj=[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhj*[hMJubh)}(hkmemleak_free_part_physh]j)}(hkmemleak_free_part_physh]hkmemleak_free_part_phys}(hjO[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj[hhhj*[hMJubj )}(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}(hjn[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk[ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjp[modnameN classnameNjpjs)}jv]jy)}jljQ[sbc.kmemleak_free_part_physasbuh1hhjg[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg[ubj)}(hphysh]hphys}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg[ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjc[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]j[c.kmemleak_free_part_physasbuh1hhj[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 hjc[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)}(hDsimilar to kmemleak_free_part but taking a physical address argumenth]hDsimilar to kmemleak_free_part but taking a physical address argument}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMJhj \hhubah}(h]h ]h"]h$]h&]uh1j3hj[hhhj*[hMJubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj&\jHj&\jIjJjKuh1hhhhj hNhNubj)}(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)}(hj0\h]h Parameters}(hj2\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.chMNhj*\ubj)}(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)}(hjO\h]hphys_addr_t phys}(hjQ\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjM\ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMMhjI\ubj)}(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}(hjh\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMLhje\ubah}(h]h ]h"]h$]h&]uh1jhjI\ubeh}(h]h ]h"]h$]h&]uh1jhjd\hMMhjF\ubj)}(h'``size_t size`` size to be unregisteredh](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&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMOhj\ubj)}(hhh]jM)}(hsize to be unregisteredh]hsize to be unregistered}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMNhj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMOhjF\ubeh}(h]h ]h"]h$]h&]uh1jhj*\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!kmemleak_ignore_phys (C function)c.kmemleak_ignore_physhNtauh1hhj hhhNhNubh)}(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}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMZubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj\hMZubh__ref}(hj\hhhNhNubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj\hMZubh)}(hkmemleak_ignore_physh]j)}(hkmemleak_ignore_physh]hkmemleak_ignore_phys}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj\hhhj\hMZubj )}(h(phys_addr_t phys)h]j )}(hphys_addr_t physh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj5]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7]modnameN classnameNjpjs)}jv]jy)}jlj]sbc.kmemleak_ignore_physasbuh1hhj.]ubj)}(h h]h }(hjU]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.]ubj)}(hphysh]hphys}(hjc]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.]ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj*]ubah}(h]h ]h"]h$]h&]jjuh1j hj\hhhj\hMZubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj\hhhj\hMZubah}(h]j\ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj\hMZhj\hhubj4)}(hhh]jM)}(hAsimilar to kmemleak_ignore but taking a physical address argumenth]hAsimilar to kmemleak_ignore but taking a physical address argument}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMZhj]hhubah}(h]h ]h"]h$]h&]uh1j3hj\hhhj\hMZubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj]jHj]jIjJjKuh1hhhhj hNhNubj)}(hE**Parameters** ``phys_addr_t phys`` physical address of the objecth](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.chM^hj]ubj)}(hhh]j)}(h3``phys_addr_t phys`` physical address of the objecth](j)}(h``phys_addr_t phys``h]jS)}(hj]h]hphys_addr_t phys}(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.chM`hj]ubj)}(hhh]jM)}(hphysical address of the objecth]hphysical address of the object}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM\hj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hM`hj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubhcomment)}(h'#kernel-doc:: mm/hmm.c (build warnings)h]h'#kernel-doc:: mm/hmm.c (build warnings)}hj^sbah}(h]h ]h"]h$]h&]jjuh1j^hj hhhhhKuubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h devm_memremap_pages (C function)c.devm_memremap_pageshNtauh1hhj hhhNhNubh)}(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}(hj8^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4^hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMcubj)}(h h]h }(hjG^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4^hhhjF^hMcubjF )}(hjI h]h*}(hjU^hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj4^hhhjF^hMcubh)}(hdevm_memremap_pagesh]j)}(hdevm_memremap_pagesh]hdevm_memremap_pages}(hjf^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb^ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj4^hhhjF^hMcubj )}(h/(struct device *dev, struct dev_pagemap *pgmap)h](j )}(hstruct device *devh](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)}(hdeviceh]hdevice}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj^modnameN classnameNjpjs)}jv]jy)}jljh^sbc.devm_memremap_pagesasbuh1hhj~^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)}(hdevh]hdev}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~^ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjz^ubj )}(hstruct dev_pagemap *pgmaph](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 dev_pagemaph]h dev_pagemap}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]j^c.devm_memremap_pagesasbuh1hhj^ubj)}(h h]h }(hj0_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjF )}(hjI h]h*}(hj>_hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj^ubj)}(hpgmaph]hpgmap}(hjK_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjz^ubeh}(h]h ]h"]h$]h&]jjuh1j hj4^hhhjF^hMcubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj0^hhhjF^hMcubah}(h]j+^ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjF^hMchj-^hhubj4)}(hhh]jM)}(h7remap and provide memmap backing for the given resourceh]h7remap and provide memmap backing for the given resource}(hju_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMchjr_hhubah}(h]h ]h"]h$]h&]uh1j3hj-^hhhjF^hMcubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj_jHj_jIjJjKuh1hhhhj hNhNubj)}(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_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:118: ./mm/memremap.chMghj_ubj)}(hhh](j)}(h2``struct device *dev`` hosting device for **res** h](j)}(h``struct device *dev``h]jS)}(hj_h]hstruct device *dev}(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:118: ./mm/memremap.chMdhj_ubj)}(hhh]jM)}(hhosting device for **res**h](hhosting device for }(hj_hhhNhNubj)}(h**res**h]hres}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jLhj_hMdhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMdhj_ubj)}(h>``struct dev_pagemap *pgmap`` pointer to a struct dev_pagemap h](j)}(h``struct dev_pagemap *pgmap``h]jS)}(hj_h]hstruct dev_pagemap *pgmap}(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:118: ./mm/memremap.chMehj_ubj)}(hhh]jM)}(hpointer to a struct dev_pagemaph]hpointer to a struct dev_pagemap}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`hMehj`ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj`hMehj_ubeh}(h]h ]h"]h$]h&]uh1jhj_ubjM)}(h **Notes**h]j)}(hj8`h]hNotes}(hj:`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6`ubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMghj_ubj)}(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 }(hjU`hhhNhNubj)}(h **pgmap**h]hpgmap}(hj]`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU`ubh must be initialized}(hjU`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhhjQ`ubj)}(hhh]jM)}(h0by the caller before passing it to this functionh]h0by the caller before passing it to this function}(hjy`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhju`hMhhjv`ubah}(h]h ]h"]h$]h&]uh1jhjQ`ubeh}(h]h ]h"]h$]h&]uh1jhju`hMhhjN`ubj)}(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`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMkhj`ubj)}(hhh]jM)}(h/PGMAP_ALTMAP_VALID must be set in pgmap->flags.h]h/PGMAP_ALTMAP_VALID must be set in pgmap->flags.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`hMkhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMkhjN`ubj)}(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}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMohj`ubj)}(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.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMnhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMohjN`ubj)}(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}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMrhj`ubj)}(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.}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahMrhjaubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhjahMrhjN`ubeh}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_dev_pagemap (C function)c.get_dev_pagemaphNtauh1hhj hhhNhNubh)}(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}(hjJahhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjFahhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMubj)}(h h]h }(hjXahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFahhhjWahMubh)}(hhh]j)}(h dev_pagemaph]h dev_pagemap}(hjiahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjkamodnameN classnameNjpjs)}jv]jy)}jlget_dev_pagemapsbc.get_dev_pagemapasbuh1hhjFahhhjWahMubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFahhhjWahMubjF )}(hjI h]h*}(hjahhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjFahhhjWahMubh)}(hget_dev_pagemaph]j)}(hjah]hget_dev_pagemap}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1hhjFahhhjWahMubj )}(h(unsigned long pfn)h]j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hlongh]hlong}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hpfnh]hpfn}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjaubah}(h]h ]h"]h$]h&]jjuh1j hjFahhhjWahMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjBahhhjWahMubah}(h]j=aah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjWahMhj?ahhubj4)}(hhh]jM)}(h8take a new live reference on the dev_pagemap for **pfn**h](h1take a new live reference on the dev_pagemap for }(hj&bhhhNhNubj)}(h**pfn**h]hpfn}(hj.bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&bubeh}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhj#bhhubah}(h]h ]h"]h$]h&]uh1j3hj?ahhhjWahMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjLbjHjLbjIjJjKuh1hhhhj hNhNubj)}(hL**Parameters** ``unsigned long pfn`` page frame number to lookup page_maph](jM)}(h**Parameters**h]j)}(hjVbh]h Parameters}(hjXbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTbubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjPbubj)}(hhh]j)}(h:``unsigned long pfn`` page frame number to lookup page_maph](j)}(h``unsigned long pfn``h]jS)}(hjubh]hunsigned long pfn}(hjwbhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjsbubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjobubj)}(hhh]jM)}(h$page frame number to lookup page_maph]h$page frame number to lookup page_map}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjbubah}(h]h ]h"]h$]h&]uh1jhjobubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjlbubah}(h]h ]h"]h$]h&]uh1jhjPbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhuge_pmd_unshare (C function)c.huge_pmd_unsharehNtauh1hhj hhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhMubh)}(hhuge_pmd_unshareh]j)}(hhuge_pmd_unshareh]hhuge_pmd_unshare}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1hhjbhhhjbhMubj )}(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}(hj chhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hhh]j)}(h mmu_gatherh]h mmu_gather}(hj*chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'cubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,cmodnameN classnameNjpjs)}jv]jy)}jljbsbc.huge_pmd_unshareasbuh1hhjcubj)}(h h]h }(hjJchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjF )}(hjI h]h*}(hjXchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjcubj)}(htlbh]htlb}(hjechhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj~chhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjzcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzcubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjcmodnameN classnameNjpjs)}jv]jFcc.huge_pmd_unshareasbuh1hhjzcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzcubjF )}(hjI h]h*}(hjchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjzcubj)}(hvmah]hvma}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzcubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hlongh]hlong}(hj dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(haddrh]haddr}(hj&dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubj )}(h pte_t *pteph](h)}(hhh]j)}(hpte_th]hpte_t}(hjBdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?dubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDdmodnameN classnameNjpjs)}jv]jFcc.huge_pmd_unshareasbuh1hhj;dubj)}(h h]h }(hj`dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;dubjF )}(hjI h]h*}(hjndhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj;dubj)}(hpteph]hptep}(hj{dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;dubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubeh}(h]h ]h"]h$]h&]jjuh1j hjbhhhjbhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjbhhhjbhMubah}(h]jbah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjbhMhjbhhubj4)}(hhh]jM)}(h3Unmap a pmd table if it is shared by multiple usersh]h3Unmap a pmd table if it is shared by multiple users}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjdhhubah}(h]h ]h"]h$]h&]uh1j3hjbhhhjbhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjdjHjdjIjJjKuh1hhhhj hNhNubj)}(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)}(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:119: ./mm/hugetlb.chMhjdubj)}(hhh](j)}(h3``struct mmu_gather *tlb`` the current mmu_gather. h](j)}(h``struct mmu_gather *tlb``h]jS)}(hjdh]hstruct mmu_gather *tlb}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjdubj)}(hhh]jM)}(hthe current mmu_gather.h]hthe current mmu_gather.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjdubj)}(h?``struct vm_area_struct *vma`` the vma covering the pmd table. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjeh]hstruct vm_area_struct *vma}(hj!ehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjeubj)}(hhh]jM)}(hthe vma covering the pmd table.h]hthe vma covering the pmd table.}(hj8ehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4ehMhj5eubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhj4ehMhjdubj)}(h=``unsigned long addr`` the address we are trying to unshare. h](j)}(h``unsigned long addr``h]jS)}(hjXeh]hunsigned long addr}(hjZehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVeubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjReubj)}(hhh]jM)}(h%the address we are trying to unshare.h]h%the address we are trying to unshare.}(hjqehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmehMhjneubah}(h]h ]h"]h$]h&]uh1jhjReubeh}(h]h ]h"]h$]h&]uh1jhjmehMhjdubj)}(h3``pte_t *ptep`` pointer into the (pmd) page table. h](j)}(h``pte_t *ptep``h]jS)}(hjeh]h pte_t *ptep}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjeubj)}(hhh]jM)}(h"pointer into the (pmd) page table.h]h"pointer into the (pmd) page table.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehMhjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehMhjdubeh}(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&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjdubjM)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjdubjM)}(h**Note**h]j)}(hjeh]hNote}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjdubjM)}(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.}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjdubjM)}(h **Return**h]j)}(hjfh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjdubjM)}(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.}(hj0fhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_isolate_hugetlb (C function)c.folio_isolate_hugetlbhNtauh1hhj hhhNhNubh)}(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_fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[fhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMubj)}(h h]h }(hjmfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[fhhhjlfhMubh)}(hfolio_isolate_hugetlbh]j)}(hfolio_isolate_hugetlbh]hfolio_isolate_hugetlb}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{fubah}(h]h ](jjeh"]h$]h&]jjuh1hhj[fhhhjlfhMubj )}(h-(struct folio *folio, struct list_head *list)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjfhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j)}(hfolioh]hfolio}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjfmodnameN classnameNjpjs)}jv]jy)}jljfsbc.folio_isolate_hugetlbasbuh1hhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjF )}(hjI h]h*}(hjfhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjfubj)}(hfolioh]hfolio}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjfubj )}(hstruct list_head *listh](j5)}(hj8h]hstruct}(hj ghhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj gubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj gubh)}(hhh]j)}(h list_headh]h list_head}(hj+ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(gubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj-gmodnameN classnameNjpjs)}jv]jfc.folio_isolate_hugetlbasbuh1hhj gubj)}(h h]h }(hjIghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj gubjF )}(hjI h]h*}(hjWghhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj gubj)}(hlisth]hlist}(hjdghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj gubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjfubeh}(h]h ]h"]h$]h&]jjuh1j hj[fhhhjlfhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjWfhhhjlfhMubah}(h]jRfah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjlfhMhjTfhhubj4)}(hhh]jM)}(h)try to isolate an allocated hugetlb folioh]h)try to isolate an allocated hugetlb folio}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjghhubah}(h]h ]h"]h$]h&]uh1j3hjTfhhhjlfhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjgjHjgjIjJjKuh1hhhhj hNhNubj)}(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)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjgubj)}(hhh](j)}(h-``struct folio *folio`` the folio to isolate h](j)}(h``struct folio *folio``h]jS)}(hjgh]hstruct folio *folio}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjgubj)}(hhh]jM)}(hthe folio to isolateh]hthe folio to isolate}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjgubj)}(hC``struct list_head *list`` the list to add the folio to on success h](j)}(h``struct list_head *list``h]jS)}(hjhh]hstruct list_head *list}(hj hhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjhubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjhubj)}(hhh]jM)}(h'the list to add the folio to on successh]h'the list to add the folio to on success}(hj!hhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjgubeh}(h]h ]h"]h$]h&]uh1jhjgubjM)}(h**Description**h]j)}(hjChh]h Description}(hjEhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjgubjM)}(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.}(hjYhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjgubjM)}(hpIsolation will fail if **folio** is not an allocated hugetlb folio, or if it is already isolated/non-migratable.h](hIsolation will fail if }(hjhhhhhNhNubj)}(h **folio**h]hfolio}(hjphhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhubhP is not an allocated hugetlb folio, or if it is already isolated/non-migratable.}(hjhhhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjgubjM)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjgubjM)}(h **Return**h]j)}(hjhh]hReturn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjgubjM)}(h*True if isolation worked, otherwise False.h]h*True if isolation worked, otherwise False.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_putback_hugetlb (C function)c.folio_putback_hugetlbhNtauh1hhj hhhNhNubh)}(hhh](h)}(h0void folio_putback_hugetlb (struct folio *folio)h]h)}(h/void folio_putback_hugetlb(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMubh)}(hfolio_putback_hugetlbh]j)}(hfolio_putback_hugetlbh]hfolio_putback_hugetlb}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhhjhhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjihhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjiubj)}(h h]h }(hj)ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hhh]j)}(hfolioh]hfolio}(hj:ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7iubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj 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)}(hjQkh]h Parameters}(hjSkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOkubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjKkubj)}(hhh]j)}(h+``struct folio *folio`` The folio to mark. h](j)}(h``struct folio *folio``h]jS)}(hjpkh]hstruct folio *folio}(hjrkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnkubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjjkubj)}(hhh]jM)}(hThe folio to mark.h]hThe folio to mark.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjgkubah}(h]h ]h"]h$]h&]uh1jhjKkubjM)}(h**Description**h]j)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjKkubjM)}(h inactive,referencedh]jM)}(hjkh]h6inactive,unreferenced -> inactive,referenced}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjkubah}(h]h ]h"]h$]h&]uh1j+hjkubj+)}(h6inactive,referenced -> active,unreferencedh]jM)}(hjkh]h6inactive,referenced -> active,unreferenced}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjkubah}(h]h ]h"]h$]h&]uh1j+hjkubj+)}(h5active,unreferenced -> active,referenced h]jM)}(h4active,unreferenced -> active,referencedh]h4active,unreferenced -> active,referenced}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjlubah}(h]h ]h"]h$]h&]uh1j+hjkubeh}(h]h ]h"]h$]h&]jPLjI uh1j-LhjkhMhjKkubjM)}(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().}(hj"lhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjKkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_add_lru (C function)c.folio_add_lruhNtauh1hhj hhhNhNubh)}(hhh](h)}(h(void folio_add_lru (struct folio *folio)h]h)}(h'void folio_add_lru(struct folio *folio)h](j)}(hvoidh]hvoid}(hjQlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMlhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hj`lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMlhhhj_lhMubh)}(h folio_add_lruh]j)}(h folio_add_lruh]h folio_add_lru}(hjrlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnlubah}(h]h ](jjeh"]h$]h&]jjuh1hhjMlhhhj_lhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j)}(hfolioh]hfolio}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlmodnameN classnameNjpjs)}jv]jy)}jljtlsbc.folio_add_lruasbuh1hhjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjF )}(hjI h]h*}(hjlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjlubj)}(hfolioh]hfolio}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubah}(h]h ]h"]h$]h&]jjuh1j hjMlhhhj_lhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjIlhhhj_lhMubah}(h]jDlah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj_lhMhjFlhhubj4)}(hhh]jM)}(hAdd a folio to an LRU list.h]hAdd a folio to an LRU list.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjmhhubah}(h]h ]h"]h$]h&]uh1j3hjFlhhhj_lhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj)mjHj)mjIjJjKuh1hhhhj hNhNubj)}(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)}(hj3mh]h Parameters}(hj5mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1mubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj-mubj)}(hhh]j)}(h:``struct folio *folio`` The folio to be added to the LRU. h](j)}(h``struct folio *folio``h]jS)}(hjRmh]hstruct folio *folio}(hjTmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPmubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjLmubj)}(hhh]jM)}(h!The folio to be added to the LRU.h]h!The folio to be added to the LRU.}(hjkmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjgmhMhjhmubah}(h]h ]h"]h$]h&]uh1jhjLmubeh}(h]h ]h"]h$]h&]uh1jhjgmhMhjImubah}(h]h ]h"]h$]h&]uh1jhj-mubjM)}(h**Description**h]j)}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj-mubjM)}(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().}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj-mubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_add_lru_vma (C function)c.folio_add_lru_vmahNtauh1hhj hhhNhNubh)}(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}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjmhM ubh)}(hfolio_add_lru_vmah]j)}(hfolio_add_lru_vmah]hfolio_add_lru_vma}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1hhjmhhhjmhM ubj )}(h1(struct folio *folio, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjnhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj nubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj nubh)}(hhh]j)}(hfolioh]hfolio}(hj-nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*nubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj/nmodnameN classnameNjpjs)}jv]jy)}jljmsbc.folio_add_lru_vmaasbuh1hhj nubj)}(h h]h }(hjMnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj nubjF )}(hjI h]h*}(hj[nhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj nubj)}(hfolioh]hfolio}(hjhnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj nubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjnubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjnhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj}nubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}nubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jInc.folio_add_lru_vmaasbuh1hhj}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)}(hvmah]hvma}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}nubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjnubeh}(h]h ]h"]h$]h&]jjuh1j hjmhhhjmhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjmhhhjmhM ubah}(h]jmah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjmhM hjmhhubj4)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM hjnhhubah}(h]h ]h"]h$]h&]uh1j3hjmhhhjmhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjojHjojIjJjKuh1hhhhj hNhNubj)}(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)}(hj$oh]h Parameters}(hj&ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"oubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjoubj)}(hhh](j)}(h:``struct folio *folio`` The folio to be added to the LRU. h](j)}(h``struct folio *folio``h]jS)}(hjCoh]hstruct folio *folio}(hjEohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAoubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM hj=oubj)}(hhh]jM)}(h!The folio to be added to the LRU.h]h!The folio to be added to the LRU.}(hj\ohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXohM hjYoubah}(h]h ]h"]h$]h&]uh1jhj=oubeh}(h]h ]h"]h$]h&]uh1jhjXohM hj:oubj)}(hA``struct vm_area_struct *vma`` VMA in which the folio is mapped. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj|oh]hstruct vm_area_struct *vma}(hj~ohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzoubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM hjvoubj)}(hhh]jM)}(h!VMA in which the folio is mapped.h]h!VMA in which the folio is mapped.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjohM hjoubah}(h]h ]h"]h$]h&]uh1jhjvoubeh}(h]h ]h"]h$]h&]uh1jhjohM hj: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&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjoubjM)}(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, }(hjohhhNhNubj)}(h **folio**h]hfolio}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh\ is added to the unevictable list. Otherwise, it is treated the same way as folio_add_lru().}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM hjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"deactivate_file_folio (C function)c.deactivate_file_foliohNtauh1hhj hhhNhNubh)}(hhh](h)}(h0void deactivate_file_folio (struct folio *folio)h]h)}(h/void deactivate_file_folio(struct folio *folio)h](j)}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj phhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj phhhjphMubh)}(hdeactivate_file_folioh]j)}(hdeactivate_file_folioh]hdeactivate_file_folio}(hj/phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+pubah}(h]h ](jjeh"]h$]h&]jjuh1hhj phhhjphMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjKphhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjGpubj)}(h h]h }(hjXphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGpubh)}(hhh]j)}(hfolioh]hfolio}(hjiphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjkpmodnameN classnameNjpjs)}jv]jy)}jlj1psbc.deactivate_file_folioasbuh1hhjGpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGpubjF )}(hjI h]h*}(hjphhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjGpubj)}(hfolioh]hfolio}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCpubah}(h]h ]h"]h$]h&]jjuh1j hj phhhjphMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjphhhjphMubah}(h]jpah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjphMhjphhubj4)}(hhh]jM)}(hDeactivate a file folio.h]hDeactivate a file folio.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjphhubah}(h]h ]h"]h$]h&]uh1j3hjphhhjphMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjpjHjpjIjJjKuh1hhhhj hNhNubj)}(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)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjpubj)}(hhh]j)}(h-``struct folio *folio`` Folio to deactivate. h](j)}(h``struct folio *folio``h]jS)}(hjqh]hstruct folio *folio}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj qubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj qubj)}(hhh]jM)}(hFolio to deactivate.h]hFolio to deactivate.}(hj(qhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$qhMhj%qubah}(h]h ]h"]h$]h&]uh1jhj qubeh}(h]h ]h"]h$]h&]uh1jhj$qhMhjqubah}(h]h ]h"]h$]h&]uh1jhjpubjM)}(h**Description**h]j)}(hjJqh]h Description}(hjLqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHqubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjpubjM)}(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`qhhhNhNubj)}(h **folio**h]hfolio}(hjhqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`qubht is a good reclaim candidate, for example if its invalidation fails due to the folio being dirty or under writeback.}(hj`qhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjpubjM)}(h **Context**h]j)}(hjqh]hContext}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjpubjM)}(h&Caller holds a reference on the folio.h]h&Caller holds a reference on the folio.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_mark_lazyfree (C function)c.folio_mark_lazyfreehNtauh1hhj hhhNhNubh)}(hhh](h)}(h.void folio_mark_lazyfree (struct folio *folio)h]h)}(h-void folio_mark_lazyfree(struct folio *folio)h](j)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhMubh)}(hfolio_mark_lazyfreeh]j)}(hfolio_mark_lazyfreeh]hfolio_mark_lazyfree}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1hhjqhhhjqhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjrhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hhh]j)}(hfolioh]hfolio}(hj#rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj rubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj%rmodnameN classnameNjpjs)}jv]jy)}jljqsbc.folio_mark_lazyfreeasbuh1hhjrubj)}(h h]h }(hjCrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjF )}(hjI h]h*}(hjQrhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjrubj)}(hfolioh]hfolio}(hj^rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjqubah}(h]h ]h"]h$]h&]jjuh1j hjqhhhjqhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjqhhhjqhMubah}(h]jqah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjqhMhjqhhubj4)}(hhh]jM)}(hmake an anon folio lazyfreeh]hmake an anon folio lazyfree}(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&]uh1j3hjqhhhjqhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjrjHjrjIjJjKuh1hhhhj hNhNubj)}(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)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjrubj)}(hhh]j)}(h,``struct folio *folio`` folio to deactivate h](j)}(h``struct folio *folio``h]jS)}(hjrh]hstruct folio *folio}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjrubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjrubj)}(hhh]jM)}(hfolio to deactivateh]hfolio to deactivate}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubjM)}(h**Description**h]j)}(hjsh]h Description}(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.chMhjrubjM)}(hufolio_mark_lazyfree() moves **folio** to the inactive file list. This is done to accelerate the reclaim of **folio**.h](hfolio_mark_lazyfree() moves }(hjshhhNhNubj)}(h **folio**h]hfolio}(hj"shhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubhF to the inactive file list. This is done to accelerate the reclaim of }(hjshhhNhNubj)}(h **folio**h]hfolio}(hj4shhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolios_put_refs (C function)c.folios_put_refshNtauh1hhj hhhNhNubh)}(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}(hjmshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjishhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hj|shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjishhhj{shMubh)}(hfolios_put_refsh]j)}(hfolios_put_refsh]hfolios_put_refs}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1hhjishhhj{shMubj )}(h0(struct folio_batch *folios, unsigned int *refs)h](j )}(hstruct folio_batch *foliosh](j5)}(hj8h]hstruct}(hjshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjsmodnameN classnameNjpjs)}jv]jy)}jljssbc.folios_put_refsasbuh1hhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjF )}(hjI h]h*}(hjshhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsubj)}(hfoliosh]hfolios}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(hunsigned int *refsh](j)}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hj*thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hinth]hint}(hj8thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjFthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjF )}(hjI h]h*}(hjTthhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjtubj)}(hrefsh]hrefs}(hjathhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubeh}(h]h ]h"]h$]h&]jjuh1j hjishhhj{shMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjeshhhj{shMubah}(h]j`sah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj{shMhjbshhubj4)}(hhh]jM)}(h0Reduce the reference count on a batch of folios.h]h0Reduce the reference count on a batch of folios.}(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&]uh1j3hjbshhhj{shMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjtjHjtjIjJjKuh1hhhhj hNhNubj)}(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)}(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_batch *folios`` The folios. h](j)}(h``struct folio_batch *folios``h]jS)}(hjth]hstruct folio_batch *folios}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjtubj)}(hhh]jM)}(h The folios.h]h The folios.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMhjtubj)}(hG``unsigned int *refs`` The number of refs to subtract from each folio. h](j)}(h``unsigned int *refs``h]jS)}(hjuh]hunsigned int *refs}(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.chMhjtubj)}(hhh]jM)}(h/The number of refs to subtract from each folio.h]h/The number of refs to subtract from each folio.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjtubeh}(h]h ]h"]h$]h&]uh1jhjtubjM)}(h**Description**h]j)}(hj@uh]h Description}(hjBuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>uubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjtubjM)}(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 }(hjVuhhhNhNubj)}(h**refs**h]hrefs}(hj^uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVuubh3 is NULL, we subtract one from each folio refcount.}(hjVuhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjtubjM)}(h **Context**h]j)}(hjyuh]hContext}(hj{uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwuubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjtubjM)}(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.}(hjuhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelease_pages (C function)c.release_pageshNtauh1hhj hhhNhNubh)}(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}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjuhMubh)}(h release_pagesh]j)}(h release_pagesh]h release_pages}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1hhjuhhhjuhMubj )}(h(release_pages_arg arg, int nr)h](j )}(hrelease_pages_arg argh](h)}(hhh]j)}(hrelease_pages_argh]hrelease_pages_arg}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjvmodnameN classnameNjpjs)}jv]jy)}jljusbc.release_pagesasbuh1hhjuubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hargh]harg}(hj,vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubj )}(hint nrh](j)}(hinth]hint}(hjEvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAvubj)}(h h]h }(hjSvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAvubj)}(hnrh]hnr}(hjavhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubeh}(h]h ]h"]h$]h&]jjuh1j hjuhhhjuhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjuhhhjuhMubah}(h]juah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjuhMhjuhhubj4)}(hhh]jM)}(hbatched put_page()h]hbatched put_page()}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjvhhubah}(h]h ]h"]h$]h&]uh1j3hjuhhhjuhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjvjHjvjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMhjvubj)}(hhh](j)}(h4``release_pages_arg arg`` array of pages to release h](j)}(h``release_pages_arg arg``h]jS)}(hjvh]hrelease_pages_arg arg}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjvubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjvubj)}(hhh]jM)}(harray of pages to releaseh]harray of pages to release}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjvubj)}(h``int nr`` number of pages h](j)}(h ``int nr``h]jS)}(hjwh]hint nr}(hjwhhhNhNubah}(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.chMhjvubj)}(hhh]jM)}(hnumber of pagesh]hnumber of pages}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwhMhjwubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjvubeh}(h]h ]h"]h$]h&]uh1jhjvubjM)}(h**Description**h]j)}(hj@wh]h Description}(hjBwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>wubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjvubjM)}(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 }(hjVwhhhNhNubj)}(h**arg**h]harg}(hj^whhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVwubh@. If it fell to zero, remove the page from the LRU and free it.}(hjVwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjvubjM)}(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.}(hjwwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,folio_batch_remove_exceptionals (C function)!c.folio_batch_remove_exceptionalshNtauh1hhj hhhNhNubh)}(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}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM1ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjwhM1ubh)}(hfolio_batch_remove_exceptionalsh]j)}(hfolio_batch_remove_exceptionalsh]hfolio_batch_remove_exceptionals}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1hhjwhhhjwhM1ubj )}(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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjxmodnameN classnameNjpjs)}jv]jy)}jljwsb!c.folio_batch_remove_exceptionalsasbuh1hhjwubj)}(h h]h }(hj!xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjF )}(hjI h]h*}(hj/xhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwubj)}(hfbatchh]hfbatch}(hjubj)}(h h]h }(hjGyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5yhhhjFyhM>ubh)}(hhh]j)}(hcgroup_subsys_stateh]hcgroup_subsys_state}(hjXyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjZymodnameN classnameNjpjs)}jv]jy)}jlget_mem_cgroup_css_from_foliosbc.get_mem_cgroup_css_from_folioasbuh1hhj5yhhhjFyhM>ubj)}(h h]h }(hjyyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5yhhhjFyhM>ubjF )}(hjI h]h*}(hjyhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5yhhhjFyhM>ubh)}(hget_mem_cgroup_css_from_folioh]j)}(hjvyh]hget_mem_cgroup_css_from_folio}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1hhj5yhhhjFyhM>ubj )}(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]jtyc.get_mem_cgroup_css_from_folioasbuh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjF )}(hjI h]h*}(hjyhhhNhNubah}(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 hj5yhhhjFyhM>ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj1yhhhjFyhM>ubah}(h]j,yah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjFyhM>hj.yhhubj4)}(hhh]jM)}(h2acquire a css of the memcg associated with a folioh]h2acquire a css of the memcg associated with a folio}(hj4zhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM>hj1zhhubah}(h]h ]h"]h$]h&]uh1j3hj.yhhhjFyhM>ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjLzjHjLzjIjJjKuh1hhhhj hNhNubj)}(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)}(hjVzh]h Parameters}(hjXzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTzubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMBhjPzubj)}(hhh]j)}(h*``struct folio *folio`` folio of interest h](j)}(h``struct folio *folio``h]jS)}(hjuzh]hstruct folio *folio}(hjwzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjszubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM?hjozubj)}(hhh]jM)}(hfolio of interesth]hfolio of interest}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzhM?hjzubah}(h]h ]h"]h$]h&]uh1jhjozubeh}(h]h ]h"]h$]h&]uh1jhjzhM?hjlzubah}(h]h ]h"]h$]h&]uh1jhjPzubjM)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMAhjPzubjM)}(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 }(hjzhhhNhNubj)}(h **folio**h]hfolio}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh8 is returned. The returned css remains associated with }(hjzhhhNhNubj)}(h **folio**h]hfolio}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh until it is released.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM@hjPzubjM)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMDhjPzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpage_cgroup_ino (C function)c.page_cgroup_inohNtauh1hhj hhhNhNubh)}(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}(hj+{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj({ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj-{modnameN classnameNjpjs)}jv]jy)}jlpage_cgroup_inosbc.page_cgroup_inoasbuh1hhj${hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMUubj)}(h h]h }(hjM{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj${hhhjL{hMUubh)}(hpage_cgroup_inoh]j)}(hjI{h]hpage_cgroup_ino}(hj_{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[{ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj${hhhjL{hMUubj )}(h(struct page *page)h]j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjz{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjv{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv{ubh)}(hhh]j)}(hpageh]hpage}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj{modnameN classnameNjpjs)}jv]jG{c.page_cgroup_inoasbuh1hhjv{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)}(hpageh]hpage}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv{ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjr{ubah}(h]h ]h"]h$]h&]jjuh1j hj${hhhjL{hMUubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj {hhhjL{hMUubah}(h]j{ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjL{hMUhj{hhubj4)}(hhh]jM)}(h5return inode number of the memcg a page is charged toh]h5return inode number of the memcg a page is charged to}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMUhj{hhubah}(h]h ]h"]h$]h&]uh1j3hj{hhhjL{hMUubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj|jHj|jIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMYhj|ubj)}(hhh]j)}(h``struct page *page`` the page 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMVhj6|ubj)}(hhh]jM)}(hthe pageh]hthe page}(hjU|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQ|hMVhjR|ubah}(h]h ]h"]h$]h&]uh1jhj6|ubeh}(h]h ]h"]h$]h&]uh1jhjQ|hMVhj3|ubah}(h]h ]h"]h$]h&]uh1jhj|ubjM)}(h**Description**h]j)}(hjw|h]h Description}(hjy|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju|ubah}(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 }(hj|hhhNhNubj)}(h**page**h]hpage}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh3 is charged to and return its inode number or 0 if }(hj|hhhNhNubj)}(h**page**h]hpage}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh_ is not charged to any cgroup. It is safe to call this function without holding a reference to }(hj|hhhNhNubj)}(h**page**h]hpage}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh.}(hj|hhhNhNubeh}(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).}(hj|hhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmod_memcg_state (C function)c.mod_memcg_statehNtauh1hhj hhhNhNubh)}(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&]uh1jhj|hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMbubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj}hMbubh)}(hmod_memcg_stateh]j)}(hmod_memcg_stateh]hmod_memcg_state}(hj"}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj|hhhj}hMbubj )}(h=(struct mem_cgroup *memcg, enum memcg_stat_item idx, int val)h](j )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hj>}hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:}ubj)}(h h]h }(hjK}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:}ubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hj\}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj^}modnameN classnameNjpjs)}jv]jy)}jlj$}sbc.mod_memcg_stateasbuh1hhj:}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)}(hmemcgh]hmemcg}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6}ubj )}(henum memcg_stat_item idxh](j5)}(hjh]henum}(hj}hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubh)}(hhh]j)}(hmemcg_stat_itemh]hmemcg_stat_item}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jx}c.mod_memcg_stateasbuh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hidxh]hidx}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6}ubj )}(hint valh](j)}(hinth]hint}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj!~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hvalh]hval}(hj/~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6}ubeh}(h]h ]h"]h$]h&]jjuh1j hj|hhhj}hMbubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj|hhhj}hMbubah}(h]j|ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj}hMbhj|hhubj4)}(hhh]jM)}(hupdate cgroup memory statisticsh]hupdate cgroup memory statistics}(hjY~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMbhjV~hhubah}(h]h ]h"]h$]h&]uh1j3hj|hhhj}hMbubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjq~jHjq~jIjJjKuh1hhhhj hNhNubj)}(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}(hj}~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy~ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMfhju~ubj)}(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.chMchj~ubj)}(hhh]jM)}(hthe memory cgrouph]hthe memory cgroup}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hMchj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMchj~ubj)}(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)}(hj~h]henum memcg_stat_item idx}(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.chMdhj~ubj)}(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}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hMdhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMdhj~ubj)}(h8``int val`` delta to add to the counter, can be negativeh](j)}(h ``int val``h]jS)}(hj h]hint val}(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.chMfhjubj)}(hhh]jM)}(h,delta to add to the counter, can be negativeh]h,delta to add to the counter, can be negative}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMehj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMfhj~ubeh}(h]h ]h"]h$]h&]uh1jhju~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmod_lruvec_state (C function)c.mod_lruvec_statehNtauh1hhj hhhNhNubh)}(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}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjthMubh)}(hmod_lruvec_stateh]j)}(hmod_lruvec_stateh]hmod_lruvec_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjbhhhjthMubj )}(h9(struct lruvec *lruvec, enum node_stat_item idx, int val)h](j )}(hstruct lruvec *lruvech](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hlruvech]hlruvec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.mod_lruvec_stateasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hlruvech]hlruvec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum node_stat_item idxh](j5)}(hjh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hnode_stat_itemh]hnode_stat_item}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5modnameN classnameNjpjs)}jv]jc.mod_lruvec_stateasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidxh]hidx}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint valh](j)}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hvalh]hval}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjbhhhjthMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj^hhhjthMubah}(h]jYah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjthMhj[hhubj4)}(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&]uh1j3hj[hhhjthMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjրjHjրjIjJjKuh1hhhhj hNhNubj)}(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&]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 lruvec *lruvec`` the lruvec h](j)}(h``struct lruvec *lruvec``h]jS)}(hjh]hstruct lruvec *lruvec}(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 lruvech]h the lruvec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``enum node_stat_item idx`` the stat item h](j)}(h``enum node_stat_item idx``h]jS)}(hj8h]henum node_stat_item idx}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj2ubj)}(hhh]jM)}(h the stat itemh]h the stat item}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubj)}(h9``int val`` delta to add to the counter, can be negative h](j)}(h ``int val``h]jS)}(hjqh]hint val}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjkubj)}(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&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjڀubjM)}(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.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcount_memcg_events (C function)c.count_memcg_eventshNtauh1hhj hhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hcount_memcg_eventsh]j)}(hcount_memcg_eventsh]hcount_memcg_events}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hG(struct mem_cgroup *memcg, enum vm_event_item idx, unsigned long count)h](j )}(hstruct mem_cgroup *memcgh](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 mem_cgrouph]h mem_cgroup}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjNmodnameN classnameNjpjs)}jv]jy)}jljsbc.count_memcg_eventsasbuh1hhj*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)}(hmemcgh]hmemcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj&ubj )}(henum vm_event_item idxh](j5)}(hjh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(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]jhc.count_memcg_eventsasbuh1hhjubj)}(h h]h }(hj܂hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidxh]hidx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj&ubj )}(hunsigned long counth](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)}(hcounth]hcount}(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)}(haccount VM events in a cgrouph]haccount VM events in a cgroup}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjbhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj}jHj}jIjJjKuh1hhhhj hNhNubj)}(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)}(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 *memcg`` the 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hthe memory cgrouph]hthe memory cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``enum vm_event_item idx`` the event item h](j)}(h``enum vm_event_item idx``h]jS)}(hj߃h]henum vm_event_item idx}(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.chMhjكubj)}(hhh]jM)}(hthe event itemh]hthe event item}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjكubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h:``unsigned long count`` the number of events that occurredh](j)}(h``unsigned long count``h]jS)}(hjh]hunsigned long count}(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 number of events that occurredh]h"the number of events that occurred}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#get_mem_cgroup_from_mm (C function)c.get_mem_cgroup_from_mmhNtauh1hhj hhhNhNubh)}(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}(hjrhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjnhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjhMNubh)}(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_mmsbc.get_mem_cgroup_from_mmasbuh1hhjnhhhjhMNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjhMNubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjnhhhjhMNubh)}(hget_mem_cgroup_from_mmh]j)}(hjh]hget_mem_cgroup_from_mm}(hjфhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̈́ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjnhhhjhMNubj )}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jc.get_mem_cgroup_from_mmasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj6hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmmh]hmm}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjnhhhjhMNubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjjhhhjhMNubah}(h]jeah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMNhjghhubj4)}(hhh]jM)}(h.Obtain a reference on given mm_struct's memcg.h]h0Obtain a reference on given mm_struct’s memcg.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMNhjjhhubah}(h]h ]h"]h$]h&]uh1j3hjghhhjhMNubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMRhjubj)}(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)}(hjh]hstruct mm_struct *mm}(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.chMOhjubj)}(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.}(hjDžhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjÅhMOhjąubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjÅhMOhjubah}(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.chMQhjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(get_mem_cgroup_from_current (C function)c.get_mem_cgroup_from_currenthNtauh1hhj hhhNhNubh)}(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}(hj.hhhNhNubah}(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}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjOmodnameN classnameNjpjs)}jv]jy)}jlget_mem_cgroup_from_currentsbc.get_mem_cgroup_from_currentasbuh1hhj*hhhj;hMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj;hMubjF )}(hjI h]h*}(hj|hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj*hhhj;hMubh)}(hget_mem_cgroup_from_currenth]j)}(hjkh]hget_mem_cgroup_from_current}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj*hhhj;hMubj )}(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 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 current task's memcg.h]h-Obtain a reference on current task’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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hjh]hvoid}(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)}(h no argumentsh]h no arguments}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chKhj)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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&get_mem_cgroup_from_folio (C function)c.get_mem_cgroup_from_foliohNtauh1hhj hhhNhNubh)}(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}(hjmhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjihhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjzhMubh)}(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_foliosbc.get_mem_cgroup_from_folioasbuh1hhjihhhjzhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjzhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjihhhjzhMubh)}(hget_mem_cgroup_from_folioh]j)}(hjh]hget_mem_cgroup_from_folio}(hj̇hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȇubah}(h]h ](jjeh"]h$]h&]jjuh1hhjihhhjzhMubj )}(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]jc.get_mem_cgroup_from_folioasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj1hhhNhNubah}(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߇ubah}(h]h ]h"]h$]h&]jjuh1j hjihhhjzhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjehhhjzhMubah}(h]j`ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjzhMhjbhhubj4)}(hhh]jM)}(h,Obtain a reference on a given folio's memcg.h]h.Obtain a reference on a given folio’s memcg.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjehhubah}(h]h ]h"]h$]h&]uh1j3hjbhhhjzhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(hD``struct folio *folio`` folio from which memcg should be extracted. 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.chMhjubj)}(hhh]jM)}(h+folio from which memcg should be extracted.h]h+folio from which memcg should be extracted.}(hjˆhhhNhNubah}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmem_cgroup_iter (C function)c.mem_cgroup_iterhNtauh1hhj hhhNhNubh)}(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}(hj)hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj%hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj6hMubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjJmodnameN classnameNjpjs)}jv]jy)}jlmem_cgroup_itersbc.mem_cgroup_iterasbuh1hhj%hhhj6hMubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj6hMubjF )}(hjI h]h*}(hjwhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj%hhhj6hMubh)}(hmem_cgroup_iterh]j)}(hjfh]hmem_cgroup_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj%hhhj6hMubj )}(h](struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjÉmodnameN classnameNjpjs)}jv]jdc.mem_cgroup_iterasbuh1hhjubj)}(h h]h }(hj߉hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mem_cgroup *prevh](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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3modnameN classnameNjpjs)}jv]jdc.mem_cgroup_iterasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj]hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hprevh]hprev}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h)struct mem_cgroup_reclaim_cookie *reclaimh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hmem_cgroup_reclaim_cookiegh]hmem_cgroup_reclaim_cookie}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jdc.mem_cgroup_iterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj͊hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hreclaimh]hreclaim}(hjڊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(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$iterate over memory cgroup hierarchyh]h$iterate over memory cgroup hierarchy}(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&]uh1j3hjhhhj6hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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 *root`` hierarchy root h](j)}(h``struct mem_cgroup *root``h]jS)}(hjEh]hstruct mem_cgroup *root}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCubah}(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}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubj)}(hP``struct mem_cgroup *prev`` previously returned memcg, NULL on first invocation h](j)}(h``struct mem_cgroup *prev``h]jS)}(hj~h]hstruct mem_cgroup *prev}(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.chMhjxubj)}(hhh]jM)}(h3previously returned memcg, NULL on first invocationh]h3previously returned memcg, NULL on first invocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhj<ubj)}(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)}(hjh]h)struct mem_cgroup_reclaim_cookie *reclaim}(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)}(h4cookie for shared reclaim walks, NULL for full walksh]h4cookie for shared reclaim walks, NULL for full walks}(hjЋhhhNhNubah}(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&]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)}(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 }(hjhhhNhNubj)}(h**root**h]hroot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, or }(hjhhhNhNubj)}(h**root**h]hroot}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh itself, or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh after a full round-trip.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj ubjM)}(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 }(hjMhhhNhNubj)}(h**prev**h]hprev}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh on subsequent invocations for reference counting, or use mem_cgroup_iter_break() to cancel a hierarchy walk before the round-trip is complete.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj ubjM)}(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 }(hjnhhhNhNubj)}(h **reclaim**h]hreclaim}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubhe to divide up the memcgs in the hierarchy among all concurrent reclaimers operating on the same node.}(hjnhhhNhNubeh}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"mem_cgroup_iter_break (C function)c.mem_cgroup_iter_breakhNtauh1hhj hhhNhNubh)}(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}(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_iter_breakh]j)}(hmem_cgroup_iter_breakh]hmem_cgroup_iter_break}(hjЌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhǰubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljҌsbc.mem_cgroup_iter_breakasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hrooth]hroot}(hjEhhhNhNubah}(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&]uh1j4hjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj~modnameN classnameNjpjs)}jv]j&c.mem_cgroup_iter_breakasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjZubj)}(hprevh]hprev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(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"abort a hierarchy walk prematurelyh]h"abort a hierarchy walk prematurely}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(hZ``struct mem_cgroup *prev`` last visited hierarchy member as returned by mem_cgroup_iter()h](j)}(h``struct mem_cgroup *prev``h]jS)}(hjYh]hstruct mem_cgroup *prev}(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.chMhjSubj)}(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()}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"mem_cgroup_scan_tasks (C function)c.mem_cgroup_scan_taskshNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMFubj)}(h h]h }(hjŽhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMFubh)}(hmem_cgroup_scan_tasksh]j)}(hmem_cgroup_scan_tasksh]hmem_cgroup_scan_tasks}(hjԎhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЎubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMFubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj֎sbc.mem_cgroup_scan_tasksasbuh1hhjubj)}(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}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h%int (*fn)(struct task_struct*, void*)h](j)}(hinth]hint}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjF )}(hj!h]h(}(hj~hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj^ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj^ubj)}(hfnh]hfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjF )}(hj!h]h)}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj^ubjF )}(hj!h]h(}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj^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)}(h task_structh]h task_struct}(hjޏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۏubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j*c.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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjF )}(hjI h]h*}(hj3hhhNhNubah}(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 hjubj )}(h void *argh](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)}(hargh]harg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMFubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMFubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMFhjhhubj4)}(hhh]jM)}(h/iterate over tasks of a memory cgroup hierarchyh]h/iterate over tasks of a memory cgroup hierarchy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMFhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMFubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjÐjHjÐjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMJhjǐubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjubj)}(hK``int (*fn)(struct task_struct *, void *)`` function to call for each task h](j)}(h+``int (*fn)(struct task_struct *, void *)``h]jS)}(hj%h]h'int (*fn)(struct task_struct *, void *)}(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.chMHhjubj)}(hhh]jM)}(hfunction to call for each taskh]hfunction to call for each task}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hMHhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMHhjubj)}(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.chMIhjXubj)}(hhh]jM)}(hargument passed to **fn**h](hargument passed to }(hjwhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jLhjshMIhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMIhjubeh}(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.chMKhjǐubjM)}(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}(hjőhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( or to any of its descendants and calls }(hjhhhNhNubj)}(h**fn**h]hfn}(hjבhhhNhNubah}(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.chMJhjǐubjM)}(hhMmubh)}(hhh]j)}(hlruvech]hlruvec}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRmodnameN classnameNjpjs)}jv]jy)}jlfolio_lruvec_locksbc.folio_lruvec_lockasbuh1hhj-hhhj>hMmubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj>hMmubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-hhhj>hMmubh)}(hfolio_lruvec_lockh]j)}(hjnh]hfolio_lruvec_lock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj-hhhj>hMmubj )}(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.folio_lruvec_lockasbuh1hhjubj)}(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>hMmubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj)hhhj>hMmubah}(h]j$ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj>hMmhj&hhubj4)}(hhh]jM)}(hLock the lruvec for a folio.h]hLock the lruvec for a folio.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMmhj)hhubah}(h]h ]h"]h$]h&]uh1j3hj&hhhj>hMmubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjDjHjDjIjJjKuh1hhhhj hNhNubj)}(hX1**Parameters** ``struct folio *folio`` Pointer to the folio. **Description** These functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0) **Return** The lruvec this folio is on with its lock held and rcu read lock held.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.chMqhjHubj)}(hhh]j)}(h.``struct folio *folio`` Pointer to the folio. 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.chMnhjgubj)}(hhh]jM)}(hPointer to the folio.h]hPointer to the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjdubah}(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.chMphjHubjM)}(hThese functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)h]hThese functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMohjHubjM)}(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:121: ./mm/memcontrol.chMthjHubjM)}(hFThe lruvec this folio is on with its lock held and rcu read lock held.h]hFThe lruvec this folio is on with its lock held and rcu read lock held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMuhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_lruvec_lock_irq (C function)c.folio_lruvec_lock_irqhNtauh1hhj hhhNhNubh)}(hhh](h)}(h;struct lruvec * folio_lruvec_lock_irq (struct folio *folio)h]h)}(h9struct lruvec *folio_lruvec_lock_irq(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.chMubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hMubh)}(hhh]j)}(hlruvech]hlruvec}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5modnameN classnameNjpjs)}jv]jy)}jlfolio_lruvec_lock_irqsbc.folio_lruvec_lock_irqasbuh1hhjhhhj!hMubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hMubjF )}(hjI h]h*}(hjbhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj!hMubh)}(hfolio_lruvec_lock_irqh]j)}(hjQh]hfolio_lruvec_lock_irq}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj!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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jOc.folio_lruvec_lock_irqasbuh1hhjubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(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)}(hLock the lruvec for a folio.h]hLock the lruvec for a folio.}(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 hhhj!hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj'jHj'jIjJjKuh1hhhhj hNhNubj)}(hXI**Parameters** ``struct folio *folio`` Pointer to the folio. **Description** These functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0) **Return** The lruvec this folio is on with its lock held and interrupts disabled and rcu read lock held.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:121: ./mm/memcontrol.chMhj+ubj)}(hhh]j)}(h.``struct folio *folio`` Pointer to the folio. h](j)}(h``struct folio *folio``h]jS)}(hjPh]hstruct folio *folio}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjJubj)}(hhh]jM)}(hPointer to the folio.h]hPointer to the folio.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjGubah}(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)}(hThese functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)h]hThese functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.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:121: ./mm/memcontrol.chMhj+ubjM)}(h^The lruvec this folio is on with its lock held and interrupts disabled and rcu read lock held.h]h^The lruvec this folio is on with its lock held and interrupts disabled and rcu read lock held.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&folio_lruvec_lock_irqsave (C function)c.folio_lruvec_lock_irqsavehNtauh1hhj hhhNhNubh)}(hhh](h)}(hUstruct lruvec * folio_lruvec_lock_irqsave (struct folio *folio, unsigned long *flags)h]h)}(hSstruct lruvec *folio_lruvec_lock_irqsave(struct folio *folio, unsigned long *flags)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)}(hlruvech]hlruvec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlfolio_lruvec_lock_irqsavesbc.folio_lruvec_lock_irqsaveasbuh1hhjhhhjhMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjEhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hfolio_lruvec_lock_irqsaveh]j)}(hj4h]hfolio_lruvec_lock_irqsave}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h+(struct folio *folio, unsigned long *flags)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjqhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j2c.folio_lruvec_lock_irqsaveasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjmubj)}(hfolioh]hfolio}(hjȖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjiubj )}(hunsigned long *flagsh](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ݖubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjݖubj)}(hflagsh]hflags}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݖubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjiubeh}(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)}(hLock the lruvec for a folio.h]hLock the lruvec for a folio.}(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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjhjHjhjIjJjKuh1hhhhj hNhNubj)}(hX**Parameters** ``struct folio *folio`` Pointer to the folio. ``unsigned long *flags`` Pointer to irqsave flags. **Description** These functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0) **Return** The lruvec this folio is on with its lock held and interrupts disabled and rcu read lock held.h](jM)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjlubj)}(hhh](j)}(h.``struct folio *folio`` Pointer to 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hPointer to the folio.h]hPointer to the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``unsigned long *flags`` Pointer to irqsave flags. 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjėubj)}(hhh]jM)}(hPointer to irqsave flags.h]hPointer to irqsave flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjߗhMhjubah}(h]h ]h"]h$]h&]uh1jhjėubeh}(h]h ]h"]h$]h&]uh1jhjߗhMhjubeh}(h]h ]h"]h$]h&]uh1jhjlubjM)}(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.chMhjlubjM)}(hThese functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)h]hThese functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjlubjM)}(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:121: ./mm/memcontrol.chMhjlubjM)}(h^The lruvec this folio is on with its lock held and interrupts disabled and rcu read lock held.h]h^The lruvec this folio is on with its lock held and interrupts disabled and rcu read lock held.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'mem_cgroup_update_lru_size (C function)c.mem_cgroup_update_lru_sizehNtauh1hhj hhhNhNubh)}(hhh](h)}(hbvoid mem_cgroup_update_lru_size (struct lruvec *lruvec, enum lru_list lru, int zid, long nr_pages)h]h)}(havoid mem_cgroup_update_lru_size(struct lruvec *lruvec, enum lru_list lru, int zid, long nr_pages)h](j)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjhMubh)}(hmem_cgroup_update_lru_sizeh]j)}(hmem_cgroup_update_lru_sizeh]hmem_cgroup_update_lru_size}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjmhhhjhMubj )}(hB(struct lruvec *lruvec, enum lru_list lru, int zid, long nr_pages)h](j )}(hstruct lruvec *lruvech](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hlruvech]hlruvec}(hj̘hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɘubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjΘmodnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_update_lru_sizeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hlruvech]hlruvec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum lru_list lruh](j5)}(hjh]henum}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hlru_listh]hlru_list}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj@modnameN classnameNjpjs)}jv]jc.mem_cgroup_update_lru_sizeasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlruh]hlru}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint zidh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hzidh]hzid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h long nr_pagesh](j)}(hlongh]hlong}(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 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)}(h*account for adding or removing an lru pageh]h*account for adding or removing an lru page}(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&]uh1j3hjfhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(hX**Parameters** ``struct lruvec *lruvec`` mem_cgroup per zone lru vector ``enum lru_list lru`` index of lru list the page is sitting on ``int zid`` zone id of the accounted pages ``long nr_pages`` positive when adding or negative when removing **Description** 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](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(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.chMhjubj)}(hhh](j)}(h9``struct lruvec *lruvec`` mem_cgroup per zone lru vector h](j)}(h``struct lruvec *lruvec``h]jS)}(hj?h]hstruct lruvec *lruvec}(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.chMhj9ubj)}(hhh]jM)}(hmem_cgroup per zone lru vectorh]hmem_cgroup per zone lru vector}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhj6ubj)}(h?``enum lru_list lru`` index of lru list the page is sitting on h](j)}(h``enum lru_list lru``h]jS)}(hjxh]henum lru_list lru}(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.chMhjrubj)}(hhh]jM)}(h(index of lru list the page is sitting onh]h(index of lru list the page is sitting on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhj6ubj)}(h+``int zid`` zone id of the accounted pages h](j)}(h ``int zid``h]jS)}(hjh]hint zid}(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)}(hzone id of the accounted pagesh]hzone id of the accounted pages}(hjʚhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjƚhMhjǚubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƚhMhj6ubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj6ubeh}(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)}(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.}(hj;hhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmem_cgroup_margin (C function)c.mem_cgroup_marginhNtauh1hhj hhhNhNubh)}(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}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjxhMubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjxhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjxhMubh)}(hmem_cgroup_marginh]j)}(hmem_cgroup_marginh]hmem_cgroup_margin}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjfhhhjxhMubj )}(h(struct mem_cgroup *memcg)h]j )}(hstruct mem_cgroup *memcgh](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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޛubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_marginasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(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 hjfhhhjxhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjbhhhjxhMubah}(h]j]ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjxhMhj_hhubj4)}(hhh]jM)}(h-calculate chargeable space of a memory cgrouph]h-calculate chargeable space of a memory cgroup}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjChhubah}(h]h ]h"]h$]h&]uh1j3hj_hhhjxhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj^jHj^jIjJjKuh1hhhhj hNhNubj)}(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)}(hjhh]h Parameters}(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.chMhjbubj)}(hhh]j)}(h/``struct mem_cgroup *memcg`` the 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hthe memory cgrouph]hthe memory cgroup}(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&]uh1jhjbubjM)}(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:121: ./mm/memcontrol.chMhjbubjM)}(hKReturns the maximum amount of memory **mem** can be charged with, in pages.h](h%Returns the maximum amount of memory }(hj؜hhhNhNubj)}(h**mem**h]hmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj؜ubh can be charged with, in pages.}(hj؜hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)mem_cgroup_print_oom_context (C function)c.mem_cgroup_print_oom_contexthNtauh1hhj hhhNhNubh)}(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}(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)}(hmem_cgroup_print_oom_contexth]j)}(hmem_cgroup_print_oom_contexth]hmem_cgroup_print_oom_context}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj'hMubj )}(h1(struct mem_cgroup *memcg, struct task_struct *p)h](j )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hjVhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjvmodnameN classnameNjpjs)}jv]jy)}jlj<sbc.mem_cgroup_print_oom_contextasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjRubj)}(hmemcgh]hmemcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjNubj )}(hstruct task_struct *ph](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 task_structh]h task_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mem_cgroup_print_oom_contextasbuh1hhjĝ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)}(hjR h]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĝubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjNubeh}(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'hMhjhhubj4)}(hhh]jM)}(h4Print OOM information relevant to memory controller.h]h4Print OOM information relevant to memory controller.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjEhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj'hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj`jHj`jIjJjKuh1hhhhj hNhNubj)}(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)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjdubj)}(hhh](j)}(hD``struct mem_cgroup *memcg`` The memory cgroup that went over limit 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.chMhjubj)}(hhh]jM)}(h&The memory cgroup that went over limith]h&The memory cgroup that went over limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h:``struct task_struct *p`` Task that is going to be killed h](j)}(h``struct task_struct *p``h]jS)}(hjžh]hstruct task_struct *p}(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)}(hTask that is going to be killedh]hTask that is going to be killed}(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&]uh1jhjdubjM)}(h**NOTE**h]j)}(hjh]hNOTE}(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.chMhjdubjM)}(hK**memcg** and **p**'s mem_cgroup can be different when hierarchy is enabledh](j)}(h **memcg**h]hmemcg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**p**h]hp}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:’s mem_cgroup can be different when hierarchy is enabled}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)mem_cgroup_print_oom_meminfo (C function)c.mem_cgroup_print_oom_meminfohNtauh1hhj hhhNhNubh)}(hhh](h)}(hubj)}(hhh]j)}(hC``struct mem_cgroup *memcg`` The memory cgroup that went over limith](j)}(h``struct mem_cgroup *memcg``h]jS)}(hjch]hstruct mem_cgroup *memcg}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(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 memory cgroup that went over limith]h&The memory cgroup that went over limit}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%mem_cgroup_get_oom_group (C function)c.mem_cgroup_get_oom_grouphNtauh1hhj hhhNhNubh)}(hhh](h)}(hhstruct mem_cgroup * mem_cgroup_get_oom_group (struct task_struct *victim, struct mem_cgroup *oom_domain)h]h)}(hfstruct mem_cgroup *mem_cgroup_get_oom_group(struct task_struct *victim, struct mem_cgroup *oom_domain)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 }(hjˠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjʠhMubh)}(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)}jlmem_cgroup_get_oom_groupsbc.mem_cgroup_get_oom_groupasbuh1hhjhhhjʠhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjʠhMubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjʠhMubh)}(hmem_cgroup_get_oom_grouph]j)}(hjh]hmem_cgroup_get_oom_group}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjʠhMubj )}(h;(struct task_struct *victim, struct mem_cgroup *oom_domain)h](j )}(hstruct task_struct *victimh](j5)}(hj8h]hstruct}(hj7hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(h task_structh]h task_struct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWmodnameN classnameNjpjs)}jv]jc.mem_cgroup_get_oom_groupasbuh1hhj3ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj3ubj)}(hvictimh]hvictim}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj/ubj )}(hstruct mem_cgroup *oom_domainh](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]jc.mem_cgroup_get_oom_groupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h oom_domainh]h oom_domain}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj/ubeh}(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)get a memory cgroup to clean up after OOMh]h)get a memory cgroup to clean up after OOM}(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&]jFjAjGj@jHj@jIjJjKuh1hhhhj hNhNubj)}(hXz**Parameters** ``struct task_struct *victim`` task to be killed by the OOM killer ``struct mem_cgroup *oom_domain`` memcg in case of memcg OOM, NULL in case of system-wide OOM **Description** Returns a pointer to a memory cgroup, which has to be cleaned up by killing all belonging OOM-killable tasks. Caller has to call mem_cgroup_put() on the returned non-NULL memcg.h](jM)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjDubj)}(hhh](j)}(hC``struct task_struct *victim`` task to be killed by the OOM killer h](j)}(h``struct task_struct *victim``h]jS)}(hjih]hstruct task_struct *victim}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjcubj)}(hhh]jM)}(h#task to be killed by the OOM killerh]h#task to be killed by the OOM killer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj`ubj)}(h^``struct mem_cgroup *oom_domain`` memcg in case of memcg OOM, NULL in case of system-wide OOM h](j)}(h!``struct mem_cgroup *oom_domain``h]jS)}(hjh]hstruct mem_cgroup *oom_domain}(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;memcg in case of memcg OOM, NULL in case of system-wide OOMh]h;memcg in case of memcg OOM, NULL in case of system-wide OOM}(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&]uh1jhjDubjM)}(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.chMhjDubjM)}(hmReturns a pointer to a memory cgroup, which has to be cleaned up by killing all belonging OOM-killable tasks.h]hmReturns a pointer to a memory cgroup, which has to be cleaned up by killing all belonging OOM-killable tasks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjDubjM)}(hCCaller has to call mem_cgroup_put() on the returned non-NULL memcg.h]hCCaller has to call mem_cgroup_put() on the returned non-NULL memcg.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hconsume_stock (C function)c.consume_stockhNtauh1hhj hhhNhNubh)}(hhh](h)}(hDbool consume_stock (struct mem_cgroup *memcg, unsigned int nr_pages)h]h)}(hCbool consume_stock(struct mem_cgroup *memcg, unsigned int nr_pages)h](j)}(hj)h]hbool}(hj1hhhNhNubah}(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>hMubh)}(h consume_stockh]j)}(h consume_stockh]h consume_stock}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1hhj-hhhj>hMubj )}(h1(struct mem_cgroup *memcg, unsigned int nr_pages)h](j )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hjmhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(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)}jljSsbc.consume_stockasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjiubj)}(hmemcgh]hmemcg}(hjƣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeubj )}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjߣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۣubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۣubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۣubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۣubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۣubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeubeh}(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*Try to consume stocked charge on this cpu.h]h*Try to consume stocked charge on this cpu.}(hjAhhhNhNubah}(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&]jFjAjGjYjHjYjIjJjKuh1hhhhj hNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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)}(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.chMhj|ubj)}(hhh]jM)}(hmemcg to consume from.h]hmemcg to consume from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjyubj)}(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&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hhow many pages to charge.h]hhow many pages to charge.}(hjԤhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjФhMhjѤubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjФhMhjyubeh}(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.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%__memcg_kmem_charge_page (C function)c.__memcg_kmem_charge_pagehNtauh1hhj hhhNhNubh)}(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}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjXhM ubh)}(h__memcg_kmem_charge_pageh]j)}(h__memcg_kmem_charge_pageh]h__memcg_kmem_charge_page}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1hhjFhhhjXhM ubj )}(h)(struct page *page, gfp_t gfp, int order)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)}jljmsbc.__memcg_kmem_charge_pageasbuh1hhjubj)}(h h]h }(hjťhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjӥhhhNhNubah}(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 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.__memcg_kmem_charge_pageasbuh1hhjubj)}(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 hjubj )}(h int orderh](j)}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(horderh]horder}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjFhhhjXhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjBhhhjXhM ubah}(h]j=ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjXhM hj?hhubj4)}(hhh]jM)}(h/charge a kmem page to the current memory cgrouph]h/charge a kmem page to the current memory cgroup}(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&]uh1j3hj?hhhjXhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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 page *page`` page to charge 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hj¦ubj)}(hhh]jM)}(hpage to chargeh]hpage to charge}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjݦhM hjަubah}(h]h ]h"]h$]h&]uh1jhj¦ubeh}(h]h ]h"]h$]h&]uh1jhjݦhM hjubj)}(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.chM hjubj)}(hhh]jM)}(h reclaim modeh]h reclaim mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``int order`` allocation order h](j)}(h ``int order``h]jS)}(hj:h]h int order}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hj4ubj)}(hhh]jM)}(hallocation orderh]hallocation order}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjOhM hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjuh]h Description}(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.chM hjubjM)}(h/Returns 0 on success, an error code on failure.h]h/Returns 0 on success, an error code on failure.}(hjhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'__memcg_kmem_uncharge_page (C function)c.__memcg_kmem_uncharge_pagehNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM4 ubj)}(h h]h }(hjɧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjȧhM4 ubh)}(h__memcg_kmem_uncharge_pageh]j)}(h__memcg_kmem_uncharge_pageh]h__memcg_kmem_uncharge_page}(hjۧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjקubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjȧhM4 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 }(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)}jljݧsbc.__memcg_kmem_uncharge_pageasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjChhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int orderh](j)}(hinth]hint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjȧhM4 ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjȧhM4 ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjȧhM4 hjhhubj4)}(hhh]jM)}(huncharge a kmem pageh]huncharge a kmem page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM4 hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjȧhM4 ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjǨjHjǨjIjJjKuh1hhhhj hNhNubj)}(hZ**Parameters** ``struct page *page`` page to uncharge ``int order`` allocation orderh](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.chM8 hj˨ubj)}(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.chM5 hjubj)}(hhh]jM)}(hpage to unchargeh]hpage to uncharge}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM5 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5 hjubj)}(h``int order`` allocation orderh](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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM7 hj#ubj)}(hhh]jM)}(hallocation orderh]hallocation order}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM6 hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hM7 hjubeh}(h]h ]h"]h$]h&]uh1jhj˨ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h mem_cgroup_wb_stats (C function)c.mem_cgroup_wb_statshNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM1ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM1ubh)}(hmem_cgroup_wb_statsh]j)}(hmem_cgroup_wb_statsh]hmem_cgroup_wb_stats}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM1ubj )}(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 }(hjͩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h bdi_writebackh]h bdi_writeback}(hjީhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۩ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_wb_statsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hwbh]hwb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long *pfilepagesh](j)}(hunsignedh]hunsigned}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hlongh]hlong}(hjNhhhNhNubah}(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)}(h pfilepagesh]h pfilepages}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long *pheadroomh](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)}(h pheadroomh]h pheadroom}(hjժhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj&hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpdirtyh]hpdirty}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long *pwritebackh](j)}(hunsignedh]hunsigned}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hlongh]hlong}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjHubj)}(h pwritebackh]h pwriteback}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM1ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj{hhhjhM1ubah}(h]jvah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM1hjxhhubj4)}(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.chM1hjhhubah}(h]h ]h"]h$]h&]uh1j3hjxhhhjhM1ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjӫjHjӫjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chM5hj׫ubj)}(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}(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.chM2hjubj)}(hhh]jM)}(hbdi_writeback in questionh]hbdi_writeback in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubj)}(hE``unsigned long *pfilepages`` out parameter for number of file pages h](j)}(h``unsigned long *pfilepages``h]jS)}(hj5h]hunsigned long *pfilepages}(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.chM3hj/ubj)}(hhh]jM)}(h&out parameter for number of file pagesh]h&out parameter for number of file pages}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhM3hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM3hjubj)}(h^``unsigned long *pheadroom`` out parameter for number of allocatable pages according to memcg h](j)}(h``unsigned long *pheadroom``h]jS)}(hjnh]hunsigned long *pheadroom}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM4hjhubj)}(hhh]jM)}(h@out parameter for number of allocatable pages according to memcgh]h@out parameter for number of allocatable pages according to memcg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjubj)}(hB``unsigned long *pdirty`` out parameter for number of dirty pages h](j)}(h``unsigned long *pdirty``h]jS)}(hjh]hunsigned long *pdirty}(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.chM5hjubj)}(hhh]jM)}(h'out parameter for number of dirty pagesh]h'out parameter for number of dirty pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubj)}(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&]uh1jRhjެubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM6hjڬubj)}(hhh]jM)}(h1out parameter for number of pages under writebackh]h1out parameter for number of pages under writeback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjڬubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubeh}(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.chM8hj׫ubjM)}(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 }(hj1hhhNhNubj)}(h**wb**h]hwb}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh^’s memcg. File, dirty and writeback are self-explanatory. Headroom is a bit more involved.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM7hj׫ubjM)}(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 }(hjRhhhNhNubj)}(h***pheadroom**h]h *pheadroom}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh accordingly.}(hjRhhhNhNubeh}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'mem_cgroup_from_private_id (C function)c.mem_cgroup_from_private_idhNtauh1hhj hhhNhNubh)}(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}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM&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)}jlmem_cgroup_from_private_idsbc.mem_cgroup_from_private_idasbuh1hhjhhhjhM&ubj)}(h h]h }(hjӭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM&ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM&ubh)}(hmem_cgroup_from_private_idh]j)}(hjЭh]hmem_cgroup_from_private_id}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM&ubj )}(h(unsigned short id)h]j )}(hunsigned short idh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hshorth]hshort}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hidh]hid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(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)}(hlook up a memcg from a memcg idh]hlook up a memcg from a memcg id}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM&hjlhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM&ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(hs**Parameters** ``unsigned short id`` the memcg id to look up **Description** Caller must hold rcu_read_lock().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.``unsigned short id`` the memcg id to look up 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.chM'hjubj)}(hhh]jM)}(hthe memcg id to look uph]hthe memcg id to look up}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM)hjubjM)}(h!Caller must hold rcu_read_lock().h]h!Caller must hold rcu_read_lock().}(hjhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!mem_cgroup_css_reset (C function)c.mem_cgroup_css_resethNtauh1hhj hhhNhNubh)}(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}(hj0hhhNhNubah}(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>hMubh)}(hmem_cgroup_css_reseth]j)}(hmem_cgroup_css_reseth]hmem_cgroup_css_reset}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1hhj,hhhj>hMubj )}(h!(struct cgroup_subsys_state *css)h]j )}(hstruct cgroup_subsys_state *cssh](j5)}(hj8h]hstruct}(hjmhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(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)}jljSsbc.mem_cgroup_css_resetasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjiubj)}(hcssh]hcss}(hjƯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeubah}(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 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&]uh1j3hj%hhhj>hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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 cgroup_subsys_state *css`` the target css h](j)}(h#``struct cgroup_subsys_state *css``h]jS)}(hj1h]hstruct cgroup_subsys_state *css}(hj3hhhNhNubah}(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 target cssh]hthe target css}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(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 }(hjhhhNhNubj)}(h**css**h]hcss}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. 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.}(hjhhhNhNubeh}(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.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,mem_cgroup_calculate_protection (C function)!c.mem_cgroup_calculate_protectionhNtauh1hhj hhhNhNubh)}(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}(hjҰhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΰhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΰhhhjhMxubh)}(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&]jjuh1hhjΰhhhjhMxubj )}(h3(struct mem_cgroup *root, struct mem_cgroup *memcg)h](j )}(hstruct mem_cgroup *rooth](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 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)}jljsb!c.mem_cgroup_calculate_protectionasbuh1hhj 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)}(hrooth]hroot}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mem_cgroup *memcgh](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 mem_cgrouph]h mem_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jI!c.mem_cgroup_calculate_protectionasbuh1hhj}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)}(hmemcgh]hmemcg}(hjرhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjΰhhhjhMxubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjʰhhhjhMxubah}(h]jŰah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMxhjǰhhubj4)}(hhh]jM)}(h2check if memory consumption is in the normal rangeh]h2check if memory consumption is in the normal range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMxhjhhubah}(h]h ]h"]h$]h&]uh1j3hjǰhhhjhMxubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chM|hjubj)}(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)}(hjCh]hstruct mem_cgroup *root}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMyhj=ubj)}(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&]uh1jLhjXhMyhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMyhj:ubj)}(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}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMzhjvubj)}(hhh]jM)}(hthe memory cgroup to checkh]hthe memory cgroup to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMzhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMzhj: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|hjubj)}(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}(hjԲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM{hjвubj)}(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.chM|hjubah}(h]h ]h"]h$]h&]uh1jhjвubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjͲubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&mem_cgroup_charge_hugetlb (C function)c.mem_cgroup_charge_hugetlbhNtauh1hhj hhhNhNubh)}(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}(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 }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj5hMubh)}(hmem_cgroup_charge_hugetlbh]j)}(hmem_cgroup_charge_hugetlbh]hmem_cgroup_charge_hugetlb}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1hhj#hhhj5hMubj )}(h (struct folio *folio, gfp_t gfp)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjdhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj`ubj)}(h h]h }(hjqhhhNhNubah}(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)}jljJsbc.mem_cgroup_charge_hugetlbasbuh1hhj`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 )}(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]jc.mem_cgroup_charge_hugetlbasbuh1hhjҳubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҳubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҳubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubeh}(h]h ]h"]h$]h&]jjuh1j hj#hhhj5hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj5hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj5hMhjhhubj4)}(hhh]jM)}(h$charge the memcg for a hugetlb folioh]h$charge the memcg for a hugetlb folio}(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&]uh1j3hjhhhj5hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjGjHjGjIjJjKuh1hhhhj hNhNubj)}(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)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjKubj)}(hhh](j)}(h,``struct folio *folio`` folio being charged h](j)}(h``struct folio *folio``h]jS)}(hjph]hstruct folio *folio}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjjubj)}(hhh]jM)}(hfolio being chargedh]hfolio being charged}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubj)}(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.chMhjubj)}(hhh]jM)}(h reclaim modeh]h reclaim mode}(hj´hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubeh}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjKubjM)}(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.chMhjKubjM)}(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.chMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+mem_cgroup_swapin_charge_folio (C function) c.mem_cgroup_swapin_charge_foliohNtauh1hhj hhhNhNubh)}(hhh](h)}(hlint mem_cgroup_swapin_charge_folio (struct folio *folio, struct mm_struct *mm, gfp_t gfp, swp_entry_t entry)h]h)}(hkint mem_cgroup_swapin_charge_folio(struct folio *folio, struct mm_struct *mm, gfp_t gfp, swp_entry_t entry)h](j)}(hinth]hint}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjFhMubh)}(hmem_cgroup_swapin_charge_folioh]j)}(hmem_cgroup_swapin_charge_folioh]hmem_cgroup_swapin_charge_folio}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1hhj4hhhjFhMubj )}(hI(struct folio *folio, struct mm_struct *mm, gfp_t gfp, swp_entry_t entry)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjuhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj[sb c.mem_cgroup_swapin_charge_folioasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjqubj)}(hfolioh]hfolio}(hjεhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjmubj )}(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]j c.mem_cgroup_swapin_charge_folioasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj1hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmmh]hmm}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjmubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj\modnameN classnameNjpjs)}jv]j c.mem_cgroup_swapin_charge_folioasbuh1hhjSubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjmubj )}(hswp_entry_t entryh](h)}(hhh]j)}(h swp_entry_th]h swp_entry_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j c.mem_cgroup_swapin_charge_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hjζhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjmubeh}(h]h ]h"]h$]h&]jjuh1j hj4hhhjFhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj0hhhjFhMubah}(h]j+ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjFhMhj-hhubj4)}(hhh]jM)}(h*Charge a newly allocated folio for swapin.h]h*Charge a newly allocated folio for swapin.}(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&]uh1j3hj-hhhjFhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(hX**Parameters** ``struct folio *folio`` folio to charge. ``struct mm_struct *mm`` mm context of the victim ``gfp_t gfp`` reclaim mode ``swp_entry_t entry`` swap entry for which the folio is allocated **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.chMhjubj)}(hhh](j)}(h)``struct folio *folio`` folio to charge. 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.chMhj3ubj)}(hhh]jM)}(hfolio to charge.h]hfolio to charge.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhMhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj0ubj)}(h2``struct mm_struct *mm`` mm context of the victim 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.chMhjlubj)}(hhh]jM)}(hmm context of the victimh]hmm context of the victim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMhj0ubj)}(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.chMhjubj)}(hhh]jM)}(h reclaim modeh]h reclaim mode}(hjķhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj0ubj)}(hB``swp_entry_t entry`` swap entry for which the folio is allocated h](j)}(h``swp_entry_t entry``h]jS)}(hjh]hswp_entry_t entry}(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)}(h+swap entry for which the folio is allocatedh]h+swap entry for which the folio is allocated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj޷ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj0ubeh}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(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.}(hj5hhhNhNubah}(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. Otherwise, an error code is returned.h]h;Returns 0 on success. Otherwise, an error code is returned.}(hjDhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%mem_cgroup_replace_folio (C function)c.mem_cgroup_replace_foliohNtauh1hhj hhhNhNubh)}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhM^ubh)}(hmem_cgroup_replace_folioh]j)}(hmem_cgroup_replace_folioh]hmem_cgroup_replace_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjohhhjhM^ubj )}(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 }(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.mem_cgroup_replace_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(holdh]hold}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio *newh](j5)}(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}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]jc.mem_cgroup_replace_folioasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnewh]hnew}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjohhhjhM^ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjkhhhjhM^ubah}(h]jfah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM^hjhhhubj4)}(hhh]jM)}(hCharge a folio's replacement.h]hCharge a folio’s replacement.}(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&]uh1j3hjhhhhjhM^ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMbhjubj)}(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.chM_hj޹ubj)}(hhh]jM)}(hCurrently circulating folio.h]hCurrently circulating folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhj޹ubeh}(h]h ]h"]h$]h&]uh1jhjhM_hj۹ubj)}(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.chM`hjubj)}(hhh]jM)}(hReplacement folio.h]hReplacement folio.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2hM`hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hM`hj۹ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMbhjubjM)}(hWCharge **new** as a replacement folio for **old**. **old** will be uncharged upon free.h](hCharge }(hjnhhhNhNubj)}(h**new**h]hnew}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh as a replacement folio for }(hjnhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh. }(hjnhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh will be uncharged upon free.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMahjubjM)}(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.chMdhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmem_cgroup_migrate (C function)c.mem_cgroup_migratehNtauh1hhj hhhNhNubh)}(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}(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.mem_cgroup_migrateasbuh1hhj-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)}(holdh]hold}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjûmodnameN classnameNjpjs)}jv]jkc.mem_cgroup_migrateasbuh1hhjubj)}(h h]h }(hj߻hhhNhNubah}(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 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)}(h6Transfer the memcg data from the old to the new folio.h]h6Transfer the memcg data from the old to the new folio.}(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<jIjJjKuh1hhhhj hNhNubj)}(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)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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)}(hjeh]hstruct folio *old}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubah}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj\ubj)}(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&]uh1jhjhMhj\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: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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!mem_cgroup_sk_charge (C function)c.mem_cgroup_sk_chargehNtauh1hhj hhhNhNubh)}(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&]uh1jhj;hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjLhMubh)}(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&]jjuh1hhj;hhhjLhMubj )}(h>(const struct sock *sk, unsigned int nr_pages, gfp_t gfp_mask)h](j )}(hconst struct sock *skh](j5)}(hjh]hconst}(hj{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]j)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljasbc.mem_cgroup_sk_chargeasbuh1hhjwubj)}(h h]h }(hjԽhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwubj)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(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}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj^modnameN classnameNjpjs)}jv]jнc.mem_cgroup_sk_chargeasbuh1hhjUubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubeh}(h]h ]h"]h$]h&]jjuh1j hj;hhhjLhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj7hhhjLhMubah}(h]j2ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjLhMhj4hhubj4)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj4hhhjLhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjʾjHjʾjIjJjKuh1hhhhj hNhNubj)}(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)}(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``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.chMhjubj)}(hhh]jM)}(hsocket in memcg to chargeh]hsocket in memcg to charge}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``unsigned int nr_pages`` number of pages to charge h](j)}(h``unsigned int nr_pages``h]jS)}(hj,h]hunsigned int 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:121: ./mm/memcontrol.chMhj&ubj)}(hhh]jM)}(hnumber of pages to chargeh]hnumber of pages to charge}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjubj)}(h ``gfp_t gfp_mask`` reclaim mode h](j)}(h``gfp_t gfp_mask``h]jS)}(hjeh]hgfp_t gfp_mask}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj_ubj)}(hhh]jM)}(h reclaim modeh]h reclaim mode}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjubeh}(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)}(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}(hjпhhhNhNubah}(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.chMhjξubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#mem_cgroup_sk_uncharge (C function)c.mem_cgroup_sk_unchargehNtauh1hhj hhhNhNubh)}(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&]uh1jhj;hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhMubh)}(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&]jjuh1hhj;hhhjMhMubj )}(h.(const struct sock *sk, unsigned int nr_pages)h](j )}(hconst struct sock *skh](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)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljbsbc.mem_cgroup_sk_unchargeasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjxubj)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjtubj )}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(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 }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjtubeh}(h]h ]h"]h$]h&]jjuh1j hj;hhhjMhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj7hhhjMhMubah}(h]j2ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjMhMhj4hhubj4)}(hhh]jM)}(huncharge socket memoryh]huncharge socket memory}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhhubah}(h]h ]h"]h$]h&]uh1j3hj4hhhjMhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(h6``const struct sock *sk`` socket in memcg to uncharge 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.chMhjubj)}(hhh]jM)}(hsocket in memcg to unchargeh]hsocket in memcg to uncharge}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(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.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)__mem_cgroup_try_charge_swap (C function)c.__mem_cgroup_try_charge_swaphNtauh1hhj hhhNhNubh)}(hhh](h)}(hIint __mem_cgroup_try_charge_swap (struct folio *folio, swp_entry_t entry)h]h)}(hHint __mem_cgroup_try_charge_swap(struct folio *folio, swp_entry_t entry)h](j)}(hinth]hint}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMZubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhMZubh)}(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&]jjuh1hhj;hhhjMhMZubj )}(h((struct folio *folio, swp_entry_t entry)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj|hhhNhNubah}(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]jy)}jljbsbc.__mem_cgroup_try_charge_swapasbuh1hhjxubj)}(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 hjtubj )}(hswp_entry_t entryh](h)}(hhh]j)}(h swp_entry_th]h swp_entry_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__mem_cgroup_try_charge_swapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjtubeh}(h]h ]h"]h$]h&]jjuh1j hj;hhhjMhMZubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj7hhhjMhMZubah}(h]j2ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjMhMZhj4hhubj4)}(hhh]jM)}(h#try charging swap space for a folioh]h#try charging swap space for a folio}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMZhjDhhubah}(h]h ]h"]h$]h&]uh1j3hj4hhhjMhMZubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj_jHj_jIjJjKuh1hhhhj hNhNubj)}(h**Parameters** ``struct folio *folio`` folio being added to swap ``swp_entry_t entry`` swap entry to charge **Description** Try to charge **folio**'s memcg for the swap space at **entry**. Returns 0 on success, -ENOMEM on failure.h](jM)}(h**Parameters**h]j)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM^hjcubj)}(hhh](j)}(h2``struct folio *folio`` folio being added to swap 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.chM[hjubj)}(hhh]jM)}(hfolio being added to swaph]hfolio being added to swap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjubj)}(h+``swp_entry_t entry`` swap entry to charge h](j)}(h``swp_entry_t entry``h]jS)}(hjh]hswp_entry_t entry}(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)}(hswap entry to chargeh]hswap entry to charge}(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&]uh1jhjcubjM)}(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^hjcubjM)}(h@Try to charge **folio**'s memcg for the swap space at **entry**.h](hTry to charge }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh!’s memcg for the swap space at }(hjhhhNhNubj)}(h **entry**h]hentry}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM]hjcubjM)}(h)Returns 0 on success, -ENOMEM on failure.h]h)Returns 0 on success, -ENOMEM on failure.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM_hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'__mem_cgroup_uncharge_swap (C function)c.__mem_cgroup_uncharge_swaphNtauh1hhj hhhNhNubh)}(hhh](h)}(hJvoid __mem_cgroup_uncharge_swap (swp_entry_t entry, unsigned int nr_pages)h]h)}(hIvoid __mem_cgroup_uncharge_swap(swp_entry_t entry, unsigned int nr_pages)h](j)}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubh)}(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&]jjuh1hhjphhhjhMubj )}(h*(swp_entry_t entry, unsigned int nr_pages)h](j )}(hswp_entry_t entryh](h)}(hhh]j)}(h swp_entry_th]h swp_entry_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.__mem_cgroup_uncharge_swapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjphhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjlhhhjhMubah}(h]jgah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjihhubj4)}(hhh]jM)}(huncharge swap spaceh]huncharge swap space}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjZhhubah}(h]h ]h"]h$]h&]uh1j3hjihhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjujHjujIjJjKuh1hhhhj hNhNubj)}(h**Parameters** ``swp_entry_t entry`` swap entry 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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjyubj)}(hhh](j)}(h-``swp_entry_t entry`` swap entry to uncharge h](j)}(h``swp_entry_t entry``h]jS)}(hjh]hswp_entry_t entry}(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)}(hswap entry to unchargeh]hswap entry 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}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!obj_cgroup_may_zswap (C function)c.obj_cgroup_may_zswaphNtauh1hhj hhhNhNubh)}(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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMTubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj>hMTubh)}(hobj_cgroup_may_zswaph]j)}(hobj_cgroup_may_zswaph]hobj_cgroup_may_zswap}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1hhj-hhhj>hMTubj )}(h(struct obj_cgroup *objcg)h]j )}(hstruct obj_cgroup *objcgh](j5)}(hj8h]hstruct}(hjmhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(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)}jljSsbc.obj_cgroup_may_zswapasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjiubj)}(hobjcgh]hobjcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeubah}(h]h ]h"]h$]h&]jjuh1j hj-hhhj>hMTubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj)hhhj>hMTubah}(h]j$ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj>hMThj&hhubj4)}(hhh]jM)}(hcheck if this cgroup can zswaph]hcheck if this cgroup can zswap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMThjhhubah}(h]h ]h"]h$]h&]uh1j3hj&hhhj>hMTubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMXhj ubj)}(hhh]j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]jS)}(hj1h]hstruct obj_cgroup *objcg}(hj3hhhNhNubah}(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.chMUhj+ubj)}(hhh]jM)}(hthe object cgrouph]hthe object cgroup}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFhMUhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMUhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMWhj ubjM)}(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.chMVhj ubjM)}(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.chMXhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$obj_cgroup_charge_zswap (C function)c.obj_cgroup_charge_zswaphNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(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_charge_zswapasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjIhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hobjcgh]hobjcg}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjtmodnameN classnameNjpjs)}jv]j7c.obj_cgroup_charge_zswapasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hsizeh]hsize}(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]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h!charge compression backend memoryh]h!charge compression backend memory}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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 obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]jS)}(hj h]hstruct obj_cgroup *objcg}(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)}(hthe object cgrouph]hthe object cgroup}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``size_t size`` size of compressed object h](j)}(h``size_t size``h]jS)}(hjBh]h size_t size}(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)}(hsize of compressed objecth]hsize of compressed object}(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)}(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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&obj_cgroup_uncharge_zswap (C function)c.obj_cgroup_uncharge_zswaphNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(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_uncharge_zswapasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjKhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hobjcgh]hobjcg}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjvmodnameN classnameNjpjs)}jv]j9c.obj_cgroup_uncharge_zswapasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(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#uncharge compression backend memoryh]h#uncharge compression backend memory}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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 obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]jS)}(hj h]hstruct obj_cgroup *objcg}(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.chMhjubj)}(hhh]jM)}(hthe object cgrouph]hthe object cgroup}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h*``size_t size`` size of compressed object h](j)}(h``size_t size``h]jS)}(hjDh]h size_t size}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(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}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubj^)}(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&]jjuh1j^hj hhhhhKzubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_recalc_inode (C function)c.shmem_recalc_inodehNtauh1hhj hhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hshmem_recalc_inodeh]j)}(hshmem_recalc_inodeh]hshmem_recalc_inode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h1(struct inode *inode, long alloced, long swapped)h](j )}(hstruct inode *inodeh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hinodeh]hinode}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj.modnameN classnameNjpjs)}jv]jy)}jljsbc.shmem_recalc_inodeasbuh1hhj 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)}(hinodeh]hinode}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h long allocedh](j)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hallocedh]halloced}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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 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'recalculate the block usage of an inodeh]h'recalculate the block usage of an inode}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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 inode *inode`` inode to recalc h](j)}(h``struct inode *inode``h]jS)}(hj<h]hstruct inode *inode}(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)}(hinode to recalch]hinode to recalc}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubj)}(hB``long alloced`` the change in number of pages allocated to inode h](j)}(h``long alloced``h]jS)}(hjuh]h long alloced}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjsubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjoubj)}(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&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhj3ubj)}(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&]uh1jhjhMhj3ubeh}(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.chMhjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubjM)}(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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubjM)}(h **Return**h]j)}(hjh]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:123: ./mm/shmem.chMhjubjM)}(h=true if swapped was incremented from 0, for shmem_writeout().h]h=true if swapped was incremented from 0, for shmem_writeout().}(hj5hhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_writeout (C function)c.shmem_writeouthNtauh1hhj hhhNhNubh)}(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}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM2ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhjrhM2ubh)}(hshmem_writeouth]j)}(hshmem_writeouth]hshmem_writeout}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj`hhhjrhM2ubj )}(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 }(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 swap_iocb **plugh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h swap_iocbh]h swap_iocb}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3modnameN classnameNjpjs)}jv]jc.shmem_writeoutasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj]hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubjF )}(hjI h]h*}(hjjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hplugh]hplug}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h folio_listh]h folio_list}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj`hhhjrhM2ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj\hhhjrhM2ubah}(h]jWah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjrhM2hjYhhubj4)}(hhh]jM)}(hWrite the folio to swaph]hWrite the folio to swap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM2hjhhubah}(h]h ]h"]h$]h&]uh1j3hjYhhhjrhM2ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj)jHj)jIjJjKuh1hhhhj hNhNubj)}(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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM6hj-ubj)}(hhh](j)}(h+``struct folio *folio`` The folio to write h](j)}(h``struct folio *folio``h]jS)}(hjRh]hstruct folio *folio}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM3hjLubj)}(hhh]jM)}(hThe folio to writeh]hThe folio to write}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjghM3hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM3hjIubj)}(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.chM4hjubj)}(hhh]jM)}(h swap plugh]h swap plug}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjIubj)}(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.chM5hjubj)}(hhh]jM)}(h list to put back folios on splith]h list to put back folios on split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjIubeh}(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:123: ./mm/shmem.chM7hj-ubjM)}(h5Move the folio from the page cache to the swap cache.h]h5Move the folio from the page cache to the swap cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM6hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_get_folio (C function)c.shmem_get_foliohNtauh1hhj hhhNhNubh)}(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}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMT ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjRhMT ubh)}(hshmem_get_folioh]j)}(hshmem_get_folioh]hshmem_get_folio}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1hhj@hhhjRhMT 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&]uh1j4hj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljgsbc.shmem_get_folioasbuh1hhj}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)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjyubj )}(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]jc.shmem_get_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 hjyubj )}(hloff_t write_endh](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_get_folioasbuh1hhj7ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h write_endh]h write_end}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjyubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjyubj )}(henum sgp_type sgph](j5)}(hjh]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hsgp_typeh]hsgp_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jc.shmem_get_folioasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsgph]hsgp}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjyubeh}(h]h ]h"]h$]h&]jjuh1j hj@hhhjRhMT ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj<hhhjRhMT ubah}(h]j7ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjRhMT hj9hhubj4)}(hhh]jM)}(hfind, and lock a shmem folio.h]hfind, and lock a shmem folio.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMT hjqhhubah}(h]h ]h"]h$]h&]uh1j3hj9hhhjRhMT ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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.chMX 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.chMU hjubj)}(hhh]jM)}(hinode to searchh]hinode to search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMU hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMU 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&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMV hjubj)}(hhh]jM)}(hthe page index.h]hthe page index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMV hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMV hjubj)}(h=``loff_t write_end`` end of a write, could extend inode size h](j)}(h``loff_t write_end``h]jS)}(hj'h]hloff_t write_end}(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.chMW hj!ubj)}(hhh]jM)}(h'end of a write, could extend inode sizeh]h'end of a write, could extend inode size}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj<hMW hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMW hjubj)}(h8``struct folio **foliop`` pointer to the folio if found h](j)}(h``struct folio **foliop``h]jS)}(hj`h]hstruct folio **foliop}(hjbhhhNhNubah}(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.chMX hjZubj)}(hhh]jM)}(hpointer to the folio if foundh]hpointer to the folio if found}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuhMX hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMX 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.chMY hjubj)}(hhh]jM)}(hSGP_* flags to control behaviorh]hSGP_* flags to control behavior}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMY hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMY 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 }(hjhhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh & }(hjhhhNhNubj)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK. If a folio is present, it is returned locked with an increased refcount.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMZ 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().}(hjhhhNhNubah}(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 }(hj3hhhNhNubj)}(h**sgp**h]hsgp}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh:}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMe hj/ubj)}(hhh]j.L)}(hhh](j+)}(h7for SGP_READ, ***foliop** is ``NULL`` and 0 is returnedh]jM)}(hj\h](hfor SGP_READ, }(hj^hhhNhNubj)}(h ***foliop**h]h*foliop}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh is }(hj^hhhNhNubjS)}(h``NULL``h]hNULL}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ubh and 0 is returned}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMb hjZubah}(h]h ]h"]h$]h&]uh1j+hjWubj+)}(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.chMc hjubah}(h]h ]h"]h$]h&]uh1j+hjWubj+)}(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.chMd hjubah}(h]h ]h"]h$]h&]uh1j+hjWubeh}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjhMb hjTubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjShMe hj,ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(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:123: ./mm/shmem.chMg hjubjM)}(h May sleep.h]h May sleep.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMh 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:123: ./mm/shmem.chMj hjubjM)}(h,0 if successful, else a negative error code.h]h,0 if successful, else a negative error code.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMi hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$shmem_kernel_file_setup (C function)c.shmem_kernel_file_setuphNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj4hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnameh]hname}(hjAhhhNhNubah}(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&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]jc.shmem_kernel_file_setupasbuh1hhjVubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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 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)}(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.}(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&]uh1j3hjxhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hj<h]hconst char *name}(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)}(h0name for dentry (to be seen in /proc//maps)h]h0name for dentry (to be seen in /proc//maps)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubj)}(h,``loff_t size`` size to be set for the file h](j)}(h``loff_t size``h]jS)}(hjuh]h loff_t size}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjsubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjoubj)}(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&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhj3ubj)}(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&]uh1jhjhMhj3ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_file_setup (C function)c.shmem_file_setuphNtauh1hhj hhhNhNubh)}(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}(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}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj)modnameN classnameNjpjs)}jv]jy)}jlshmem_file_setupsbc.shmem_file_setupasbuh1hhjhhhjhMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjVhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hshmem_file_setuph]j)}(hjEh]hshmem_file_setup}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hcharh]hchar}(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)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjzubj )}(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]jCc.shmem_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 hjzubj )}(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 reftargetj,modnameN classnameNjpjs)}jv]jCc.shmem_file_setupasbuh1hhj#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 hjzubeh}(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.chMhj}hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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&]uh1jhjhMhjubj)}(h[``vma_flags_t flags`` VMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh](j)}(h``vma_flags_t flags``h]jS)}(hj3h]hvma_flags_t flags}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj1ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj-ubj)}(hhh]jM)}(hEVMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh]hEVMA_NORESERVE_BIT suppresses pre-accounting of the entire object size}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&shmem_file_setup_with_mnt (C function)c.shmem_file_setup_with_mnthNtauh1hhj hhhNhNubh)}(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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(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_mntasbuh1hhjhhhjhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM ubh)}(hshmem_file_setup_with_mnth]j)}(hjh]hshmem_file_setup_with_mnt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(hH(struct vfsmount *mnt, const char *name, loff_t size, vma_flags_t flags)h](j )}(hstruct vfsmount *mnth](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvfsmounth]hvfsmount}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj'modnameN classnameNjpjs)}jv]jc.shmem_file_setup_with_mntasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjQhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmnth]hmnt}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hconst char *nameh](j5)}(hjh]hconst}(hjwhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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_file_setup_with_mntasbuh1hhjubj)}(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 )}(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 reftargetj!modnameN classnameNjpjs)}jv]jc.shmem_file_setup_with_mntasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hjKhhhNhNubah}(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$get an unlinked file living in tmpfsh]h$get an unlinked file living in tmpfs}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjrhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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.chM hjubj)}(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.chM hjubj)}(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&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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.chM hjubj)}(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&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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&]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)}(hsize to be set for the fileh]hsize to be set for the file}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hM hj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hM hjubj)}(h[``vma_flags_t flags`` VMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh](j)}(h``vma_flags_t flags``h]jS)}(hjah]hvma_flags_t flags}(hjchhhNhNubah}(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)}(hEVMA_NORESERVE_BIT suppresses pre-accounting of the entire object sizeh]hEVMA_NORESERVE_BIT suppresses pre-accounting of the entire object size}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_zero_setup (C function)c.shmem_zero_setuphNtauh1hhj hhhNhNubh)}(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.chM%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM%ubh)}(hshmem_zero_setuph]j)}(hshmem_zero_setuph]hshmem_zero_setup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM%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 }(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.shmem_zero_setupasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjQhhhNhNubah}(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 setup a shared anonymous mappingh]h setup a shared anonymous mapping}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM%hjxhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM%ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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.chM)hjubj)}(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.chM&hjubj)}(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&]uh1jLhjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(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.chM(hjubjM)}(h0 on success, or errorh]h0 on success, or error}(hj hhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"shmem_zero_setup_desc (C function)c.shmem_zero_setup_deschNtauh1hhj hhhNhNubh)}(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&]uh1jhj8hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM9ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjJhM9ubh)}(hshmem_zero_setup_desch]j)}(hshmem_zero_setup_desch]hshmem_zero_setup_desc}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1hhj8hhhjJhM9ubj )}(h(struct vm_area_desc *desc)h]j )}(hstruct vm_area_desc *desch](j5)}(hj8h]hstruct}(hjyhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(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)}jlj_sbc.shmem_zero_setup_descasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjuubj)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjqubah}(h]h ]h"]h$]h&]jjuh1j hj8hhhjJhM9ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj4hhhjJhM9ubah}(h]j/ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjJhM9hj1hhubj4)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM9hjhhubah}(h]h ]h"]h$]h&]uh1j3hj1hhhjJhM9ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(ha**Parameters** ``struct vm_area_desc *desc`` Describes VMA **Return** 0 on success, or errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(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 vm_area_desc *desc`` Describes VMA h](j)}(h``struct vm_area_desc *desc``h]jS)}(hj=h]hstruct vm_area_desc *desc}(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.chM;hj7ubj)}(hhh]jM)}(h Describes VMAh]h Describes VMA}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjRhM;hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhM;hj4ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjxh]hReturn}(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)}(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.chM<hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!shmem_read_folio_gfp (C function)c.shmem_read_folio_gfphNtauh1hhj hhhNhNubh)}(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.chMLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMLubh)}(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_gfpasbuh1hhjhhhjhMLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMLubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMLubh)}(hshmem_read_folio_gfph]j)}(hjh]hshmem_read_folio_gfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMLubj )}(h9(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj7hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWmodnameN classnameNjpjs)}jv]jc.shmem_read_folio_gfpasbuh1hhj3ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj3ubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(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]jc.shmem_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 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]jc.shmem_read_folio_gfpasbuh1hhjubj)}(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 hj/ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMLubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMLubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMLhjhhubj4)}(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)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMPhjdubj)}(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.chMMhjubj)}(hhh]jM)}(hthe folio's address_spaceh]hthe folio’s address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubj)}(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.chMNhjubj)}(hhh]jM)}(hthe folio indexh]hthe folio index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubj)}(h<``gfp_t gfp`` the page allocator flags to use if allocating 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&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMOhjubj)}(hhh]jM)}(h-the page allocator flags to use if allocatingh]h-the page allocator flags to use if allocating}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubeh}(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&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMQhjdubjM)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMPhjdubjM)}(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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMVhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$migrate_vma_split_folio (C function)c.migrate_vma_split_foliohNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.migrate_vma_split_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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *fault_pageh](j5)}(hj8h]hstruct}(hj9hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j)}(hpageh]hpage}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYmodnameN classnameNjpjs)}jv]jc.migrate_vma_split_folioasbuh1hhj5ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5ubj)}(h fault_pageh]h fault_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKLubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKLubah}(h]j}ah ](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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hjh]hstruct folio *folio}(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.chKMhjubj)}(hhh]jM)}(hthe folio to splith]hthe folio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubj)}(hI``struct page *fault_page`` struct page associated with the fault if any h](j)}(h``struct page *fault_page``h]jS)}(hj4h]hstruct page *fault_page}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chKNhj.ubj)}(hhh]jM)}(h,struct page associated with the fault if anyh]h,struct page associated with the fault if any}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhKNhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhKNhjubeh}(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&]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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmigrate_vma_setup (C function)c.migrate_vma_setuphNtauh1hhj hhhNhNubh)}(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}(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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.migrate_vma_setupasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj=hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hargsh]hargs}(hjJhhhNhNubah}(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$prepare to migrate a range of memoryh]h$prepare to migrate a range of memory}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjqhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjh]hReturn}(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)}(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.}(hjhhhNhNubah}(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)}(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)}(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.}(hj-hhhNhNubah}(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.}(hjKhhhNhNubah}(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.}(hjZhhhNhNubah}(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.}(hjihhhNhNubah}(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.}(hjxhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h-migrate_vma_insert_huge_pmd_page (C function)"c.migrate_vma_insert_huge_pmd_pagehNtauh1hhj hhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h migrate_vma_insert_huge_pmd_pageh]j)}(h migrate_vma_insert_huge_pmd_pageh]h migrate_vma_insert_huge_pmd_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h migrate_vmah]h migrate_vma}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj1modnameN classnameNjpjs)}jv]jy)}jljsb"c.migrate_vma_insert_huge_pmd_pageasbuh1hhj 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)}(hmigrateh]hmigrate}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(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 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]jK"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)}(hpageh]hpage}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hunsigned long *srch](j)}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjRhhhNhNubah}(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@ubjF )}(hjI h]h*}(hj|hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj@ubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(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]jK"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 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)}(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 }(hjhhhNhNubj)}(h**migrate->vma->vm_mm**h]hmigrate->vma->vm_mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh at }(hjhhhNhNubj)}(h**addr**h]haddr}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhP. folio is already allocated as a part of the migration process with large page.}(hjhhhNhNubeh}(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&]jFjAjGjDjHjDjIjJjKuh1hhhhj hNhNubj)}(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)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM hjHubj)}(hhh](j)}(h6``struct migrate_vma *migrate`` migrate_vma arguments h](j)}(h``struct migrate_vma *migrate``h]jS)}(hjmh]hstruct migrate_vma *migrate}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjkubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM hjgubj)}(hhh]jM)}(hmigrate_vma argumentsh]hmigrate_vma arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhM hjdubj)}(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&]uh1jhjhMhjdubj)}(h6``struct page *page`` page to be inserted at **addr** h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(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)}(hpage to be inserted at **addr**h](hpage to be inserted at }(hjhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjdubj)}(h7``unsigned long *src`` src pfn which is being migrated h](j)}(h``unsigned long *src``h]jS)}(hj&h]hunsigned long *src}(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.chMhj ubj)}(hhh]jM)}(hsrc pfn which is being migratedh]hsrc pfn which is being migrated}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjdubj)}(h#``pmd_t *pmdp`` pointer to the pmd h](j)}(h``pmd_t *pmdp``h]jS)}(hj_h]h pmd_t *pmdp}(hjahhhNhNubah}(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.chMhjYubj)}(hhh]jM)}(hpointer to the pmdh]hpointer to the pmd}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjdubeh}(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&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjHubjM)}(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.chMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!migrate_device_pages (C function)c.migrate_device_pageshNtauh1hhj hhhNhNubh)}(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}(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_device_pagesh]j)}(hmigrate_device_pagesh]hmigrate_device_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hH(unsigned long *src_pfns, unsigned long *dst_pfns, unsigned long npages)h](j )}(hunsigned long *src_pfnsh](j)}(hunsignedh]hunsigned}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hlongh]hlong}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjF )}(hjI h]h*}(hjbhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj&ubj)}(hsrc_pfnsh]hsrc_pfns}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj"ubj )}(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 hj"ubj )}(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 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+migrate meta-data from src page to dst pageh]h+migrate meta-data from src page to dst page}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjEhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj`jHj`jIjJjKuh1hhhhj hNhNubj)}(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)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjdubj)}(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)}(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 in the rangeh]hnumber of pages in the range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjdubjM)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmigrate_vma_pages (C function)c.migrate_vma_pageshNtauh1hhj hhhNhNubh)}(hhh](h)}(h4void migrate_vma_pages (struct migrate_vma *migrate)h]h)}(h3void migrate_vma_pages(struct migrate_vma *migrate)h](j)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhMubh)}(hmigrate_vma_pagesh]j)}(hmigrate_vma_pagesh]hmigrate_vma_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjwhhhjhMubj )}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmigrateh]hmigrate}(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+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.chMhj8hhubah}(h]h ]h"]h$]h&]uh1j3hjphhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjSjHjSjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMhjWubj)}(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&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjvubj)}(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&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubah}(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&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjWubjM)}(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.chMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!migrate_vma_finalize (C function)c.migrate_vma_finalizehNtauh1hhj hhhNhNubh)}(hhh](h)}(h7void migrate_vma_finalize (struct migrate_vma *migrate)h]h)}(h6void migrate_vma_finalize(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.chM;ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM;ubh)}(hmigrate_vma_finalizeh]j)}(hmigrate_vma_finalizeh]hmigrate_vma_finalize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hM;ubj )}(h(struct migrate_vma *migrate)h]j )}(hstruct migrate_vma *migrateh](j5)}(hj8h]hstruct}(hj9hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j)}(h migrate_vmah]h migrate_vma}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYmodnameN classnameNjpjs)}jv]jy)}jljsbc.migrate_vma_finalizeasbuh1hhj5ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5ubj)}(hmigrateh]hmigrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubah}(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)}(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&]uh1j3hjhhhj hM;ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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}(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)}(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.chM<hjubj)}(hhh]jM)}(h3migrate struct containing all migration informationh]h3migrate struct containing all migration information}(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)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(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.}(hjNhhhNhNubah}(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.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!migrate_device_range (C function)c.migrate_device_rangehNtauh1hhj hhhNhNubh)}(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}(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 starth](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)}(hstarth]hstart}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long npagesh](j)}(hunsignedh]hunsigned}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hnpagesh]hnpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMahjubj)}(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)}(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.chM^hjubj)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hM^hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM^hjubj)}(h>``unsigned long start`` starting pfn in the range to migrate. h](j)}(h``unsigned long start``h]jS)}(hjTh]hunsigned long start}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjRubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM_hjNubj)}(hhh]jM)}(h%starting pfn in the range to migrate.h]h%starting pfn in the range to migrate.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjihM_hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM_hjubj)}(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`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&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMbhjubjM)}(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.chMahjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMehjubjM)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMihjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h migrate_device_pfns (C function)c.migrate_device_pfnshNtauh1hhj hhhNhNubh)}(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}(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'hhhj9hMubh)}(hmigrate_device_pfnsh]j)}(hmigrate_device_pfnsh]hmigrate_device_pfns}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1hhj'hhhj9hMubj )}(h/(unsigned long *src_pfns, unsigned long npages)h](j )}(hunsigned long *src_pfnsh](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&]uh1jhjdubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjdubj)}(hsrc_pfnsh]hsrc_pfns}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubj )}(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 hj`ubeh}(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-migrate device private pfns to normal memory.h]h-migrate device private pfns to normal memory.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhj%hhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj9hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj@jHj@jIjJjKuh1hhhhj hNhNubj)}(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)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjDubj)}(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)}(hjih]hunsigned long *src_pfns}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjcubj)}(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&]uh1jLhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj`ubj)}(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&]uh1jhjhMhj`ubeh}(h]h ]h"]h$]h&]uh1jhjDubjM)}(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.chMhjDubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubj^)}(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)}hj sbah}(h]h ]h"]h$]h&]jjuh1j^hj hhhhhK}ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwp_walk (C struct) c.wp_walkhNtauh1hhj hhhNhNubh)}(hhh](h)}(hwp_walkh]h)}(hstruct wp_walkh](j5)}(hj8h]hstruct}(hj0hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj,hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj=hKubh)}(hwp_walkh]j)}(hj*h]hwp_walk}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(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+Private struct for pagetable walk callbacksh]h+Private struct for pagetable walk callbacks}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK hjohhubah}(h]h ]h"]h$]h&]uh1j3hj%hhhj=hKubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hjh]hrange}(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)}(hRange for mmu notifiersh]hRange for mmu notifiers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubj)}(h1``tlbflush_start`` Address of first modified pte h](j)}(h``tlbflush_start``h]jS)}(hjh]htlbflush_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.chKhjubj)}(hhh]jM)}(hAddress of first modified pteh]hAddress of first modified pte}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj-hKhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hKhjubj)}(h2``tlbflush_end`` Address of last modified pte + 1 h](j)}(h``tlbflush_end``h]jS)}(hjQh]h tlbflush_end}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjOubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjKubj)}(hhh]jM)}(h Address of last modified pte + 1h]h Address of last modified pte + 1}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfhKhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhKhjubj)}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwp_pte (C function)c.wp_ptehNtauh1hhj hhhNhNubh)}(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}(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&]uh1jhjhhhjhKubh)}(hwp_pteh]j)}(hwp_pteh]hwp_pte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubj )}(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}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj&modnameN classnameNjpjs)}jv]jy)}jljsbc.wp_pteasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjRhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpteh]hpte}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long endh](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)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mm_walk *walkh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hmm_walkh]hmm_walk}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj:modnameN classnameNjpjs)}jv]j@c.wp_pteasbuh1hhjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjdhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hwalkh]hwalk}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(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)}(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&]uh1j3hjhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h?``unsigned long addr`` The start of protecting virtual 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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]jM)}(h'The start of protecting virtual addressh]h'The start of protecting virtual address}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj*hKhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjubj)}(h<``unsigned long end`` The end of protecting virtual address h](j)}(h``unsigned long end``h]jS)}(hjNh]hunsigned long end}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjHubj)}(hhh]jM)}(h%The end of protecting virtual addressh]h%The end of protecting virtual address}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjchKhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchKhjubj)}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclean_walk (C struct) c.clean_walkhNtauh1hhj hhhNhNubh)}(hhh](h)}(h clean_walkh]h)}(hstruct clean_walkh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK$ubh)}(h clean_walkh]j)}(hjh]h clean_walk}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhK$ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhK$ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhK$hjhhubj4)}(hhh]jM)}(h1Private struct for the clean_record_pte function.h]h1Private struct for the clean_record_pte function.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK7hjFhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhK$ubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGjajHjajIjJjKuh1hhhhj hNhNubj)}(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}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh:}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK;hjeubj()}(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=hjeubjM)}(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.chKEhjeubj)}(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&]uh1jLhjhK9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK9hjubj)}(hJ``bitmap_pgoff`` Address_space Page offset of the first bit in **bitmap** h](j)}(h``bitmap_pgoff``h]jS)}(hjh]h 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.chK:hjubj)}(hhh]jM)}(h8Address_space Page offset of the first bit in **bitmap**h](h.Address_space Page offset of the first bit in }(hjhhhNhNubj)}(h **bitmap**h]hbitmap}(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:hjubj)}(hX``bitmap`` Bitmap with one bit for each page offset in the address_space range covered. h](j)}(h ``bitmap``h]jS)}(hj6h]hbitmap}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjjubj)}(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&]uh1jhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclean_record_pte (C function)c.clean_record_ptehNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKLubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj-hKLubh)}(hclean_record_pteh]j)}(hclean_record_pteh]hclean_record_pte}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj-hKLubj )}(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}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjamodnameN classnameNjpjs)}jv]jy)}jljBsbc.clean_record_pteasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjXubj)}(hpteh]hpte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubj )}(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 hjTubj )}(hunsigned long 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 }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendh]hend}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubj )}(hstruct mm_walk *walkh](j5)}(hj8h]hstruct}(hjUhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j)}(hmm_walkh]hmm_walk}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjumodnameN classnameNjpjs)}jv]j{c.clean_record_pteasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjQubj)}(hwalkh]hwalk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj-hKLubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj-hKLubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj-hKLhjhhubj4)}(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&]uh1j3hjhhhj-hKLubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chKPhjubj)}(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.chKNhjubj)}(hhh]jM)}(hPointer to the pteh]hPointer to the pte}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,hKNhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hKNhjubj)}(h@``unsigned long addr`` The start of virtual address to be clean h](j)}(h``unsigned long addr``h]jS)}(hjPh]hunsigned long addr}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKOhjJubj)}(hhh]jM)}(h(The start of virtual address to be cleanh]h(The start of virtual address to be clean}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehKOhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehKOhjubj)}(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&]uh1jhjhKPhjubj)}(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&]uh1jhjhKQhjubeh}(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.chKShjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$wp_shared_mapping_range (C function)c.wp_shared_mapping_rangehNtauh1hhj hhhNhNubh)}(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}(hjBhhhNhNubah}(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 }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhjPhKubj)}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhjPhKubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhjPhKubh)}(hwp_shared_mapping_rangeh]j)}(hwp_shared_mapping_rangeh]hwp_shared_mapping_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj>hhhjPhKubj )}(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 }(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 )}(hpgoff_t first_indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.wp_shared_mapping_rangeasbuh1hhj ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h first_indexh]h first_index}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t nrh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjZmodnameN classnameNjpjs)}jv]jc.wp_shared_mapping_rangeasbuh1hhjQubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj>hhhjPhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj:hhhjPhKubah}(h]j5ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjPhKhj7hhubj4)}(hhh]jM)}(h0Write-protect all ptes in an address space rangeh]h0Write-protect 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.chKhjhhubah}(h]h ]h"]h$]h&]uh1j3hj7hhhjPhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(hM``struct address_space *mapping`` The address_space we want to write protect 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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]jM)}(h*The address_space we want to write protecth]h*The address_space we want to write protect}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h;``pgoff_t first_index`` The first page offset in the range h](j)}(h``pgoff_t first_index``h]jS)}(hj(h]hpgoff_t first_index}(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"The first page offset in the rangeh]h"The first page offset in the range}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hKhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhjubj)}(h;``pgoff_t nr`` Number of incremental page offsets to cover h](j)}(h``pgoff_t nr``h]jS)}(hjah]h pgoff_t nr}(hjchhhNhNubah}(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}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvhKhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Note**h]j)}(hjh]hNote}(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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubjM)}(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.chMhjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.clean_record_shared_mapping_range (C function)#c.clean_record_shared_mapping_rangehNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hlongh]hlong}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h!clean_record_shared_mapping_rangeh]j)}(h!clean_record_shared_mapping_rangeh]h!clean_record_shared_mapping_range}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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}(hjahhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj]ubj)}(h h]h }(hjnhhhNhNubah}(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]jy)}jljGsb#c.clean_record_shared_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 hjYubj )}(hpgoff_t first_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.clean_record_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h first_indexh]h first_index}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(h pgoff_t nrh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]j#c.clean_record_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnrh]hnr}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(hpgoff_t bitmap_pgoffh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjhmodnameN classnameNjpjs)}jv]j#c.clean_record_shared_mapping_rangeasbuh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h bitmap_pgoffh]h bitmap_pgoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(hunsigned long *bitmaph](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)}(hbitmaph]hbitmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(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 reftargetjmodnameN classnameNjpjs)}jv]j#c.clean_record_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hstarth]hstart}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(h pgoff_t *endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjcmodnameN classnameNjpjs)}jv]j#c.clean_record_shared_mapping_rangeasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjZubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubeh}(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)}(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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMhjubj)}(hhh](j)}(hE``struct address_space *mapping`` The address_space we want to clean 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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjubj)}(hhh]jM)}(h"The address_space we want to cleanh]h"The address_space we want to clean}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h;``pgoff_t first_index`` The first page offset in the range h](j)}(h``pgoff_t first_index``h]jS)}(hj>h]hpgoff_t first_index}(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.chMhj8ubj)}(hhh]jM)}(h"The first page offset in the rangeh]h"The first page offset in the range}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubj)}(h;``pgoff_t nr`` Number of incremental page offsets to cover h](j)}(h``pgoff_t nr``h]jS)}(hjwh]h pgoff_t nr}(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.chMhjqubj)}(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&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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 }(hjhhhNhNubj)}(h **bitmap**h]hbitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(hjh]hunsigned long *bitmap}(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)}(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 }(hjhhhNhNubj)}(h**nr**h]hnr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh1 bits. The bitmap needs to cover the whole range }(hjhhhNhNubj)}(h**first_index**h]h first_index}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh..**first_index** + }(hjhhhNhNubj)}(h**nr**h]hnr}(hj<hhhNhNubah}(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.chMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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)}(hjgh]hpgoff_t *start}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjaubj)}(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.chMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjubj)}(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 }(hjhhhNhNubj)}(h **bitmap**h]hbitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhF. none set. The value 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.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)}(hj h]h Description}(hj hhhNhNubah}(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.chM#hjubjM)}(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:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM"hjubj.L)}(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.}(hj- hhhNhNubah}(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&]uh1j+hj& ubj+)}(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.}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM(hjB ubah}(h]h ]h"]h$]h&]uh1j+hj& ubeh}(h]h ]h"]h$]h&]jPLjI uh1j-Lhj; hM&hjubjM)}(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.}(hja hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM+hjubjM)}(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.}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM1hjubjM)}(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.chM6hjubjM)}(h*The number of dirty ptes actually cleaned.h]h*The number of dirty ptes actually cleaned.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM7hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubj^)}(h2#kernel-doc:: mm/memory-failure.c (build warnings)h]h2#kernel-doc:: mm/memory-failure.c (build warnings)}hj sbah}(h]h ]h"]h$]h&]jjuh1j^hj hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_addr_in_chunk (C function)c.pcpu_addr_in_chunkhNtauh1hhj hhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hKubh)}(hpcpu_addr_in_chunkh]j)}(hpcpu_addr_in_chunkh]hpcpu_addr_in_chunk}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj hKubj )}(h&(struct pcpu_chunk *chunk, void *addr)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 reftargetj0 modnameN classnameNjpjs)}jv]jy)}jlj sbc.pcpu_addr_in_chunkasbuh1hhj 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)}(hchunkh]hchunk}(hji hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(h void *addrh](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*}(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 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.check if the address is served from this chunkh]h.check if the address is served from this chunk}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhj hhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhj hNhNubj)}(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)}(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.chKhj 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.chKhj ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(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``void *addr`` percpu address h](j)}(h``void *addr``h]jS)}(hjO h]h void *addr}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjM ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhjI ubj)}(hhh]jM)}(hpercpu addressh]hpercpu address}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjd hKhje ubah}(h]h ]h"]h$]h&]uh1jhjI ubeh}(h]h ]h"]h$]h&]uh1jhjd hKhj 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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhj ubjM)}(h.True if the address is served from this chunk.h]h.True if the address is served from this chunk.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"pcpu_check_block_hint (C function)c.pcpu_check_block_hinthNtauh1hhj hhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM4ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hM4ubh)}(hpcpu_check_block_hinth]j)}(hpcpu_check_block_hinth]hpcpu_check_block_hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj hM4ubj )}(h5(struct pcpu_block_md *block, int bits, size_t align)h](j )}(hstruct pcpu_block_md *blockh](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_block_mdh]h pcpu_block_md}(hj) hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj& ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj+ modnameN classnameNjpjs)}jv]jy)}jlj sbc.pcpu_check_block_hintasbuh1hhj ubj)}(h h]h }(hjI hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjW hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hblockh]hblock}(hjd hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hint bitsh](j)}(hinth]hint}(hj} hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy ubj)}(hbitsh]hbits}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(h size_t alignh](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]jE c.pcpu_check_block_hintasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(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 ubeh}(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)}(hcheck against the contig hinth]hcheck against the contig hint}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM4hj hhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj hM4ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj# jHj# jIjJjKuh1hhhhj hNhNubj)}(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)}(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.chM8hj' ubj)}(hhh](j)}(h2``struct pcpu_block_md *block`` block of interest h](j)}(h``struct pcpu_block_md *block``h]jS)}(hjL h]hstruct pcpu_block_md *block}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJ ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM5hjF ubj)}(hhh]jM)}(hblock of interesth]hblock of interest}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhja hM5hjb ubah}(h]h ]h"]h$]h&]uh1jhjF ubeh}(h]h ]h"]h$]h&]uh1jhja hM5hjC ubj)}(h ``int bits`` size of allocation 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.chM6hj ubj)}(hhh]jM)}(hsize of allocationh]hsize of allocation}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM6hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM6hjC ubj)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]jS)}(hj h]h size_t align}(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.chM7hj ubj)}(hhh]jM)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM7hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM7hjC 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.chM9hj' ubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM8hj' ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%pcpu_next_md_free_region (C function)c.pcpu_next_md_free_regionhNtauh1hhj hhhNhNubh)}(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}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMcubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjLhMcubh)}(hpcpu_next_md_free_regionh]j)}(hpcpu_next_md_free_regionh]hpcpu_next_md_free_region}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhjLhMcubj )}(h3(struct pcpu_chunk *chunk, int *bit_off, int *bits)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hj{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(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)}jljasbc.pcpu_next_md_free_regionasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwubj)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(h int *bit_offh](j)}(hinth]hint}(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)}(hbit_offh]hbit_off}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(h int *bitsh](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*}(hjKhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj+ubj)}(hbitsh]hbits}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubeh}(h]h ]h"]h$]h&]jjuh1j hj:hhhjLhMcubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6hhhjLhMcubah}(h]j1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjLhMchj3hhubj4)}(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&]uh1j3hj3hhhjLhMcubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMehjubj)}(hhh]jM)}(h chunk offseth]h chunk offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjubj)}(h ``int *bits`` size of free area h](j)}(h ``int *bits``h]jS)}(hj5h]h int *bits}(hj7hhhNhNubah}(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.chMfhj/ubj)}(hhh]jM)}(hsize of free areah]hsize of free area}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhMfhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMfhjubeh}(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&]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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!pcpu_next_fit_region (C function)c.pcpu_next_fit_regionhNtauh1hhj hhhNhNubh)}(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}(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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.pcpu_next_fit_regionasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj>hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hchunkh]hchunk}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint alloc_bitsh](j)}(hinth]hint}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h alloc_bitsh]h alloc_bits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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 hjubj )}(h int *bit_offh](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)}(hbit_offh]hbit_off}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int *bitsh](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)}(hbitsh]hbits}(hj9hhhNhNubah}(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.finds fit areas for a given allocation requesth]h.finds fit areas for a given allocation request}(hjchhhNhNubah}(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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj{jHj{jIjJjKuh1hhhhj hNhNubj)}(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}(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 allocationh]hsize of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``int align`` alignment of area (max PAGE_SIZE) h](j)}(h ``int align``h]jS)}(hjh]h int 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.chMhjubj)}(hhh]jM)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_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``int *bit_off`` chunk offset h](j)}(h``int *bit_off``h]jS)}(hjOh]h int *bit_off}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjIubj)}(hhh]jM)}(h chunk offseth]h chunk offset}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjubj)}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_mem_zalloc (C function)c.pcpu_mem_zallochNtauh1hhj hhhNhNubh)}(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}(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&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hj%hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hpcpu_mem_zalloch]j)}(hpcpu_mem_zalloch]hpcpu_mem_zalloc}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(size_t size, gfp_t gfp)h](j )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWmodnameN classnameNjpjs)}jv]jy)}jlj8sbc.pcpu_mem_zallocasbuh1hhjNubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubj )}(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]jqc.pcpu_mem_zallocasbuh1hhjubj)}(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 hjJubeh}(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)}(hallocate memoryh]hallocate memory}(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&]jFjAjGj jHj jIjJjKuh1hhhhj hNhNubj)}(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)}(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"``size_t size`` bytes to allocate h](j)}(h``size_t size``h]jS)}(hj6h]h size_t size}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj0ubj)}(hhh]jM)}(hbytes to allocateh]hbytes to allocate}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj-ubj)}(h``gfp_t gfp`` allocation flags h](j)}(h ``gfp_t gfp``h]jS)}(hjoh]h gfp_t gfp}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjmubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjiubj)}(hhh]jM)}(hallocation flagsh]hallocation flags}(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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubjM)}(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}(hjhhhNhNubah}(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.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:128: ./mm/percpu.chMhjubjM)}(h:Pointer to the allocated area on success, NULL on failure.h]h:Pointer to the allocated area on success, NULL on failure.}(hj hhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_mem_free (C function)c.pcpu_mem_freehNtauh1hhj hhhNhNubh)}(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&]uh1jhj6hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhjHhMubh)}(h pcpu_mem_freeh]j)}(h pcpu_mem_freeh]h pcpu_mem_free}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1hhj6hhhjHhMubj )}(h (void *ptr)h]j )}(h void *ptrh](j)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsubj)}(hptrh]hptr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubah}(h]h ]h"]h$]h&]jjuh1j hj6hhhjHhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj2hhhjHhMubah}(h]j-ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjHhMhj/hhubj4)}(hhh]jM)}(h free memoryh]h free memory}(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&]uh1j3hj/hhhjHhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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``void *ptr`` memory to free h](j)}(h ``void *ptr``h]jS)}(hj h]h void *ptr}(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.chMhjubj)}(hhh]jM)}(hmemory to freeh]hmemory to free}(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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubjM)}(hJFree **ptr**. **ptr** should have been allocated using pcpu_mem_zalloc().h](hFree }(hj\hhhNhNubj)}(h**ptr**h]hptr}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh. }(hj\hhhNhNubj)}(h**ptr**h]hptr}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh4 should have been allocated using pcpu_mem_zalloc().}(hj\hhhNhNubeh}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h pcpu_chunk_relocate (C function)c.pcpu_chunk_relocatehNtauh1hhj hhhNhNubh)}(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&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h%(struct pcpu_chunk *chunk, int oslot)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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljsbc.pcpu_chunk_relocateasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hchunkh]hchunk}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int osloth](j)}(hinth]hint}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hosloth]hoslot}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(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'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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chM#hjubj)}(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.chM hjubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h*``int oslot`` the previous slot it was on h](j)}(h ``int oslot``h]jS)}(hjh]h int oslot}(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.chM!hjubj)}(hhh]jM)}(hthe previous slot it was onh]hthe previous slot it was on}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3hM!hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hM!hjubeh}(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:128: ./mm/percpu.chM#hjubjM)}(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](hhhhjThMubah}(h]j9ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjThMhj;hhubj4)}(hhh]jM)}(hupdates metadata about a chunkh]hupdates metadata about a chunk}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj7hhubah}(h]h ]h"]h$]h&]uh1j3hj;hhhjThMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjRjHjRjIjJjKuh1hhhhj hNhNubj)}(hX**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``bool full_scan`` if we should scan from the beginning **Description** Iterates over the metadata blocks to find the largest contig area. A full scan can be avoided on the allocation path as this is triggered if we broke the contig_hint. In doing so, the scan_hint will be before the contig_hint or after if the scan_hint == contig_hint. This cannot be prevented on freeing as we want to find the largest area possibly spanning blocks.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:128: ./mm/percpu.chMhjVubj)}(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&]uh1jRhjyubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjuubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubj)}(h8``bool full_scan`` if we should scan from the beginning h](j)}(h``bool full_scan``h]jS)}(hjh]hbool full_scan}(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$if we should scan from the beginningh]h$if we should scan from the beginning}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubeh}(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:128: ./mm/percpu.chMhjVubjM)}(hXnIterates over the metadata blocks to find the largest contig area. A full scan can be avoided on the allocation path as this is triggered if we broke the contig_hint. In doing so, the scan_hint will be before the contig_hint or after if the scan_hint == contig_hint. This cannot be prevented on freeing as we want to find the largest area possibly spanning blocks.h]hXnIterates over the metadata blocks to find the largest contig area. A full scan can be avoided on the allocation path as this is triggered if we broke the contig_hint. In doing so, the scan_hint will be before the contig_hint or after if the scan_hint == contig_hint. This cannot be prevented on freeing as we want to find the largest area possibly spanning blocks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$pcpu_block_refresh_hint (C function)c.pcpu_block_refresh_hinthNtauh1hhj hhhNhNubh)}(hhh](h)}(hBvoid pcpu_block_refresh_hint (struct pcpu_chunk *chunk, int index)h]h)}(hAvoid pcpu_block_refresh_hint(struct pcpu_chunk *chunk, int index)h](j)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjBhMubh)}(hpcpu_block_refresh_hinth]j)}(hpcpu_block_refresh_hinth]hpcpu_block_refresh_hint}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1hhj0hhhjBhMubj )}(h%(struct pcpu_chunk *chunk, int index)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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljWsbc.pcpu_block_refresh_hintasbuh1hhjmubj)}(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 int indexh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(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 hjiubeh}(h]h ]h"]h$]h&]jjuh1j hj0hhhjBhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj,hhhjBhMubah}(h]j'ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjBhMhj)hhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hj)hhhjBhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj2jHj2jIjJjKuh1hhhhj hNhNubj)}(h**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int index`` index of the metadata block **Description** Scans over the block beginning at first_free and updates the block metadata accordingly.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.chMhj6ubj)}(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&]uh1jRhjYubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjUubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjRubj)}(h*``int index`` index of the metadata block h](j)}(h ``int index``h]jS)}(hjh]h int index}(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)}(hindex of the metadata blockh]hindex of the metadata block}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjRubeh}(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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj6ubjM)}(hXScans over the block beginning at first_free and updates the block metadata accordingly.h]hXScans over the block beginning at first_free and updates the block metadata accordingly.}(hjhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)pcpu_block_update_hint_alloc (C function)c.pcpu_block_update_hint_allochNtauh1hhj hhhNhNubh)}(hhh](h)}(hSvoid pcpu_block_update_hint_alloc (struct pcpu_chunk *chunk, int bit_off, int bits)h]h)}(hRvoid pcpu_block_update_hint_alloc(struct pcpu_chunk *chunk, int bit_off, int bits)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)}(hpcpu_block_update_hint_alloch]j)}(hpcpu_block_update_hint_alloch]hpcpu_block_update_hint_alloc}(hj5 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1 ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj" hMubj )}(h1(struct pcpu_chunk *chunk, int bit_off, int bits)h](j )}(hstruct pcpu_chunk *chunkh](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 pcpu_chunkh]h pcpu_chunk}(hjo hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjq modnameN classnameNjpjs)}jv]jy)}jlj7 sbc.pcpu_block_update_hint_allocasbuh1hhjM 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)}(hchunkh]hchunk}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjI 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 hjI 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 hjI 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)}(hupdate hint on allocation pathh]hupdate hint on allocation path}(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&]uh1j3hj hhhj" hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjV!jHjV!jIjJjKuh1hhhhj hNhNubj)}(hX_**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int bit_off`` chunk offset ``int bits`` size of request **Description** Updates metadata for the allocation path. The metadata only has to be refreshed by a full scan iff the chunk's contig hint is broken. Block level scans are required if the block's contig hint is broken.h](jM)}(h**Parameters**h]j)}(hj`!h]h Parameters}(hjb!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#hjZ!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 hjy!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&]uh1jhjy!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM hjv!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!hjv!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.chM"hj!ubj)}(hhh]jM)}(hsize of requesth]hsize of request}(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"hjv!ubeh}(h]h ]h"]h$]h&]uh1jhjZ!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$hjZ!ubjM)}(hUpdates metadata for the allocation path. The metadata only has to be refreshed by a full scan iff the chunk's contig hint is broken. Block level scans are required if the block's contig hint is broken.h]hUpdates metadata for the allocation path. The metadata only has to be refreshed by a full scan iff the chunk’s contig hint is broken. Block level scans are required if the block’s contig hint is broken.}(hjB"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM#hjZ!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(pcpu_block_update_hint_free (C function)c.pcpu_block_update_hint_freehNtauh1hhj hhhNhNubh)}(hhh](h)}(hRvoid pcpu_block_update_hint_free (struct pcpu_chunk *chunk, int bit_off, int bits)h]h)}(hQvoid pcpu_block_update_hint_free(struct pcpu_chunk *chunk, int bit_off, int bits)h](j)}(hvoidh]hvoid}(hjq"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm"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&]uh1jhjm"hhhj"hMubh)}(hpcpu_block_update_hint_freeh]j)}(hpcpu_block_update_hint_freeh]hpcpu_block_update_hint_free}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjm"hhhj"hMubj )}(h1(struct pcpu_chunk *chunk, int bit_off, int bits)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_block_update_hint_freeasbuh1hhj"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 )}(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 hj"ubj )}(hint bitsh](j)}(hinth]hint}(hjU#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ#ubj)}(h h]h }(hjc#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ#ubj)}(hbitsh]hbits}(hjq#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj"ubeh}(h]h ]h"]h$]h&]jjuh1j hjm"hhhj"hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hji"hhhj"hMubah}(h]jd"ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj"hMhjf"hhubj4)}(hhh]jM)}(h(updates the block hints on the free pathh]h(updates the block hints on the free path}(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&]uh1j3hjf"hhhj"hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj#jHj#jIjJjKuh1hhhhj hNhNubj)}(hX**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int bit_off`` chunk offset ``int bits`` size of request **Description** Updates 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. A 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](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}(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 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.chMhj$ubj)}(hhh]jM)}(h chunk offseth]h chunk offset}(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 bits`` size of request h](j)}(h ``int bits``h]jS)}(hjN$h]hint bits}(hjP$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjL$ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjH$ubj)}(hhh]jM)}(hsize of requesth]hsize of request}(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&]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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_is_populated (C function)c.pcpu_is_populatedhNtauh1hhj hhhNhNubh)}(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}(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}(hj7%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4%ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj9%modnameN classnameNjpjs)}jv]jy)}jlj$sbc.pcpu_is_populatedasbuh1hhj%ubj)}(h h]h }(hjW%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjF )}(hjI h]h*}(hje%hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj%ubj)}(hchunkh]hchunk}(hjr%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj%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 hj%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 hj%ubj )}(h int *next_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*}(hj&hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj%ubj)}(hnext_offh]hnext_off}(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%determines if the region is populatedh]h%determines if the region is populated}(hjH&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM%hjE&hhubah}(h]h ]h"]h$]h&]uh1j3hj$hhhj$hM%ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj`&jHj`&jIjJjKuh1hhhhj hNhNubj)}(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)}(hjj&h]h Parameters}(hjl&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh&ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM)hjd&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(hj&ubj)}(hhh]jM)}(h size of areah]h size of area}(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``int *next_off`` return value for the next offset to start searching h](j)}(h``int *next_off``h]jS)}(hj4'h]h int *next_off}(hj6'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2'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)}(h3return value for the next offset to start searchingh]h3return value for the next offset to start searching}(hjM'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjI'hM)hjJ'ubah}(h]h ]h"]h$]h&]uh1jhj.'ubeh}(h]h ]h"]h$]h&]uh1jhjI'hM)hj&ubeh}(h]h ]h"]h$]h&]uh1jhjd&ubjM)}(h**Description**h]j)}(hjo'h]h Description}(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.chM+hjd&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*hjd&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,hjd&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-hjd&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h pcpu_find_block_fit (C function)c.pcpu_find_block_fithNtauh1hhj hhhNhNubh)}(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&]uh1jhj'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}(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}(hj6(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj8(modnameN classnameNjpjs)}jv]jy)}jlj'sbc.pcpu_find_block_fitasbuh1hhj(ubj)}(h h]h }(hjV(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjF )}(hjI h]h*}(hjd(hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj(ubj)}(hchunkh]hchunk}(hjq(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(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 hj(ubj )}(h size_t alignh](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]jR(c.pcpu_find_block_fitasbuh1hhj(ubj)}(h h]h }(hj(hhhNhNubah}(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 bool pop_onlyh](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)}(hpop_onlyh]hpop_only}(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'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}(hjL)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMDhjI)hhubah}(h]h ]h"]h$]h&]uh1j3hj'hhhj'hMDubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjd)jHjd)jIjJjKuh1hhhhj hNhNubj)}(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)}(hjn)h]h Parameters}(hjp)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl)ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMHhjh)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.chMEhj)ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)hMEhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMEhj)ubj)}(h7``int alloc_bits`` size of request in allocation units h](j)}(h``int alloc_bits``h]jS)}(hj)h]hint alloc_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.chMFhj)ubj)}(hhh]jM)}(h#size of request in allocation unitsh]h#size of request in allocation units}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)hMFhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMFhj)ubj)}(h9``size_t align`` alignment of area (max PAGE_SIZE bytes) h](j)}(h``size_t align``h]jS)}(hj)h]h size_t align}(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.chMGhj)ubj)}(hhh]jM)}(h'alignment of area (max PAGE_SIZE bytes)h]h'alignment of area (max PAGE_SIZE bytes)}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj*hMGhj*ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj*hMGhj)ubj)}(h-``bool pop_only`` use populated regions only h](j)}(h``bool pop_only``h]jS)}(hj8*h]h bool pop_only}(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.chMHhj2*ubj)}(hhh]jM)}(huse populated regions onlyh]huse populated regions only}(hjQ*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjM*hMHhjN*ubah}(h]h ]h"]h$]h&]uh1jhj2*ubeh}(h]h ]h"]h$]h&]uh1jhjM*hMHhj)ubeh}(h]h ]h"]h$]h&]uh1jhjh)ubjM)}(h**Description**h]j)}(hjs*h]h Description}(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.chMJhjh)ubjM)}(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.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMIhjh)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.chMQhjh)ubjM)}(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.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMRhjh)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_alloc_area (C function)c.pcpu_alloc_areahNtauh1hhj hhhNhNubh)}(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*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)}(hpcpu_alloc_areah]j)}(hpcpu_alloc_areah]hpcpu_alloc_area}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj*hhhj*hMubj )}(hC(struct pcpu_chunk *chunk, int alloc_bits, size_t align, int start)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&]uh1jhj7+ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj<+modnameN classnameNjpjs)}jv]jy)}jlj+sbc.pcpu_alloc_areaasbuh1hhj+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)}(hchunkh]hchunk}(hju+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj+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 hj+ubj )}(h size_t alignh](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]jV+c.pcpu_alloc_areaasbuh1hhj+ubj)}(h h]h }(hj+hhhNhNubah}(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 int 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)}(hstarth]hstart}(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#allocates an area from a pcpu_chunkh]h#allocates an area from a pcpu_chunk}(hjQ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjN,hhubah}(h]h ]h"]h$]h&]uh1j3hj*hhhj*hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGji,jHji,jIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMhjm,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}(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)}(h7``int alloc_bits`` size of request in allocation units h](j)}(h``int alloc_bits``h]jS)}(hj,h]hint alloc_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)}(h#size of request in allocation unitsh]h#size of request in allocation units}(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)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]jS)}(hj-h]h size_t align}(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!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(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 start`` bit_off to start searching h](j)}(h ``int start``h]jS)}(hj=-h]h int 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.chMhj7-ubj)}(hhh]jM)}(hbit_off to start searchingh]hbit_off to start searching}(hjV-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjR-hMhjS-ubah}(h]h ]h"]h$]h&]uh1jhj7-ubeh}(h]h ]h"]h$]h&]uh1jhjR-hMhj,ubeh}(h]h ]h"]h$]h&]uh1jhjm,ubjM)}(h**Description**h]j)}(hjx-h]h Description}(hjz-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv-ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjm,ubjM)}(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 }(hj-hhhNhNubj)}(h **start**h]hstart}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh3 offset to begin searching to fit an allocation of }(hj-hhhNhNubj)}(h**alloc_bits**h]h alloc_bits}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh with alignment }(hj-hhhNhNubj)}(h **align**h]halign}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh\. It needs to scan the allocation map because if it fits within the block’s contig hint, }(hj-hhhNhNubj)}(h **start**h]hstart}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh 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.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjm,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.chMhjm,ubjM)}(hOAllocated addr offset in **chunk** on success. -1 if no matching area is found.h](hAllocated addr offset in }(hj-hhhNhNubj)}(h **chunk**h]hchunk}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh- on success. -1 if no matching area is found.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjm,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_free_area (C function)c.pcpu_free_areahNtauh1hhj hhhNhNubh)}(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}(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 }(hjM.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:.hhhjL.hMubh)}(hpcpu_free_areah]j)}(hpcpu_free_areah]hpcpu_free_area}(hj_.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[.ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:.hhhjL.hMubj )}(h#(struct pcpu_chunk *chunk, int off)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hj{.hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjw.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw.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)}jlja.sbc.pcpu_free_areaasbuh1hhjw.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw.ubjF )}(hjI h]h*}(hj.hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjw.ubj)}(hchunkh]hchunk}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw.ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjs.ubj )}(hint 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)}(hoffh]hoff}(hj /hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjs.ubeh}(h]h ]h"]h$]h&]jjuh1j hj:.hhhjL.hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6.hhhjL.hMubah}(h]j1.ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjL.hMhj3.hhubj4)}(hhh]jM)}(hfrees the corresponding offseth]hfrees the corresponding offset}(hj3/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj0/hhubah}(h]h ]h"]h$]h&]uh1j3hj3.hhhjL.hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjK/jHjK/jIjJjKuh1hhhhj hNhNubj)}(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)}(hjU/h]h Parameters}(hjW/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS/ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjO/ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hjt/h]hstruct pcpu_chunk *chunk}(hjv/hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjr/ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjn/ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjn/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjk/ubj)}(h#``int off`` addr offset into chunk h](j)}(h ``int off``h]jS)}(hj/h]hint 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.chMhj/ubj)}(hhh]jM)}(haddr offset into chunkh]haddr offset into chunk}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjk/ubeh}(h]h ]h"]h$]h&]uh1jhjO/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.chMhjO/ubjM)}(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/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjO/ubjM)}(h **Return**h]j)}(hj0h]hReturn}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 0ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjO/ubjM)}(hNumber of freed bytes.h]hNumber of freed bytes.}(hj%0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjO/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_alloc_first_chunk (C function)c.pcpu_alloc_first_chunkhNtauh1hhj hhhNhNubh)}(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}(hjT0hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjP0hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM;ubj)}(h h]h }(hjb0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP0hhhja0hM;ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hjs0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetju0modnameN classnameNjpjs)}jv]jy)}jlpcpu_alloc_first_chunksbc.pcpu_alloc_first_chunkasbuh1hhjP0hhhja0hM;ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP0hhhja0hM;ubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjP0hhhja0hM;ubh)}(hpcpu_alloc_first_chunkh]j)}(hj0h]hpcpu_alloc_first_chunk}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjP0hhhja0hM;ubj )}(h&(unsigned long tmp_addr, int map_size)h](j )}(hunsigned long tmp_addrh](j)}(hunsignedh]hunsigned}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hlongh]hlong}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(htmp_addrh]htmp_addr}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubj )}(h int map_sizeh](j)}(hinth]hint}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj-1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hmap_sizeh]hmap_size}(hj;1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubeh}(h]h ]h"]h$]h&]jjuh1j hjP0hhhja0hM;ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjL0hhhja0hM;ubah}(h]jG0ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhja0hM;hjI0hhubj4)}(hhh]jM)}(h)creates chunks that serve the first chunkh]h)creates chunks that serve the first chunk}(hje1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM;hjb1hhubah}(h]h ]h"]h$]h&]uh1j3hjI0hhhja0hM;ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj}1jHj}1jIjJjKuh1hhhhj hNhNubj)}(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)}(hj1h]h Parameters}(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.chM?hj1ubj)}(hhh](j)}(h:``unsigned long tmp_addr`` the start of the region served h](j)}(h``unsigned long tmp_addr``h]jS)}(hj1h]hunsigned long tmp_addr}(hj1hhhNhNubah}(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.chM<hj1ubj)}(hhh]jM)}(hthe start of the region servedh]hthe start of the region served}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hM<hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM<hj1ubj)}(h+``int map_size`` size of the region served h](j)}(h``int map_size``h]jS)}(hj1h]h int map_size}(hj1hhhNhNubah}(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.chM=hj1ubj)}(hhh]jM)}(hsize of the region servedh]hsize of the region served}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hM=hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM=hj1ubeh}(h]h ]h"]h$]h&]uh1jhj1ubjM)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM?hj1ubjM)}(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 }(hj02hhhNhNubj)}(h **tmp_addr**h]htmp_addr}(hj82hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj02ubh 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.}(hj02hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM>hj1ubjM)}(h **Return**h]j)}(hjS2h]hReturn}(hjU2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ2ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMChj1ubjM)}(h9Chunk serving the region at **tmp_addr** of **map_size**.h](hChunk serving the region at }(hji2hhhNhNubj)}(h **tmp_addr**h]htmp_addr}(hjq2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji2ubh of }(hji2hhhNhNubj)}(h **map_size**h]hmap_size}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji2ubh.}(hji2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMDhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!pcpu_chunk_populated (C function)c.pcpu_chunk_populatedhNtauh1hhj hhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj2hMubh)}(hpcpu_chunk_populatedh]j)}(hpcpu_chunk_populatedh]hpcpu_chunk_populated}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj2hhhj2hMubj )}(h8(struct pcpu_chunk *chunk, int page_start, int page_end)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hj2hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj2ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3modnameN classnameNjpjs)}jv]jy)}jlj2sbc.pcpu_chunk_populatedasbuh1hhj2ubj)}(h h]h }(hj73hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjF )}(hjI h]h*}(hjE3hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2ubj)}(hchunkh]hchunk}(hjR3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2ubj )}(hint page_starth](j)}(hinth]hint}(hjk3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg3ubj)}(h h]h }(hjy3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg3ubj)}(h page_starth]h page_start}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2ubj )}(h int page_endh](j)}(hinth]hint}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hpage_endh]hpage_end}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2ubeh}(h]h ]h"]h$]h&]jjuh1j hj2hhhj2hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj2hhhj2hMubah}(h]j2ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj2hMhj2hhubj4)}(hhh]jM)}(hpost-population bookkeepingh]hpost-population bookkeeping}(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&]uh1j3hj2hhhj2hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj3jHj3jIjJjKuh1hhhhj hNhNubj)}(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)}(hj4h]h Parameters}(hj 4hhhNhNubah}(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.chMhj4ubj)}(hhh](j)}(h<``struct pcpu_chunk *chunk`` pcpu_chunk which got populated h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hj'4h]hstruct pcpu_chunk *chunk}(hj)4hhhNhNubah}(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.chMhj!4ubj)}(hhh]jM)}(hpcpu_chunk which got populatedh]hpcpu_chunk which got populated}(hj@4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj<4hMhj=4ubah}(h]h ]h"]h$]h&]uh1jhj!4ubeh}(h]h ]h"]h$]h&]uh1jhj<4hMhj4ubj)}(h"``int page_start`` the start page h](j)}(h``int page_start``h]jS)}(hj`4h]hint page_start}(hjb4hhhNhNubah}(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.chMhjZ4ubj)}(hhh]jM)}(hthe start pageh]hthe start page}(hjy4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhju4hMhjv4ubah}(h]h ]h"]h$]h&]uh1jhjZ4ubeh}(h]h ]h"]h$]h&]uh1jhju4hMhj4ubj)}(h``int page_end`` the end page h](j)}(h``int page_end``h]jS)}(hj4h]h int page_end}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj4ubj)}(hhh]jM)}(h the end pageh]h the end page}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubjM)}(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.chMhj4ubjM)}(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 [}(hj4hhhNhNubj)}(h**page_start**h]h page_start}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh&,**page_end**) have been populated to }(hj4hhhNhNubj)}(h **chunk**h]hchunk}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhd. Update the bookkeeping information accordingly. Must be called after each successful population.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_chunk_depopulated (C function)c.pcpu_chunk_depopulatedhNtauh1hhj hhhNhNubh)}(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=5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj95hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjL5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj95hhhjK5hMubh)}(hpcpu_chunk_depopulatedh]j)}(hpcpu_chunk_depopulatedh]hpcpu_chunk_depopulated}(hj^5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ5ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj95hhhjK5hMubj )}(h8(struct pcpu_chunk *chunk, int page_start, int page_end)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hjz5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjv5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv5ubh)}(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)}jlj`5sbc.pcpu_chunk_depopulatedasbuh1hhjv5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv5ubjF )}(hjI h]h*}(hj5hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjv5ubj)}(hchunkh]hchunk}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjr5ubj )}(hint page_starth](j)}(hinth]hint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h page_starth]h page_start}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjr5ubj )}(h int page_endh](j)}(hinth]hint}(hj!6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj/6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hpage_endh]hpage_end}(hj=6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjr5ubeh}(h]h ]h"]h$]h&]jjuh1j hj95hhhjK5hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj55hhhjK5hMubah}(h]j05ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjK5hMhj25hhubj4)}(hhh]jM)}(hpost-depopulation bookkeepingh]hpost-depopulation bookkeeping}(hjg6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjd6hhubah}(h]h ]h"]h$]h&]uh1j3hj25hhhjK5hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj6jHj6jIjJjKuh1hhhhj hNhNubj)}(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)}(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`` pcpu_chunk which got depopulated 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)}(h pcpu_chunk which got depopulatedh]h pcpu_chunk which got depopulated}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj6ubj)}(h"``int page_start`` the start page h](j)}(h``int page_start``h]jS)}(hj6h]hint page_start}(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)}(hthe start pageh]hthe start page}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj6ubj)}(h``int page_end`` the end page h](j)}(h``int page_end``h]jS)}(hj7h]h int page_end}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj7ubj)}(hhh]jM)}(h the end pageh]h the end page}(hj37hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/7hMhj07ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj/7hMhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubjM)}(h**Description**h]j)}(hjU7h]h Description}(hjW7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS7ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj6ubjM)}(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 [}(hjk7hhhNhNubj)}(h**page_start**h]h page_start}(hjs7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk7ubh*,**page_end**) have been depopulated from }(hjk7hhhNhNubj)}(h **chunk**h]hchunk}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk7ubhe. Update the bookkeeping information accordingly. Must be called after each successful depopulation.}(hjk7hhhNhNubeh}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_chunk_addr_search (C function)c.pcpu_chunk_addr_searchhNtauh1hhj hhhNhNubh)}(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}(hj7hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj7hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM1ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hM1ubh)}(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_chunk_addr_searchsbc.pcpu_chunk_addr_searchasbuh1hhj7hhhj7hM1ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hM1ubjF )}(hjI h]h*}(hj 8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj7hhhj7hM1ubh)}(hpcpu_chunk_addr_searchh]j)}(hj7h]hpcpu_chunk_addr_search}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj7hhhj7hM1ubj )}(h (void *addr)h]j )}(h void *addrh](j)}(hvoidh]hvoid}(hj88hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj48ubj)}(h h]h }(hjF8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj48ubjF )}(hjI h]h*}(hjT8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj48ubj)}(haddrh]haddr}(hja8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj48ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj08ubah}(h]h ]h"]h$]h&]jjuh1j hj7hhhj7hM1ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj7hhhj7hM1ubah}(h]j7ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj7hM1hj7hhubj4)}(hhh]jM)}(h,determine chunk containing specified addressh]h,determine chunk containing specified address}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM1hj8hhubah}(h]h ]h"]h$]h&]uh1j3hj7hhhj7hM1ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj8jHj8jIjJjKuh1hhhhj hNhNubj)}(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)}(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.chM5hj8ubj)}(hhh]j)}(hC``void *addr`` address for which the chunk needs to be determined. h](j)}(h``void *addr``h]jS)}(hj8h]h void *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.chM2hj8ubj)}(hhh]jM)}(h3address for which the chunk needs to be determined.h]h3address for which the chunk needs to be determined.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hM2hj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hM2hj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubjM)}(h**Description**h]j)}(hj9h]h Description}(hj 9hhhNhNubah}(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.chM4hj8ubjM)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM3hj8ubjM)}(h **Return**h]j)}(hj.9h]hReturn}(hj09hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,9ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM6hj8ubjM)}(hThe address of the found chunk.h]hThe address of the found chunk.}(hjD9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM7hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_alloc (C function) c.pcpu_allochNtauh1hhj hhhNhNubh)}(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}(hjs9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo9hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo9hhhj9hMubh__percpu}(hjo9hhhNhNubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo9hhhj9hMubjF )}(hjI h]h*}(hj9hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjo9hhhj9hMubh)}(h pcpu_alloch]j)}(h pcpu_alloch]h pcpu_alloc}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjo9hhhj9hMubj )}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj9modnameN classnameNjpjs)}jv]jy)}jlj9sb c.pcpu_allocasbuh1hhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hsizeh]hsize}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj9ubj )}(h size_t alignh](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]j9 c.pcpu_allocasbuh1hhj:ubj)}(h h]h }(hj::hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(halignh]halign}(hjH:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj9ubj )}(h bool reservedh](j)}(hj)h]hbool}(hja:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]:ubj)}(h h]h }(hjn:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]:ubj)}(hreservedh]hreserved}(hj|:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj9ubj )}(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]j9 c.pcpu_allocasbuh1hhj: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 hj9ubeh}(h]h ]h"]h$]h&]jjuh1j hjo9hhhj9hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjk9hhhj9hMubah}(h]jf9ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj9hMhjh9hhubj4)}(hhh]jM)}(hthe percpu allocatorh]hthe percpu allocator}(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&]uh1j3hjh9hhhj9hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj;jHj;jIjJjKuh1hhhhj hNhNubj)}(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)}(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)}(h2``size_t size`` size of area to allocate in bytes h](j)}(h``size_t size``h]jS)}(hj/;h]h size_t size}(hj1;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!size of area to allocate in bytesh]h!size of area to allocate in bytes}(hjH;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjD;hMhjE;ubah}(h]h ]h"]h$]h&]uh1jhj);ubeh}(h]h ]h"]h$]h&]uh1jhjD;hMhj&;ubj)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]jS)}(hjh;h]h size_t align}(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)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(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@``bool reserved`` allocate from the reserved chunk if available h](j)}(h``bool reserved``h]jS)}(hj;h]h bool reserved}(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-allocate from the reserved chunk if availableh]h-allocate from the reserved chunk if available}(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 gfp`` allocation 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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj;ubj)}(hhh]jM)}(hallocation flagsh]hallocation flags}(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)}(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 }(hj+<hhhNhNubj)}(h**size**h]hsize}(hj3<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+<ubh bytes aligned at }(hj+<hhhNhNubj)}(h **align**h]halign}(hjE<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+<ubh. If }(hj+<hhhNhNubj)}(h**gfp**h]hgfp}(hjW<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+<ubh doesn’t contain }(hj+<hhhNhNubjS)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hji<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj+<ubh, the allocation is atomic. If }(hj+<hhhNhNubj)}(h**gfp**h]hgfp}(hj{<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+<ubh] has __GFP_NOWARN then no warning will be triggered on invalid or failed allocation requests.}(hj+<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj ;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.chMhj ;ubjM)}(hAPercpu pointer to the allocated area on success, NULL on failure.h]hAPercpu pointer to the allocated area on success, NULL on failure.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_balance_free (C function)c.pcpu_balance_freehNtauh1hhj hhhNhNubh)}(hhh](h)}(h(void pcpu_balance_free (bool empty_only)h]h)}(h'void pcpu_balance_free(bool empty_only)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)}(hpcpu_balance_freeh]j)}(hpcpu_balance_freeh]hpcpu_balance_free}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj<hhhj<hMubj )}(h(bool empty_only)h]j )}(hbool empty_onlyh](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)}(h empty_onlyh]h empty_only}(hj3=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj=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 manage the amount of free chunksh]h manage the amount of free chunks}(hj]=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjZ=hhubah}(h]h ]h"]h$]h&]uh1j3hj<hhhj<hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGju=jHju=jIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMhjy=ubj)}(hhh]j)}(hE``bool empty_only`` free chunks only if there are no populated pages h](j)}(h``bool empty_only``h]jS)}(hj=h]hbool empty_only}(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)}(h0free chunks only if there are no populated pagesh]h0free chunks only if there are no populated pages}(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&]uh1jhjy=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.chMhjy=ubjM)}(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 }(hj=hhhNhNubjS)}(h ``false``h]hfalse}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj=ubh, reclaim all fully free chunks regardless of the number of populated pages. Otherwise, only reclaim chunks that have no populated pages.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjy=ubjM)}(h **Context**h]j)}(hj>h]hContext}(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.chMhjy=ubjM)}(h&pcpu_lock (can be dropped temporarily)h]h&pcpu_lock (can be dropped temporarily)}(hj(>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjy=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_balance_populated (C function)c.pcpu_balance_populatedhNtauh1hhj hhhNhNubh)}(hhh](h)}(h"void pcpu_balance_populated (void)h]h)}(h!void pcpu_balance_populated(void)h](j)}(hvoidh]hvoid}(hjW>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS>hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjf>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS>hhhje>hMubh)}(hpcpu_balance_populatedh]j)}(hpcpu_balance_populatedh]hpcpu_balance_populated}(hjx>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt>ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjS>hhhje>hMubj )}(h(void)h]j )}(hvoidh]j)}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubah}(h]h ]h"]h$]h&]jjuh1j hjS>hhhje>hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjO>hhhje>hMubah}(h]jJ>ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhje>hMhjL>hhubj4)}(hhh]jM)}(h$manage the amount of populated pagesh]h$manage the amount of populated pages}(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&]uh1j3hjL>hhhje>hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj>jHj>jIjJjKuh1hhhhj hNhNubj)}(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>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`` 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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.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}(hjubjM)}(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.}(hjP?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj>ubjM)}(h **Context**h]j)}(hja?h]hContext}(hjc?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)}(h&pcpu_lock (can be dropped temporarily)h]h&pcpu_lock (can be dropped temporarily)}(hjw?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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_reclaim_populated (C function)c.pcpu_reclaim_populatedhNtauh1hhj hhhNhNubh)}(hhh](h)}(h"void pcpu_reclaim_populated (void)h]h)}(h!void pcpu_reclaim_populated(void)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.chM$ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhj?hM$ubh)}(hpcpu_reclaim_populatedh]j)}(hpcpu_reclaim_populatedh]hpcpu_reclaim_populated}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj?hhhj?hM$ubj )}(h(void)h]j )}(hvoidh]j)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(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)}(h3scan over to_depopulate chunks and free empty pagesh]h3scan over to_depopulate chunks and free empty pages}(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%@jIjJjKuh1hhhhj hNhNubj)}(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)}(hj/@h]h Parameters}(hj1@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``void`` no arguments h](j)}(h``void``h]jS)}(hjN@h]hvoid}(hjP@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjL@ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhjH@ubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hjg@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjc@hKhjd@ubah}(h]h ]h"]h$]h&]uh1jhjH@ubeh}(h]h ]h"]h$]h&]uh1jhjc@hKhjE@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:128: ./mm/percpu.chKhj)@ubjM)}(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.}(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 **Context**h]j)}(hj@h]hContext}(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)}(h&pcpu_lock (can be dropped temporarily)h]h&pcpu_lock (can be dropped temporarily)}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h pcpu_balance_workfn (C function)c.pcpu_balance_workfnhNtauh1hhj hhhNhNubh)}(hhh](h)}(h3void pcpu_balance_workfn (struct work_struct *work)h]h)}(h2void pcpu_balance_workfn(struct work_struct *work)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 }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjAhMubh)}(hpcpu_balance_workfnh]j)}(hpcpu_balance_workfnh]hpcpu_balance_workfn}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1hhj@hhhjAhMubj )}(h(struct work_struct *work)h]j )}(hstruct work_struct *workh](j5)}(hj8h]hstruct}(hj2AhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj.Aubj)}(h h]h }(hj?AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Aubh)}(hhh]j)}(h work_structh]h work_struct}(hjPAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMAubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRAmodnameN classnameNjpjs)}jv]jy)}jljAsbc.pcpu_balance_workfnasbuh1hhj.Aubj)}(h h]h }(hjpAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.AubjF )}(hjI h]h*}(hj~AhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj.Aubj)}(hworkh]hwork}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Aubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj*Aubah}(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)}(h4manage the amount of free chunks and populated pagesh]h4manage the amount of free chunks and populated pages}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjAhhubah}(h]h ]h"]h$]h&]uh1j3hj@hhhjAhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjAjHjAjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chMhjAubj)}(hhh]j)}(h$``struct work_struct *work`` unused h](j)}(h``struct work_struct *work``h]jS)}(hjAh]hstruct work_struct *work}(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.chMhjAubj)}(hhh]jM)}(hunusedh]hunused}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj BhMhj Bubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj BhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubjM)}(h**Description**h]j)}(hj1Bh]h Description}(hj3BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Bubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjAubjM)}(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.}(hjGBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfree_percpu (C function) c.free_percpuhNtauh1hhj hhhNhNubh)}(hhh](h)}(h%void free_percpu (void __percpu *ptr)h]h)}(h$void free_percpu(void __percpu *ptr)h](j)}(hvoidh]hvoid}(hjvBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrBhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrBhhhjBhMubh)}(h free_percpuh]j)}(h free_percpuh]h free_percpu}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1hhjrBhhhjBhMubj )}(h(void __percpu *ptr)h]j )}(hvoid __percpu *ptrh](j)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh__percpu}(hjBhhhNhNubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjF )}(hjI h]h*}(hjBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjBubj)}(hptrh]hptr}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjBubah}(h]h ]h"]h$]h&]jjuh1j hjrBhhhjBhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjnBhhhjBhMubah}(h]jiBah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjBhMhjkBhhubj4)}(hhh]jM)}(hfree percpu areah]hfree percpu area}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjChhubah}(h]h ]h"]h$]h&]uh1j3hjkBhhhjBhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj0CjHj0CjIjJjKuh1hhhhj hNhNubj)}(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:Ch]h Parameters}(hjJubah}(h]h ]h"]h$]h&]jjuh1j hjJhhhjJhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjJhhhjJhM ubah}(h]jIah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjJhM hjIhhubj4)}(hhh]jM)}(hfree percpu allocation infoh]hfree percpu allocation info}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjJhhubah}(h]h ]h"]h$]h&]uh1j3hjIhhhjJhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjJjHjJjIjJjKuh1hhhhj hNhNubj)}(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)}(hjJh]h Parameters}(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.chM hjJubj)}(hhh]j)}(h7``struct pcpu_alloc_info *ai`` pcpu_alloc_info to free h](j)}(h``struct pcpu_alloc_info *ai``h]jS)}(hj Kh]hstruct pcpu_alloc_info *ai}(hj KhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjKubj)}(hhh]jM)}(hpcpu_alloc_info to freeh]hpcpu_alloc_info to free}(hj#KhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhM hj Kubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhM hjKubah}(h]h ]h"]h$]h&]uh1jhjJubjM)}(h**Description**h]j)}(hjEKh]h Description}(hjGKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCKubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjJubjM)}(h;Free **ai** which was allocated by pcpu_alloc_alloc_info().h](hFree }(hj[KhhhNhNubj)}(h**ai**h]hai}(hjcKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[Kubh0 which was allocated by pcpu_alloc_alloc_info().}(hj[KhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!pcpu_dump_alloc_info (C function)c.pcpu_dump_alloc_infohNtauh1hhj hhhNhNubh)}(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}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhjKhM ubh)}(hpcpu_dump_alloc_infoh]j)}(hpcpu_dump_alloc_infoh]hpcpu_dump_alloc_info}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1hhjKhhhjKhM ubj )}(h3(const char *lvl, const struct pcpu_alloc_info *ai)h](j )}(hconst char *lvlh](j5)}(hjh]hconst}(hjKhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hcharh]hchar}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjF )}(hjI h]h*}(hjLhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjKubj)}(hlvlh]hlvl}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubj )}(h const struct pcpu_alloc_info *aih](j5)}(hjh]hconst}(hj6LhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj2Lubj)}(h h]h }(hjCLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Lubj5)}(hj8h]hstruct}(hjQLhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj2Lubj)}(h h]h }(hj^LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Lubh)}(hhh]j)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hjoLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlLubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjqLmodnameN classnameNjpjs)}jv]jy)}jljKsbc.pcpu_dump_alloc_infoasbuh1hhj2Lubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2LubjF )}(hjI h]h*}(hjLhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2Lubj)}(haih]hai}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Lubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubeh}(h]h ]h"]h$]h&]jjuh1j hjKhhhjKhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjKhhhjKhM ubah}(h]jKah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjKhM hjKhhubj4)}(hhh]jM)}(h+print out information about pcpu_alloc_infoh]h+print out information about pcpu_alloc_info}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjLhhubah}(h]h ]h"]h$]h&]uh1j3hjKhhhjKhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjLjHjLjIjJjKuh1hhhhj hNhNubj)}(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)}(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 hjLubj)}(hhh](j)}(h``const char *lvl`` loglevel h](j)}(h``const char *lvl``h]jS)}(hjMh]hconst char *lvl}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjMubj)}(hhh]jM)}(hloglevelh]hloglevel}(hj.MhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj*MhM hj+Mubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhj*MhM hj Mubj)}(h=``const struct pcpu_alloc_info *ai`` allocation info to dump h](j)}(h$``const struct pcpu_alloc_info *ai``h]jS)}(hjNMh]h const struct pcpu_alloc_info *ai}(hjPMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLMubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjHMubj)}(hhh]jM)}(hallocation info to dumph]hallocation info to dump}(hjgMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjcMhM hjdMubah}(h]h ]h"]h$]h&]uh1jhjHMubeh}(h]h ]h"]h$]h&]uh1jhjcMhM hj Mubeh}(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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjLubjM)}(h:Print out information about **ai** using loglevel **lvl**.h](hPrint out information about }(hjMhhhNhNubj)}(h**ai**h]hai}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh using loglevel }(hjMhhhNhNubj)}(h**lvl**h]hlvl}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_setup_first_chunk (C function)c.pcpu_setup_first_chunkhNtauh1hhj hhhNhNubh)}(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}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhjNhM ubh)}(hpcpu_setup_first_chunkh]j)}(hpcpu_setup_first_chunkh]hpcpu_setup_first_chunk}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1hhjMhhhjNhM ubj )}(h3(const struct pcpu_alloc_info *ai, void *base_addr)h](j )}(h const struct pcpu_alloc_info *aih](j5)}(hjh]hconst}(hj/NhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj+Nubj)}(h h]h }(hjstatic_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)}(hj1Oh]h Parameters}(hj3OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Oubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+Oubj)}(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)}(hjPOh]h const struct pcpu_alloc_info *ai}(hjROhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNOubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjJOubj)}(hhh]jM)}(h7pcpu_alloc_info describing how to percpu area is shapedh]h7pcpu_alloc_info describing how to percpu area is shaped}(hjiOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjeOhM hjfOubah}(h]h ]h"]h$]h&]uh1jhjJOubeh}(h]h ]h"]h$]h&]uh1jhjeOhM hjGOubj)}(h#``void *base_addr`` mapped address h](j)}(h``void *base_addr``h]jS)}(hjOh]hvoid *base_addr}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjOubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjOubj)}(hhh]jM)}(hmapped addressh]hmapped address}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjOhM hjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhM hjGOubeh}(h]h ]h"]h$]h&]uh1jhj+OubjM)}(h**Description**h]j)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+OubjM)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+OubjM)}(ho**ai** contains all information necessary to initialize the first chunk and prime the dynamic percpu allocator.h](j)}(h**ai**h]hai}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubhi contains all information necessary to initialize the first chunk and prime the dynamic percpu allocator.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+OubjM)}(h6**ai->static_size** is the size of static percpu area.h](j)}(h**ai->static_size**h]hai->static_size}(hj PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh# is the size of static percpu area.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+OubjM)}(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}(hj'PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#PubhX, 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.}(hj#PhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+OubjM)}(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}(hjDPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Pubhg determines the number of bytes available for dynamic allocation in the first chunk. The area between }(hj@PhhhNhNubj)}(h**ai->static_size**h]hai->static_size}(hjVPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Pubh + }(hj@PhhhNhNubj)}(h**ai->reserved_size**h]hai->reserved_size}(hjhPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Pubh + }(hj@PhhhNhNubj)}(h**ai->dyn_size**h]h ai->dyn_size}(hjzPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Pubh and }(hj@PhhhNhNubj)}(h**ai->unit_size**h]h ai->unit_size}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Pubh is unused.}(hj@PhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+OubjM)}(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}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubhR specifies unit size and must be aligned to PAGE_SIZE and equal to or larger than }(hjPhhhNhNubj)}(h**ai->static_size**h]hai->static_size}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh + }(hjPhhhNhNubj)}(h**ai->reserved_size**h]hai->reserved_size}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh + }(hjPhhhNhNubj)}(h**ai->dyn_size**h]h ai->dyn_size}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+OubjM)}(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}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh@ is the allocation atom size and used as alignment for vm areas.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+OubjM)}(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}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh/ is the allocation size and always multiple of }(hjQhhhNhNubj)}(h**ai->atom_size**h]h ai->atom_size}(hj+QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh. This is larger than }(hjQhhhNhNubj)}(h**ai->atom_size**h]h ai->atom_size}(hj=QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh if }(hjQhhhNhNubj)}(h**ai->unit_size**h]h ai->unit_size}(hjOQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh is larger than }(hjQhhhNhNubj)}(h**ai->atom_size**h]h ai->atom_size}(hjaQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+OubjM)}(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}(hj~QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzQubh and }(hjzQhhhNhNubj)}(h**ai->groups**h]h ai->groups}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzQubh 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 }(hjzQhhhNhNubj)}(h**ai->nr_groups**h]h ai->nr_groups}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzQubh9 is zero, a single group containing all units is assumed.}(hjzQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+OubjM)}(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 }(hjQhhhNhNubj)}(h **base_addr**h]h base_addr}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh% and copied static data to each unit.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+OubjM)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj+Oubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"pcpu_build_alloc_info (C function)c.pcpu_build_alloc_infohNtauh1hhj hhhNhNubh)}(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}(hj RhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjRhhhL/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)}(hhh]j)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hj*RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Rubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,RmodnameN classnameNjpjs)}jv]jy)}jlpcpu_build_alloc_infosbc.pcpu_build_alloc_infoasbuh1hhjRhhhjRhM ubj)}(h h]h }(hjKRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjRhM ubjF )}(hjI h]h*}(hjYRhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjRhhhjRhM ubh)}(hpcpu_build_alloc_infoh]j)}(hjHRh]hpcpu_build_alloc_info}(hjjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfRubah}(h]h ](jjeh"]h$]h&]jjuh1hhjRhhhjRhM 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}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRmodnameN classnameNjpjs)}jv]jFRc.pcpu_build_alloc_infoasbuh1hhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h reserved_sizeh]h reserved_size}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}Rubj )}(hsize_t dyn_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRmodnameN classnameNjpjs)}jv]jFRc.pcpu_build_alloc_infoasbuh1hhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hdyn_sizeh]hdyn_size}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}Rubj )}(hsize_t atom_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjSmodnameN classnameNjpjs)}jv]jFRc.pcpu_build_alloc_infoasbuh1hhjSubj)}(h h]h }(hj6ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h atom_sizeh]h atom_size}(hjDShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}Rubj )}(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`ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Subah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbSmodnameN classnameNjpjs)}jv]jFRc.pcpu_build_alloc_infoasbuh1hhjYSubj)}(h h]h }(hj~ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYSubj)}(hcpu_distance_fnh]hcpu_distance_fn}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}Rubeh}(h]h ]h"]h$]h&]jjuh1j hjRhhhjRhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjRhhhjRhM ubah}(h]jQah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjRhM hjRhhubj4)}(hhh]jM)}(h3build alloc_info considering distances between CPUsh]h3build alloc_info considering distances between CPUs}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjShhubah}(h]h ]h"]h$]h&]uh1j3hjRhhhjRhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjSjHjSjIjJjKuh1hhhhj hNhNubj)}(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)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjSubj)}(hhh](j)}(hC``size_t reserved_size`` the size of reserved percpu area in bytes h](j)}(h``size_t reserved_size``h]jS)}(hjSh]hsize_t reserved_size}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjSubj)}(hhh]jM)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ThM hj Tubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhj ThM hjSubj)}(hF``size_t dyn_size`` minimum free size for dynamic allocation in bytes h](j)}(h``size_t dyn_size``h]jS)}(hj0Th]hsize_t dyn_size}(hj2ThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.Tubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj*Tubj)}(hhh]jM)}(h1minimum free size for dynamic allocation in bytesh]h1minimum free size for dynamic allocation in bytes}(hjIThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEThM hjFTubah}(h]h ]h"]h$]h&]uh1jhj*Tubeh}(h]h ]h"]h$]h&]uh1jhjEThM hjSubj)}(h*``size_t atom_size`` allocation atom size h](j)}(h``size_t atom_size``h]jS)}(hjiTh]hsize_t atom_size}(hjkThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgTubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjcTubj)}(hhh]jM)}(hallocation atom sizeh]hallocation atom size}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~ThM hjTubah}(h]h ]h"]h$]h&]uh1jhjcTubeh}(h]h ]h"]h$]h&]uh1jhj~ThM hjSubj)}(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)}(hjTh]h)pcpu_fc_cpu_distance_fn_t cpu_distance_fn}(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)}(h5callback to determine distance between cpus, optionalh]h5callback to determine distance between cpus, optional}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjThM hjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThM hjSubeh}(h]h ]h"]h$]h&]uh1jhjSubjM)}(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 hjSubjM)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjSubjM)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjSubjM)}(h **Return**h]j)}(hjUh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjSubjM)}(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.}(hj)UhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_embed_first_chunk (C function)c.pcpu_embed_first_chunkhNtauh1hhj hhhNhNubh)}(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}(hjXUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTUhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjgUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTUhhhjfUhM ubh)}(hpcpu_embed_first_chunkh]j)}(hpcpu_embed_first_chunkh]hpcpu_embed_first_chunk}(hjyUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuUubah}(h]h ](jjeh"]h$]h&]jjuh1hhjTUhhhjfUhM 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}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jy)}jlj{Usbc.pcpu_embed_first_chunkasbuh1hhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h reserved_sizeh]h reserved_size}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjUubj )}(hsize_t dyn_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jUc.pcpu_embed_first_chunkasbuh1hhjUubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hdyn_sizeh]hdyn_size}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjUubj )}(hsize_t atom_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj*VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Vubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,VmodnameN classnameNjpjs)}jv]jUc.pcpu_embed_first_chunkasbuh1hhj#Vubj)}(h h]h }(hjHVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Vubj)}(h atom_sizeh]h atom_size}(hjVVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Vubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjUubj )}(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}(hjrVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoVubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjtVmodnameN classnameNjpjs)}jv]jUc.pcpu_embed_first_chunkasbuh1hhjkVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkVubj)}(hcpu_distance_fnh]hcpu_distance_fn}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjUubj )}(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}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjVmodnameN classnameNjpjs)}jv]jUc.pcpu_embed_first_chunkasbuh1hhjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h cpu_to_nd_fnh]h cpu_to_nd_fn}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjUubeh}(h]h ]h"]h$]h&]jjuh1j hjTUhhhjfUhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjPUhhhjfUhM ubah}(h]jKUah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjfUhM hjMUhhubj4)}(hhh]jM)}(h)embed the first percpu chunk into bootmemh]h)embed the first percpu chunk into bootmem}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj Whhubah}(h]h ]h"]h$]h&]uh1j3hjMUhhhjfUhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj(WjHj(WjIjJjKuh1hhhhj hNhNubj)}(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)}(hj2Wh]h Parameters}(hj4WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Wubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj,Wubj)}(hhh](j)}(hC``size_t reserved_size`` the size of reserved percpu area in bytes h](j)}(h``size_t reserved_size``h]jS)}(hjQWh]hsize_t reserved_size}(hjSWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjOWubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjKWubj)}(hhh]jM)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hjjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfWhM hjgWubah}(h]h ]h"]h$]h&]uh1jhjKWubeh}(h]h ]h"]h$]h&]uh1jhjfWhM hjHWubj)}(hF``size_t dyn_size`` minimum free size for dynamic allocation in bytes h](j)}(h``size_t dyn_size``h]jS)}(hjWh]hsize_t dyn_size}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjWubj)}(hhh]jM)}(h1minimum free size for dynamic allocation in bytesh]h1minimum free size for dynamic allocation in bytes}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWhM hjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhM hjHWubj)}(h*``size_t atom_size`` allocation atom size h](j)}(h``size_t atom_size``h]jS)}(hjWh]hsize_t atom_size}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjWubj)}(hhh]jM)}(hallocation atom sizeh]hallocation atom size}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWhM hjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhM hjHWubj)}(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)}(hjWh]h)pcpu_fc_cpu_distance_fn_t cpu_distance_fn}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjWubj)}(hhh]jM)}(h5callback to determine distance between cpus, optionalh]h5callback to determine distance between cpus, optional}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXhM hjXubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjXhM hjHWubj)}(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)}(hj5Xh]h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn}(hj7XhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3Xubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj/Xubj)}(hhh]jM)}(h.callback to convert cpu to it's node, optionalh]h0callback to convert cpu to it’s node, optional}(hjNXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJXhM hjKXubah}(h]h ]h"]h$]h&]uh1jhj/Xubeh}(h]h ]h"]h$]h&]uh1jhjJXhM hjHWubeh}(h]h ]h"]h$]h&]uh1jhj,WubjM)}(h**Description**h]j)}(hjpXh]h Description}(hjrXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnXubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj,WubjM)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj,WubjM)}(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 }(hjXhhhNhNubj)}(h **atom_size**h]h atom_size}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh aligned to }(hjXhhhNhNubj)}(h **atom_size**h]h atom_size}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj,WubjM)}(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).}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj,WubjM)}(h5**dyn_size** specifies the minimum dynamic area size.h](j)}(h **dyn_size**h]hdyn_size}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh) specifies the minimum dynamic area size.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj,WubjM)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj,WubjM)}(h **Return**h]j)}(hjYh]hReturn}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj,WubjM)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj,Wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"pcpu_page_first_chunk (C function)c.pcpu_page_first_chunkhNtauh1hhj hhhNhNubh)}(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}(hjJYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFYhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMm ubj)}(h h]h }(hjYYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFYhhhjXYhMm ubh)}(hpcpu_page_first_chunkh]j)}(hpcpu_page_first_chunkh]hpcpu_page_first_chunk}(hjkYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgYubah}(h]h ](jjeh"]h$]h&]jjuh1hhjFYhhhjXYhMm 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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYmodnameN classnameNjpjs)}jv]jy)}jljmYsbc.pcpu_page_first_chunkasbuh1hhjYubj)}(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 )}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYmodnameN classnameNjpjs)}jv]jYc.pcpu_page_first_chunkasbuh1hhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h cpu_to_nd_fnh]h cpu_to_nd_fn}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubeh}(h]h ]h"]h$]h&]jjuh1j hjFYhhhjXYhMm ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjBYhhhjXYhMm ubah}(h]j=Yah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjXYhMm hj?Yhhubj4)}(hhh]jM)}(h)map the first chunk using PAGE_SIZE pagesh]h)map the first chunk using PAGE_SIZE pages}(hj*ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMm hj'Zhhubah}(h]h ]h"]h$]h&]uh1j3hj?YhhhjXYhMm ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjBZjHjBZjIjJjKuh1hhhhj hNhNubj)}(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)}(hjLZh]h Parameters}(hjNZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJZubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMq hjFZubj)}(hhh](j)}(hC``size_t reserved_size`` the size of reserved percpu area in bytes h](j)}(h``size_t reserved_size``h]jS)}(hjkZh]hsize_t reserved_size}(hjmZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiZubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMn hjeZubj)}(hhh]jM)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZhMn hjZubah}(h]h ]h"]h$]h&]uh1jhjeZubeh}(h]h ]h"]h$]h&]uh1jhjZhMn hjbZubj)}(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)}(hjZh]h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMo hjZubj)}(hhh]jM)}(h.callback to convert cpu to it's node, optionalh]h0callback to convert cpu to it’s node, optional}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZhMo hjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMo hjbZubeh}(h]h ]h"]h$]h&]uh1jhjFZubjM)}(h**Description**h]j)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMq hjFZubjM)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMp hjFZubjM)}(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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMs hjFZubjM)}(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.chMv hjFZubjM)}(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.chMw hjFZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#copy_from_user_nofault (C function)c.copy_from_user_nofaulthNtauh1hhj hhhNhNubh)}(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}(hjZ[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV[hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKpubj)}(h h]h }(hji[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV[hhhjh[hKpubh)}(hcopy_from_user_nofaulth]j)}(hcopy_from_user_nofaulth]hcopy_from_user_nofault}(hj{[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjV[hhhjh[hKpubj )}(h0(void *dst, const void __user *src, size_t size)h](j )}(h void *dsth](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*}(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 )}(hconst void __user *srch](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[ubh__user}(hj[hhhNhNubj)}(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)}(hsrch]hsrc}(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}(hjK\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH\ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjM\modnameN classnameNjpjs)}jv]jy)}jlj}[sbc.copy_from_user_nofaultasbuh1hhjD\ubj)}(h h]h }(hjk\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD\ubj)}(hsizeh]hsize}(hjy\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD\ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj[ubeh}(h]h ]h"]h$]h&]jjuh1j hjV[hhhjh[hKpubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjR[hhhjh[hKpubah}(h]jM[ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjh[hKphjO[hhubj4)}(hhh]jM)}(h1safely attempt to read from a user-space locationh]h1safely attempt to read from a user-space location}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKphj\hhubah}(h]h ]h"]h$]h&]uh1j3hjO[hhhjh[hKpubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj\jHj\jIjJjKuh1hhhhj hNhNubj)}(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)}(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:129: ./mm/maccess.chKthj\ubj)}(hhh](j)}(h=``void *dst`` pointer to the buffer that shall take the data h](j)}(h ``void *dst``h]jS)}(hj\h]h void *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:129: ./mm/maccess.chKqhj\ubj)}(hhh]jM)}(h.pointer to the buffer that shall take the datah]h.pointer to the buffer that shall take the data}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\hKqhj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hKqhj\ubj)}(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]h]hconst void __user *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:129: ./mm/maccess.chKrhj]ubj)}(hhh]jM)}(h2address to read from. This must be a user address.h]h2address to read from. This must be a user address.}(hj6]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2]hKrhj3]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj2]hKrhj\ubj)}(h'``size_t size`` size of the data chunk h](j)}(h``size_t size``h]jS)}(hjV]h]h size_t size}(hjX]hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjT]ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKshjP]ubj)}(hhh]jM)}(hsize of the data chunkh]hsize of the data chunk}(hjo]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjk]hKshjl]ubah}(h]h ]h"]h$]h&]uh1jhjP]ubeh}(h]h ]h"]h$]h&]uh1jhjk]hKshj\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:129: ./mm/maccess.chKuhj\ubjM)}(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 }(hj]hhhNhNubj)}(h**src**h]hsrc}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh to the buffer at }(hj]hhhNhNubj)}(h**dst**h]hdst}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh<. If a kernel fault happens, handle that and return -EFAULT.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKthj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!copy_to_user_nofault (C function)c.copy_to_user_nofaulthNtauh1hhj hhhNhNubh)}(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]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKubj)}(h h]h }(hj ^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj^hKubh)}(hcopy_to_user_nofaulth]j)}(hcopy_to_user_nofaulth]hcopy_to_user_nofault}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj]hhhj^hKubj )}(h0(void __user *dst, const void *src, size_t size)h](j )}(hvoid __user *dsth](j)}(hvoidh]hvoid}(hj7^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3^ubj)}(h h]h }(hjE^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3^ubh__user}(hj3^hhhNhNubj)}(h h]h }(hjW^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3^ubjF )}(hjI h]h*}(hje^hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj3^ubj)}(hdsth]hdst}(hjr^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3^ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj/^ubj )}(hconst void *srch](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)}(hsrch]hsrc}(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]jy)}jlj^sbc.copy_to_user_nofaultasbuh1hhj^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/^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)}(h0safely attempt to write to a user-space locationh]h0safely attempt to write to a user-space location}(hjC_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj@_hhubah}(h]h ]h"]h$]h&]uh1j3hj]hhhj^hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj[_jHj[_jIjJjKuh1hhhhj hNhNubj)}(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)}(hje_h]h Parameters}(hjg_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc_ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj__ubj)}(hhh](j)}(h)``void __user *dst`` address to write to h](j)}(h``void __user *dst``h]jS)}(hj_h]hvoid __user *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:129: ./mm/maccess.chKhj~_ubj)}(hhh]jM)}(haddress to write toh]haddress to write to}(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>``const void *src`` pointer to the data that shall be written h](j)}(h``const void *src``h]jS)}(hj_h]hconst void *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:129: ./mm/maccess.chKhj_ubj)}(hhh]jM)}(h)pointer to the data that shall be writtenh]h)pointer to the data that shall be written}(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'``size_t size`` size of the data chunk 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&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj_ubj)}(hhh]jM)}(hsize of the data chunkh]hsize of the data chunk}(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**Description**h]j)}(hj1`h]h Description}(hj3`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/`ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj__ubjM)}(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 }(hjG`hhhNhNubj)}(h**dst**h]hdst}(hjO`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG`ubh from the buffer at }(hjG`hhhNhNubj)}(h**src**h]hsrc}(hja`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG`ubh=. If a kernel fault happens, handle that and return -EFAULT.}(hjG`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj__ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&strncpy_from_user_nofault (C function)c.strncpy_from_user_nofaulthNtauh1hhj hhhNhNubh)}(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}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hKubh)}(hstrncpy_from_user_nofaulth]j)}(hstrncpy_from_user_nofaulth]hstrncpy_from_user_nofault}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj`hhhj`hKubj )}(h7(char *dst, const void __user *unsafe_addr, long count)h](j )}(h char *dsth](j)}(hcharh]hchar}(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)}(hdsth]hdst}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubj )}(hconst void __user *unsafe_addrh](j5)}(hjh]hconst}(hjahhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjaubj)}(h h]h }(hj&ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hvoidh]hvoid}(hj4ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjBahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh__user}(hjahhhNhNubj)}(h h]h }(hjTahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjF )}(hjI h]h*}(hjbahhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjaubj)}(h unsafe_addrh]h unsafe_addr}(hjoahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubj )}(h long counth](j)}(hlongh]hlong}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hcounth]hcount}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(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]j.L)}(hhh]j+)}(h6Copy a NUL terminated string from unsafe user address.h]jM)}(hjah]h6Copy a NUL terminated string from unsafe user address.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjaubah}(h]h ]h"]h$]h&]uh1j+hjahhhjahNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjahKhjahhubah}(h]h ]h"]h$]h&]uh1j3hj`hhhj`hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjajHjajIjJjKuh1hhhhj hNhNubj)}(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)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjaubj)}(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)}(hj!bh]h char *dst}(hj#bhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjbubj)}(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:bhhhNhNubj)}(h **count**h]hcount}(hjBbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:bubh bytes long.}(hj:bhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj7bubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj6bhKhjbubj)}(h8``const void __user *unsafe_addr`` Unsafe user address. h](j)}(h"``const void __user *unsafe_addr``h]jS)}(hjmbh]hconst void __user *unsafe_addr}(hjobhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjkbubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjgbubj)}(hhh]jM)}(hUnsafe user address.h]hUnsafe user address.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbhKhjbubah}(h]h ]h"]h$]h&]uh1jhjgbubeh}(h]h ]h"]h$]h&]uh1jhjbhKhjbubj)}(hL``long count`` Maximum number of bytes to copy, including the trailing NUL. h](j)}(h``long count``h]jS)}(hjbh]h long count}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjbubj)}(hhh]jM)}(hchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$cubh -1 bytes, sets the last byte of }(hj$chhhNhNubj)}(h**dst**h]hdst}(hjPchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$cubh buffer to NUL and returns }(hj$chhhNhNubj)}(h **count**h]hcount}(hjbchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$cubh.}(hj$chhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!strnlen_user_nofault (C function)c.strnlen_user_nofaulthNtauh1hhj hhhNhNubh)}(hhh](h)}(hFlong strnlen_user_nofault (const void __user *unsafe_addr, long count)h]h)}(hElong strnlen_user_nofault(const void __user *unsafe_addr, long count)h](j)}(hlongh]hlong}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjchKubh)}(hstrnlen_user_nofaulth]j)}(hstrnlen_user_nofaulth]hstrnlen_user_nofault}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1hhjchhhjchKubj )}(h,(const void __user *unsafe_addr, long count)h](j )}(hconst void __user *unsafe_addrh](j5)}(hjh]hconst}(hjchhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh__user}(hjchhhNhNubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjF )}(hjI h]h*}(hj!dhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjcubj)}(h unsafe_addrh]h unsafe_addr}(hj.dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubj )}(h long counth](j)}(hlongh]hlong}(hjGdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCdubj)}(h h]h }(hjUdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCdubj)}(hcounth]hcount}(hjcdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubeh}(h]h ]h"]h$]h&]jjuh1j hjchhhjchKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjchhhjchKubah}(h]jcah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjchKhjchhubj4)}(hhh]j.L)}(hhh]j+)}(h2Get the size of a user string INCLUDING final NUL.h]jM)}(hjdh]h2Get the size of a user string INCLUDING final NUL.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjdubah}(h]h ]h"]h$]h&]uh1j+hjdhhhjdhNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjdhKhjdhhubah}(h]h ]h"]h$]h&]uh1j3hjchhhjchKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjdjHjdjIjJjKuh1hhhhj hNhNubj)}(hX**Parameters** ``const void __user *unsafe_addr`` The string to measure. ``long count`` Maximum count (including NUL) **Description** Get the size of a NUL-terminated string in user space without pagefault. Returns the size of the string INCLUDING the terminating NUL. If 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. Unlike strnlen_user, this can be used from IRQ handler etc. because it disables pagefaults.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.chKhjdubj)}(hhh](j)}(h:``const void __user *unsafe_addr`` The string to measure. h](j)}(h"``const void __user *unsafe_addr``h]jS)}(hjdh]hconst void __user *unsafe_addr}(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.chKhjdubj)}(hhh]jM)}(hThe string to measure.h]hThe string to measure.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjdhKhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjdubj)}(h-``long count`` Maximum count (including NUL) h](j)}(h``long count``h]jS)}(hjeh]h long count}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjeubj)}(hhh]jM)}(hMaximum count (including NUL)h]hMaximum count (including NUL)}(hj2ehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.ehKhj/eubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhj.ehKhjdubeh}(h]h ]h"]h$]h&]uh1jhjdubjM)}(h**Description**h]j)}(hjTeh]h Description}(hjVehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjReubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjdubjM)}(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.}(hjjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjdubjM)}(h=Returns the size of the string INCLUDING the terminating NUL.h]h=Returns the size of the string INCLUDING the terminating NUL.}(hjyehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjdubjM)}(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 }(hjehhhNhNubj)}(h **count**h]hcount}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubhg. User has to check the return value against “> count”. On exception (or invalid count), returns 0.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjdubjM)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&writeback_throttling_sane (C function)c.writeback_throttling_sanehNtauh1hhj hhhNhNubh)}(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}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjehKubh)}(hwriteback_throttling_saneh]j)}(hwriteback_throttling_saneh]hwriteback_throttling_sane}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1hhjehhhjehKubj )}(h(struct scan_control *sc)h]j )}(hstruct scan_control *sch](j5)}(hj8h]hstruct}(hjfhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjfubj)}(h h]h }(hj!fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j)}(h scan_controlh]h scan_control}(hj2fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/fubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4fmodnameN classnameNjpjs)}jv]jy)}jljesbc.writeback_throttling_saneasbuh1hhjfubj)}(h h]h }(hjRfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjF )}(hjI h]h*}(hj`fhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjfubj)}(hsch]hsc}(hjmfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj fubah}(h]h ]h"]h$]h&]jjuh1j hjehhhjehKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjehhhjehKubah}(h]jeah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjehKhjehhubj4)}(hhh]jM)}(h2is the usual dirty throttling mechanism available?h]h2is the usual dirty throttling mechanism available?}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjfhhubah}(h]h ]h"]h$]h&]uh1j3hjehhhjehKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjfjHjfjIjJjKuh1hhhhj hNhNubj)}(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)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjfubj)}(hhh]j)}(h5``struct scan_control *sc`` scan_control in question h](j)}(h``struct scan_control *sc``h]jS)}(hjfh]hstruct scan_control *sc}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjfubj)}(hhh]jM)}(hscan_control in questionh]hscan_control in question}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfhKhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhKhjfubah}(h]h ]h"]h$]h&]uh1jhjfubjM)}(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:130: ./mm/vmscan.chKhjfubjM)}(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.}(hj)ghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjfubjM)}(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.}(hj8ghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlruvec_lru_size (C function)c.lruvec_lru_sizehNtauh1hhj hhhNhNubh)}(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}(hjgghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcghhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMubj)}(h h]h }(hjvghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcghhhjughMubj)}(hlongh]hlong}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcghhhjughMubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcghhhjughMubh)}(hlruvec_lru_sizeh]j)}(hlruvec_lru_sizeh]hlruvec_lru_size}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1hhjcghhhjughMubj )}(h8(struct lruvec *lruvec, enum lru_list lru, int zone_idx)h](j )}(hstruct lruvec *lruvech](j5)}(hj8h]hstruct}(hjghhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j)}(hlruvech]hlruvec}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjgmodnameN classnameNjpjs)}jv]jy)}jljgsbc.lruvec_lru_sizeasbuh1hhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjF )}(hjI h]h*}(hj hhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjgubj)}(hlruvech]hlruvec}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjgubj )}(henum lru_list lruh](j5)}(hjh]henum}(hj2hhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj.hubj)}(h h]h }(hj?hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hubh)}(hhh]j)}(hlru_listh]hlru_list}(hjPhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRhmodnameN classnameNjpjs)}jv]jgc.lruvec_lru_sizeasbuh1hhj.hubj)}(h h]h }(hjnhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hubj)}(hlruh]hlru}(hj|hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjgubj )}(h int zone_idxh](j)}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hzone_idxh]hzone_idx}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjgubeh}(h]h ]h"]h$]h&]jjuh1j hjcghhhjughMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj_ghhhjughMubah}(h]jZgah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjughMhj\ghhubj4)}(hhh]jM)}(h2Returns the number of pages on the given LRU list.h]h2Returns the number of pages on the given LRU list.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjhhhubah}(h]h ]h"]h$]h&]uh1j3hj\ghhhjughMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjhjHjhjIjJjKuh1hhhhj hNhNubj)}(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)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjhubj)}(hhh](j)}(h%``struct lruvec *lruvec`` lru vector h](j)}(h``struct lruvec *lruvec``h]jS)}(hjih]hstruct lruvec *lruvec}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjiubj)}(hhh]jM)}(h lru vectorh]h lru vector}(hj5ihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1ihMhj2iubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhj1ihMhjiubj)}(h!``enum lru_list lru`` lru to use h](j)}(h``enum lru_list lru``h]jS)}(hjUih]henum lru_list lru}(hjWihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSiubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjOiubj)}(hhh]jM)}(h lru to useh]h lru to use}(hjnihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjihMhjkiubah}(h]h ]h"]h$]h&]uh1jhjOiubeh}(h]h ]h"]h$]h&]uh1jhjjihMhjiubj)}(hP``int zone_idx`` zones to consider (use MAX_NR_ZONES - 1 for the whole LRU list)h](j)}(h``int zone_idx``h]jS)}(hjih]h int zone_idx}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjiubj)}(hhh]jM)}(h?zones to consider (use MAX_NR_ZONES - 1 for the whole LRU list)h]h?zones to consider (use MAX_NR_ZONES - 1 for the whole LRU list)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMhjiubeh}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hremove_mapping (C function)c.remove_mappinghNtauh1hhj hhhNhNubh)}(hhh](h)}(hHlong remove_mapping (struct address_space *mapping, struct folio *folio)h]h)}(hGlong remove_mapping(struct address_space *mapping, struct folio *folio)h](j)}(hlongh]hlong}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjihMubh)}(hremove_mappingh]j)}(hremove_mappingh]hremove_mapping}(hj jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjihhhjihMubj )}(h4(struct address_space *mapping, struct folio *folio)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj%jhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj!jubj)}(h h]h }(hj2jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!jubh)}(hhh]j)}(h address_spaceh]h address_space}(hjCjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@jubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjEjmodnameN classnameNjpjs)}jv]jy)}jlj jsbc.remove_mappingasbuh1hhj!jubj)}(h h]h }(hjcjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!jubjF )}(hjI h]h*}(hjqjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!jubj)}(hmappingh]hmapping}(hj~jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!jubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjjubj )}(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]j_jc.remove_mappingasbuh1hhjjubj)}(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 hjjubeh}(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)}(h+Attempt to remove a folio from its mapping.h]h+Attempt to remove a folio from its mapping.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjkhhubah}(h]h ]h"]h$]h&]uh1j3hjihhhjihMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj0kjHj0kjIjJjKuh1hhhhj hNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The address space. ``struct folio *folio`` The folio to remove. **Description** If the folio is dirty, under writeback or if someone else has a ref on it, removal will fail. **Return** The number of pages removed from the mapping. 0 if the folio could not be removed. **Context** The caller should have a single refcount on the folio and hold its lock.h](jM)}(h**Parameters**h]j)}(hj:kh]h Parameters}(hjvoid check_move_unevictable_folios(struct folio_batch *fbatch)h](j)}(hvoidh]hvoid}(hjMphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIphhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMBubj)}(h h]h }(hj\phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIphhhj[phMBubh)}(hcheck_move_unevictable_foliosh]j)}(hcheck_move_unevictable_foliosh]hcheck_move_unevictable_folios}(hjnphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjpubah}(h]h ](jjeh"]h$]h&]jjuh1hhjIphhhj[phMBubj )}(h(struct folio_batch *fbatch)h]j )}(hstruct folio_batch *fbatchh](j5)}(hj8h]hstruct}(hjphhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjpmodnameN classnameNjpjs)}jv]jy)}jljppsbc.check_move_unevictable_foliosasbuh1hhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjF )}(hjI h]h*}(hjphhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjpubj)}(hfbatchh]hfbatch}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpubah}(h]h ]h"]h$]h&]jjuh1j hjIphhhj[phMBubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjEphhhj[phMBubah}(h]j@pah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj[phMBhjBphhubj4)}(hhh]jM)}(h2Move evictable folios to appropriate zone lru listh]h2Move evictable folios to appropriate zone lru list}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMBhj qhhubah}(h]h ]h"]h$]h&]uh1j3hjBphhhj[phMBubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj%qjHj%qjIjJjKuh1hhhhj hNhNubj)}(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)}(hj/qh]h Parameters}(hj1qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-qubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMFhj)qubj)}(hhh]j)}(h=``struct folio_batch *fbatch`` Batch of lru folios to check. h](j)}(h``struct folio_batch *fbatch``h]jS)}(hjNqh]hstruct folio_batch *fbatch}(hjPqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLqubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMDhjHqubj)}(hhh]jM)}(hBatch of lru folios to check.h]hBatch of lru folios to check.}(hjgqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjcqhMDhjdqubah}(h]h ]h"]h$]h&]uh1jhjHqubeh}(h]h ]h"]h$]h&]uh1jhjcqhMDhjEqubah}(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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMFhj)qubjM)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMEhj)qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__remove_pages (C function)c.__remove_pageshNtauh1hhj hhhNhNubh)}(hhh](h)}(h[void __remove_pages (unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap)h]h)}(hZvoid __remove_pages(unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap)h](j)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chM?ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhM?ubh)}(h__remove_pagesh]j)}(h__remove_pagesh]h__remove_pages}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1hhjqhhhjqhM?ubj )}(hG(unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap)h](j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hlongh]hlong}(hj'rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hj5rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hpfnh]hpfn}(hjCrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubj )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hj\rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXrubj)}(h h]h }(hjjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXrubj)}(hlongh]hlong}(hjxrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXrubj)}(hnr_pagesh]hnr_pages}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXrubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubj )}(hstruct vmem_altmap *altmaph](j5)}(hj8h]hstruct}(hjrhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hhh]j)}(h vmem_altmaph]h vmem_altmap}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrmodnameN classnameNjpjs)}jv]jy)}jljqsbc.__remove_pagesasbuh1hhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjF )}(hjI h]h*}(hjrhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjrubj)}(haltmaph]haltmap}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubeh}(h]h ]h"]h$]h&]jjuh1j hjqhhhjqhM?ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjqhhhjqhM?ubah}(h]jqah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjqhM?hjqhhubj4)}(hhh]jM)}(hremove sections of pagesh]hremove sections of pages}(hj0shhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chM?hj-shhubah}(h]h ]h"]h$]h&]uh1j3hjqhhhjqhM?ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjHsjHjHsjIjJjKuh1hhhhj hNhNubj)}(hX**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 **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)}(hjRsh]h Parameters}(hjTshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPsubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMChjLsubj)}(hhh](j)}(hQ``unsigned long pfn`` starting pageframe (must be aligned to start of a section) h](j)}(h``unsigned long pfn``h]jS)}(hjqsh]hunsigned long pfn}(hjsshhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjosubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chM@hjksubj)}(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)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjshM@hjsubah}(h]h ]h"]h$]h&]uh1jhjksubeh}(h]h ]h"]h$]h&]uh1jhjshM@hjhsubj)}(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)}(hjsh]hunsigned long nr_pages}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjsubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMAhjsubj)}(hhh]jM)}(hmm 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)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjzubj)}(hhh](j)}(h=``struct mmu_notifier *subscription`` The notifier to attach h](j)}(h%``struct mmu_notifier *subscription``h]jS)}(hjzh]h!struct mmu_notifier *subscription}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjzubj)}(hhh]jM)}(hThe notifier to attachh]hThe notifier to attach}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjzubj)}(h:``struct mm_struct *mm`` The mm to attach the notifier to 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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj{ubj)}(hhh]jM)}(h The mm to attach the notifier toh]h The mm to attach the notifier to}(hj8{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4{hMhj5{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj4{hMhjzubeh}(h]h ]h"]h$]h&]uh1jhjzubjM)}(h**Description**h]j)}(hjZ{h]h Description}(hj\{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX{ubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjzubjM)}(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.}(hjp{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjzubjM)}(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.chMhjzubjM)}(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().}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$mmu_notifier_get_locked (C function)c.mmu_notifier_get_lockedhNtauh1hhj hhhNhNubh)}(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}(hj{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj{hhhR/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&]uh1jhj{hhhj{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_lockedasbuh1hhj{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)}(hmmu_notifier_get_lockedh]j)}(hj{h]hmmu_notifier_get_locked}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj{hhhj{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}(hj7|hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj3|ubj)}(h h]h }(hjD|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3|ubj5)}(hj8h]hstruct}(hjR|hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj3|ubj)}(h h]h }(hj_|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3|ubh)}(hhh]j)}(hmmu_notifier_opsh]hmmu_notifier_ops}(hjp|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm|ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjr|modnameN classnameNjpjs)}jv]j{c.mmu_notifier_get_lockedasbuh1hhj3|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3|ubjF )}(hjI h]h*}(hj|hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj3|ubj)}(hopsh]hops}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3|ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj/|ubj )}(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]j{c.mmu_notifier_get_lockedasbuh1hhj|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/|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)}(h6Return the single struct mmu_notifier for the mm & opsh]h6Return the single struct mmu_notifier for the mm & ops}(hjC}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&]uh1j3hj{hhhj{hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj[}jHj[}jIjJjKuh1hhhhj hNhNubj)}(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)}(hje}h]h Parameters}(hjg}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc}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)}(hj}h]h"const struct mmu_notifier_ops *ops}(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.chMhj~}ubj)}(hhh]jM)}(h*The operations struct being subscribe withh]h*The operations struct being subscribe with}(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)}(h8``struct mm_struct *mm`` The mm to attach notifiers too 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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj}ubj)}(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&]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&]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.}(hj~hhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmmu_notifier_put (C function)c.mmu_notifier_puthNtauh1hhj hhhNhNubh)}(hhh](h)}(h9void mmu_notifier_put (struct mmu_notifier *subscription)h]h)}(h8void mmu_notifier_put(struct mmu_notifier *subscription)h](j)}(hvoidh]hvoid}(hj[~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW~hhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMubj)}(h h]h }(hjj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW~hhhji~hMubh)}(hmmu_notifier_puth]j)}(hmmu_notifier_puth]hmmu_notifier_put}(hj|~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx~ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjW~hhhji~hMubj )}(h#(struct mmu_notifier *subscription)h]j )}(h!struct mmu_notifier *subscriptionh](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 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)}jlj~~sbc.mmu_notifier_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)}(h subscriptionh]h subscription}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj~ubah}(h]h ]h"]h$]h&]jjuh1j hjW~hhhji~hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjS~hhhji~hMubah}(h]jN~ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhji~hMhjP~hhubj4)}(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&]uh1j3hjP~hhhji~hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj3jHj3jIjJjKuh1hhhhj hNhNubj)}(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)}(hj=h]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.chMhj7ubj)}(hhh]j)}(h=``struct mmu_notifier *subscription`` The notifier to act on h](j)}(h%``struct mmu_notifier *subscription``h]jS)}(hj\h]h!struct mmu_notifier *subscription}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjVubj)}(hhh]jM)}(hThe notifier to act onh]hThe notifier to act on}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubjM)}(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.chMhj7ubjM)}(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.chMhj7ubjM)}(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.chMhj7ubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj7ubjM)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj7ubjM)}(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.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)mmu_interval_notifier_insert (C function)c.mmu_interval_notifier_inserthNtauh1hhj hhhNhNubh)}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(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}(hjUhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j)}(hmmu_interval_notifierh]hmmu_interval_notifier}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjumodnameN classnameNjpjs)}jv]jy)}jlj;sbc.mmu_interval_notifier_insertasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjQubj)}(h interval_subh]h interval_sub}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mmu_interval_notifier_insertasbuh1hhjÀ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)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÀubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubj )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hlongh]hlong}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hstarth]hstart}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubj )}(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 hjMubj )}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mmu_interval_notifier_insertasbuh1hhjՁ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)}(hopsh]hops}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՁubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMubeh}(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)}(hInsert an interval notifierh]hInsert an interval notifier}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjrhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj&hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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&]uh1jLhj˂hMhĵubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj˂hMhjubj)}(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.chMhj"ubj)}(hhh]jM)}(h#Starting virtual address to monitorh]h#Starting virtual address to monitor}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubj)}(h8``unsigned long length`` Length of the range to monitor h](j)}(h``unsigned long length``h]jS)}(hjah]hunsigned long length}(hjchhhNhNubah}(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.chMhj[ubj)}(hhh]jM)}(hLength of the range to monitorh]hLength of the range to monitor}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjubj)}(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)}(hprivate 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&]jFjAjGjGjHjGjIjJjKuh1hhhhj hNhNubj)}(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)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjKubj)}(hhh](j)}(h?``struct balloon_dev_info *balloon`` pointer to balloon device h](j)}(h$``struct balloon_dev_info *balloon``h]jS)}(hjph]h struct balloon_dev_info *balloon}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjjubj)}(hhh]jM)}(hpointer to balloon deviceh]hpointer to balloon device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjgubj)}(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’}(hjˆhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjgubeh}(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&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjKubjM)}(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.chKhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"balloon_page_finalize (C function)c.balloon_page_finalizehNtauh1hhj hhhNhNubh)}(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 }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj7hK(ubh)}(hballoon_page_finalizeh]j)}(hballoon_page_finalizeh]hballoon_page_finalize}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1hhj%hhhj7hK(ubj )}(h(struct page *page)h]j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjfhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljLsbc.balloon_page_finalizeasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjbubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj^ubah}(h]h ]h"]h$]h&]jjuh1j hj%hhhj7hK(ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj!hhhj7hK(ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj7hK(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&]uh1j3hjhhhj7hK(ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(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.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}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj?hK*hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hK*hj!ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(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.}(hj{hhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&balloon_page_list_enqueue (C function)c.balloon_page_list_enqueuehNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(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 }(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]jɊc.balloon_page_list_enqueueasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjFhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h b_dev_infoh]h b_dev_info}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct list_head *pagesh](j5)}(hj8h]hstruct}(hjlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(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_enqueueasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhubj)}(hpagesh]hpages}(hjËhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(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&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hjh]h Parameters}(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.chKEhj ubj)}(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}(hj0hhhNhNubah}(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-hhhjEhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2hKhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hKhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(h **Return**h]j)}(hjh]hReturn}(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.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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!balloon_page_enqueue (C function)c.balloon_page_enqueuehNtauh1hhj hhhNhNubh)}(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}(hjđhhhNhNubah}(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&]uh1jhjubah}(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 }(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 reftargetj!modnameN classnameNjpjs)}jv]jy)}jljsbc.balloon_page_enqueueasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjMhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h b_dev_infoh]h b_dev_info}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j;c.balloon_page_enqueueasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjoubj)}(hpageh]hpage}(hjʒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(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&]jFjAjGj jHj jIjJjKuh1hhhhj hNhNubj)}(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.chKhjubj)}(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)}(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 insert a new pageh]h9balloon device descriptor where we will insert a new page}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhKhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKhj,ubj)}(hP``struct page *page`` new page to enqueue - allocated using balloon_page_alloc. h](j)}(h``struct page *page``h]jS)}(hjnh]hstruct page *page}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjhubj)}(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&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhj,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&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(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.chKhjubjM)}(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.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!balloon_page_dequeue (C function)c.balloon_page_dequeuehNtauh1hhj hhhNhNubh)}(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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKubh)}(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_dequeueasbuh1hhjhhhj hKubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKubjF )}(hjI h]h*}(hjKhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj hKubh)}(hballoon_page_dequeueh]j)}(hj:h]hballoon_page_dequeue}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hKubj )}(h%(struct balloon_dev_info *b_dev_info)h]j )}(h#struct balloon_dev_info *b_dev_infoh](j5)}(hj8h]hstruct}(hjwhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j)}(hballoon_dev_infoh]hballoon_dev_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j8c.balloon_page_dequeueasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsubj)}(h b_dev_infoh]h b_dev_info}(hjΔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubah}(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)}(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&]uh1j3hjhhhj hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hj9h]h#struct balloon_dev_info *b_dev_info}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj3ubj)}(hhh]jM)}(h9balloon device descriptor where we will grab a page from.h]h9balloon device descriptor where we will grab a page from.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhKhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhKhj0ubah}(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 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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmf_insert_pfn_pmd (C function)c.vmf_insert_pfn_pmdhNtauh1hhj hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlvmf_insert_pfn_pmdsbc.vmf_insert_pfn_pmdasbuh1hhj hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj1hMubh)}(hvmf_insert_pfn_pmdh]j)}(hj.h]hvmf_insert_pfn_pmd}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj1hMubj )}(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 }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j,c.vmf_insert_pfn_pmdasbuh1hhj[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)}(hvmfh]hvmf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubj )}(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 hjWubj )}(h bool writeh](j)}(hj)h]hbool}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hwriteh]hwrite}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubeh}(h]h ]h"]h$]h&]jjuh1j hj hhhj1hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj1hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj1hMhjhhubj4)}(hhh]jM)}(hinsert a pmd size pfnh]hinsert a pmd size pfn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjbhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj1hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj}jHj}jIjJjKuh1hhhhj hNhNubj)}(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.chMhjubj)}(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.chMhjubj)}(hhh]jM)}(hStructure describing the faulth]hStructure describing the fault}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h$``unsigned long pfn`` pfn to insert h](j)}(h``unsigned long pfn``h]jS)}(hjߗh]hunsigned long pfn}(hjhhhNhNubah}(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)}(h pfn to inserth]h pfn to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjٗubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(hj1hhhNhNubah}(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)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(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.}(hjihhhNhNubah}(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)}(hjzh]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmf_insert_pfn_pud (C function)c.vmf_insert_pfn_pudhNtauh1hhj hhhNhNubh)}(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}(hj˜hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjĘmodnameN 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&]uh1jhjhhhjhMubh)}(hvmf_insert_pfn_pudh]j)}(hjh]hvmf_insert_pfn_pud}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h5(struct vm_fault *vmf, unsigned long pfn, bool write)h](j )}(hstruct vm_fault *vmfh](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_faulth]hvm_fault}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj1modnameN classnameNjpjs)}jv]jޘc.vmf_insert_pfn_pudasbuh1hhj 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)}(hvmfh]hvmf}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hunsigned long pfnh](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)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(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 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)}(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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj/jHj/jIjJjKuh1hhhhj hNhNubj)}(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)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj3ubj)}(hhh](j)}(h8``struct vm_fault *vmf`` Structure describing the fault h](j)}(h``struct vm_fault *vmf``h]jS)}(hjXh]hstruct vm_fault *vmf}(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)}(hStructure describing the faulth]hStructure describing the fault}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubj)}(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&]uh1jhjhMhjOubj)}(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.chMhjĚubj)}(hhh]jM)}(hwhether it's a write faulth]hwhether it’s a write fault}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjߚhMhjubah}(h]h ]h"]h$]h&]uh1jhjĚubeh}(h]h ]h"]h$]h&]uh1jhjߚhMhjOubeh}(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&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj3ubjM)}(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.chMhj3ubjM)}(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.chMhj3ubjM)}(hvm_fault_t value.h]hvm_fault_t value.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!vmf_insert_folio_pud (C function)c.vmf_insert_folio_pudhNtauh1hhj hhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjvmodnameN classnameNjpjs)}jv]jy)}jlvmf_insert_folio_pudsbc.vmf_insert_folio_pudasbuh1hhjmhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjhMubh)}(hvmf_insert_folio_pudh]j)}(hjh]hvmf_insert_folio_pud}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjmhhhjhMubj )}(h7(struct vm_fault *vmf, struct folio *folio, bool write)h](j )}(hstruct vm_fault *vmfh](j5)}(hj8h]hstruct}(hjÛhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjЛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޛubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN 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}(hj3hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]j)}(hfolioh]hfolio}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjSmodnameN classnameNjpjs)}jv]jc.vmf_insert_folio_pudasbuh1hhj/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 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 hjmhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjihhhjhMubah}(h]jdah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjfhhubj4)}(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&]uh1j3hjfhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hj h]h Parameters}(hj hhhNhNubah}(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.chMhj#ubj)}(hhh]jM)}(hStructure describing the faulth]hStructure describing the fault}(hjBhhhNhNubah}(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 folio *folio`` folio to insert h](j)}(h``struct folio *folio``h]jS)}(hjbh]hstruct folio *folio}(hjdhhhNhNubah}(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)}(hfolio to inserth]hfolio to insert}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhj ubj)}(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&]uh1jhjhMhj ubeh}(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.chM hjubjM)}(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.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htouch_pmd (C function) c.touch_pmdhNtauh1hhj hhhNhNubh)}(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.chM5ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj(hM5ubh)}(h touch_pmdh]j)}(h touch_pmdh]h touch_pmd}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj(hM5ubj )}(hH(struct vm_area_struct *vma, unsigned long addr, pmd_t *pmd, bool write)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjWhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjwmodnameN classnameNjpjs)}jv]jy)}jlj=sb c.touch_pmdasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjSubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŞubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŞubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŞubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubj )}(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 }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjIhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpmdh]hpmd}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubj )}(h bool writeh](j)}(hj)h]hbool}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hwriteh]hwrite}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj(hM5ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj(hM5ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj(hM5hjhhubj4)}(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.chM5hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj(hM5ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj̟jHj̟jIjJjKuh1hhhhj hNhNubj)}(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.chM9hjП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.chM6hjubj)}(hhh]jM)}(hThe VMA covering **addr**h](hThe VMA covering }(hjhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jLhj hM6hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM6hjubj)}(h+``unsigned long addr`` The virtual address 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&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM7hj6ubj)}(hhh]jM)}(hThe virtual addressh]hThe virtual address}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhM7hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM7hjubj)}(h@``pmd_t *pmd`` pmd pointer into the page table mapping **addr** h](j)}(h``pmd_t *pmd``h]jS)}(hjuh]h pmd_t *pmd}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjsubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM8hjoubj)}(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&]uh1jLhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubj)}(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.chM9hjubj)}(hhh]jM)}(hWhether it's a write accessh]hWhether it’s a write access}(hjՠhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjѠhM9hjҠubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjѠhM9hjubeh}(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.chM;hjП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.chM;hjПubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hzap_huge_pmd (C function)c.zap_huge_pmdhNtauh1hhj hhhNhNubh)}(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}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhM ubh)}(h zap_huge_pmdh]j)}(h zap_huge_pmdh]h zap_huge_pmd}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1hhj8hhhjIhM 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}(hjxhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(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)}jlj^sbc.zap_huge_pmdasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjF )}(hjI h]h*}(hjġhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjtubj)}(htlbh]htlb}(hjѡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpubj )}(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 reftargetj modnameN classnameNjpjs)}jv]jc.zap_huge_pmdasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj4hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpubj )}(h pmd_t *pmdh](h)}(hhh]j)}(hpmd_th]hpmd_t}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]jc.zap_huge_pmdasbuh1hhjVubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVubj)}(hpmdh]hpmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpubj )}(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 hjpubeh}(h]h ]h"]h$]h&]jjuh1j hj8hhhjIhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj4hhhjIhM ubah}(h]j/ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjIhM hj1hhubj4)}(hhh]jM)}(h$Zap a huge THP which is of PMD size.h]h$Zap a huge THP which is of PMD size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hj1hhhjIhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj)jHj)jIjJjKuh1hhhhj hNhNubj)}(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)}(hj3h]h Parameters}(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 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)}(hjRh]hstruct mmu_gather *tlb}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM hjLubj)}(hhh]jM)}(h7The MMU gather TLB state associated with the operation.h]h7The MMU gather TLB state associated with the operation.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjghM hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM hjIubj)}(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.chM 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&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjIubj)}(h0``pmd_t *pmd`` A pointer to the leaf PMD entry. h](j)}(h``pmd_t *pmd``h]jS)}(hjģh]h pmd_t *pmd}(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.chM 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٣hM hjڣubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj٣hM hjIubj)}(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.chM 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&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjIubeh}(h]h ]h"]h$]h&]uh1jhj-ubjM)}(h **Return**h]j)}(hj8h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM hj-ubjM)}(h)``true`` on success, ``false`` otherwise.h](jS)}(h``true``h]htrue}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubh on success, }(hjNhhhNhNubjS)}(h ``false``h]hfalse}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubh otherwise.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__split_unmapped_folio (C function)c.__split_unmapped_foliohNtauh1hhj hhhNhNubh)}(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.chMjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMjubh)}(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&]jjuh1hhjhhhjhMjubj )}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֤ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjҤubj )}(h int new_orderh](j)}(hinth]hint}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h new_orderh]h new_order}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjҤubj )}(hstruct page *split_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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__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)}(hsplit_ath]hsplit_at}(hjإhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__split_unmapped_folioasbuh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj;hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hxash]hxas}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjҤubj )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjahhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj]ubj)}(h h]h }(hjnhhhNhNubah}(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]jc.__split_unmapped_folioasbuh1hhj]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 )}(henum split_type split_typeh](j5)}(hjh]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 hjhhhjhMjubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMjubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMjhjhhubj4)}(hhh]jM)}(hcsplits an unmapped **folio** to lower order folios in two ways: uniform split or non-uniform split.h](hsplits an unmapped }(hjEhhhNhNubj)}(h **folio**h]hfolio}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubhG to lower order folios in two ways: uniform split or non-uniform split.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMjhjBhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMjubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjojHjojIjJjKuh1hhhhj hNhNubj)}(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)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMnhjsubj)}(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.chMlhjubj)}(hhh]jM)}(hthe to-be-split folioh]hthe to-be-split folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMlhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMlhjubj)}(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.chMohj˧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.chMmhjubah}(h]h ]h"]h$]h&]uh1jhj˧ubeh}(h]h ]h"]h$]h&]uh1jhjhMohjubj)}(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.chMqhjubj)}(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 }(hj6hhhNhNubj)}(h **split_at**h]hsplit_at}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh' will be split until its order becomes }(hj6hhhNhNubj)}(h **new_order**h]h new_order}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMphj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMqhjubj)}(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)}(hj{h]hstruct xa_state *xas}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMrhjuubj)}(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&]uh1jLhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubj)}(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.chMshjubj)}(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ɨhMshjʨubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɨhMshjubj)}(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.chMthjubj)}(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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMthj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMthjubeh}(h]h ]h"]h$]h&]uh1jhjsubjM)}(h**Description**h]j)}(hj1h]h Description}(hj3hhhNhNubah}(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.chMvhjsubj+)}(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 }(hjNhhhNhNubj)}(h **folio**h]hfolio}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh into multiple }(hjNhhhNhNubj)}(h **new_order**h]h new_order}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubhn small folios, where all small folios have the same order. This is done when split_type is SPLIT_TYPE_UNIFORM.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMuhjJubah}(h]h ]h"]h$]h&]uh1j+hjGubj+)}(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.chMxhjubah}(h]h ]h"]h$]h&]uh1j+hjGubeh}(h]h ]h"]h$]h&]j+j+j+hj+j+uh1j+hjsubjM)}(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.chM}hjsubj+)}(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}(hj hhhNhNubah}(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.chMhjubah}(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 - }(hjAhhhNhNubj)}(h **new_order**h]h new_order}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubhV calls to __split_folio_to_order() are expected to be made in a for loop to split the }(hjAhhhNhNubj)}(h **folio**h]hfolio}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh4 to one lower order at a time. The folio containing }(hjAhhhNhNubj)}(h **split_at**h]hsplit_at}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh is split in each iteration. }(hjAhhhNhNubj)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh= is split into half in each iteration and can fail. A failed }(hjAhhhNhNubj)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh; split leaves split folios as is without merging them back.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj=ubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]j+j+j+hj+j+uh1j+hjsubjM)}(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.chMhjsubjM)}(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.chMhjsubjM)}(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}(hj hhhNhNubah}(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.chMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#folio_check_splittable (C function)c.folio_check_splittablehNtauh1hhj hhhNhNubh)}(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}(hjBhhhNhNubah}(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 }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhjPhMubh)}(hfolio_check_splittableh]j)}(hfolio_check_splittableh]hfolio_check_splittable}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj>hhhjPhMubj )}(hI(struct folio *folio, unsigned int new_order, enum split_type split_type)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)}jljesbc.folio_check_splittableasbuh1hhj{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 hjwubj )}(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 hjwubj )}(henum split_type split_typeh](j5)}(hjh]henum}(hjBhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]j)}(h split_typeh]h split_type}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbmodnameN classnameNjpjs)}jv]jc.folio_check_splittableasbuh1hhj>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 hjwubeh}(h]h ]h"]h$]h&]jjuh1j hj>hhhjPhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj:hhhjPhMubah}(h]j5ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjPhMhj7hhubj4)}(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&]uh1j3hj7hhhjPhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjάjHjάjIjJjKuh1hhhhj hNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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)}(hj0h]hunsigned int new_order}(hj2hhhNhNubah}(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 }(hjIhhhNhNubj)}(h **folio**h]hfolio}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh’s order - 1 to new_order).}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjubj)}(h<``enum split_type split_type`` uniform or non-uniform split h](j)}(h``enum split_type split_type``h]jS)}(hj|h]henum split_type split_type}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjvubj)}(hhh]jM)}(huniform or non-uniform splith]huniform or non-uniform split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(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)}(hj;h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(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 - }(hjQhhhNhNubj)}(h **folio**h]hfolio}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh can be split to }(hjQhhhNhNubj)}(h **new_order**h]h new_order}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh(, otherwise an error number is returned.}(hjQhhhNhNubeh}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__folio_split (C function)c.__folio_splithNtauh1hhj hhhNhNubh)}(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.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&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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}(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)}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}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݮubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjٮubj )}(hunsigned int new_orderh](j)}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hinth]hint}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h new_orderh]h new_order}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(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}(hj¯hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjįmodnameN classnameNjpjs)}jv]jc.__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}(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&]uh1j4hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubhI)}(hhh]j)}(hpageh]hpage}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4modnameN classnameNjpjs)}jv]jc.__folio_splitasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj^hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hlock_ath]hlock_at}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjٮubj )}(hstruct list_head *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.__folio_splitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjΰhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hlisth]hlist}(hj۰hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjٮubj )}(henum split_type split_typeh](j5)}(hjh]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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__folio_splitasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(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 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 }(hjhhhhNhNubj)}(h **split_at**h]hsplit_at}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh to a }(hjhhhhNhNubj)}(h **new_order**h]h new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh folio}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjehhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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.chMhjubj)}(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.chMhjDZubj)}(hhh]jM)}(hfolio to splith]hfolio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjDZubeh}(h]h ]h"]h$]h&]uh1jhjhMhjıubj)}(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.chMhjubj)}(hhh]jM)}(hthe order of the new folioh]hthe order of the new folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjıubj)}(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}(hjAhhhNhNubah}(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.chMhj9ubj)}(hhh]jM)}(ha page within the new folioh]ha page within the new folio}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjıubj)}(hM``struct page *lock_at`` a page within **folio** to be left locked to caller h](j)}(h``struct page *lock_at``h]jS)}(hjxh]hstruct page *lock_at}(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)}(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&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjıubj)}(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)}(hjòh]hstruct list_head *list}(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)}(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زhMhjٲubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjزhMhjıubj)}(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.chMhjubj)}(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&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjıubeh}(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&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(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 }(hjMhhhNhNubj)}(h **folio**h]hfolio}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh for __split_unmapped_folio().}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(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 }(hjnhhhNhNubj)}(h **lock_at**h]hlock_at}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh? remains locked and others are unlocked: 1. for uniform split, }(hjnhhhNhNubj)}(h **lock_at**h]hlock_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh points to one of }(hjnhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh@’s subpages; 2. for buddy allocator like (non-uniform) split, }(hjnhhhNhNubj)}(h **lock_at**h]hlock_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh points to }(hjnhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh.}(hjnhhhNhNubeh}(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}(hj hhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_split_unmapped (C function)c.folio_split_unmappedhNtauh1hhj hhhNhNubh)}(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}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMzubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhjPhMzubh)}(hfolio_split_unmappedh]j)}(hfolio_split_unmappedh]hfolio_split_unmapped}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj>hhhjPhMzubj )}(h-(struct folio *folio, unsigned int new_order)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)}jljesbc.folio_split_unmappedasbuh1hhj{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 hjwubj )}(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 hjwubeh}(h]h ]h"]h$]h&]jjuh1j hj>hhhjPhMzubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj:hhhjPhMzubah}(h]j5ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjPhMzhj7hhubj4)}(hhh]jM)}(h1split a large anon folio that is already unmappedh]h1split a large anon folio that is already unmapped}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMzhjPhhubah}(h]h ]h"]h$]h&]uh1j3hj7hhhjPhMzubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjkjHjkjIjJjKuh1hhhhj hNhNubj)}(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)}(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.chM~hjoubj)}(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.chM{hjubj)}(hhh]jM)}(hfolio to splith]hfolio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjubj)}(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.chM|hjǵubj)}(hhh]jM)}(hthe order of folios after splith]hthe order of folios after split}(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&]uh1jhjoubjM)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(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.chM~hjoubjM)}(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.chM}hjoubjM)}(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}(hj5hhhNhNubah}(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}(hjGhhhNhNubah}(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.chMhjoubjM)}(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.chMhjoubjM)}(h **Return**h]j)}(hjqh]hReturn}(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.chMhjoubjM)}(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.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_split (C function) c.folio_splithNtauh1hhj hhhNhNubh)}(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 }(hjŶhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjĶhMubh)}(h folio_splith]j)}(h folio_splith]h folio_split}(hj׶hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӶubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjĶhMubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljٶsb c.folio_splitasbuh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj?hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int new_orderh](j)}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h new_orderh]h new_order}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *split_ath](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]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&]uh1j4hj"ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]j)}(h list_headh]h list_head}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjFmodnameN classnameNjpjs)}jv]j- c.folio_splitasbuh1hhj"ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjF )}(hjI h]h*}(hjphhhNhNubah}(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 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)}(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&]uh1j3hjhhhjĶhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj hNhNubj)}(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)}(hj h]hstruct folio *folio}(hjhhhNhNubah}(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)}(hfolio to splith]hfolio to split}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(h6``unsigned int new_order`` the order of the new folio h](j)}(h``unsigned int new_order``h]jS)}(hjEh]hunsigned int new_order}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCubah}(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}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjubj)}(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}(hjhhhNhNubah}(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)}(ha page within the new folioh]ha page within the new folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(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 }(hjйhhhNhNubj)}(h**list**h]hlist}(hjعhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjйubh# if not null, otherwise to LRU list}(hjйhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj͹ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̹hMhjubeh}(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}(hj2hhhNhNubah}(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}(hjDhhhNhNubah}(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.}(hj]hhhNhNubah}(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)}(hjnh]hReturn}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h min_order_for_split (C function)c.min_order_for_splithNtauh1hhj hhhNhNubh)}(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}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӺhhhjhMubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӺhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӺhhhjhMubh)}(hmin_order_for_splith]j)}(hmin_order_for_splith]hmin_order_for_split}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjӺhhhjhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj0hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj,ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubh)}(hhh]j)}(hfolioh]hfolio}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjPmodnameN classnameNjpjs)}jv]jy)}jljsbc.min_order_for_splitasbuh1hhj,ubj)}(h h]h }(hjnhhhNhNubah}(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 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)}(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&]uh1j3hj̺hhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjݻjHjݻjIjJjKuh1hhhhj hNhNubj)}(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)}(hjAh]h Description}(hjChhhNhNubah}(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 }(hjWhhhNhNubj)}(h **folio**h]hfolio}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh 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.}(hjWhhhNhNubeh}(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)}(hjzh]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(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&]uh1jhj hhhNhNubeh}(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^jJjGjjjEjBjYjVj|pjypjjjjj0j-jjjjjjj jjju nametypes}(jjFjbjajJjjEjYj|pjjj0jjjj juh}(jhjChhhjjjjjjjjj j j j j@jIj^jIjGjZjjMjBjjVjHjypjijjjmjrjjjjjojjj'j,j$j$jd'ji'j)j)j9,j>,j1j!1j3j3j5j5j6j6jz8j8je:jj:j<j<j?j?j@jAjBjBjJDjODjGjGjeIjjIj`KjeKj0Mj5MjNjNjSjSjVjVj!Xj&XjZjZjS^jX^jbjcj%gj*gjhjhjjjjj^ljcljmjmjoj ojjpjpjpjqjqjsjsjovjtvjGxjLxjyjyj}j}j0j5j,j1jjjjjujzjj jPjUjvj{jjjjj\jajjj-j%jBjGj jjjƠjwj|j@jEjjjjjDjIjjjƱj˱jjjjjʸjϸjrjwjjjjjjjjjojjjjjjjjjjjxj}j j%jjjjjjj~jjjjjj{jj~jjjj?jDjjjFjKjj3jjjVj[jjj"j'jujzjj j j jvj{jjj1j6jjjjjOjTjjjjjjjdjij!j!jA#jF#j&j&j(j(jh*jm*jy,j~,j.j.j.1j31j3j3j5j5j7j7jT9jY9j:j:j<j<j>j>j@j@jBjBjTDjYDjPFjUFjHjHj5Jj:Jj\LjaLjMjMjqQjvQjSjSjVjVj0Yj5Yj[j[js^jx^jajajdj djejejbgjggjijij ljljnjnjSpjXpj!rj&rjsjsjujujOwjTwjzjzj{j{jjjjjjj,j1jjj>jCjЋjՋjYj^j̏jяjjjjjljqjjjΙjәjjjDjIjjjjjijnjϫjԫjj j)j.jjjkjpjjjjźjϽjԽjjjjjjjjjjjjjjjJjOjjjjjjjXj]jjjjjjj(j-jj$jj jjjjjjjjjjj\jajjjgjljjjjjjj* j/ jjjjjjjjjjjjjjj j j$j$j(j(j*j*j-j-j/j/jE2jJ2j4j4j#6j(6j>j>j/Dj4DjDjDjHjHj@MjEMj'Oj,OjPjPjLRjQRjTjTjVj VjkWjpWjYjYj7[j<[j\j\j^j^j>`jC`jajajVdj[djdjdjfjfjahjfhj@jjEjjkjkjmjmjLojQojpjpj`rjerjsjsjujujwjwjGyjLyj&{j+{j}}j}jjj+j0jjjjjhjmj j%j_jdjejjj;j@jjjjjkjpj&j+jjj(j-jÛjțjj jjjjj٤jޤjjæjjjjj'j,jjj%j*jBjGjjjjj,j1jjj0j5jjjjjjjjjjjjjjj1j6jjjjjjj7j<jjjjjjjjjjjjj8j=jjjjjjj&j+jj jjj: j? jj!jjjBjGj_jdjjjGjLjf jk j!j!j%j %j(j(j?,jD,j/j/jW7j\7j9:j>:j<j<j?j?jCjCjEjEjUHjZHjIjIjKjKjeMjjMjNjNjaPjfPjQjQjISjNSjTjTjJWjOWjXjXj[j[j\j\j+^j0^j=ajBajbjbjRfjWfjhjhjbjjgjjDljIljmjmjpjpjqjqj`sjesjujujwjwj,yj1yj{j {j|j|jYj^jjjejjj!j&j`jejj!jjjjj$j)jj jjjdjij]jbj jjUjZjjj$j)j=jBjjjvj{jjj#j(jŰjʰjjj+j0jfjkjjj2j7j2j7j2j7jgjlj$j)jjjjjjjWj\j7j<jvj{jjjjjjj/j4jjj}jjjjjjjjnjsjjjjjj#j#j(jjjjjjj5j:jjj j j j j1j6jjjjj-j2jjjjj9j>j'j,j j jd"ji"j$j$j'j'j*j*j1.j6.jG0jL0j2j2j05j55j7j7jf9jk9j<j<jJ>jO>j?j?j@j@jiBjnBjDj DjEjEjGjGjIjJjKjKjMjMjQjRjKUjPUj=YjBYjM[jR[j]j]j`j`jcjcjejejZgj_gjijijSljXlj njnj@pjEpjqjqjhtjmtjujujwjwjhyjmyj{j{jN~jS~j jjj!jjjjjj!jjjjj+j0jjjjjjjjjdjijjj/j4jjj5j:jjj5j:jjjʺjϺu 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.}hjQsbah}(h]h ]h"]h$]h&]uh1jLhjNubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehʌlineKuh1jLuba transformerN include_log] decorationNhhub.