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.chMIubj)}(h h]h }(hjfDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSDhhhjeDhMIubjF )}(hjI h]h*}(hjtDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjSDhhhjeDhMIubh)}(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&]jjuh1hhjSDhhhjeDhMIubj )}(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 hjSDhhhjeDhMIubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjODhhhjeDhMIubah}(h]jJDah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjeDhMIhjLDhhubj4)}(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.chMIhjEhhubah}(h]h ]h"]h$]h&]uh1j3hjLDhhhjeDhMIubeh}(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.chMMhjEubj)}(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.chMJhjEubj)}(hhh]jM)}(hThe cache to allocate from.h]hThe cache to allocate from.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMJhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMJhjEubj)}(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.chMKhjFubj)}(hhh]jM)}(hSee kmalloc().h]hSee kmalloc().}(hj4FhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0FhMKhj1Fubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhj0FhMKhjEubj)}(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.chMLhjNFubj)}(hhh]jM)}(hnode number of the target node.h]hnode number of the target node.}(hjmFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjiFhMLhjjFubah}(h]h ]h"]h$]h&]uh1jhjNFubeh}(h]h ]h"]h$]h&]uh1jhjiFhMLhjEubeh}(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.chMNhjEubjM)}(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.chMMhjEubjM)}(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.chMPhjEubjM)}(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.chMRhjEubjM)}(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.chMShjEubeh}(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.chMCubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhMCubjF )}(hjI h]h*}(hjNhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjNhhhjNhMCubh)}(hkrealloc_node_alignh]j)}(hkrealloc_node_alignh]hkrealloc_node_align}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1hhjNhhhjNhMCubj )}(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.chMIhjPubjM)}(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.chMLhjPubjM)}(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.chMOhjPubjM)}(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.chMThjPubj()}(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.chMYhjPubjM)}(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.chMbhjPubjM)}(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.chMehjPubjM)}(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_atomic (C function)c.kvfree_atomichNtauh1hhjihhhNhNubh)}(hhh](h)}(h%void kvfree_atomic (const void *addr)h]h)}(h$void kvfree_atomic(const void *addr)h](j)}(hvoidh]hvoid}(hj.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^ubj)}(hhh]jM)}(h&the flags for the page level allocatorh]h&the flags for the page level allocator}(hj]^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjY^hM hjZ^ubah}(h]h ]h"]h$]h&]uh1jhj>^ubeh}(h]h ]h"]h$]h&]uh1jhjY^hM hj]ubj)}(h``int nid`` NUMA node id 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&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjw^ubj)}(hhh]jM)}(h NUMA node idh]h NUMA node id}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjw^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj]ubeh}(h]h ]h"]h$]h&]uh1jhjt]ubjM)}(h**Description**h]j)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjt]ubjM)}(hIf **p** is ``NULL``, kvrealloc() behaves exactly like kvmalloc(). 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}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ubh2, kvrealloc() behaves exactly like kvmalloc(). If }(hj^hhhNhNubj)}(h**size**h]hsize}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh is 0 and }(hj^hhhNhNubj)}(h**p**h]hp}(hj _hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh is not a }(hj^hhhNhNubjS)}(h``NULL``h]hNULL}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ubh) pointer, the object pointed to is freed.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjt]ubjM)}(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.}(hj7_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjt]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&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjt]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.}(hjU_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjt]ubjM)}(heThis function must not be called concurrently with itself or kvfree() for the same memory allocation.h]heThis function must not be called concurrently with itself or kvfree() for the same memory allocation.}(hjd_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjt]ubjM)}(h **Return**h]j)}(hju_h]hReturn}(hjw_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs_ubah}(h]h ]h"]h$]h&]uh1jLhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM hjt]ubjM)}(h`ubj )}(hunsigned int object_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 }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h object_sizeh]h object_size}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>`ubj )}(hstruct kmem_cache_args *argsh](j5)}(hj8h]hstruct}(hj`hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj`ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]j)}(hkmem_cache_argsh]hkmem_cache_args}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjamodnameN classnameNjpjs)}jv]j`c.__kmem_cache_create_argsasbuh1hhj`ubj)}(h h]h }(hj0ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjF )}(hjI h]h*}(hj>ahhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj`ubj)}(hargsh]hargs}(hjKahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>`ubj )}(hslab_flags_t flagsh](h)}(hhh]j)}(h slab_flags_th]h slab_flags_t}(hjgahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjiamodnameN classnameNjpjs)}jv]j`c.__kmem_cache_create_argsasbuh1hhj`aubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`aubj)}(hflagsh]hflags}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`aubeh}(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 kmem cache.h]hCreate a kmem cache.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM$hjahhubah}(h]h ]h"]h$]h&]uh1j3hj_hhhj_hM$ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjajHjajIjJjKuh1hhhhjihNhNubj)}(hX**Parameters** ``const char *name`` A string which is used in /proc/slabinfo to identify this cache. ``unsigned int object_size`` The size of objects to be created in this cache. ``struct kmem_cache_args *args`` Additional arguments for the cache creation (see :c:type:`struct kmem_cache_args `). ``slab_flags_t flags`` See the descriptions of individual flags. The common ones are listed in the description below. **Description** Not to be called directly, use the kmem_cache_create() wrapper with the same parameters. Commonly used **flags**: :c:type:`SLAB_ACCOUNT` - Account allocations to memcg. :c:type:`SLAB_HWCACHE_ALIGN` - Align objects on cache line boundaries. :c:type:`SLAB_RECLAIM_ACCOUNT` - Objects are reclaimable. :c:type:`SLAB_TYPESAFE_BY_RCU` - Slab page (not individual objects) freeing delayed by a grace period - see the full description before using. **Context** Cannot be called within a interrupt, but can be interrupted. **Return** a pointer to the cache on success, NULL on failure.h](jM)}(h**Parameters**h]j)}(hjah]h Parameters}(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(hjaubj)}(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)}(hjah]hconst char *name}(hjbhhhNhNubah}(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%hjaubj)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbhM%hjbubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjbhM%hjaubj)}(hN``unsigned int object_size`` The size of objects to be created in this cache. h](j)}(h``unsigned int object_size``h]jS)}(hj7bh]hunsigned int object_size}(hj9bhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5bubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM&hj1bubj)}(hhh]jM)}(h0The size of objects to be created in this cache.h]h0The size of objects to be created in this cache.}(hjPbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLbhM&hjMbubah}(h]h ]h"]h$]h&]uh1jhj1bubeh}(h]h ]h"]h$]h&]uh1jhjLbhM&hjaubj)}(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)}(hjpbh]hstruct kmem_cache_args *args}(hjrbhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnbubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM(hjjbubj)}(hhh]jM)}(heAdditional arguments for the cache creation (see :c:type:`struct kmem_cache_args `).h](h1Additional arguments for the cache creation (see }(hjbhhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]jS)}(hjbh]hstruct kmem_cache_args}(hjbhhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjbubah}(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'hjbubh).}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjbhM'hjbubah}(h]h ]h"]h$]h&]uh1jhjjbubeh}(h]h ]h"]h$]h&]uh1jhjbhM(hjaubj)}(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)}(hjbh]hslab_flags_t flags}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM*hjbubj)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM)hjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhM*hjaubeh}(h]h ]h"]h$]h&]uh1jhjaubjM)}(h**Description**h]j)}(hj ch]h Description}(hj chhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM,hjaubjM)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM+hjaubjM)}(hCommonly used **flags**:h](hCommonly used }(hj.chhhNhNubj)}(h **flags**h]hflags}(hj6chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.cubh:}(hj.chhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM.hjaubjM)}(h6:c:type:`SLAB_ACCOUNT` - Account allocations to memcg.h](h)}(h:c:type:`SLAB_ACCOUNT`h]jS)}(hjUch]h SLAB_ACCOUNT}(hjWchhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjScubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjN SLAB_ACCOUNTuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM0hjOcubh - Account allocations to memcg.}(hjOchhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjrchM0hjaubjM)}(hF:c:type:`SLAB_HWCACHE_ALIGN` - Align objects on cache line boundaries.h](h)}(h:c:type:`SLAB_HWCACHE_ALIGN`h]jS)}(hjch]hSLAB_HWCACHE_ALIGN}(hjchhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjcubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNSLAB_HWCACHE_ALIGNuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM2hj}cubh* - Align objects on cache line boundaries.}(hj}chhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjchM2hjaubjM)}(h9:c:type:`SLAB_RECLAIM_ACCOUNT` - Objects are reclaimable.h](h)}(h:c:type:`SLAB_RECLAIM_ACCOUNT`h]jS)}(hjch]hSLAB_RECLAIM_ACCOUNT}(hjchhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjcubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNSLAB_RECLAIM_ACCOUNTuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM4hjcubh - Objects are reclaimable.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjchM4hjaubjM)}(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)}(hjch]hSLAB_TYPESAFE_BY_RCU}(hjchhhNhNubah}(h]h ](j9jAc-typeeh"]h$]h&]uh1jRhjcubah}(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.chM6hjcubhp - Slab page (not individual objects) freeing delayed by a grace period - see the full description before using.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjchM6hjaubjM)}(h **Context**h]j)}(hj dh]hContext}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM9hjaubjM)}(hnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM'hj;nhhubah}(h]h ]h"]h$]h&]uh1j3hjmhhhjmhM'ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjVnjHjVnjIjJjKuh1hhhhjihNhNubj)}(hX**Parameters** ``void`` no arguments **Description** Note that a single argument of kvfree_rcu() call has a slow path that triggers synchronize_rcu() following by freeing a pointer. It is done before the return from the function. Therefore for any single-argument call that will result in a kfree() to a cache that is to be destroyed during module exit, it is developer's responsibility to ensure that all such calls have returned before the call to kmem_cache_destroy().h](jM)}(h**Parameters**h]j)}(hj`nh]h Parameters}(hjbnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^nubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM+hjZnubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]jS)}(hjnh]hvoid}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj}nubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chKhjynubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjnhKhjnubah}(h]h ]h"]h$]h&]uh1jhjynubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjvnubah}(h]h ]h"]h$]h&]uh1jhjZnubjM)}(h**Description**h]j)}(hjnh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chKhjZnubjM)}(hXNote that a single argument of kvfree_rcu() call has a slow path that triggers synchronize_rcu() following by freeing a pointer. It is done before the return from the function. Therefore for any single-argument call that will result in a kfree() to a cache that is to be destroyed during module exit, it is developer's responsibility to ensure that all such calls have returned before the call to kmem_cache_destroy().h]hXNote that a single argument of kvfree_rcu() call has a slow path that triggers synchronize_rcu() following by freeing a pointer. It is done before the return from the function. Therefore for any single-argument call that will result in a kfree() to a cache that is to be destroyed during module exit, it is developer’s responsibility to ensure that all such calls have returned before the call to kmem_cache_destroy().}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM(hjZnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(kvfree_rcu_barrier_on_cache (C function)c.kvfree_rcu_barrier_on_cachehNtauh1hhjihhhNhNubh)}(hhh](h)}(h7void kvfree_rcu_barrier_on_cache (struct kmem_cache *s)h]h)}(h6void kvfree_rcu_barrier_on_cache(struct kmem_cache *s)h](j)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM8ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhj ohM8ubh)}(hkvfree_rcu_barrier_on_cacheh]j)}(hkvfree_rcu_barrier_on_cacheh]hkvfree_rcu_barrier_on_cache}(hj ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1hhjnhhhj ohM8ubj )}(h(struct kmem_cache *s)h]j )}(hstruct kmem_cache *sh](j5)}(hj8h]hstruct}(hjmap pages linearly into kernel virtual address (vmalloc space)h]h>map pages linearly into kernel virtual address (vmalloc space)}(hj|vhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyvhhubah}(h]h ]h"]h$]h&]uh1j3hjuhhhj*uhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjvjHjvjIjJjKuh1hhhhjqhNhNubj)}(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)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjvubj)}(hhh](j)}(hG``struct page **pages`` an array of pointers to the pages to be mapped h](j)}(h``struct page **pages``h]jS)}(hjvh]hstruct page **pages}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjvubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjvubj)}(hhh]jM)}(h.an array of pointers to the pages to be mappedh]h.an array of pointers to the pages to be mapped}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvhM hjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhM hjvubj)}(h'``unsigned int count`` number of pages h](j)}(h``unsigned int count``h]jS)}(hjvh]hunsigned int count}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjvubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjvubj)}(hhh]jM)}(hnumber of pagesh]hnumber of pages}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj whM hj wubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhj whM hjvubj)}(h=``int node`` prefer to allocate data structures on this node h](j)}(h ``int node``h]jS)}(hj/wh]hint node}(hj1whhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-wubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj)wubj)}(hhh]jM)}(h/prefer to allocate data structures on this nodeh]h/prefer to allocate data structures on this node}(hjHwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDwhM hjEwubah}(h]h ]h"]h$]h&]uh1jhj)wubeh}(h]h ]h"]h$]h&]uh1jhjDwhM hjvubeh}(h]h ]h"]h$]h&]uh1jhjvubjM)}(h**Description**h]j)}(hjjwh]h Description}(hjlwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhwubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjvubjM)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjvubjM)}(h **Return**h]j)}(hjwh]hReturn}(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 hjvubjM)}(hEa pointer to the address that has been mapped, or ``NULL`` on failureh](h2a pointer to the address that has been mapped, or }(hjwhhhNhNubjS)}(h``NULL``h]hNULL}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwubh on failure}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvfree (C function)c.vfreehNtauh1hhjqhhhNhNubh)}(hhh](h)}(hvoid vfree (const void *addr)h]h)}(hvoid vfree(const void *addr)h](j)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM\ ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjwhM\ ubh)}(hvfreeh]j)}(hvfreeh]hvfree}(hj xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1hhjwhhhjwhM\ ubj )}(h(const void *addr)h]j )}(hconst void *addrh](j5)}(hjh]hconst}(hj%xhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj!xubj)}(h h]h }(hj2xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!xubj)}(hvoidh]hvoid}(hj@xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!xubj)}(h h]h }(hjNxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!xubjF )}(hjI h]h*}(hj\xhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!xubj)}(haddrh]haddr}(hjixhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!xubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjxubah}(h]h ]h"]h$]h&]jjuh1j hjwhhhjwhM\ ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjwhhhjwhM\ ubah}(h]jwah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjwhM\ hjwhhubj4)}(hhh]jM)}(h%Release memory allocated by vmalloc()h]h%Release memory allocated by vmalloc()}(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&]uh1j3hjwhhhjwhM\ ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjxjHjxjIjJjKuh1hhhhjqhNhNubj)}(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)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM` hjxubj)}(hhh]j)}(h)``const void *addr`` Memory base address h](j)}(h``const void *addr``h]jS)}(hjxh]hconst void *addr}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM] hjxubj)}(hhh]jM)}(hMemory base addressh]hMemory base address}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhM] hjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhM] hjxubah}(h]h ]h"]h$]h&]uh1jhjxubjM)}(h**Description**h]j)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj yubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM_ hjxubjM)}(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 }(hj%yhhhNhNubj)}(h**addr**h]haddr}(hj-yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%yubh, 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.}(hj%yhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM^ hjxubjM)}(h/If **addr** is NULL, no operation is performed.h](hIf }(hjFyhhhNhNubj)}(h**addr**h]haddr}(hjNyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFyubh$ is NULL, no operation is performed.}(hjFyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMc hjxubjM)}(h **Context**h]j)}(hjiyh]hContext}(hjkyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgyubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMe hjxubjM)}(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 }(hjyhhhNhNubj_)}(h*not*h]hnot}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjyubh 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).}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMf hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvunmap (C function)c.vunmaphNtauh1hhjqhhhNhNubh)}(hhh](h)}(hvoid vunmap (const void *addr)h]h)}(hvoid vunmap(const void *addr)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 ubh)}(hvunmaph]j)}(hvunmaph]hvunmap}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1hhjyhhhjyhM ubj )}(h(const void *addr)h]j )}(hconst void *addrh](j5)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjyubj)}(h h]h }(hj zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hj&zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjF )}(hjI h]h*}(hj4zhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjyubj)}(haddrh]haddr}(hjAzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjyubah}(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)}(h*release virtual mapping obtained by vmap()h]h*release virtual mapping obtained by vmap()}(hjkzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjhzhhubah}(h]h ]h"]h$]h&]uh1j3hjyhhhjyhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjzjHjzjIjJjKuh1hhhhjqhNhNubj)}(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)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjzubj)}(hhh]j)}(h)``const void *addr`` memory base address h](j)}(h``const void *addr``h]jS)}(hjzh]hconst void *addr}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjzubj)}(hhh]jM)}(hmemory base addressh]hmemory base address}(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&]uh1jhjzubjM)}(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:52: ./mm/vmalloc.chM hjzubjM)}(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 }(hjzhhhNhNubj)}(h**addr**h]haddr}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh9, which was created from the page array passed to vmap().}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjzubjM)}(h(Must not be called in interrupt context.h]h(Must not be called in interrupt context.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmap (C function)c.vmaphNtauh1hhjqhhhNhNubh)}(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}(hjM{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI{hhhL/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&]uh1jhjI{hhhj[{hM ubjF )}(hjI h]h*}(hjj{hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjI{hhhj[{hM ubh)}(hvmaph]j)}(hvmaph]hvmap}(hj{{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw{ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjI{hhhj[{hM ubj )}(hM(struct page **pages, unsigned int count, unsigned long flags, pgprot_t prot)h](j )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hj{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]j)}(hpageh]hpage}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj{modnameN classnameNjpjs)}jv]jy)}jlj}{sbc.vmapasbuh1hhj{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*}(hj{hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj{ubj)}(hpagesh]hpages}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj{ubj )}(hunsigned int 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)}(hinth]hint}(hj2|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hj@|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hcounth]hcount}(hjN|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj{ubj )}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjg|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc|ubj)}(h h]h }(hju|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc|ubj)}(hlongh]hlong}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc|ubj)}(hflagsh]hflags}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc|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]j{c.vmapasbuh1hhj|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 hjI{hhhj[{hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjE{hhhj[{hM ubah}(h]j@{ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj[{hM hjB{hhubj4)}(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&]uh1j3hjB{hhhj[{hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj)}jHj)}jIjJjKuh1hhhhjqhNhNubj)}(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)}(hj3}h]h Parameters}(hj5}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1}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)}(hjR}h]hstruct page **pages}(hjT}hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjP}ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjL}ubj)}(hhh]jM)}(harray of page pointersh]harray of page pointers}(hjk}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjg}hM hjh}ubah}(h]h ]h"]h$]h&]uh1jhjL}ubeh}(h]h ]h"]h$]h&]uh1jhjg}hM hjI}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}(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 hjI}ubj)}(h'``unsigned long flags`` vm_area->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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj}ubj)}(hhh]jM)}(hvm_area->flagsh]hvm_area->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 hjI}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 hjI}ubeh}(h]h ]h"]h$]h&]uh1jhj-}ubjM)}(h**Description**h]j)}(hj8~h]h Description}(hj:~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6~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 }(hjN~hhhNhNubj)}(h **count**h]hcount}(hjV~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN~ubh pages from }(hjN~hhhNhNubj)}(h **pages**h]hpages}(hjh~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN~ubh* into contiguous kernel virtual space. If }(hjN~hhhNhNubj)}(h **flags**h]hflags}(hjz~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN~ubh contains }(hjN~hhhNhNubjS)}(h``VM_MAP_PUT_PAGES``h]hVM_MAP_PUT_PAGES}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjN~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.}(hjN~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&]uh1jhj~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 }(hj~hhhNhNubjS)}(h``NULL``h]hNULL}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj~ubh on failure}(hj~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&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmap_pfn (C function) c.vmap_pfnhNtauh1hhjqhhhNhNubh)}(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*}(hjhhhNhNubah}(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}(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&]uh1jhjDubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hpfnsh]hpfns}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(h pgprot_t proth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj.sb c.vmap_pfnasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hproth]hprot}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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}(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&]uh1j3hj~hhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjjHjjjIjJjKuh1hhhhjqhNhNubj)}(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)}(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.chM hjnubj)}(hhh](j)}(h&``unsigned long *pfns`` array of PFNs h](j)}(h``unsigned long *pfns``h]jS)}(hjh]hunsigned long *pfns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(h array of PFNsh]h array of PFNs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjƀubj)}(hhh]jM)}(hnumber of pages to maph]hnumber of pages to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjƀubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhjnubjM)}(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:52: ./mm/vmalloc.chM hjnubjM)}(htMaps **count** PFNs from **pfns** into contiguous kernel virtual space and returns the start address of the mapping.h](hMaps }(hjVhhhNhNubj)}(h **count**h]hcount}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh PFNs from }(hjVhhhNhNubj)}(h**pfns**h]hpfns}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhS into contiguous kernel virtual space and returns the start address of the mapping.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__vmalloc_node (C function)c.__vmalloc_nodehNtauh1hhjqhhhNhNubh)}(hhh](h)}(hmvoid * __vmalloc_node (unsigned long size, unsigned long align, gfp_t gfp_mask, int node, const void *caller)h]h)}(hkvoid *__vmalloc_node(unsigned long size, unsigned long align, gfp_t gfp_mask, int node, const void *caller)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.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_nodeh]j)}(h__vmalloc_nodeh]h__vmalloc_node}(hjׁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӁubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM 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}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long alignh](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)}(halignh]halign}(hj|hhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljفsbc.__vmalloc_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hjƂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint nodeh](j)}(hinth]hint}(hj߂hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۂubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۂubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۂubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hconst void *callerh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj!hhhNhNubah}(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*}(hjKhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hcallerh]hcaller}(hjXhhhNhNubah}(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$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&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjqhNhNubj)}(hXt**Parameters** ``unsigned long size`` allocation size ``unsigned long align`` desired alignment ``gfp_t gfp_mask`` flags for the page level allocator ``int node`` node to use for allocation or NUMA_NO_NODE ``const void *caller`` caller's return address **Description** Allocate enough pages to cover **size** from the page level allocator with **gfp_mask** flags. Map them into contiguous kernel virtual space. Semantics of **gfp_mask** (including reclaim/retry modifiers such as __GFP_NOFAIL) are the same as in __vmalloc_node_range_noprof(). **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh](j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjÃh]hunsigned long size}(hjŃhhhNhNubah}(h]h ]h"]h$]h&]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}(hj܃hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj؃hM hjكubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj؃hM hjubj)}(h*``unsigned long 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 hjubj)}(h6``gfp_t gfp_mask`` flags for the page level allocator h](j)}(h``gfp_t gfp_mask``h]jS)}(hj5h]hgfp_t gfp_mask}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(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}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhM hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM hjubj)}(h8``int node`` node to use for allocation or NUMA_NO_NODE h](j)}(h ``int node``h]jS)}(hjnh]hint node}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjhubj)}(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&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``const void *caller`` caller's return address h](j)}(h``const void *caller``h]jS)}(hjh]hconst void *caller}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(hcaller's return addressh]hcaller’s return address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**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.chMhjubjM)}(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.chMhjubjM)}(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 }(hj+hhhNhNubj)}(h **gfp_mask**h]hgfp_mask}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubhk (including reclaim/retry modifiers such as __GFP_NOFAIL) are the same as in __vmalloc_node_range_noprof().}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(h **Return**h]j)}(hjNh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjdhhhNhNubjS)}(h``NULL``h]hNULL}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubh on error}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc (C function) c.vmallochNtauh1hhjqhhhNhNubh)}(hhh](h)}(h#void * vmalloc (unsigned long size)h]h)}(h!void *vmalloc(unsigned long size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM2ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM2ubjF )}(hjI h]h*}(hj…hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM2ubh)}(hvmalloch]j)}(hvmalloch]hvmalloc}(hjӅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjυubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM2ubj )}(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 }(hjhhhNhNubah}(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 hjhhhjhM2ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM2ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM2hjhhubj4)}(hhh]jM)}(h$allocate virtually contiguous memoryh]h$allocate virtually contiguous memory}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM2hjNhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM2ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjijHjijIjJjKuh1hhhhjqhNhNubj)}(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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM6hjmubj)}(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.chM3hjubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjmubjM)}(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.chM5hjmubjM)}(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 }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM4hjmubjM)}(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.chM7hjmubjM)}(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:hjmubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hj+hhhNhNubjS)}(h``NULL``h]hNULL}(hj3hhhNhNubah}(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.chM;hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_huge_node (C function)c.vmalloc_huge_nodehNtauh1hhjqhhhNhNubh)}(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}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMEubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjzhMEubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhhjzhMEubh)}(hvmalloc_huge_nodeh]j)}(hvmalloc_huge_nodeh]hvmalloc_huge_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhhjzhMEubj )}(h.(unsigned long size, gfp_t gfp_mask, int node)h](j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjćhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj҇hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljsbc.vmalloc_huge_nodeasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint nodeh](j)}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hnodeh]hnode}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhhjzhMEubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjdhhhjzhMEubah}(h]j_ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjzhMEhjahhubj4)}(hhh]jM)}(h6allocate virtually contiguous memory, allow huge pagesh]h6allocate virtually contiguous memory, allow huge pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMEhjhhubah}(h]h ]h"]h$]h&]uh1j3hjahhhjzhMEubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjqhNhNubj)}(hX**Parameters** ``unsigned long size`` allocation size ``gfp_t gfp_mask`` flags for the page level allocator ``int node`` node to use for allocation or NUMA_NO_NODE **Description** Allocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. If **size** is greater than or equal to PMD_SIZE, allow using huge pages for the memory **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMIhjubj)}(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.chMFhj҈ubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhj҈ubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjψubj)}(h6``gfp_t gfp_mask`` flags for the page level allocator h](j)}(h``gfp_t gfp_mask``h]jS)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMGhj ubj)}(hhh]jM)}(h"flags for the page level allocatorh]h"flags for the page level allocator}(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)}(h8``int node`` node to use for allocation or NUMA_NO_NODE h](j)}(h ``int node``h]jS)}(hjJh]hint node}(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.chMHhjDubj)}(hhh]jM)}(h*node to use for allocation or NUMA_NO_NODEh]h*node to use for allocation or NUMA_NO_NODE}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hMHhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMHhjψ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:52: ./mm/vmalloc.chMJhjubjM)}(hAllocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. If **size** is greater than or equal to PMD_SIZE, allow using huge pages for the memoryh](hAllocate enough pages to cover }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhU from the page level allocator and map them into contiguous kernel virtual space. If }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhL is greater than or equal to PMD_SIZE, allow using huge pages for the memory}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMIhjubjM)}(h **Return**h]j)}(hjЉh]hReturn}(hj҉hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΉubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMNhjubjM)}(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.chMOhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvzalloc (C function) c.vzallochNtauh1hhjqhhhNhNubh)}(hhh](h)}(h#void * vzalloc (unsigned long size)h]h)}(h!void *vzalloc(unsigned long size)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.chM\ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj5hM\ubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj#hhhj5hM\ubh)}(hvzalloch]j)}(hvzalloch]hvzalloc}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1hhj#hhhj5hM\ubj )}(h(unsigned long size)h]j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(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 hjiubah}(h]h ]h"]h$]h&]jjuh1j hj#hhhj5hM\ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj5hM\ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj5hM\hjhhubj4)}(hhh]jM)}(h3allocate virtually contiguous memory with zero fillh]h3allocate virtually contiguous memory with zero fill}(hjӊhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM\hjЊhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj5hM\ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjqhNhNubj)}(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}(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 ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api: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 }(hjehhhNhNubj)}(h**size**h]hsize}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubhv from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.}(hjehhhNhNubeh}(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)}(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.chMehjubjM)}(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.chMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_user (C function)c.vmalloc_userhNtauh1hhjqhhhNhNubh)}(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&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMpubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMpubh)}(h vmalloc_userh]j)}(h vmalloc_userh]h vmalloc_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMpubj )}(h(unsigned long size)h]j )}(hunsigned long sizeh](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)}(hsizeh]hsize}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj0ubah}(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)}(h9allocate zeroed virtually contiguous memory for userspaceh]h9allocate zeroed virtually contiguous memory for userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMphjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMpubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjqhNhNubj)}(h**Parameters** ``unsigned long size`` allocation size **Description** The resulting memory area is zeroed so it can be mapped to userspace without leaking data. **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMthjubj)}(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.chMqhjՌubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjՌubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjҌ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:52: ./mm/vmalloc.chMshjubjM)}(hZThe resulting memory area is zeroed so it can be mapped to userspace without leaking data.h]hZThe resulting memory area is zeroed so it can be mapped to userspace without leaking data.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMrhjubjM)}(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.chMuhjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjShhhNhNubjS)}(h``NULL``h]hNULL}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubh on error}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMvhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_node (C function)c.vmalloc_nodehNtauh1hhjqhhhNhNubh)}(hhh](h)}(h2void * vmalloc_node (unsigned long size, int node)h]h)}(h0void *vmalloc_node(unsigned long size, int node)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(h vmalloc_nodeh]j)}(h vmalloc_nodeh]h vmalloc_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(unsigned long size, int node)h](j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjލhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڍubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڍubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڍubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڍubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڍubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj֍ubj )}(hint nodeh](j)}(hinth]hint}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hnodeh]hnode}(hjKhhhNhNubah}(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"allocate memory on a specific nodeh]h"allocate memory on a specific node}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjrhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjqhNhNubj)}(hXz**Parameters** ``unsigned long size`` allocation size ``int node`` numa node **Description** Allocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. For tight control over page level allocator and protection flags use __vmalloc() instead. **Return** pointer to the allocated memory or ``NULL`` on errorh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh](j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]jS)}(hjh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjώhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjˎhMhj̎ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjˎhMhjubj)}(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}(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:52: ./mm/vmalloc.chMhjubjM)}(hxAllocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space.h](hAllocate enough pages to cover }(hj@hhhNhNubj)}(h**size**h]hsize}(hjHhhhNhNubah}(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.chMhjubjM)}(hYFor tight control over page level allocator and protection flags use __vmalloc() instead.h]hYFor tight control over page level allocator and protection flags use __vmalloc() instead.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(h **Return**h]j)}(hjrh]hReturn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubjM)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh on error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvzalloc_node (C function)c.vzalloc_nodehNtauh1hhjqhhhNhNubh)}(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&]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*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjŏhhhj׏hMubh)}(h vzalloc_nodeh]j)}(h vzalloc_nodeh]h vzalloc_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjŏhhhj׏hMubj )}(h(unsigned long size, int node)h](j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hint nodeh](j)}(hinth]hint}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hnodeh]hnode}(hjhhhNhNubah}(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'hjhhhj׏hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj׏hMhjhhubj4)}(hhh]jM)}(h1allocate memory on a specific node with zero fillh]h1allocate memory on a specific node with zero fill}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj׏hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjqhNhNubj)}(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}(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)}(hjh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int node`` numa node h](j)}(h ``int node``h]jS)}(hj$h]hint node}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(h numa nodeh]h numa node}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubeh}(h]h ]h"]h$]h&]uh1jhjƐubjM)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjƐubjM)}(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 }(hjuhhhNhNubj)}(h**size**h]hsize}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubhv from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.}(hjuhhhNhNubeh}(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}(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.chMhjƐubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h vrealloc_node_align (C function)c.vrealloc_node_alignhNtauh1hhjqhhhNhNubh)}(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*}(hj hhhNhNubah}(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}(hj9hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjF )}(hjI h]h*}(hjphhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj5ubj)}(hjR h]hp}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.vrealloc_node_alignasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjƒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjےubj)}(halignh]halign}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjےubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(h gfp_t flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5modnameN classnameNjpjs)}jv]jc.vrealloc_node_alignasbuh1hhj,ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hflagsh]hflags}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hint nidh](j)}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hnidh]hnid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubeh}(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)}(hAreallocate virtually contiguous memory; contents remain unchangedh]hAreallocate virtually contiguous memory; contents remain unchanged}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj֓jHj֓jIjJjKuh1hhhhjqhNhNubj)}(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)}(hjh]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)}(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)}(hj8h]h size_t size}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj2ubj)}(hhh]jM)}(hthe size to reallocateh]hthe size to reallocate}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubj)}(h,``unsigned long align`` requested alignment h](j)}(h``unsigned long align``h]jS)}(hjqh]hunsigned long align}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjkubj)}(hhh]jM)}(hrequested alignmenth]hrequested alignment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(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)}(hjh]h gfp_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(h&the flags for the page level allocatorh]h&the flags for the page level allocator}(hjÔhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``int nid`` node number of the target node h](j)}(h ``int nid``h]jS)}(hjh]hint nid}(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)}(hnode number of the target nodeh]hnode number of the target node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjݔubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjړubjM)}(h**Description**h]j)}(hjh]h Description}(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.chMhjړubjM)}(hIf **p** is ``NULL``, vrealloc_XXX() behaves exactly like vmalloc_XXX(). If **size** is 0 and **p** is not a ``NULL`` pointer, the object pointed to is freed.h](hIf }(hj4hhhNhNubj)}(h**p**h]hp}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh is }(hj4hhhNhNubjS)}(h``NULL``h]hNULL}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubh8, vrealloc_XXX() behaves exactly like vmalloc_XXX(). If }(hj4hhhNhNubj)}(h**size**h]hsize}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh is 0 and }(hj4hhhNhNubj)}(h**p**h]hp}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh is not a }(hj4hhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubh) pointer, the object pointed to is freed.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjړubjM)}(hIf the caller wants the new memory to be on specific node *only*, __GFP_THISNODE flag should be set, otherwise the function will try to avoid reallocation and possibly disregard the specified **nid**.h](h:If the caller wants the new memory to be on specific node }(hjhhhNhNubj_)}(h*only*h]honly}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjubh, __GFP_THISNODE flag should be set, otherwise the function will try to avoid reallocation and possibly disregard the specified }(hjhhhNhNubj)}(h**nid**h]hnid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjړubjM)}(hXIf __GFP_ZERO logic is requested, callers must ensure that, starting with the initial memory allocation, every subsequent call to this API for the same memory allocation is flagged with __GFP_ZERO. Otherwise, it is possible that __GFP_ZERO is not fully honored by this API.h]hXIf __GFP_ZERO logic is requested, callers must ensure that, starting with the initial memory allocation, every subsequent call to this API for the same memory allocation is flagged with __GFP_ZERO. Otherwise, it is possible that __GFP_ZERO is not fully honored by this API.}(hjЕhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjړubjM)}(h_Requesting an alignment that is bigger than the alignment of the existing allocation will fail.h]h_Requesting an alignment that is bigger than the alignment of the existing allocation will fail.}(hjߕhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjړubjM)}(hkIn any case, the contents of the object pointed to are preserved up to the lesser of the new and old sizes.h]hkIn any case, the contents of the object pointed to are preserved up to the lesser of the new and old sizes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjړubjM)}(hdThis function must not be called concurrently with itself or vfree() for the same memory allocation.h]hdThis function must not be called concurrently with itself or vfree() for the same memory allocation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjړubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjړubjM)}(hSpointer to the allocated memory; ``NULL`` if **size** is zero or in case of failureh](h!pointer to the allocated memory; }(hj$hhhNhNubjS)}(h``NULL``h]hNULL}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubh if }(hj$hhhNhNubj)}(h**size**h]hsize}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh is zero or in case of failure}(hj$hhhNhNubeh}(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&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_32 (C function) c.vmalloc_32hNtauh1hhjqhhhNhNubh)}(hhh](h)}(h&void * vmalloc_32 (unsigned long size)h]h)}(h$void *vmalloc_32(unsigned long size)h](j)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM!ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjhM!ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjshhhjhM!ubh)}(h vmalloc_32h]j)}(h vmalloc_32h]h vmalloc_32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjshhhjhM!ubj )}(h(unsigned long size)h]j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjϖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjݖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjshhhjhM!ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjohhhjhM!ubah}(h]jjah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM!hjlhhubj4)}(hhh]jM)}(h8allocate virtually contiguous memory (32bit addressable)h]h8allocate virtually contiguous memory (32bit addressable)}(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&]uh1j3hjlhhhjhM!ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj;jHj;jIjJjKuh1hhhhjqhNhNubj)}(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)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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)}(hjdh]hunsigned long size}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM"hj^ubj)}(hhh]jM)}(hallocation sizeh]hallocation size}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjyhM"hjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhM"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&]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 }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM#hj?ubjM)}(h **Return**h]j)}(hjؗh]hReturn}(hjڗhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֗ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api: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&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmalloc_32_user (C function)c.vmalloc_32_userhNtauh1hhjqhhhNhNubh)}(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&]uh1jhj+hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM1ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj=hM1ubjF )}(hjI h]h*}(hjLhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj+hhhj=hM1ubh)}(hvmalloc_32_userh]j)}(hvmalloc_32_userh]hvmalloc_32_user}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1hhj+hhhj=hM1ubj )}(h(unsigned long size)h]j )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjqubah}(h]h ]h"]h$]h&]jjuh1j hj+hhhj=hM1ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj'hhhj=hM1ubah}(h]j"ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj=hM1hj$hhubj4)}(hhh]jM)}(h1allocate zeroed virtually contiguous 32bit memoryh]h1allocate zeroed virtually contiguous 32bit memory}(hjۘhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM1hjؘhhubah}(h]h ]h"]h$]h&]uh1j3hj$hhhj=hM1ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjqhNhNubj)}(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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hM2hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM2hjubah}(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&]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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM3hjubjM)}(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:52: ./mm/vmalloc.chM6hjubjM)}(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.chM7hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h remap_vmalloc_range (C function)c.remap_vmalloc_rangehNtauh1hhjqhhhNhNubh)}(hhh](h)}(hUint remap_vmalloc_range (struct vm_area_struct *vma, void *addr, unsigned long pgoff)h]h)}(hTint remap_vmalloc_range(struct vm_area_struct *vma, void *addr, unsigned long pgoff)h](j)}(hinth]hint}(hjՙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjљhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjљhhhjhMubh)}(hremap_vmalloc_rangeh]j)}(hremap_vmalloc_rangeh]hremap_vmalloc_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjљhhhjhMubj )}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj2modnameN classnameNjpjs)}jv]jy)}jljsbc.remap_vmalloc_rangeasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj^hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(h void *addrh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hjƚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjšubj)}(h h]h }(hjԚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjšubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjšubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjšubj)}(hpgoffh]hpgoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjšubeh}(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)}(hmap vmalloc pages to userspaceh]hmap vmalloc pages to userspace}(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ʙhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj@jHj@jIjJjKuh1hhhhjqhNhNubj)}(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)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjDubj)}(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)}(hjih]hstruct vm_area_struct *vma}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjcubj)}(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&]uh1jLhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj`ubj)}(h``void *addr`` vmalloc memory h](j)}(h``void *addr``h]jS)}(hjh]h void *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]jM)}(hvmalloc memoryh]hvmalloc memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj`ubj)}(hK``unsigned long pgoff`` number of pages into addr before first page to map h](j)}(h``unsigned long pgoff``h]jS)}(hjۛh]hunsigned long pgoff}(hjݛhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjٛubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj՛ubj)}(hhh]jM)}(h2number of pages into addr before first page to maph]h2number of pages into addr before first page to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj՛ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj`ubeh}(h]h ]h"]h$]h&]uh1jhjDubjM)}(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.chMhjDubjM)}(h0 for success, -Exxx on failureh]h0 for success, -Exxx on failure}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjDubjM)}(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.chMhjDubjM)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjDubjM)}(h.Similar to remap_pfn_range() (see mm/memory.c)h]h.Similar to remap_pfn_range() (see mm/memory.c)}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK;ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%filemap_fdatawrite_range (C function)c.filemap_fdatawrite_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hVint filemap_fdatawrite_range (struct address_space *mapping, loff_t start, loff_t end)h]h)}(hUint filemap_fdatawrite_range(struct address_space *mapping, loff_t start, loff_t end)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjʜhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjɜhMubh)}(hfilemap_fdatawrite_rangeh]j)}(hfilemap_fdatawrite_rangeh]hfilemap_fdatawrite_range}(hjܜhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؜ubah}(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}(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)}jljޜsbc.filemap_fdatawrite_rangeasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t starth](h)}(hhh]j)}(hloff_th]hloff_t}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjomodnameN classnameNjpjs)}jv]j2c.filemap_fdatawrite_rangeasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t endh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j2c.filemap_fdatawrite_rangeasbuh1hhjubj)}(h h]h }(hjӝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j 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/start writeback on mapping dirty pages in rangeh]h/start writeback on mapping dirty pages in range}(hj hhhNhNubah}(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&]uh1j3hjhhhjɜhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj#jHj#jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` address space structure to write ``loff_t start`` offset in bytes where the range starts ``loff_t end`` offset in bytes where the range ends (inclusive) **Description** Start writeback against all of a mapping's dirty pages that lie within the byte offsets inclusive. This is a data integrity operation that waits upon dirty or in writeback pages. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]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)}(hC``struct address_space *mapping`` address space structure to write h](j)}(h!``struct address_space *mapping``h]jS)}(hjLh]hstruct address_space *mapping}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjFubj)}(hhh]jM)}(h address space structure to writeh]h address space structure to write}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjCubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjCubj)}(h@``loff_t end`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end``h]jS)}(hjh]h loff_t end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjמhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjӞhMhjԞubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӞhMhjCubeh}(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)}(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.chMhj'ubjM)}(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.chMhj'ubjM)}(h **Return**h]j)}(hj/h]hReturn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj'ubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubh+ on success, negative error code otherwise.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h filemap_flush_range (C function)c.filemap_flush_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hQint filemap_flush_range (struct address_space *mapping, loff_t start, loff_t end)h]h)}(hPint filemap_flush_range(struct address_space *mapping, loff_t start, loff_t end)h](j)}(hinth]hint}(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)}(hfilemap_flush_rangeh]j)}(hfilemap_flush_rangeh]hfilemap_flush_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj~hhhjhMubj )}(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 }(hj̟hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjݟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڟubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjߟmodnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_flush_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}(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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj6modnameN classnameNjpjs)}jv]jc.filemap_flush_rangeasbuh1hhj-ubj)}(h h]h }(hjRhhhNhNubah}(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 )}(h loff_t endh](h)}(hhh]j)}(hloff_th]hloff_t}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj~modnameN classnameNjpjs)}jv]jc.filemap_flush_rangeasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj~hhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjzhhhjhMubah}(h]juah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjwhhubj4)}(hhh]jM)}(hstart writeback on a rangeh]hstart writeback on a range}(hjҠhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjϠhhubah}(h]h ]h"]h$]h&]uh1j3hjwhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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.chMhj ubj)}(hhh]jM)}(htarget address_spaceh]htarget 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-``loff_t start`` index to start writeback on h](j)}(h``loff_t start``h]jS)}(hjLh]h loff_t start}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjFubj)}(hhh]jM)}(hindex to start writeback onh]hindex to start writeback on}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhj ubj)}(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}(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_This is a non-integrity writeback helper, to start writing back folios for the indicated range.h]h_This is a non-integrity writeback helper, to start writing back folios for the indicated range.}(hj֡hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_flush (C function)c.filemap_flushhNtauh1hhjhhhNhNubh)}(hhh](h)}(h1int filemap_flush (struct address_space *mapping)h]h)}(h0int filemap_flush(struct address_space *mapping)h](j)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhjHhMubh)}(h filemap_flushh]j)}(h filemap_flushh]h filemap_flush}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1hhj6hhhjHhMubj )}(h(struct address_space *mapping)h]j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjwhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(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)}jlj]sbc.filemap_flushasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjF )}(hjI h]h*}(hjâhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsubj)}(hmappingh]hmapping}(hjТhhhNhNubah}(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)}(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/hhhjHhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` target address_space **Description** This is a mostly non-blocking flush. Not suitable for data-integrity purposes - I/O may not be started against all dirty pages. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.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&]uh1jRhj9ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj5ubj)}(hhh]jM)}(htarget address_spaceh]htarget address_space}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubah}(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&]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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#filemap_range_has_page (C function)c.filemap_range_has_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h_bool filemap_range_has_page (struct address_space *mapping, loff_t start_byte, loff_t end_byte)h]h)}(h^bool filemap_range_has_page(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfilemap_range_has_pageh]j)}(hfilemap_range_has_pageh]hfilemap_range_has_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(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]jy)}jljsbc.filemap_range_has_pageasbuh1hhj(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)}(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]jfc.filemap_range_has_pageasbuh1hhjubj)}(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 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]jfc.filemap_range_has_pageasbuh1hhjubj)}(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 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 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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjWjHjWjIjJjKuh1hhhhjhNhNubj)}(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)}(hjah]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj[ubj)}(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&]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#address space within which to checkh]h#address space within which to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]jS)}(hjh]hloff_t start_byte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjҥhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjΥhMhjϥubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjΥhMhjwubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]jS)}(hjh]hloff_t end_byte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubeh}(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:61: ./mm/filemap.chMhj[ubjM)}(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.}(hjChhhNhNubah}(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)}(hjTh]hReturn}(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.chMhj[ubjM)}(hQ``true`` if at least one page exists in the specified range, ``false`` otherwise.h](jS)}(h``true``h]htrue}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjubh5 if at least one page exists in the specified range, }(hjjhhhNhNubjS)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjubh otherwise.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$filemap_fdatawait_range (C function)c.filemap_fdatawait_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(h_int filemap_fdatawait_range (struct address_space *mapping, loff_t start_byte, loff_t end_byte)h]h)}(h^int filemap_fdatawait_range(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjȦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjǦhMubh)}(hfilemap_fdatawait_rangeh]j)}(hfilemap_fdatawait_rangeh]hfilemap_fdatawait_range}(hjڦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֦ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjǦ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)}jljܦsbc.filemap_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t start_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmmodnameN classnameNjpjs)}jv]j0c.filemap_fdatawait_rangeasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h start_byteh]h start_byte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t end_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j0c.filemap_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hjѧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hend_byteh]hend_byte}(hjߧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjǦhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjǦhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjǦhMhjhhubj4)}(hhh]jM)}(hwait for writeback to completeh]hwait for writeback to complete}(hj hhhNhNubah}(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&]uh1j3hjhhhjǦhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj!jHj!jIjJjKuh1hhhhjhNhNubj)}(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)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM!hj%ubj)}(hhh](j)}(hF``struct address_space *mapping`` address space structure to wait for h](j)}(h!``struct address_space *mapping``h]jS)}(hjJh]hstruct address_space *mapping}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjDubj)}(hhh]jM)}(h#address space structure to wait forh]h#address space structure to wait for}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubj)}(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.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&]uh1jhjhMhjAubj)}(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.chM hjubj)}(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ѨhM hjҨubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjѨhM hjAubeh}(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)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM!hj%ubjM)}(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%hj%ubjM)}(h **Return**h]j)}(hj-h]hReturn}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM)hj%ubjM)}(h"error status of the address space.h]h"error status of the address space.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM*hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h0filemap_fdatawait_range_keep_errors (C function)%c.filemap_fdatawait_range_keep_errorshNtauh1hhjhhhNhNubh)}(hhh](h)}(hkint filemap_fdatawait_range_keep_errors (struct address_space *mapping, loff_t start_byte, loff_t end_byte)h]h)}(hjint filemap_fdatawait_range_keep_errors(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjhM5ubh)}(h#filemap_fdatawait_range_keep_errorsh]j)}(h#filemap_fdatawait_range_keep_errorsh]h#filemap_fdatawait_range_keep_errors}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjnhhhjhM5ubj )}(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}(hjͩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʩubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjϩmodnameN classnameNjpjs)}jv]jy)}jljsb%c.filemap_fdatawait_range_keep_errorsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t start_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj&modnameN classnameNjpjs)}jv]j%c.filemap_fdatawait_range_keep_errorsasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h start_byteh]h start_byte}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t end_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]j%c.filemap_fdatawait_range_keep_errorsasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hend_byteh]hend_byte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjnhhhjhM5ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjjhhhjhM5ubah}(h]jeah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM5hjghhubj4)}(hhh]jM)}(hwait for writeback to completeh]hwait for writeback to complete}(hjªhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM5hjhhubah}(h]h ]h"]h$]h&]uh1j3hjghhhjhM5ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjڪjHjڪjIjJjKuh1hhhhjhNhNubj)}(hXa**Parameters** ``struct address_space *mapping`` address space structure to wait for ``loff_t start_byte`` offset in bytes where the range starts ``loff_t end_byte`` offset in bytes where the range ends (inclusive) **Description** Walk the list of under-writeback pages of the given address space in the given range and wait for all of them. Unlike filemap_fdatawait_range(), this function does not clear error status of the address space. Use this function if callers don't handle errors themselves. Expected call sites are system-wide / filesystem-wide data flushers: e.g. sync(2), fsfreeze(8)h](jM)}(h**Parameters**h]j)}(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.chM9hjުubj)}(hhh](j)}(hF``struct address_space *mapping`` address space structure to wait for h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.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.chM7hj6ubj)}(hhh]jM)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhM7hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM7hjubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]jS)}(hjuh]hloff_t end_byte}(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.chM8hjoubj)}(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&]uh1jLhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubeh}(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)}(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.}(hjƫhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM9hjުubjM)}(hUse this function if callers don't handle errors themselves. Expected call sites are system-wide / filesystem-wide data flushers: e.g. sync(2), fsfreeze(8)h]hUse this function if callers don’t handle errors themselves. Expected call sites are system-wide / filesystem-wide data flushers: e.g. sync(2), fsfreeze(8)}(hjիhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM=hjުubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!file_fdatawait_range (C function)c.file_fdatawait_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hPint file_fdatawait_range (struct file *file, loff_t start_byte, loff_t end_byte)h]h)}(hOint file_fdatawait_range(struct file *file, loff_t start_byte, loff_t end_byte)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMKubh)}(hfile_fdatawait_rangeh]j)}(hfile_fdatawait_rangeh]hfile_fdatawait_range}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(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}(hjAhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj=ubj)}(h h]h }(hjNhhhNhNubah}(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 reftargetjamodnameN classnameNjpjs)}jv]jy)}jlj'sbc.file_fdatawait_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)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj9ubj )}(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.file_fdatawait_rangeasbuh1hhjubj)}(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 hj9ubj )}(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.file_fdatawait_rangeasbuh1hhjubj)}(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 hj9ubeh}(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}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMKhjQhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjljHjljIjJjKuh1hhhhjhNhNubj)}(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)}(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.chMOhjpubj)}(hhh](j)}(hK``struct file *file`` file pointing to address space structure to wait for h](j)}(h``struct file *file``h]jS)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMLhjubj)}(hhh]jM)}(h4file pointing to address space structure to wait forh]h4file pointing to address space structure to wait for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjubj)}(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.chMMhjȭ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&]uh1jLhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjȭubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubj)}(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}(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.chMNhjubj)}(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&]uh1jLhjhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubeh}(h]h ]h"]h$]h&]uh1jhjpubjM)}(h**Description**h]j)}(hjBh]h Description}(hjDhhhNhNubah}(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.chMPhjpubjM)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMOhjpubjM)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMShjpubjM)}(h **Return**h]j)}(hjxh]hReturn}(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.chMWhjpubjM)}(h@error status of the address space vs. the file->f_wb_err cursor.h]h@error status of the address space vs. the file->f_wb_err cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMXhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*filemap_fdatawait_keep_errors (C function)c.filemap_fdatawait_keep_errorshNtauh1hhjhhhNhNubh)}(hhh](h)}(hAint filemap_fdatawait_keep_errors (struct address_space *mapping)h]h)}(h@int filemap_fdatawait_keep_errors(struct address_space *mapping)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMdubj)}(h h]h }(hj̮hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjˮhMdubh)}(hfilemap_fdatawait_keep_errorsh]j)}(hfilemap_fdatawait_keep_errorsh]hfilemap_fdatawait_keep_errors}(hjޮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڮubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjˮ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)}jljsbc.filemap_fdatawait_keep_errorsasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjFhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjˮhMdubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjˮhMdubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjˮhMdhjhhubj4)}(hhh]jM)}(h*wait for writeback without clearing errorsh]h*wait for writeback without clearing errors}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMdhjzhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjˮhMdubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` address space structure to wait for **Description** Walk the list of under-writeback pages of the given address space and wait for all of them. Unlike filemap_fdatawait(), this function does not clear error status of the address space. Use this function if callers don't handle errors themselves. Expected call sites are system-wide / filesystem-wide data flushers: e.g. sync(2), fsfreeze(8) **Return** error status of the address space.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhhjubj)}(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.chMehjubj)}(hhh]jM)}(h#address space structure to wait forh]h#address space structure to wait for}(hjׯhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjӯhMehjԯubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӯhMehjubah}(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.chMghjubjM)}(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.chMfhjubjM)}(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.chMjhjubjM)}(h **Return**h]j)}(hj/h]hReturn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMnhjubjM)}(h"error status of the address space.h]h"error status of the address space.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)filemap_write_and_wait_range (C function)c.filemap_write_and_wait_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(h\int filemap_write_and_wait_range (struct address_space *mapping, loff_t lstart, loff_t lend)h]h)}(h[int filemap_write_and_wait_range(struct address_space *mapping, loff_t lstart, loff_t lend)h](j)}(hinth]hint}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubh)}(hfilemap_write_and_wait_rangeh]j)}(hfilemap_write_and_wait_rangeh]hfilemap_write_and_wait_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjphhhjhMubj )}(h;(struct address_space *mapping, loff_t lstart, loff_t lend)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjϰhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̰ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjѰmodnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(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.filemap_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlstarth]hlstart}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t lendh](h)}(hhh]j)}(hloff_th]hloff_t}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjpmodnameN classnameNjpjs)}jv]jc.filemap_write_and_wait_rangeasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hlendh]hlend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(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)}(h write out & wait on a file rangeh]h write out & wait on a file range}(hjıhhhNhNubah}(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&]uh1j3hjihhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjܱjHjܱjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` the address_space for the pages ``loff_t lstart`` offset in bytes where the range starts ``loff_t lend`` offset in bytes where the range ends (inclusive) **Description** Write out and wait upon file offsets lstart->lend, inclusive. Note that **lend** is inclusive (describes the last byte to be written) so that this function can be used to write to the very end-of-file (end = -1). **Return** error status of the address space.h](jM)}(h**Parameters**h]j)}(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 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.chMhj8ubj)}(hhh]jM)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubj)}(hA``loff_t lend`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t lend``h]jS)}(hjwh]h loff_t lend}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjqubj)}(hhh]jM)}(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&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h=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.chMhjubjM)}(hNote that **lend** is inclusive (describes the last byte to be written) so that this function can be used to write to the very end-of-file (end = -1).h](h Note that }(hjײhhhNhNubj)}(h**lend**h]hlend}(hj߲hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjײubh is inclusive (describes the last byte to be written) so that this function can be used to write to the very end-of-file (end = -1).}(hjײhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.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"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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*file_check_and_advance_wb_err (C function)c.file_check_and_advance_wb_errhNtauh1hhjhhhNhNubh)}(hhh](h)}(h5int file_check_and_advance_wb_err (struct file *file)h]h)}(h4int file_check_and_advance_wb_err(struct file *file)h](j)}(hinth]hint}(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 }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhMubh)}(hfile_check_and_advance_wb_errh]j)}(hfile_check_and_advance_wb_errh]hfile_check_and_advance_wb_err}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj;hhhjMhMubj )}(h(struct file *file)h]j )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hj|hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljbsbc.file_check_and_advance_wb_errasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjF )}(hjI h]h*}(hjȳhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjxubj)}(hfileh]hfile}(hjճhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjtubah}(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)}(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&]uh1j3hj4hhhjMhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j)}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj>ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj:ubj)}(hhh]jM)}(h0struct file on which the error is being reportedh]h0struct file on which the error is being reported}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubah}(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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hWhen userland calls fsync (or something like nfsd does the equivalent), we want to report any writeback errors that occurred since the last fsync (or since the file was opened if there haven't been any).h]hWhen userland calls fsync (or something like nfsd does the equivalent), we want to report any writeback errors that occurred since the last fsync (or since the file was opened if there haven’t been any).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hGrab the wb_err from the mapping. If it matches what we have in the file, then just quickly return 0. The file is all caught up.h]hGrab the wb_err from the mapping. If it matches what we have in the file, then just quickly return 0. The file is all caught up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hXJIf it doesn't match, then take the mapping value, set the "seen" flag in it and try to swap it into place. If it works, or another task beat us to it with the new value, then update the f_wb_err and return the error portion. The error at this point must be reported via proper channels (a'la fsync, or NFS COMMIT operation, etc.).h]hXRIf it doesn’t match, then take the mapping value, set the “seen” flag in it and try to swap it into place. If it works, or another task beat us to it with the new value, then update the f_wb_err and return the error portion. The error at this point must be reported via proper channels (a’la fsync, or NFS COMMIT operation, etc.).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hWhile we handle mapping->wb_err with atomic operations, the f_wb_err value is protected by the f_lock since we must ensure that it reflects the latest value swapped in for this file descriptor.h]hWhile we handle mapping->wb_err with atomic operations, the f_wb_err value is protected by the f_lock since we must ensure that it reflects the latest value swapped in for this file descriptor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hjϴh]hReturn}(hjѴhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʹubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&file_write_and_wait_range (C function)c.file_write_and_wait_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hMint file_write_and_wait_range (struct file *file, loff_t lstart, loff_t lend)h]h)}(hLint file_write_and_wait_range(struct file *file, loff_t lstart, loff_t lend)h](j)}(hinth]hint}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj0hMubh)}(hfile_write_and_wait_rangeh]j)}(hfile_write_and_wait_rangeh]hfile_write_and_wait_range}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj0hMubj )}(h/(struct file *file, loff_t lstart, loff_t lend)h](j )}(hstruct file *fileh](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)}(hfileh]hfile}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljEsbc.file_write_and_wait_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)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubj )}(h loff_t lstarth](h)}(hhh]j)}(hloff_th]hloff_t}(hjԵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѵubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjֵmodnameN classnameNjpjs)}jv]jc.file_write_and_wait_rangeasbuh1hhj͵ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͵ubj)}(hlstarth]hlstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͵ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubj )}(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.file_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlendh]hlend}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj0hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj0hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj0hMhjhhubj4)}(hhh]jM)}(h write out & wait on a file rangeh]h write out & wait on a file range}(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&]uh1j3hjhhhj0hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct file *file`` file pointing to address_space with pages ``loff_t lstart`` offset in bytes where the range starts ``loff_t lend`` offset in bytes where the range ends (inclusive) **Description** Write out and wait upon file offsets lstart->lend, inclusive. Note that **lend** is inclusive (describes the last byte to be written) so that this function can be used to write to the very end-of-file (end = -1). After writing out and waiting on the data, we check and advance the f_wb_err cursor to the latest value, and return any errors detected there. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h@``struct file *file`` file pointing to address_space with pages h](j)}(h``struct file *file``h]jS)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h)file pointing to address_space with pagesh]h)file pointing to address_space with pages}(hj̶hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjȶhMhjɶubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȶhMhjubj)}(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&]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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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&]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.chMhjubjM)}(h=Write out and wait upon file offsets lstart->lend, inclusive.h]h=Write out and wait upon file offsets lstart->lend, inclusive.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hNote that **lend** is inclusive (describes the last byte to be written) so that this function can be used to write to the very end-of-file (end = -1).h](h Note that }(hjhhhNhNubj)}(h**lend**h]hlend}(hjhhhNhNubah}(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.chMhjubjM)}(hAfter writing out and waiting on the data, we check and advance the f_wb_err cursor to the latest value, and return any errors detected there.h]hAfter writing out and waiting on the data, we check and advance the f_wb_err cursor to the latest value, and return any errors detected there.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjѷhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjͷubh+ on success, negative error code otherwise.}(hjͷhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%replace_page_cache_folio (C function)c.replace_page_cache_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hDvoid replace_page_cache_folio (struct folio *old, struct folio *new)h]h)}(hCvoid replace_page_cache_folio(struct folio *old, struct folio *new)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(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}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h&(struct folio *old, struct folio *new)h](j )}(hstruct folio *oldh](j5)}(hj8h]hstruct}(hjGhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]j)}(hfolioh]hfolio}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjgmodnameN classnameNjpjs)}jv]jy)}jlj-sbc.replace_page_cache_folioasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjCubj)}(holdh]hold}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj?ubj )}(hstruct folio *newh](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]jc.replace_page_cache_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j 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 hj7hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjRjHjRjIjJjKuh1hhhhjhNhNubj)}(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)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM$hjVubj)}(hhh](j)}(h+``struct folio *old`` folio to be replaced h](j)}(h``struct folio *old``h]jS)}(hj{h]hstruct folio *old}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM!hjuubj)}(hhh]jM)}(hfolio to be replacedh]hfolio to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjrubj)}(h,``struct folio *new`` folio to replace with h](j)}(h``struct folio *new``h]jS)}(hjh]hstruct folio *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM"hjubj)}(hhh]jM)}(hfolio to replace withh]hfolio to replace with}(hj͹hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjɹhM"hjʹubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɹhM"hjrubeh}(h]h ]h"]h$]h&]uh1jhjVubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM$hjVubjM)}(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#hjVubjM)}(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)hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_unlock (C function)c.folio_unlockhNtauh1hhjhhhNhNubh)}(hhh](h)}(h'void folio_unlock (struct folio *folio)h]h)}(h&void folio_unlock(struct folio *folio)h](j)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhMubh)}(h folio_unlockh]j)}(h folio_unlockh]h folio_unlock}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj?hhhjQhMubj )}(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)}jljfsbc.folio_unlockasbuh1hhj|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 hjxubah}(h]h ]h"]h$]h&]jjuh1j hj?hhhjQhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj;hhhjQhMubah}(h]j6ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjQhMhj8hhubj4)}(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&]uh1j3hj8hhhjQhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` The folio. **Description** Unlocks the folio and wakes up any thread sleeping on the page lock. **Context** May be called from interrupt or process context. May not be called from NMI context.h](jM)}(h**Parameters**h]j)}(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.chMhjubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjDh]hstruct folio *folio}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(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.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj;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)}(hDUnlocks the folio and wakes up any thread sleeping on the page lock.h]hDUnlocks the folio and wakes up any thread sleeping on the page lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hUMay be called from interrupt or process context. May not be called from NMI context.h]hUMay be called from interrupt or process context. May not be called from NMI context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_end_read (C function)c.folio_end_readhNtauh1hhjhhhNhNubh)}(hhh](h)}(h7void folio_end_read (struct folio *folio, bool success)h]h)}(h6void folio_end_read(struct folio *folio, bool success)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_end_readh]j)}(hfolio_end_readh]hfolio_end_read}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h#(struct folio *folio, bool success)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj(hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]j)}(hfolioh]hfolio}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjHmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_end_readasbuh1hhj$ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjF )}(hjI h]h*}(hjthhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj$ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(h bool successh](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsuccessh]hsuccess}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]j޻ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hEnd read on a folio.h]hEnd read on a folio.}(hj߼hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjܼhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio. ``bool success`` True if all reads completed successfully. **Description** When all reads against a folio have completed, filesystems should call this function to let the pagecache know that no more reads are outstanding. This will unlock the folio and wake up any thread sleeping on the lock. The folio will also be marked uptodate if all reads succeeded. **Context** May be called from interrupt or process context. May not be called from NMI context.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hj h]hstruct folio *folio}(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 The folio.h]h The folio.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(h;``bool success`` True if all reads completed successfully. h](j)}(h``bool success``h]jS)}(hjYh]h bool success}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjSubj)}(hhh]jM)}(h)True if all reads completed successfully.h]h)True if all reads completed successfully.}(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**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hXWhen all reads against a folio have completed, filesystems should call this function to let the pagecache know that no more reads are outstanding. This will unlock the folio and wake up any thread sleeping on the lock. The folio will also be marked uptodate if all reads succeeded.h]hXWhen all reads against a folio have completed, filesystems should call this function to let the pagecache know that no more reads are outstanding. This will unlock the folio and wake up any thread sleeping on the lock. The folio will also be marked uptodate if all reads succeeded.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hUMay be called from interrupt or process context. May not be called from NMI context.h]hUMay be called from interrupt or process context. May not be called from NMI context.}(hjѽhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_end_private_2 (C function)c.folio_end_private_2hNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void folio_end_private_2 (struct folio *folio)h]h)}(h-void folio_end_private_2(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_end_private_2h]j)}(hfolio_end_private_2h]hfolio_end_private_2}(hj!hhhNhNubah}(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&]uh1j4hj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(hfolioh]hfolio}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj]modnameN classnameNjpjs)}jv]jy)}jlj#sbc.folio_end_private_2asbuh1hhj9ubj)}(h h]h }(hj{hhhNhNubah}(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 hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjhhubj4)}(hhh]jM)}(h(Clear PG_private_2 and wake any waiters.h]h(Clear PG_private_2 and wake any waiters.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjؾjHjؾjIjJjKuh1hhhhjhNhNubj)}(hXx**Parameters** ``struct folio *folio`` The folio. **Description** Clear the PG_private_2 bit on a folio and wake up any sleepers waiting for it. The folio reference held for PG_private_2 being set is released. This is, for example, used when a netfs folio is being written to a local disk cache, thereby allowing writes to the cache for the same folio to be serialised.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjܾubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]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&]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:61: ./mm/filemap.chMhjܾubjM)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjܾubjM)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjܾubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_wait_private_2 (C function)c.folio_wait_private_2hNtauh1hhjhhhNhNubh)}(hhh](h)}(h/void folio_wait_private_2 (struct folio *folio)h]h)}(h.void folio_wait_private_2(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_wait_private_2h]j)}(hfolio_wait_private_2h]hfolio_wait_private_2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(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_wait_private_2asbuh1hhjɿubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɿubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjɿubj)}(hfolioh]hfolio}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɿubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjſubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h/Wait for PG_private_2 to be cleared on a folio.h]h/Wait for PG_private_2 to be cleared on a folio.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjMhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjhjHjhjIjJjKuh1hhhhjhNhNubj)}(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)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM#hjlubj)}(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&]uh1jhjlubjM)}(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"hjlubjM)}(h/Wait for PG_private_2 to be cleared on a folio.h]h/Wait for PG_private_2 to be cleared on a folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM!hjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*folio_wait_private_2_killable (C function)c.folio_wait_private_2_killablehNtauh1hhjhhhNhNubh)}(hhh](h)}(h7int folio_wait_private_2_killable (struct folio *folio)h]h)}(h6int folio_wait_private_2_killable(struct folio *folio)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM,ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhM,ubh)}(hfolio_wait_private_2_killableh]j)}(hfolio_wait_private_2_killableh]hfolio_wait_private_2_killable}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhjhM,ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjNhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]j)}(hfolioh]hfolio}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jy)}jlj4sbc.folio_wait_private_2_killableasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjJubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjFubah}(h]h ]h"]h$]h&]jjuh1j hj hhhjhM,ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhjhM,ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM,hjhhubj4)}(hhh]jM)}(h/Wait for PG_private_2 to be cleared on a folio.h]h/Wait for PG_private_2 to be cleared on a folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM,hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM,ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to wait on. **Description** Wait for PG_private_2 to be cleared on a folio or until a fatal signal is received by the calling task. **Return** - 0 if successful. - -EINTR if a fatal signal was encountered.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.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-hj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hM-hj ubah}(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: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.}(hjchhhNhNubah}(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)}(hjth]hReturn}(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.chM1hjubj.L)}(hhh](j+)}(h0 if successful.h]jM)}(hjh]h0 if successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM2hjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(h)-EINTR if a fatal signal was encountered.h]jM)}(hjh]h)-EINTR if a fatal signal was encountered.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM3hjubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjhM2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.folio_end_writeback_no_dropbehind (C function)#c.folio_end_writeback_no_dropbehindhNtauh1hhjhhhNhNubh)}(hhh](h)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj@modnameN classnameNjpjs)}jv]jy)}jljsb#c.folio_end_writeback_no_dropbehindasbuh1hhjubj)}(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 hjubah}(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)}(hEnd writeback against a folio.h]hEnd writeback against a folio.}(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&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` The folio. **Description** The folio must actually be under writeback. This call is intended for filesystems that need to defer dropbehind. **Context** May be called from process or interrupt 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.chMohjubj)}(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.chMlhjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMlhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMlhjubah}(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.chMnhjubjM)}(hpThe folio must actually be under writeback. This call is intended for filesystems that need to defer dropbehind.h]hpThe folio must actually be under writeback. This call is intended for filesystems that need to defer dropbehind.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMmhjubjM)}(h **Context**h]j)}(hjFh]hContext}(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.chMphjubjM)}(h0May be called from process or interrupt context.h]h0May be called from process or interrupt context.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMqhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_end_writeback (C function)c.folio_end_writebackhNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void folio_end_writeback (struct folio *folio)h]h)}(h-void folio_end_writeback(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_end_writebackh]j)}(hfolio_end_writebackh]hfolio_end_writeback}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j jeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_end_writebackasbuh1hhjubj)}(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 hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]j~ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hEnd writeback against a folio.h]hEnd writeback against a folio.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjHhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjcjHjcjIjJjKuh1hhhhjhNhNubj)}(h**Parameters** ``struct folio *folio`` The folio. **Description** The folio must actually be under writeback. **Context** May be called from process or interrupt context.h](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:61: ./mm/filemap.chMhjgubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(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:61: ./mm/filemap.chMhjgubjM)}(h+The folio must actually be under writeback.h]h+The folio must actually be under writeback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjgubjM)}(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.chMhjgubjM)}(h0May be called from process or interrupt context.h]h0May be called from process or interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__folio_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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhjAhMubh)}(h __folio_lockh]j)}(h __folio_lockh]h __folio_lock}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/hhhjAhMubj )}(h(struct folio *folio)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_lockasbuh1hhjlubj)}(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 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=Get a lock on the folio, assuming we need to sleep to get it.h]h=Get a lock on the folio, assuming we need to sleep to get it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj(hhhjAhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(h;**Parameters** ``struct folio *folio`` The folio to lockh](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 to lockh](j)}(h``struct folio *folio``h]jS)}(hj4h]hstruct folio *folio}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj.ubj)}(hhh]jM)}(hThe folio to lockh]hThe folio to lock}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!page_cache_next_miss (C function)c.page_cache_next_misshNtauh1hhjhhhNhNubh)}(hhh](h)}(hcpgoff_t page_cache_next_miss (struct address_space *mapping, pgoff_t index, unsigned long max_scan)h]h)}(hbpgoff_t page_cache_next_miss(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlpage_cache_next_misssbc.page_cache_next_missasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpage_cache_next_missh]j)}(hjh]hpage_cache_next_miss}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hF(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.page_cache_next_missasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(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 )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jc.page_cache_next_missasbuh1hhjLubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long max_scanh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmax_scanh]hmax_scan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h$Find the next gap in the page cache.h]h$Find the next gap in the page cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX **Parameters** ``struct address_space *mapping`` Mapping. ``pgoff_t index`` Index. ``unsigned long max_scan`` Maximum range to search. **Description** Search the range [index, min(index + max_scan - 1, ULONG_MAX)] for the gap with the lowest index. This function may be called under the rcu_read_lock. However, this will not atomically search a snapshot of the cache at a single point in time. For example, if a gap is created at index 5, then subsequently a gap is created at index 10, page_cache_next_miss covering both indices may return 10 if called under the rcu_read_lock. **Return** The index of the gap if found, otherwise an index outside the range specified (in which case 'return - index >= max_scan' will be true). In the rare case of index wrap-around, 0 will be returned.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h+``struct address_space *mapping`` Mapping. 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)}(hMapping.h]hMapping.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubj)}(h``pgoff_t index`` Index. h](j)}(h``pgoff_t index``h]jS)}(hjth]h pgoff_t index}(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)}(hIndex.h]hIndex.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhj2ubj)}(h4``unsigned long max_scan`` Maximum range to search. h](j)}(h``unsigned long max_scan``h]jS)}(hjh]hunsigned long max_scan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hMaximum range to search.h]hMaximum range to search.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj2ubeh}(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)}(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.}(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}(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)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!page_cache_prev_miss (C function)c.page_cache_prev_misshNtauh1hhjhhhNhNubh)}(hhh](h)}(hcpgoff_t page_cache_prev_miss (struct address_space *mapping, pgoff_t index, unsigned long max_scan)h]h)}(hbpgoff_t page_cache_prev_miss(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjhmodnameN classnameNjpjs)}jv]jy)}jlpage_cache_prev_misssbc.page_cache_prev_missasbuh1hhj_hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM"ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhjhM"ubh)}(hpage_cache_prev_missh]j)}(hjh]hpage_cache_prev_miss}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj_hhhjhM"ubj )}(hF(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.page_cache_prev_missasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(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}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj*modnameN classnameNjpjs)}jv]jc.page_cache_prev_missasbuh1hhj!ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hindexh]hindex}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long max_scanh](j)}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hmax_scanh]hmax_scan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj_hhhjhM"ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj[hhhjhM"ubah}(h]jVah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM"hjXhhubj4)}(hhh]jM)}(h(Find the previous gap in the page cache.h]h(Find the previous gap in the page cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM"hjhhubah}(h]h ]h"]h$]h&]uh1j3hjXhhhjhM"ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` Mapping. ``pgoff_t index`` Index. ``unsigned long max_scan`` Maximum range to search. **Description** Search the range [max(index - max_scan + 1, 0), index] for the gap with the highest index. This function may be called under the rcu_read_lock. However, this will not atomically search a snapshot of the cache at a single point in time. For example, if a gap is created at index 10, then subsequently a gap is created at index 5, page_cache_prev_miss() covering both indices may return 5 if called under the rcu_read_lock. **Return** The index of the gap if found, otherwise an index outside the range specified (in which case 'index - return >= max_scan' will be true). In the rare case of wrap-around, ULONG_MAX will be returned.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM&hjubj)}(hhh](j)}(h+``struct address_space *mapping`` Mapping. h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM#hj ubj)}(hhh]jM)}(hMapping.h]hMapping.}(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``pgoff_t index`` Index. h](j)}(h``pgoff_t index``h]jS)}(hjIh]h pgoff_t index}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM$hjCubj)}(hhh]jM)}(hIndex.h]hIndex.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hM$hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM$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%hj|ubj)}(hhh]jM)}(hMaximum range to search.h]hMaximum range to search.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM'hjubjM)}(hZSearch the range [max(index - max_scan + 1, 0), index] for the gap with the highest index.h]hZSearch the range [max(index - max_scan + 1, 0), index] for the gap with the highest index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM&hjubjM)}(hXKThis function may be called under the rcu_read_lock. However, this will not atomically search a snapshot of the cache at a single point in time. For example, if a gap is created at index 10, then subsequently a gap is created at index 5, page_cache_prev_miss() covering both indices may return 5 if called under the rcu_read_lock.h]hXKThis function may be called under the rcu_read_lock. However, this will not atomically search a snapshot of the cache at a single point in time. For example, if a gap is created at index 10, then subsequently a gap is created at index 5, page_cache_prev_miss() covering both indices may return 5 if called under the rcu_read_lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM)hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM/hjubjM)}(hThe index of the gap if found, otherwise an index outside the range specified (in which case 'index - return >= max_scan' will be true). In the rare case of wrap-around, ULONG_MAX will be returned.h]hThe index of the gap if found, otherwise an index outside the range specified (in which case ‘index - return >= max_scan’ will be true). In the rare case of wrap-around, ULONG_MAX will be returned.}(hj hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%__filemap_get_folio_mpol (C function)c.__filemap_get_folio_mpolhNtauh1hhjhhhNhNubh)}(hhh](h)}(hstruct folio * __filemap_get_folio_mpol (struct address_space *mapping, pgoff_t index, fgf_t fgp_flags, gfp_t gfp, struct mempolicy *policy)h]h)}(hstruct folio *__filemap_get_folio_mpol(struct address_space *mapping, pgoff_t index, fgf_t fgp_flags, gfp_t gfp, struct mempolicy *policy)h](j5)}(hj8h]hstruct}(hj8hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj4hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjEhMubh)}(hhh]j)}(hfolioh]hfolio}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYmodnameN classnameNjpjs)}jv]jy)}jl__filemap_get_folio_mpolsbc.__filemap_get_folio_mpolasbuh1hhj4hhhjEhMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjEhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj4hhhjEhMubh)}(h__filemap_get_folio_mpolh]j)}(hjuh]h__filemap_get_folio_mpol}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj4hhhjEhMubj )}(hd(struct address_space *mapping, pgoff_t index, fgf_t fgp_flags, gfp_t gfp, struct mempolicy *policy)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jsc.__filemap_get_folio_mpolasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(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}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj'modnameN classnameNjpjs)}jv]jsc.__filemap_get_folio_mpolasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexh]hindex}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hfgf_t fgp_flagsh](h)}(hhh]j)}(hfgf_th]hfgf_t}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjomodnameN classnameNjpjs)}jv]jsc.__filemap_get_folio_mpolasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h fgp_flagsh]h fgp_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(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]jsc.__filemap_get_folio_mpolasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mempolicy *policyh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mempolicyh]h mempolicy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jsc.__filemap_get_folio_mpolasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpolicyh]hpolicy}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj4hhhjEhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj0hhhjEhMubah}(h]j+ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjEhMhj-hhubj4)}(hhh]jM)}(h$Find and get a reference to a folio.h]h$Find and get a reference to a folio.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjxhhubah}(h]h ]h"]h$]h&]uh1j3hj-hhhjEhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The address_space to search. ``pgoff_t index`` The page index. ``fgf_t fgp_flags`` ``FGP`` flags modify how the folio is returned. ``gfp_t gfp`` Memory allocation flags to use if ``FGP_CREAT`` is specified. ``struct mempolicy *policy`` NUMA memory allocation policy to follow. **Description** Looks up the page cache entry at **mapping** & **index**. If ``FGP_LOCK`` or ``FGP_CREAT`` are specified then the function may sleep even if the ``GFP`` flags specified for ``FGP_CREAT`` are atomic. If this function returns a folio, it is returned with an increased refcount. **Return** The found folio or an ERR_PTR() otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h?``struct address_space *mapping`` The address_space to search. h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hThe address_space to search.h]hThe address_space to search.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]jS)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hThe page index.h]hThe page index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hD``fgf_t fgp_flags`` ``FGP`` flags modify how the folio is returned. h](j)}(h``fgf_t fgp_flags``h]jS)}(hj.h]hfgf_t fgp_flags}(hj0hhhNhNubah}(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/``FGP`` flags modify how the folio is returned.h](jS)}(h``FGP``h]hFGP}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGubh( flags modify how the folio is returned.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjubj)}(hL``gfp_t gfp`` Memory allocation flags to use if ``FGP_CREAT`` is specified. h](j)}(h ``gfp_t gfp``h]jS)}(hjuh]h gfp_t gfp}(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.chMhjoubj)}(hhh]jM)}(h=Memory allocation flags to use if ``FGP_CREAT`` is specified.h](h"Memory allocation flags to use if }(hjhhhNhNubjS)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh is specified.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hF``struct mempolicy *policy`` NUMA memory allocation policy to follow. h](j)}(h``struct mempolicy *policy``h]jS)}(hjh]hstruct mempolicy *policy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h(NUMA memory allocation policy to follow.h]h(NUMA memory allocation policy to follow.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h9Looks up the page cache entry at **mapping** & **index**.h](h!Looks up the page cache entry at }(hjhhhNhNubj)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh & }(hjhhhNhNubj)}(h **index**h]hindex}(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:61: ./mm/filemap.chMhjubjM)}(hIf ``FGP_LOCK`` or ``FGP_CREAT`` are specified then the function may sleep even if the ``GFP`` flags specified for ``FGP_CREAT`` are atomic.h](hIf }(hjDhhhNhNubjS)}(h ``FGP_LOCK``h]hFGP_LOCK}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubh or }(hjDhhhNhNubjS)}(h ``FGP_CREAT``h]h FGP_CREAT}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubh7 are specified then the function may sleep even if the }(hjDhhhNhNubjS)}(h``GFP``h]hGFP}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubh flags specified for }(hjDhhhNhNubjS)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubh are atomic.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hLIf this function returns a folio, it is returned with an increased refcount.h]hLIf this function returns a folio, it is returned with an increased refcount.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h*The found folio or an ERR_PTR() otherwise.h]h*The found folio or an ERR_PTR() otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_get_folios (C function)c.filemap_get_folioshNtauh1hhjhhhNhNubh)}(hhh](h)}(htunsigned filemap_get_folios (struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h]h)}(hsunsigned filemap_get_folios(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfilemap_get_foliosh]j)}(hfilemap_get_foliosh]hfilemap_get_folios}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hX(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj.hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj*ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjNmodnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_get_foliosasbuh1hhj*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)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj&ubj )}(hpgoff_t *starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jhc.filemap_get_foliosasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj&ubj )}(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]jhc.filemap_get_foliosasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendh]hend}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj&ubj )}(hstruct folio_batch *fbatchh](j5)}(hj8h]hstruct}(hj=hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj]modnameN classnameNjpjs)}jv]jhc.filemap_get_foliosasbuh1hhj9ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj9ubj)}(hfbatchh]hfbatch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(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)}(hGet a batch of foliosh]hGet a batch of folios}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX1**Parameters** ``struct address_space *mapping`` The address_space to search ``pgoff_t *start`` The starting page index ``pgoff_t end`` The final page index (inclusive) ``struct folio_batch *fbatch`` The batch to fill. **Description** Search for and return a batch of folios in the mapping starting at index **start** and up to index **end** (inclusive). The folios are returned in **fbatch** with an elevated reference count. **Return** The number of folios which were found. We also update **start** to index the next folio for the traversal.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h>``struct address_space *mapping`` The address_space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hThe address_space to searchh]hThe address_space to search}(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)}(hj8h]hpgoff_t *start}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj2ubj)}(hhh]jM)}(hThe starting page indexh]hThe starting page index}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubj)}(h1``pgoff_t end`` The final page index (inclusive) h](j)}(h``pgoff_t end``h]jS)}(hjqh]h pgoff_t end}(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)}(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&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``struct folio_batch *fbatch`` The batch to fill. h](j)}(h``struct folio_batch *fbatch``h]jS)}(hjh]hstruct folio_batch *fbatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hThe batch to fill.h]hThe batch to fill.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hSearch for and return a batch of folios in the mapping starting at index **start** and up to index **end** (inclusive). The folios are returned in **fbatch** with an elevated reference count.h](hISearch for and return a batch of folios in the mapping starting at index }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and up to index }(hjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh* (inclusive). The folios are returned in }(hjhhhNhNubj)}(h **fbatch**h]hfbatch}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" with an elevated reference count.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(h **Return**h]j)}(hjBh]hReturn}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjM)}(hjThe number of folios which were found. We also update **start** to index the next folio for the traversal.h](h6The number of folios which were found. We also update }(hjXhhhNhNubj)}(h **start**h]hstart}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh+ to index the next folio for the traversal.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&filemap_get_folios_contig (C function)c.filemap_get_folios_contighNtauh1hhjhhhNhNubh)}(hhh](h)}(h{unsigned filemap_get_folios_contig (struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h]h)}(hzunsigned filemap_get_folios_contig(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfilemap_get_folios_contigh]j)}(hfilemap_get_folios_contigh]hfilemap_get_folios_contig}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hX(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_get_folios_contigasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj"hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hpgoff_t *starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjMmodnameN classnameNjpjs)}jv]jc.filemap_get_folios_contigasbuh1hhjDubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjF )}(hjI h]h*}(hjwhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_get_folios_contigasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio_batch *fbatchh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_get_folios_contigasbuh1hhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj/hhhNhNubah}(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'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h Get a batch of contiguous foliosh]h Get a batch of contiguous folios}(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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj~jHj~jIjJjKuh1hhhhjhNhNubj)}(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)}(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)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubj)}(h1``struct folio_batch *fbatch`` The batch to fill h](j)}(h``struct folio_batch *fbatch``h]jS)}(hjRh]hstruct folio_batch *fbatch}(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)}(hThe batch to fillh]hThe batch to fill}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjubeh}(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)}(hfilemap_get_folios_contig() works exactly like filemap_get_folios(), except the returned folios are guaranteed to be contiguous. This may not return all contiguous folios if the batch gets filled up.h]hfilemap_get_folios_contig() works exactly like filemap_get_folios(), except the returned folios are guaranteed to be contiguous. This may not return all contiguous folios if the batch gets filled up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.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)}(hcThe number of folios found. Also update **start** to be positioned for traversal of the next folio.h](h(The number of folios found. Also update }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 to be positioned for traversal of the next folio.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#filemap_get_folios_tag (C function)c.filemap_get_folios_taghNtauh1hhjhhhNhNubh)}(hhh](h)}(hunsigned filemap_get_folios_tag (struct address_space *mapping, pgoff_t *start, pgoff_t end, xa_mark_t tag, struct folio_batch *fbatch)h]h)}(hunsigned filemap_get_folios_tag(struct address_space *mapping, pgoff_t *start, pgoff_t end, xa_mark_t tag, struct folio_batch *fbatch)h](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(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}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(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}(hjHhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j)}(h address_spaceh]h address_space}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjhmodnameN classnameNjpjs)}jv]jy)}jlj.sbc.filemap_get_folios_tagasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(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_tagasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(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_tagasbuh1hhj ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hendh]hend}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(h xa_mark_t tagh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj\modnameN classnameNjpjs)}jv]jc.filemap_get_folios_tagasbuh1hhjSubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(htagh]htag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(hstruct folio_batch *fbatchh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_get_folios_tagasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfbatchh]hfbatch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j 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&Get a batch of folios matching **tag**h](hGet a batch of folios matching }(hj hhhNhNubj)}(h**tag**h]htag}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(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&]jFjAjGjFjHjFjIjJjKuh1hhhhjhNhNubj)}(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)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjJubj)}(hhh](j)}(h>``struct address_space *mapping`` The address_space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hjoh]hstruct address_space *mapping}(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 address_space to searchh]hThe address_space to search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhM hjfubj)}(h+``pgoff_t *start`` The starting page index h](j)}(h``pgoff_t *start``h]jS)}(hjh]hpgoff_t *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(hThe starting page indexh]hThe starting page index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjfubj)}(h1``pgoff_t end`` The final page index (inclusive) h](j)}(h``pgoff_t end``h]jS)}(hjh]h pgoff_t end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(h The final page index (inclusive)h]h The final page index (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjfubj)}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hM hj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hM hjfubj)}(h1``struct folio_batch *fbatch`` The batch to fill h](j)}(h``struct folio_batch *fbatch``h]jS)}(hjSh]hstruct folio_batch *fbatch}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjMubj)}(hhh]jM)}(hThe batch to fillh]hThe batch to fill}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhM hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhM hjfubeh}(h]h ]h"]h$]h&]uh1jhjJubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjJubjM)}(hXThe first folio may start before **start**; if it does, it will contain **start**. The final folio may extend beyond **end**; if it does, it will contain **end**. The folios have ascending indices. There may be gaps between the folios if there are indices which have no folio in the page cache. If folios are added to or removed from the page cache while this is running, they may or may not be found by this call. Only returns folios that are tagged with **tag**.h](h!The first folio may start before }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; if it does, it will contain }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh%. The final folio may extend beyond }(hjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; if it does, it will contain }(hjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX*. The folios have ascending indices. There may be gaps between the folios if there are indices which have no folio in the page cache. If folios are added to or removed from the page cache while this is running, they may or may not be found by this call. Only returns folios that are tagged with }(hjhhhNhNubj)}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjJubjM)}(h **Return**h]j)}(hjh]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.chM hjJubjM)}(hXThe number of folios found. Also update **start** to index the next folio for traversal.h](h(The number of folios found. Also update }(hj%hhhNhNubj)}(h **start**h]hstart}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh' to index the next folio for traversal.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_read (C function)c.filemap_readhNtauh1hhjhhhNhNubh)}(hhh](h)}(hVssize_t filemap_read (struct kiocb *iocb, struct iov_iter *iter, ssize_t already_read)h]h)}(hUssize_t filemap_read(struct kiocb *iocb, struct iov_iter *iter, ssize_t already_read)h](h)}(hhh]j)}(hssize_th]hssize_t}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjkmodnameN classnameNjpjs)}jv]jy)}jl filemap_readsbc.filemap_readasbuh1hhjbhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjhM ubh)}(h filemap_readh]j)}(hjh]h filemap_read}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjbhhhjhM ubj )}(hA(struct kiocb *iocb, struct iov_iter *iter, ssize_t already_read)h](j )}(hstruct kiocb *iocbh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hkiocbh]hkiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]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)}(hiocbh]hiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct iov_iter *iterh](j5)}(hj8h]hstruct}(hj(hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjHmodnameN classnameNjpjs)}jv]jc.filemap_readasbuh1hhj$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)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hssize_t already_readh](h)}(hhh]j)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h already_readh]h already_read}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjbhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj^hhhjhM ubah}(h]jYah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hj[hhubj4)}(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&]uh1j3hj[hhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjhNhNubj)}(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 hj ubj)}(hhh](j)}(h)``struct kiocb *iocb`` The iocb to read. h](j)}(h``struct kiocb *iocb``h]jS)}(hj2h]hstruct kiocb *iocb}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj,ubj)}(hhh]jM)}(hThe iocb to read.h]hThe iocb to read.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhM hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM hj)ubj)}(h4``struct iov_iter *iter`` Destination for the data. h](j)}(h``struct iov_iter *iter``h]jS)}(hjkh]hstruct iov_iter *iter}(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)}(hDestination for the data.h]hDestination for the data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM hj)ubj)}(hE``ssize_t already_read`` Number of bytes already read by the caller. h](j)}(h``ssize_t already_read``h]jS)}(hjh]hssize_t already_read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(h+Number of bytes already read by the caller.h]h+Number of bytes already read by the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM 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:61: ./mm/filemap.chM hj ubjM)}(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 hj ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj ubjM)}(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 hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#generic_file_read_iter (C function)c.generic_file_read_iterhNtauh1hhjhhhNhNubh)}(hhh](h)}(hJssize_t generic_file_read_iter (struct kiocb *iocb, struct iov_iter *iter)h]h)}(hIssize_t generic_file_read_iter(struct kiocb *iocb, struct iov_iter *iter)h](h)}(hhh]j)}(hssize_th]hssize_t}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjPmodnameN classnameNjpjs)}jv]jy)}jlgeneric_file_read_itersbc.generic_file_read_iterasbuh1hhjGhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMx ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjohMx ubh)}(hgeneric_file_read_iterh]j)}(hjlh]hgeneric_file_read_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjGhhhjohMx ubj )}(h+(struct kiocb *iocb, struct iov_iter *iter)h](j )}(hstruct kiocb *iocbh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hkiocbh]hkiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jjc.generic_file_read_iterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hiocbh]hiocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct iov_iter *iterh](j5)}(hj8h]hstruct}(hj hhhNhNubah}(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]jjc.generic_file_read_iterasbuh1hhj ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjWhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hiterh]hiter}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjGhhhjohMx ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjChhhjohMx ubah}(h]j>ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjohMx hj@hhubj4)}(hhh]jM)}(hgeneric filesystem read routineh]hgeneric filesystem read routine}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMx hjhhubah}(h]h ]h"]h$]h&]uh1j3hj@hhhjohMx ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct kiocb *iocb`` kernel I/O control block ``struct iov_iter *iter`` destination for the data read **Description** This is the "read_iter()" routine for all filesystems that can use the page cache directly. The IOCB_NOWAIT flag in iocb->ki_flags indicates that -EAGAIN shall be returned when no data can be read without waiting for I/O requests to complete; it doesn't prevent readahead. The IOCB_NOIO flag in iocb->ki_flags indicates that no new I/O requests shall be made for the read or for readahead. When no data can be read, -EAGAIN shall be returned. When readahead would be triggered, a partial, possibly empty read shall be returned. **Return** * number of bytes copied, even for partial reads * negative error code (or 0 if IOCB_NOIO) if nothing was readh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM| hjubj)}(hhh](j)}(h0``struct kiocb *iocb`` kernel I/O control block h](j)}(h``struct kiocb *iocb``h]jS)}(hjh]hstruct kiocb *iocb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMy hjubj)}(hhh]jM)}(hkernel I/O control blockh]hkernel I/O control block}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMy hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMy hjubj)}(h8``struct iov_iter *iter`` destination for the data read h](j)}(h``struct iov_iter *iter``h]jS)}(hjh]hstruct iov_iter *iter}(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.chMz hjubj)}(hhh]jM)}(hdestination for the data readh]hdestination for the data read}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMz hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMz hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM| hjubjM)}(h[This is the "read_iter()" routine for all filesystems that can use the page cache directly.h]h_This is the “read_iter()” routine for all filesystems that can use the page cache directly.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM{ hjubjM)}(hThe IOCB_NOWAIT flag in iocb->ki_flags indicates that -EAGAIN shall be returned when no data can be read without waiting for I/O requests to complete; it doesn't prevent readahead.h]hThe IOCB_NOWAIT flag in iocb->ki_flags indicates that -EAGAIN shall be returned when no data can be read without waiting for I/O requests to complete; it doesn’t prevent readahead.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM~ hjubjM)}(hXThe IOCB_NOIO flag in iocb->ki_flags indicates that no new I/O requests shall be made for the read or for readahead. When no data can be read, -EAGAIN shall be returned. When readahead would be triggered, a partial, possibly empty read shall be returned.h]hXThe IOCB_NOIO flag in iocb->ki_flags indicates that no new I/O requests shall be made for the read or for readahead. When no data can be read, -EAGAIN shall be returned. When readahead would be triggered, a partial, possibly empty read shall be returned.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(h **Return**h]j)}(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 hjubj.L)}(hhh](j+)}(h.number of bytes copied, even for partial readsh]jM)}(hjh]h.number of bytes copied, even for partial reads}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(h;negative error code (or 0 if IOCB_NOIO) if nothing was readh]jM)}(hjh]h;negative error code (or 0 if IOCB_NOIO) if nothing was read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jPLjI uh1j-LhjhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h filemap_splice_read (C function)c.filemap_splice_readhNtauh1hhjhhhNhNubh)}(hhh](h)}(hyssize_t filemap_splice_read (struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)h]h)}(hxssize_t filemap_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)h](h)}(hhh]j)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlfilemap_splice_readsbc.filemap_splice_readasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfilemap_splice_readh]j)}(hjh]hfilemap_splice_read}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(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}(hjIhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(hfileh]hfile}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjimodnameN classnameNjpjs)}jv]jc.filemap_splice_readasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjEubj)}(hinh]hin}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(h loff_t *pposh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]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)}(hpposh]hppos}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(hstruct pipe_inode_info *pipeh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hpipe_inode_infoh]hpipe_inode_info}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj.modnameN classnameNjpjs)}jv]jc.filemap_splice_readasbuh1hhj 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)}(hpipeh]hpipe}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.filemap_splice_readasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(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 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/Splice data from a file's pagecache into a pipeh]h1Splice data from a file’s pagecache into a pipe}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj%hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj@jHj@jIjJjKuh1hhhhjhNhNubj)}(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)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjDubj)}(hhh](j)}(h*``struct file *in`` The file to read from h](j)}(h``struct file *in``h]jS)}(hjih]hstruct file *in}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjcubj)}(hhh]jM)}(hThe file to read fromh]hThe file to read from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~hM hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM hj`ubj)}(h;``loff_t *ppos`` Pointer to the file position to read from h](j)}(h``loff_t *ppos``h]jS)}(hjh]h loff_t *ppos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(h)Pointer to the file position to read fromh]h)Pointer to the file position to read from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj`ubj)}(h9``struct pipe_inode_info *pipe`` The pipe to splice into h](j)}(h ``struct pipe_inode_info *pipe``h]jS)}(hjh]hstruct pipe_inode_info *pipe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]jM)}(hThe pipe to splice intoh]hThe pipe to splice into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj`ubj)}(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}(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)}(h,``unsigned int flags`` The SPLICE_F_* flags h](j)}(h``unsigned int flags``h]jS)}(hjMh]hunsigned int flags}(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.chM hjGubj)}(hhh]jM)}(hThe SPLICE_F_* flagsh]hThe SPLICE_F_* flags}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbhM hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM hj`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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjDubjM)}(hThis function gets folios from a file's pagecache and splices them into the pipe. Readahead will be called as necessary to fill more folios. This may be used for blockdevs also.h]hThis function gets folios from a file’s pagecache and splices them into the pipe. Readahead will be called as necessary to fill more folios. This may be used for blockdevs also.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjDubjM)}(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 hjDubjM)}(hXwOn success, the number of bytes read will be returned and ***ppos** will be updated if appropriate; 0 will be returned if there is no more data to be read; -EAGAIN will be returned if the pipe had no space, and some other negative error code will be returned on error. A short read may occur if the pipe has insufficient space, we reach the end of the data or we hit a hole.h](h:On success, the number of bytes read will be returned and }(hjhhhNhNubj)}(h ***ppos**h]h*ppos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX4 will be updated if appropriate; 0 will be returned if there is no more data to be read; -EAGAIN will be returned if the pipe had no space, and some other negative error code will be returned on error. A short read may occur if the pipe has insufficient space, we reach the end of the data or we hit a hole.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_fault (C function)c.filemap_faulthNtauh1hhjhhhNhNubh)}(hhh](h)}(h/vm_fault_t filemap_fault (struct vm_fault *vmf)h]h)}(h.vm_fault_t filemap_fault(struct vm_fault *vmf)h](h)}(hhh]j)}(h vm_fault_th]h vm_fault_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN 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 }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj*hM ubh)}(h filemap_faulth]j)}(hj'h]h filemap_fault}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj*hM ubj )}(h(struct vm_fault *vmf)h]j )}(hstruct vm_fault *vmfh](j5)}(hj8h]hstruct}(hjXhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjxmodnameN classnameNjpjs)}jv]j%c.filemap_faultasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjTubj)}(hvmfh]hvmf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPubah}(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)read in file data for page fault handlingh]h)read in file data for page fault handling}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj*hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX-**Parameters** ``struct vm_fault *vmf`` struct vm_fault containing details of the fault **Description** filemap_fault() is invoked via the vma operations vector for a mapped memory region to read in file data during a page fault. The goto's are kind of ugly, but this streamlines the normal case of having it in the page cache, and handles the special cases reasonably without having a lot of duplicated code. vma->vm_mm->mmap_lock must be held on entry. If our return value has VM_FAULT_RETRY set, it's because the mmap_lock may be dropped before doing I/O or by lock_folio_maybe_drop_mmap(). If our return value does not have VM_FAULT_RETRY set, the mmap_lock has not been released. We never return with VM_FAULT_RETRY and a bit from VM_FAULT_ERROR set. **Return** bitwise-OR of ``VM_FAULT_`` codes.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]j)}(hI``struct vm_fault *vmf`` struct vm_fault containing details of the fault h](j)}(h``struct vm_fault *vmf``h]jS)}(hjh]hstruct vm_fault *vmf}(hjhhhNhNubah}(h]h ]h"]h$]h&]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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hM hj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hM hjubah}(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&]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.}(hjkhhhNhNubah}(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.}(hjzhhhNhNubah}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hZIf our return value does not have VM_FAULT_RETRY set, the mmap_lock has not been released.h]hZIf our return value does not have VM_FAULT_RETRY set, the mmap_lock has not been released.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(hFWe never return with VM_FAULT_RETRY and a bit from VM_FAULT_ERROR set.h]hFWe never return with VM_FAULT_RETRY and a bit from VM_FAULT_ERROR set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubjM)}(h"bitwise-OR of ``VM_FAULT_`` codes.h](hbitwise-OR of }(hjhhhNhNubjS)}(h ``VM_FAULT_``h]h VM_FAULT_}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh codes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hread_cache_folio (C function)c.read_cache_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hrstruct folio * read_cache_folio (struct address_space *mapping, pgoff_t index, filler_t filler, struct file *file)h]h)}(hpstruct folio *read_cache_folio(struct address_space *mapping, pgoff_t index, filler_t filler, struct file *file)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(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)}jlread_cache_foliosbc.read_cache_folioasbuh1hhjhhhj+hMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj+hMubjF )}(hjI h]h*}(hjlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj+hMubh)}(hread_cache_folioh]j)}(hj[h]hread_cache_folio}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj+hMubj )}(hR(struct address_space *mapping, pgoff_t index, filler_t filler, struct file *file)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jYc.read_cache_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jYc.read_cache_folioasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexh]hindex}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hfiller_t fillerh](h)}(hhh]j)}(hfiller_th]hfiller_t}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jYc.read_cache_folioasbuh1hhjLubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hfillerh]hfiller}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jYc.read_cache_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j 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(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&]uh1j3hjhhhj+hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj1jHj1jIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The address_space to read from. ``pgoff_t index`` The index to read. ``filler_t filler`` Function to perform the read, or NULL to use aops->read_folio(). ``struct file *file`` Passed to filler function, may be NULL if not required. **Description** Read one page into the page cache. If it succeeds, the folio returned will contain **index**, but it may not be the first page of the folio. If the filler function returns an error, it will be returned to the caller. **Context** May sleep. Expects mapping->invalidate_lock to be held. **Return** An uptodate folio on success, ERR_PTR() on failure.h](jM)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj5ubj)}(hhh](j)}(hB``struct address_space *mapping`` The address_space to read from. h](j)}(h!``struct address_space *mapping``h]jS)}(hjZh]hstruct address_space *mapping}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjXubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjTubj)}(hhh]jM)}(hThe address_space to read from.h]hThe address_space to read from.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjQubj)}(h%``pgoff_t index`` The index to read. h](j)}(h``pgoff_t index``h]jS)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(hThe index to read.h]hThe index to read.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubj)}(hU``filler_t filler`` Function to perform the read, or NULL to use aops->read_folio(). h](j)}(h``filler_t filler``h]jS)}(hjh]hfiller_t filler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h@Function to perform the read, or NULL to use aops->read_folio().h]h@Function to perform the read, or NULL to use aops->read_folio().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubj)}(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&]uh1jhjhMhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubjM)}(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.chMhj5ubjM)}(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 }(hjVhhhNhNubj)}(h **index**h]hindex}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh0, but it may not be the first page of the folio.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj5ubjM)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM!hj5ubjM)}(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$hj5ubjM)}(h8May sleep. Expects mapping->invalidate_lock to be held.h]h8May sleep. Expects mapping->invalidate_lock to be held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM%hj5ubjM)}(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'hj5ubjM)}(h3An uptodate folio on success, ERR_PTR() on failure.h]h3An uptodate folio on success, ERR_PTR() on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM&hj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#mapping_read_folio_gfp (C function)c.mapping_read_folio_gfphNtauh1hhjhhhNhNubh)}(hhh](h)}(h_struct folio * mapping_read_folio_gfp (struct address_space *mapping, pgoff_t index, gfp_t gfp)h]h)}(h]struct folio *mapping_read_folio_gfp(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.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 }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM1ubjF )}(hjI h]h*}(hjBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM1ubh)}(hmapping_read_folio_gfph]j)}(hj1h]hmapping_read_folio_gfp}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(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}(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]j/c.mapping_read_folio_gfpasbuh1hhjjubj)}(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 hjfubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j/c.mapping_read_folio_gfpasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexh]hindex}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjfubj )}(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.mapping_read_folio_gfpasbuh1hhj"ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hgfph]hgfp}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjfubeh}(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)}(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.chM1hj|hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM1ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The address_space for the folio. ``pgoff_t index`` The index that the allocated folio will contain. ``gfp_t gfp`` The page allocator flags to use if allocating. **Description** This is the same as "read_cache_folio(mapping, index, NULL, NULL)", but with any new memory allocations done using the specified allocation flags. The most likely error from this function is EIO, but ENOMEM is possible and so is EINTR. If ->read_folio returns another error, that will be returned to the caller. The function expects mapping->invalidate_lock to be already held. **Return** Uptodate folio on success, ERR_PTR() on failure.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM5hjubj)}(hhh](j)}(hC``struct address_space *mapping`` The address_space for the folio. h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM2hjubj)}(hhh]jM)}(h The address_space for the folio.h]h The address_space for the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubj)}(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&]uh1jhjhM3hjubj)}(h=``gfp_t gfp`` The page allocator flags to use if allocating. h](j)}(h ``gfp_t gfp``h]jS)}(hj2h]h gfp_t gfp}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM4hj,ubj)}(hhh]jM)}(h.The page allocator flags to use if allocating.h]h.The page allocator flags to use if allocating.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhM4hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM4hjubeh}(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:61: ./mm/filemap.chM6hjubjM)}(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.chM5hjubjM)}(hThe most likely error from this function is EIO, but ENOMEM is possible and so is EINTR. If ->read_folio returns another error, that will be returned to the caller.h]hThe most likely error from this function is EIO, but ENOMEM is possible and so is EINTR. If ->read_folio returns another error, that will be returned to the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM8hjubjM)}(hAThe function expects mapping->invalidate_lock to be already held.h]hAThe function expects mapping->invalidate_lock to be already held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM<hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM>hjubjM)}(h0Uptodate folio on success, ERR_PTR() on failure.h]h0Uptodate folio on success, ERR_PTR() on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM?hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h read_cache_page_gfp (C function)c.read_cache_page_gfphNtauh1hhjhhhNhNubh)}(hhh](h)}(h[struct page * read_cache_page_gfp (struct address_space *mapping, pgoff_t index, gfp_t gfp)h]h)}(hYstruct page *read_cache_page_gfp(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM\ubh)}(hhh]j)}(hpageh]hpage}(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 }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM\ubjF )}(hjI h]h*}(hjEhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM\ubh)}(hread_cache_page_gfph]j)}(hj4h]hread_cache_page_gfp}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(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}(hjqhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j2c.read_cache_page_gfpasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjmubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjiubj )}(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]j2c.read_cache_page_gfpasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjiubj )}(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]j2c.read_cache_page_gfpasbuh1hhj%ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hgfph]hgfp}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjiubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM\ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM\ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM\hjhhubj4)}(hhh]jM)}(hinvalidate_lock to be already held. **Return** up to date page on success, ERR_PTR() on failure.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM`hjubj)}(hhh](j)}(h;``struct address_space *mapping`` the page's address_space h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM]hjubj)}(hhh]jM)}(hthe page's address_spaceh]hthe page’s address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjubj)}(h!``pgoff_t index`` the page index h](j)}(h``pgoff_t index``h]jS)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.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^hjubj)}(h<``gfp_t gfp`` the page allocator flags to use if allocating 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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM_hj/ubj)}(hhh]jM)}(h-the page allocator flags to use if allocatingh]h-the page allocator flags to use if allocating}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhM_hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM_hjubeh}(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:61: ./mm/filemap.chMahjubjM)}(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`hjubjM)}(h7If the page does not get brought uptodate, return -EIO.h]h7If the page does not get brought uptodate, return -EIO.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMchjubjM)}(hAThe function expects mapping->invalidate_lock to be already held.h]hAThe function expects mapping->invalidate_lock to be already held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMehjubjM)}(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.chMghjubjM)}(h1up to date page on success, ERR_PTR() on failure.h]h1up to date page on success, ERR_PTR() on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&__generic_file_write_iter (C function)c.__generic_file_write_iterhNtauh1hhjhhhNhNubh)}(hhh](h)}(hMssize_t __generic_file_write_iter (struct kiocb *iocb, struct iov_iter *from)h]h)}(hLssize_t __generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)h](h)}(hhh]j)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jl__generic_file_write_itersbc.__generic_file_write_iterasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM(ubj )}(h+(struct kiocb *iocb, struct iov_iter *from)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.__generic_file_write_iterasbuh1hhjHubj)}(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 *fromh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__generic_file_write_iterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j 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)}(hwrite data to a fileh]hwrite data to a file}(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&]jFjAjGjUjHjUjIjJjKuh1hhhhjhNhNubj)}(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)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM,hjYubj)}(hhh](j)}(h?``struct kiocb *iocb`` IO state structure (file, offset, etc.) h](j)}(h``struct kiocb *iocb``h]jS)}(hj~h]hstruct kiocb *iocb}(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)hjxubj)}(hhh]jM)}(h'IO state structure (file, offset, etc.)h]h'IO state structure (file, offset, etc.)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM)hjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjuubj)}(h6``struct iov_iter *from`` iov_iter with data to write h](j)}(h``struct iov_iter *from``h]jS)}(hjh]hstruct iov_iter *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM*hjubj)}(hhh]jM)}(hiov_iter with data to writeh]hiov_iter with data to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM*hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjuubeh}(h]h ]h"]h$]h&]uh1jhjYubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM,hjYubjM)}(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+hjYubjM)}(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.chM0hjYubjM)}(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 }(hj&hhhNhNubj_)}(h*not*h]hnot}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hj&ubh 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.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM3hjYubjM)}(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.chM7hjYubj.L)}(hhh](j+)}(h2number of bytes written, even for truncated writesh]jM)}(hjdh]h2number of bytes written, even for truncated writes}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM8hjbubah}(h]h ]h"]h$]h&]uh1j+hj_ubj+)}(h6negative error code if no data has been written at allh]jM)}(hj|h]h6negative error code if no data has been written at all}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM9hjzubah}(h]h ]h"]h$]h&]uh1j+hj_ubeh}(h]h ]h"]h$]h&]jPLjI uh1j-LhjshM8hjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$generic_file_write_iter (C function)c.generic_file_write_iterhNtauh1hhjhhhNhNubh)}(hhh](h)}(hKssize_t generic_file_write_iter (struct kiocb *iocb, struct iov_iter *from)h]h)}(hJssize_t generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)h](h)}(hhh]j)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlgeneric_file_write_itersbc.generic_file_write_iterasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM_ubh)}(hgeneric_file_write_iterh]j)}(hjh]hgeneric_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}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hkiocbh]hkiocb}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj*modnameN classnameNjpjs)}jv]jc.generic_file_write_iterasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjThhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hiocbh]hiocb}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct iov_iter *fromh](j5)}(hj8h]hstruct}(hjzhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.generic_file_write_iterasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjvubj)}(hfromh]hfrom}(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]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&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct kiocb *iocb`` IO state structure ``struct iov_iter *from`` iov_iter with data to write **Description** This is a wrapper around __generic_file_write_iter() to be used by most filesystems. It takes care of syncing the file in case of O_SYNC file and acquires i_rwsem as needed. **Return** * negative error code if no data has been written at all of vfs_fsync_range() failed for a synchronous write * number of bytes written, even for truncated writesh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMchjubj)}(hhh](j)}(h*``struct kiocb *iocb`` IO state structure h](j)}(h``struct kiocb *iocb``h]jS)}(hj<h]hstruct kiocb *iocb}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM`hj6ubj)}(hhh]jM)}(hIO state structureh]hIO state structure}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhM`hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM`hj3ubj)}(h6``struct iov_iter *from`` iov_iter with data to write h](j)}(h``struct iov_iter *from``h]jS)}(hjuh]hstruct iov_iter *from}(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.chMahjoubj)}(hhh]jM)}(hiov_iter with data to writeh]hiov_iter with data to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMahj3ubeh}(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.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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMbhjubjM)}(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.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)}(hj h]h2number of bytes written, even for truncated writes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhhj ubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jPLjI uh1j-LhjhMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"filemap_release_folio (C function)c.filemap_release_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(h;bool filemap_release_folio (struct folio *folio, gfp_t gfp)h]h)}(h:bool filemap_release_folio(struct folio *folio, gfp_t gfp)h](j)}(hj)h]hbool}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM~ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjThM~ubh)}(hfilemap_release_folioh]j)}(hfilemap_release_folioh]hfilemap_release_folio}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1hhjChhhjThM~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 }(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)}jljisbc.filemap_release_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j 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.filemap_release_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfph]hgfp}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj{ubeh}(h]h ]h"]h$]h&]jjuh1j hjChhhjThM~ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj?hhhjThM~ubah}(h]j:ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjThM~hj<hhubj4)}(hhh]jM)}(h(Release fs-specific metadata on a folio.h]h(Release fs-specific metadata on a folio.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM~hjKhhubah}(h]h ]h"]h$]h&]uh1j3hj<hhhjThM~ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjfjHjfjIjJjKuh1hhhhjhNhNubj)}(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)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjjubj)}(hhh](j)}(hF``struct folio *folio`` The folio which the kernel is trying to free. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h-The folio which the kernel is trying to free.h]h-The folio which the kernel is trying to free.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h6``gfp_t gfp`` Memory allocation flags (and I/O mode). h](j)}(h ``gfp_t gfp``h]jS)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h'Memory allocation flags (and I/O mode).h]h'Memory allocation flags (and I/O mode).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjjubjM)}(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.chMhjjubjM)}(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.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjjubjM)}(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 }(hj7hhhNhNubj)}(h**gfp**h]hgfp}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh argument specifies whether I/O may be performed to release this page (__GFP_IO), and whether the call may block (__GFP_RECLAIM & __GFP_FS).}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjjubjM)}(h **Return**h]j)}(hjZh]hReturn}(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.chMhjjubjM)}(h<``true`` if the release was successful, otherwise ``false``.h](jS)}(h``true``h]htrue}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpubh* if the release was successful, otherwise }(hjphhhNhNubjS)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpubh.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%filemap_invalidate_inode (C function)c.filemap_invalidate_inodehNtauh1hhjhhhNhNubh)}(hhh](h)}(hXint filemap_invalidate_inode (struct inode *inode, bool flush, loff_t start, loff_t end)h]h)}(hWint filemap_invalidate_inode(struct inode *inode, bool flush, loff_t start, loff_t end)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfilemap_invalidate_inodeh]j)}(hfilemap_invalidate_inodeh]hfilemap_invalidate_inode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h;(struct inode *inode, bool flush, loff_t start, loff_t end)h](j )}(hstruct inode *inodeh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_invalidate_inodeasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjHhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hinodeh]hinode}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h bool flushh](j)}(hj)h]hbool}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hflushh]hflush}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(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]j6c.filemap_invalidate_inodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t endh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j6c.filemap_invalidate_inodeasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h>Invalidate/forcibly write back a range of an inode's pagecacheh]h@Invalidate/forcibly write back a range of an inode’s pagecache}(hjChhhNhNubah}(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[jIjJjKuh1hhhhjhNhNubj)}(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)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(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 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.chMhj~ubj)}(hhh]jM)}(hThe inode to flushh]hThe inode to flush}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj{ubj)}(h@``bool flush`` Set to write back rather than simply invalidate. h](j)}(h``bool flush``h]jS)}(hjh]h bool flush}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]jM)}(h0Set to write back rather than simply invalidate.h]h0Set to write back rather than simply invalidate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj{ubj)}(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&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj{ubj)}(h_``loff_t end`` Last byte in range (inclusive), or LLONG_MAX for everything from start onwards. h](j)}(h``loff_t end``h]jS)}(hj/h]h loff_t end}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj)ubj)}(hhh]jM)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhj{ubeh}(h]h ]h"]h$]h&]uh1jhj_ubjM)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj_ubjM)}(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.chMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]filemapah ]h"]filemapah$]h&]uh1hhjhhhhhK;ubh)}(hhh](h)}(h Readaheadh]h Readahead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKAubjM)}(hXBReadahead is used to read content into the page cache before it is explicitly requested by the application. Readahead only ever attempts to read folios that are not yet in the page cache. If a folio is present but not up-to-date, readahead will not try to read it. In that case a simple ->read_folio() will be requested.h]hXBReadahead is used to read content into the page cache before it is explicitly requested by the application. Readahead only ever attempts to read folios that are not yet in the page cache. If a folio is present but not up-to-date, readahead will not try to read it. In that case a simple ->read_folio() will be requested.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK hjhhubjM)}(hXsReadahead is triggered when an application read request (whether a system call or a page fault) finds that the requested folio is not in the page cache, or that it is in the page cache and has the readahead flag set. This flag indicates that the folio was read as part of a previous readahead request and now that it has been accessed, it is time for the next readahead.h]hXsReadahead is triggered when an application read request (whether a system call or a page fault) finds that the requested folio is not in the page cache, or that it is in the page cache and has the readahead flag set. This flag indicates that the folio was read as part of a previous readahead request and now that it has been accessed, it is time for the next readahead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKhjhhubjM)}(hXEach readahead request is partly synchronous read, and partly async readahead. This is reflected in the struct file_ra_state which contains ->size being the total number of pages, and ->async_size which is the number of pages in the async section. The readahead flag will be set on the first folio in this async section to trigger a subsequent readahead. Once a series of sequential reads has been established, there should be no need for a synchronous component and all readahead request will be fully asynchronous.h]hXEach readahead request is partly synchronous read, and partly async readahead. This is reflected in the struct file_ra_state which contains ->size being the total number of pages, and ->async_size which is the number of pages in the async section. The readahead flag will be set on the first folio in this async section to trigger a subsequent readahead. Once a series of sequential reads has been established, there should be no need for a synchronous component and all readahead request will be fully asynchronous.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKhjhhubjM)}(hWhen either of the triggers causes a readahead, three numbers need to be determined: the start of the region to read, the size of the region, and the size of the async tail.h]hWhen either of the triggers causes a readahead, three numbers need to be determined: the start of the region to read, the size of the region, and the size of the async tail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK"hjhhubjM)}(hThe start of the region is simply the first page address at or after the accessed address, which is not currently populated in the page cache. This is found with a simple search in the page cache.h]hThe start of the region is simply the first page address at or after the accessed address, which is not currently populated in the page cache. This is found with a simple search in the page cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK&hjhhubjM)}(hXAThe size of the async tail is determined by subtracting the size that was explicitly requested from the determined request size, unless this would be less than zero - then zero is used. NOTE THIS CALCULATION IS WRONG WHEN THE START OF THE REGION IS NOT THE ACCESSED PAGE. ALSO THIS CALCULATION IS NOT USED CONSISTENTLY.h]hXAThe size of the async tail is determined by subtracting the size that was explicitly requested from the determined request size, unless this would be less than zero - then zero is used. NOTE THIS CALCULATION IS WRONG WHEN THE START OF THE REGION IS NOT THE ACCESSED PAGE. ALSO THIS CALCULATION IS NOT USED CONSISTENTLY.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK*hjhhubjM)}(hXThe size of the region is normally determined from the size of the previous readahead which loaded the preceding pages. This may be discovered from the struct file_ra_state for simple sequential reads, or from examining the state of the page cache when multiple sequential reads are interleaved. Specifically: where the readahead was triggered by the readahead flag, the size of the previous readahead is assumed to be the number of pages from the triggering page to the start of the new readahead. In these cases, the size of the previous readahead is scaled, often doubled, for the new readahead, though see get_next_ra_size() for details.h]hXThe size of the region is normally determined from the size of the previous readahead which loaded the preceding pages. This may be discovered from the struct file_ra_state for simple sequential reads, or from examining the state of the page cache when multiple sequential reads are interleaved. Specifically: where the readahead was triggered by the readahead flag, the size of the previous readahead is assumed to be the number of pages from the triggering page to the start of the new readahead. In these cases, the size of the previous readahead is scaled, often doubled, for the new readahead, though see get_next_ra_size() for details.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK0hjhhubjM)}(hXgIf the size of the previous read cannot be determined, the number of preceding pages in the page cache is used to estimate the size of a previous read. This estimate could easily be misled by random reads being coincidentally adjacent, so it is ignored unless it is larger than the current request, and it is not scaled up, unless it is at the start of file.h]hXgIf the size of the previous read cannot be determined, the number of preceding pages in the page cache is used to estimate the size of a previous read. This estimate could easily be misled by random reads being coincidentally adjacent, so it is ignored unless it is larger than the current request, and it is not scaled up, unless it is at the start of file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK;hjhhubjM)}(hIn general readahead is accelerated at the start of the file, as reads from there are often sequential. There are other minor adjustments to the readahead size in various special cases and these are best discovered by reading the code.h]hIn general readahead is accelerated at the start of the file, as reads from there are often sequential. There are other minor adjustments to the readahead size in various special cases and these are best discovered by reading the code.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKBhjhhubjM)}(hThe above calculation, based on the previous readahead size, determines the size of the readahead, to which any requested read size may be added.h]hThe above calculation, based on the previous readahead size, determines the size of the readahead, to which any requested read size may be added.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKGhjhhubjM)}(hXReadahead requests are sent to the filesystem using the ->readahead() address space operation, for which mpage_readahead() is a canonical implementation. ->readahead() should normally initiate reads on all folios, but may fail to read any or all folios without causing an I/O error. The page cache reading code will issue a ->read_folio() request for any folio which ->readahead() did not read, and only an error from this will be final.h]hXReadahead requests are sent to the filesystem using the ->readahead() address space operation, for which mpage_readahead() is a canonical implementation. ->readahead() should normally initiate reads on all folios, but may fail to read any or all folios without causing an I/O error. The page cache reading code will issue a ->read_folio() request for any folio which ->readahead() did not read, and only an error from this will be final.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKKhjhhubjM)}(h->readahead() will generally call readahead_folio() repeatedly to get each folio from those prepared for readahead. It may fail to read a folio by:h]h->readahead() will generally call readahead_folio() repeatedly to get each folio from those prepared for readahead. It may fail to read a folio by:}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKShjhhubj.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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKWhjgubah}(h]h ]h"]h$]h&]uh1j+hjdubj+)}(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+hjdubj+)}(hreadahead() should not fail them due to congestion or temporary resource unavailability, but should wait for necessary resources (e.g. memory or indexing information) to become available. Folios in the final ``async_size`` may be considered less urgent and failure to read them is more acceptable. In this case it is best to use filemap_remove_folio() to remove the folios from the page cache as is automatically done for folios that were not fetched with readahead_folio(). This will allow a subsequent synchronous readahead request to try them again. If they are left in the page cache, then they will be read individually using ->read_folio() which may be less efficient.h](hThose folios not in the final }(hjhhhNhNubjS)}(h``async_size``h]h async_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhX  of the request should be considered to be important and ->readahead() should not fail them due to congestion or temporary resource unavailability, but should wait for necessary resources (e.g. memory or indexing information) to become available. Folios in the final }(hjhhhNhNubjS)}(h``async_size``h]h async_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhX may be considered less urgent and failure to read them is more acceptable. In this case it is best to use filemap_remove_folio() to remove the folios from the page cache as is automatically done for folios that were not fetched with readahead_folio(). This will allow a subsequent synchronous readahead request to try them again. If they are left in the page cache, then they will be read individually using ->read_folio() which may be less efficient.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKdhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$page_cache_ra_unbounded (C function)c.page_cache_ra_unboundedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvvoid page_cache_ra_unbounded (struct readahead_control *ractl, unsigned long nr_to_read, unsigned long lookahead_size)h]h)}(huvoid page_cache_ra_unbounded(struct readahead_control *ractl, unsigned long nr_to_read, unsigned long lookahead_size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hKubh)}(hpage_cache_ra_unboundedh]j)}(hpage_cache_ra_unboundedh]hpage_cache_ra_unbounded}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj!hKubj )}(hY(struct readahead_control *ractl, unsigned long nr_to_read, unsigned long lookahead_size)h](j )}(hstruct readahead_control *ractlh](j5)}(hj8h]hstruct}(hjPhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjpmodnameN classnameNjpjs)}jv]jy)}jlj6sbc.page_cache_ra_unboundedasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjLubj)}(hractlh]hractl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubj )}(hunsigned long nr_to_readh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h nr_to_readh]h nr_to_read}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubj )}(hunsigned long lookahead_sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlookahead_sizeh]hlookahead_size}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjHubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj!hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj!hKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj!hKhjhhubj4)}(hhh]jM)}(hStart unchecked readahead.h]hStart unchecked readahead.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjrhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj!hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct readahead_control *ractl`` Readahead control. ``unsigned long nr_to_read`` The number of pages to read. ``unsigned long lookahead_size`` Where to start the next readahead. **Description** This function is for filesystems to call when they want to start readahead beyond a file's stated i_size. This is almost certainly not the function you want to call. Use page_cache_async_readahead() or page_cache_sync_readahead() instead. **Context** File is referenced by caller, and ractl->mapping->invalidate_lock must be held by the caller at least in shared mode. Mutexes may be held by caller. May sleep, but will not reenter filesystem to reclaim memory.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubj)}(hhh](j)}(h7``struct readahead_control *ractl`` Readahead control. h](j)}(h#``struct readahead_control *ractl``h]jS)}(hjh]hstruct readahead_control *ractl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubj)}(hhh]jM)}(hReadahead control.h]hReadahead control.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h:``unsigned long nr_to_read`` The number of pages to read. h](j)}(h``unsigned long nr_to_read``h]jS)}(hjh]hunsigned long nr_to_read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubj)}(hhh]jM)}(hThe number of pages to read.h]hThe number of pages to read.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hD``unsigned long lookahead_size`` Where to start the next readahead. h](j)}(h ``unsigned long lookahead_size``h]jS)}(hj(h]hunsigned long lookahead_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:70: ./mm/readahead.chKhj"ubj)}(hhh]jM)}(h"Where to start the next readahead.h]h"Where to start the next readahead.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hKhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubjM)}(hThis function is for filesystems to call when they want to start readahead beyond a file's stated i_size. This is almost certainly not the function you want to call. Use page_cache_async_readahead() or page_cache_sync_readahead() instead.h]hThis function is for filesystems to call when they want to start readahead beyond a file’s stated i_size. This is almost certainly not the function you want to call. Use page_cache_async_readahead() or page_cache_sync_readahead() instead.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubjM)}(h **Context**h]j)}(hjh]hContext}(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.chKhjubjM)}(hFile is referenced by caller, and ractl->mapping->invalidate_lock must be held by the caller at least in shared mode. Mutexes may be held by caller. May sleep, but will not reenter filesystem to reclaim memory.h]hFile is referenced by caller, and ractl->mapping->invalidate_lock must be held by the caller at least in shared mode. Mutexes may be held by caller. May sleep, but will not reenter filesystem to reclaim memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_expand (C function)c.readahead_expandhNtauh1hhjhhhNhNubh)}(hhh](h)}(hYvoid readahead_expand (struct readahead_control *ractl, loff_t new_start, size_t new_len)h]h)}(hXvoid readahead_expand(struct readahead_control *ractl, loff_t new_start, size_t new_len)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hreadahead_expandh]j)}(hreadahead_expandh]hreadahead_expand}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hC(struct readahead_control *ractl, loff_t new_start, size_t new_len)h](j )}(hstruct readahead_control *ractlh](j5)}(hj8h]hstruct}(hj hhhNhNubah}(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&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,modnameN classnameNjpjs)}jv]jy)}jljsbc.readahead_expandasbuh1hhjubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjXhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hractlh]hractl}(hjehhhNhNubah}(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&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jFc.readahead_expandasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h new_starth]h new_start}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hsize_t new_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jFc.readahead_expandasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnew_lenh]hnew_len}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hExpand a readahead requesth]hExpand a readahead request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj7jHj7jIjJjKuh1hhhhjhNhNubj)}(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)}(hjAh]h Parameters}(hjChhhNhNubah}(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.chMhj;ubj)}(hhh](j)}(h?``struct readahead_control *ractl`` The request to be expanded h](j)}(h#``struct readahead_control *ractl``h]jS)}(hj`h]hstruct readahead_control *ractl}(hjbhhhNhNubah}(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.chMhjZubj)}(hhh]jM)}(hThe request to be expandedh]hThe request to be expanded}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjWubj)}(h'``loff_t new_start`` The revised start h](j)}(h``loff_t new_start``h]jS)}(hjh]hloff_t new_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjubj)}(hhh]jM)}(hThe revised starth]hThe revised start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubj)}(h3``size_t new_len`` The revised size of the request h](j)}(h``size_t new_len``h]jS)}(hjh]hsize_t new_len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjubj)}(hhh]jM)}(hThe revised size of the requesth]hThe revised size of the request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubjM)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhj;ubjM)}(hX3Attempt to expand a readahead request outwards from the current size to the specified size by inserting locked pages before and after the current window to increase the size to the new window. This may involve the insertion of THPs, in which case the window may get expanded even beyond what was requested.h]hX3Attempt to expand a readahead request outwards from the current size to the specified size by inserting locked pages before and after the current window to increase the size to the new window. This may involve the insertion of THPs, in which case the window may get expanded even beyond what was requested.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhj;ubjM)}(hThe algorithm will stop if it encounters a conflicting page already in the pagecache and leave a smaller expansion than requested.h]hThe algorithm will stop if it encounters a conflicting page already in the pagecache and leave a smaller expansion than requested.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhj;ubjM)}(hvThe caller must check for this by examining the revised **ractl** object for a different expansion than was requested.h](h8The caller must check for this by examining the revised }(hjAhhhNhNubj)}(h **ractl**h]hractl}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh5 object for a different expansion than was requested.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] readaheadah ]h"] readaheadah$]h&]uh1hhjhhhhhKAubh)}(hhh](h)}(h Writebackh]h Writeback}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhhhhhKJubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h2balance_dirty_pages_ratelimited_flags (C function)'c.balance_dirty_pages_ratelimited_flagshNtauh1hhjqhhhNhNubh)}(hhh](h)}(h]int balance_dirty_pages_ratelimited_flags (struct address_space *mapping, unsigned int flags)h]h)}(h\int balance_dirty_pages_ratelimited_flags(struct address_space *mapping, unsigned int flags)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h%balance_dirty_pages_ratelimited_flagsh]j)}(h%balance_dirty_pages_ratelimited_flagsh]h%balance_dirty_pages_ratelimited_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h3(struct address_space *mapping, unsigned int flags)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsb'c.balance_dirty_pages_ratelimited_flagsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj$hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hinth]hint}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hBalance dirty memory state.h]hBalance dirty memory state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjqhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` address_space which was dirtied. ``unsigned int flags`` BDP flags. **Description** Processes which are dirtying memory should call in here once for each page which was newly dirtied. The function will periodically check the system's dirty state and will initiate writeback if needed. See balance_dirty_pages_ratelimited() for details. **Return** If **flags** contains BDP_ASYNC, it may return -EAGAIN to indicate that memory is out of balance and the caller must wait for I/O to complete. Otherwise, it will return 0 to indicate that either memory was already in balance, or it was able to sleep until the amount of dirty memory returned to balance.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubj)}(hhh](j)}(hC``struct address_space *mapping`` address_space which was dirtied. h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubj)}(hhh]jM)}(h address_space which was dirtied.h]h address_space which was dirtied.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``unsigned int flags`` BDP flags. h](j)}(h``unsigned int flags``h]jS)}(hj&h]hunsigned int flags}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhj ubj)}(hhh]jM)}(h BDP flags.h]h BDP flags.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubjM)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubjM)}(h2See balance_dirty_pages_ratelimited() for details.h]h2See balance_dirty_pages_ratelimited() for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubjM)}(h **Return**h]j)}(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.chMhjubjM)}(hX0If **flags** contains BDP_ASYNC, it may return -EAGAIN to indicate that memory is out of balance and the caller must wait for I/O to complete. Otherwise, it will return 0 to indicate that either memory was already in balance, or it was able to sleep until the amount of dirty memory returned to balance.h](hIf }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX$ 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,balance_dirty_pages_ratelimited (C function)!c.balance_dirty_pages_ratelimitedhNtauh1hhjqhhhNhNubh)}(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&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM4ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM4ubh)}(hbalance_dirty_pages_ratelimitedh]j)}(hbalance_dirty_pages_ratelimitedh]hbalance_dirty_pages_ratelimited}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM4ubj )}(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 }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKmodnameN classnameNjpjs)}jv]jy)}jljsb!c.balance_dirty_pages_ratelimitedasbuh1hhj'ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjF )}(hjI h]h*}(hjwhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj'ubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM4ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM4ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM4hjhhubj4)}(hhh]jM)}(hbalance dirty memory state.h]hbalance dirty memory state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM4hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM4ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjqhNhNubj)}(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)}(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.chM8hjubj)}(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.chM5hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj*h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM7hjubjM)}(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.chM6hjubjM)}(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.}(hjOhhhNhNubah}(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&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$tag_pages_for_writeback (C function)c.tag_pages_for_writebackhNtauh1hhjqhhhNhNubh)}(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}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhS/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&]uh1jhjzhhhjhM' ubh)}(htag_pages_for_writebackh]j)}(htag_pages_for_writebackh]htag_pages_for_writeback}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjzhhhjhM' ubj )}(h;(struct address_space *mapping, pgoff_t start, pgoff_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)}jljsbc.tag_pages_for_writebackasbuh1hhjubj)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj0 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj- ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj2 modnameN classnameNjpjs)}jv]jc.tag_pages_for_writebackasbuh1hhj) ubj)}(h h]h }(hjN 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 hjubj )}(h pgoff_t endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjx hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjz modnameN classnameNjpjs)}jv]jc.tag_pages_for_writebackasbuh1hhjq ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq ubj)}(hendh]hend}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjzhhhjhM' ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjvhhhjhM' ubah}(h]jqah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM' hjshhubj4)}(hhh]jM)}(h$tag pages to be written by writebackh]h$tag pages to be written by writeback}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM' hj hhubah}(h]h ]h"]h$]h&]uh1j3hjshhhjhM' ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjqhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` address space structure to write ``pgoff_t start`` starting page index ``pgoff_t end`` ending page index (inclusive) **Description** This function scans the page range from **start** to **end** (inclusive) and tags all pages that have DIRTY tag set with a special TOWRITE tag. The caller can then use the TOWRITE tag to identify pages eligible for writeback. This mechanism is used to avoid livelocking of writeback by a process steadily creating new dirty pages in the file (thus it is important for this function to be quick so that it can tag pages faster than a dirtying process can create them).h](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM+ hj ubj)}(hhh](j)}(hC``struct address_space *mapping`` address space structure to write h](j)}(h!``struct address_space *mapping``h]jS)}(hj h]hstruct address_space *mapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM( hj ubj)}(hhh]jM)}(h address space structure to writeh]h address space structure to write}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$ hM( hj% ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$ hM( hj ubj)}(h&``pgoff_t start`` starting page index h](j)}(h``pgoff_t start``h]jS)}(hjH h]h pgoff_t start}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjF ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM) hjB ubj)}(hhh]jM)}(hstarting page indexh]hstarting page index}(hja hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj] hM) hj^ ubah}(h]h ]h"]h$]h&]uh1jhjB ubeh}(h]h ]h"]h$]h&]uh1jhj] hM) hj ubj)}(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* hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM, hj ubjM)}(hXThis function scans the page range from **start** to **end** (inclusive) and tags all pages that have DIRTY tag set with a special TOWRITE tag. The caller can then use the TOWRITE tag to identify pages eligible for writeback. This mechanism is used to avoid livelocking of writeback by a process steadily creating new dirty pages in the file (thus it is important for this function to be quick so that it can tag pages faster than a dirtying process can create them).h](h(This function scans the page range from }(hj hhhNhNubj)}(h **start**h]hstart}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh to }(hj hhhNhNubj)}(h**end**h]hend}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhX (inclusive) and tags all pages that have DIRTY tag set with a special TOWRITE tag. The caller can then use the TOWRITE tag to identify pages eligible for writeback. This mechanism is used to avoid livelocking of writeback by a process steadily creating new dirty pages in the file (thus it is important for this function to be quick so that it can tag pages faster than a dirtying process can create them).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM+ hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwriteback_iter (C function)c.writeback_iterhNtauh1hhjqhhhNhNubh)}(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 }(hj3 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj! hhhj2 hM ubh)}(hhh]j)}(hfolioh]hfolio}(hjD hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjF modnameN classnameNjpjs)}jv]jy)}jlwriteback_itersbc.writeback_iterasbuh1hhj! hhhj2 hM ubj)}(h h]h }(hje hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj! hhhj2 hM ubjF )}(hjI h]h*}(hjs hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj! hhhj2 hM ubh)}(hwriteback_iterh]j)}(hjb h]hwriteback_iter}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj! hhhj2 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}(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.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)}(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 }(hjK hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjY hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hwbch]hwbc}(hjf 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}(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)}(hfolioh]hfolio}(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 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! hhhj2 hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj2 hM ubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj2 hM hj hhubj4)}(hhh]jM)}(h(iterate folio of a mapping for writebackh]h(iterate folio of a mapping for writeback}(hjB 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 hhhj2 hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjZ jHjZ jIjJjKuh1hhhhjqhNhNubj)}(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)}(hjd h]h Parameters}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj^ ubj)}(hhh](j)}(hC``struct address_space *mapping`` address space structure to write h](j)}(h!``struct address_space *mapping``h]jS)}(hj h]hstruct address_space *mapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj} ubj)}(hhh]jM)}(h address space structure to writeh]h address space structure to write}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj} ubeh}(h]h ]h"]h$]h&]uh1jhj hM hjz ubj)}(h4``struct writeback_control *wbc`` writeback context h](j)}(h!``struct writeback_control *wbc``h]jS)}(hj h]hstruct writeback_control *wbc}(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)}(hwriteback contexth]hwriteback 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 hjz 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 (}(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh to start)}(hjhhhNhNubeh}(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)}(h?``int *error`` in-out pointer for writeback errors (see below) h](j)}(h``int *error``h]jS)}(hj@h]h int *error}(hjBhhhNhNubah}(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)}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhM hjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhM hjz ubeh}(h]h ]h"]h$]h&]uh1jhj^ ubjM)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api: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 }(hjhhhNhNubj)}(h**wbc**h]hwbc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh on }(hjhhhNhNubj)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhJ and should be called in a while loop in the ->writepages implementation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM 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, }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh is passed in the }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhe argument, and for every subsequent iteration the folio returned previously should be passed back in.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM 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, }(hjhhhNhNubj)}(h **error**h]herror}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" should be set to the error value.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM 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 }(hjhhhNhNubj)}(h**wbc**h]hwbc}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) has finished, this function will return }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh: and if there was an error in any iteration restore it to }(hjhhhNhNubj)}(h **error**h]herror}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(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}(hjahhhNhNubah}(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 }(hjuhhhNhNubjS)}(h``NULL``h]hNULL}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubh.}(hjuhhhNhNubeh}(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)}(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 hj^ ubjM)}(h3the folio to write or ``NULL`` if the loop is done.h](hthe folio to write or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if the loop is done.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj^ ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h filemap_dirty_folio (C function)c.filemap_dirty_foliohNtauh1hhjqhhhNhNubh)}(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&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h4(struct address_space *mapping, struct folio *folio)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj+hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKmodnameN classnameNjpjs)}jv]jy)}jljsbc.filemap_dirty_folioasbuh1hhj'ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjF )}(hjI h]h*}(hjwhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj'ubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#ubj )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jec.filemap_dirty_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j 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)}(hAMark a folio dirty for filesystems which do not use buffer_heads.h]hAMark a folio dirty for filesystems which do not use buffer_heads.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj6jHj6jIjJjKuh1hhhhjqhNhNubj)}(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)}(hj@h]h Parameters}(hjBhhhNhNubah}(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)}(hG``struct address_space *mapping`` Address space this folio belongs to. h](j)}(h!``struct address_space *mapping``h]jS)}(hj_h]hstruct address_space *mapping}(hjahhhNhNubah}(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 hjYubj)}(hhh]jM)}(h$Address space this folio belongs to.h]h$Address space this folio belongs to.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjthM hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthM hjVubj)}(h5``struct folio *folio`` Folio to be marked as dirty. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(hFolio to be marked as dirty.h]hFolio to be marked as dirty.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjVubeh}(h]h ]h"]h$]h&]uh1jhj:ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj:ubjM)}(hXFilesystems which do not use buffer heads should call this function from their dirty_folio address space operation. It ignores the contents of folio_get_private(), so if the filesystem marks individual blocks as dirty, the filesystem should handle that itself.h]hXFilesystems which do not use buffer heads should call this function from their dirty_folio address space operation. It ignores the contents of folio_get_private(), so if the filesystem marks individual blocks as dirty, the filesystem should handle that itself.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj:ubjM)}(hXThis is also sometimes used by filesystems which use buffer_heads when a single buffer is being dirtied: we want to set the folio dirty in that case, but not all the buffers. This is a "bottom-up" dirtying, whereas block_dirty_folio() is a "top-down" dirtying.h]hX This is also sometimes used by filesystems which use buffer_heads when a single buffer is being dirtied: we want to set the folio dirty in that case, but not all the buffers. This is a “bottom-up” dirtying, whereas block_dirty_folio() is a “top-down” dirtying.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj:ubjM)}(hThe caller must ensure this doesn't race with truncation. Most will simply hold the folio lock, but e.g. zap_pte_range() calls with the folio mapped and the pte lock held, which also locks out truncation.h]hThe caller must ensure this doesn’t race with truncation. Most will simply hold the folio lock, but e.g. zap_pte_range() calls with the folio mapped and the pte lock held, which also locks out truncation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(folio_redirty_for_writepage (C function)c.folio_redirty_for_writepagehNtauh1hhjqhhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjChM ubh)}(hfolio_redirty_for_writepageh]j)}(hfolio_redirty_for_writepageh]hfolio_redirty_for_writepage}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1hhj2hhhjChM ubj )}(h4(struct writeback_control *wbc, struct folio *folio)h](j )}(hstruct writeback_control *wbch](j5)}(hj8h]hstruct}(hjrhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j)}(hwriteback_controlh]hwriteback_control}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljXsbc.folio_redirty_for_writepageasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjnubj)}(hwbch]hwbc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjjubj )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_redirty_for_writepageasbuh1hhjubj)}(h h]h }(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 hjjubeh}(h]h ]h"]h$]h&]jjuh1j hj2hhhjChM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj.hhhjChM ubah}(h]j)ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjChM hj+hhubj4)}(hhh]jM)}(hDecline to write a dirty folio.h]hDecline to write a dirty folio.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjbhhubah}(h]h ]h"]h$]h&]uh1j3hj+hhhjChM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj}jHj}jIjJjKuh1hhhhjqhNhNubj)}(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)}(hjh]hstruct writeback_control *wbc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(hThe writeback control.h]hThe writeback control.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]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 }(hj0hhhNhNubj)}(h **folio**h]hfolio}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh7 for some reason, it should call this function, unlock }(hj0hhhNhNubj)}(h **folio**h]hfolio}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh and return 0.}(hj0hhhNhNubeh}(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)}(hjeh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(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.}(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&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mark_dirty (C function)c.folio_mark_dirtyhNtauh1hhjqhhhNhNubh)}(hhh](h)}(h+bool folio_mark_dirty (struct folio *folio)h]h)}(h*bool folio_mark_dirty(struct folio *folio)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_mark_dirtyh]j)}(hfolio_mark_dirtyh]hfolio_mark_dirty}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_mark_dirtyasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj2hhhNhNubah}(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)}(hMark a folio as being modified.h]hMark a folio as being modified.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjfhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjqhNhNubj)}(hX!**Parameters** ``struct folio *folio`` The folio. **Description** The folio may not be truncated while this function is running. Holding the folio lock is sufficient to prevent truncation, but some callers cannot acquire a sleeping lock. These callers instead hold the page table lock for a page table which contains at least one page in this folio. Truncation will block on the page table lock as it unmaps pages before removing the folio from its mapping. **Return** True if the folio was newly dirtied, false if it was already dirty.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]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)}(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)}(hj h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api: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.}(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&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_wait_writeback (C function)c.folio_wait_writebackhNtauh1hhjqhhhNhNubh)}(hhh](h)}(h/void folio_wait_writeback (struct folio *folio)h]h)}(h.void folio_wait_writeback(struct folio *folio)h](j)}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhS/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&]uh1jhjMhhhj_hM ubh)}(hfolio_wait_writebackh]j)}(hfolio_wait_writebackh]hfolio_wait_writeback}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1hhjMhhhj_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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljtsbc.folio_wait_writebackasbuh1hhjubj)}(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 hjMhhhj_hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjIhhhj_hM ubah}(h]jDah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj_hM hjFhhubj4)}(hhh]jM)}(h%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&]uh1j3hjFhhhj_hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj)jHj)jIjJjKuh1hhhhjqhNhNubj)}(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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj-ubj)}(hhh]j)}(h/``struct folio *folio`` The folio to wait for. h](j)}(h``struct folio *folio``h]jS)}(hjRh]hstruct folio *folio}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjLubj)}(hhh]jM)}(hThe folio to wait for.h]hThe folio to wait for.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjghM hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj-ubjM)}(hVIf the folio is currently being written back to storage, wait for the I/O to complete.h]hVIf the folio is currently being written back to storage, wait for the I/O to complete.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj-ubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj-ubjM)}(hSleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished.h]hSleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*folio_wait_writeback_killable (C function)c.folio_wait_writeback_killablehNtauh1hhjqhhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]j)}(hfolioh]hfolio}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjVmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_wait_writeback_killableasbuh1hhj2ubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj.ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjhhubj4)}(hhh]jM)}(h%Wait for a folio to finish writeback.h]h%Wait for a folio to finish writeback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjqhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to wait for. **Description** If the folio is currently being written back to storage, wait for the I/O to complete or a fatal signal to arrive. **Context** Sleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished. **Return** 0 on success, -EINTR if we get a fatal signal while waiting.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]j)}(h/``struct folio *folio`` The folio to wait for. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(hThe folio to wait for.h]hThe folio to wait for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj5h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(hrIf the folio is currently being written back to storage, wait for the I/O to complete or a fatal signal to arrive.h]hrIf the folio is currently being written back to storage, wait for the I/O to complete or a fatal signal to arrive.}(hjKhhhNhNubah}(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)}(hj\h]hContext}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(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.}(hjrhhhNhNubah}(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)}(h<0 on success, -EINTR if we get a fatal signal while waiting.h]h<0 on success, -EINTR if we get a fatal signal while waiting.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_wait_stable (C function)c.folio_wait_stablehNtauh1hhjqhhhNhNubh)}(hhh](h)}(h,void folio_wait_stable (struct folio *folio)h]h)}(h+void folio_wait_stable(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_wait_stableh]j)}(hfolio_wait_stableh]hfolio_wait_stable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj%modnameN classnameNjpjs)}jv]jy)}jljsbc.folio_wait_stableasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjQhhhNhNubah}(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 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&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjqhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to wait on. **Description** This function determines if the given folio is related to a backing device that requires folio contents to be held stable during writeback. If so, then it will wait for any pending writeback to complete. **Context** Sleeps. Must be called in process context and with no spinlocks held. Caller should hold a reference on the folio. If the folio is not locked, writeback may start again after writeback has finished.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]j)}(h.``struct folio *folio`` The folio to wait on. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]jM)}(hThe folio to wait on.h]hThe folio to wait on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(hThis function determines if the given folio is related to a backing device that requires folio contents to be held stable during writeback. If so, then it will wait for any pending writeback to complete.h]hThis function determines if the given folio is related to a backing device that requires folio contents to be held stable during writeback. If so, then it will wait for any pending writeback to complete.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubjM)}(h **Context**h]j)}(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: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.}(hjAhhhNhNubah}(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&]uh1jhjqhhhNhNubeh}(h] writebackah ]h"] writebackah$]h&]uh1hhjhhhhhKJubh)}(hhh](h)}(hTruncateh]hTruncate}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hhhhhKPubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_invalidate (C function)c.folio_invalidatehNtauh1hhj_hhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKyubh)}(hfolio_invalidateh]j)}(hfolio_invalidateh]hfolio_invalidate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKyubj )}(h3(struct folio *folio, size_t offset, size_t length)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_invalidateasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h size_t offseth](h)}(hhh]j)}(hsize_th]hsize_t}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj=modnameN classnameNjpjs)}jv]jc.folio_invalidateasbuh1hhj4ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hoffseth]hoffset}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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_invalidateasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hlengthh]hlength}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKyubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKyubah}(h]j|ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKyhj~hhubj4)}(hhh]jM)}(h"Invalidate part or all of a folio.h]h"Invalidate part or all of a folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKyhjhhubah}(h]h ]h"]h$]h&]uh1j3hj~hhhjhKyubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj_hNhNubj)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hKzhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hKzhjubj)}(h3``size_t offset`` start of the range to invalidate h](j)}(h``size_t offset``h]jS)}(hjSh]h size_t offset}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK{hjMubj)}(hhh]jM)}(h start of the range to invalidateh]h start of the range to invalidate}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhK{hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhK{hjubj)}(h4``size_t length`` length of the range to invalidate h](j)}(h``size_t length``h]jS)}(hjh]h size_t length}(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!length of the range to invalidateh]h!length 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|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&]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.}(hjhhhNhNubah}(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&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'truncate_inode_pages_range (C function)c.truncate_inode_pages_rangehNtauh1hhj_hhhNhNubh)}(hhh](h)}(h[void truncate_inode_pages_range (struct address_space *mapping, loff_t lstart, uoff_t lend)h]h)}(hZvoid truncate_inode_pages_range(struct address_space *mapping, loff_t lstart, uoff_t lend)h](j)}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMWubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj;hMWubh)}(htruncate_inode_pages_rangeh]j)}(htruncate_inode_pages_rangeh]htruncate_inode_pages_range}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1hhj)hhhj;hMWubj )}(h;(struct address_space *mapping, loff_t lstart, uoff_t lend)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(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.truncate_inode_pages_rangeasbuh1hhjfubj)}(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 )}(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.truncate_inode_pages_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlstarth]hlstart}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjbubj )}(h uoff_t lendh](h)}(hhh]j)}(huoff_th]huoff_t}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj)modnameN classnameNjpjs)}jv]jc.truncate_inode_pages_rangeasbuh1hhj ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlendh]hlend}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjbubeh}(h]h ]h"]h$]h&]jjuh1j hj)hhhj;hMWubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj%hhhj;hMWubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj;hMWhj"hhubj4)}(hhh]jM)}(h=truncate range of pages specified by start & end byte offsetsh]h=truncate range of pages specified by start & end byte offsets}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMWhjzhhubah}(h]h ]h"]h$]h&]uh1j3hj"hhhj;hMWubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj_hNhNubj)}(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)}(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.chM[hjubj)}(hhh](j)}(h6``struct address_space *mapping`` mapping to truncate 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&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMXhjubj)}(hhh]jM)}(hmapping to truncateh]hmapping to truncate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMXhjubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMYhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMYhjubj)}(h8``uoff_t lend`` offset to which to truncate (inclusive) h](j)}(h``uoff_t lend``h]jS)}(hj0 h]h uoff_t lend}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj. ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMZhj* ubj)}(hhh]jM)}(h'offset to which to truncate (inclusive)h]h'offset to which to truncate (inclusive)}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjE hMZhjF ubah}(h]h ]h"]h$]h&]uh1jhj* ubeh}(h]h ]h"]h$]h&]uh1jhjE hMZhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjk h]h Description}(hjm hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM\hjubjM)}(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).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM[hjubjM)}(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_hjubjM)}(hWe pass down the cache-hot hint to the page freeing code. Even if the mapping is large, it is probably the case that the final pages are the most recently touched, and freeing happens in ascending file offset order.h]hWe pass down the cache-hot hint to the page freeing code. Even if the mapping is large, it is probably the case that the final pages are the most recently touched, and freeing happens in ascending file offset order.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMehjubjM)}(hNote that since ->invalidate_folio() accepts range to invalidate truncate_inode_pages_range is able to handle cases where lend + 1 is not page aligned properly.h]hNote that since ->invalidate_folio() accepts range to invalidate truncate_inode_pages_range is able to handle cases where lend + 1 is not page aligned properly.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMihjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!truncate_inode_pages (C function)c.truncate_inode_pageshNtauh1hhj_hhhNhNubh)}(hhh](h)}(hHvoid truncate_inode_pages (struct address_space *mapping, loff_t lstart)h]h)}(hGvoid truncate_inode_pages(struct address_space *mapping, loff_t lstart)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubh)}(htruncate_inode_pagesh]j)}(htruncate_inode_pagesh]htruncate_inode_pages}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj hMubj )}(h.(struct address_space *mapping, loff_t lstart)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj!hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj!ubj)}(h h]h }(hj'!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj8!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5!ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj:!modnameN classnameNjpjs)}jv]jy)}jlj!sbc.truncate_inode_pagesasbuh1hhj!ubj)}(h h]h }(hjX!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjF )}(hjI h]h*}(hjf!hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj!ubj)}(hmappingh]hmapping}(hjs!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!ubj )}(h loff_t lstarth](h)}(hhh]j)}(hloff_th]hloff_t}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj!modnameN classnameNjpjs)}jv]jT!c.truncate_inode_pagesasbuh1hhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hlstarth]hlstart}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj!ubeh}(h]h ]h"]h$]h&]jjuh1j hj hhhj hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj hMubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj hMhj hhubj4)}(hhh]jM)}(h'truncate *all* the pages from an offseth](h truncate }(hj!hhhNhNubj_)}(h*all*h]hall}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hj!ubh the pages from an offset}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj!hhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj"jHj"jIjJjKuh1hhhhj_hNhNubj)}(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)}(hj8"h]hstruct address_space *mapping}(hj:"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6"ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj2"ubj)}(hhh]jM)}(hmapping to truncateh]hmapping to truncate}(hjQ"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjM"hMhjN"ubah}(h]h ]h"]h$]h&]uh1jhj2"ubeh}(h]h ]h"]h$]h&]uh1jhjM"hMhj/"ubj)}(h0``loff_t lstart`` offset from which to truncate h](j)}(h``loff_t lstart``h]jS)}(hjq"h]h loff_t lstart}(hjs"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjo"ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjk"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&]uh1jhjk"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhj/"ubeh}(h]h ]h"]h$]h&]uh1jhj"ubjM)}(h**Description**h]j)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj"ubjM)}(hMCalled under (and serialised by) inode->i_rwsem and mapping->invalidate_lock.h]hMCalled under (and serialised by) inode->i_rwsem and mapping->invalidate_lock.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj"ubjM)}(h**Note**h]j)}(hj"h]hNote}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj"ubjM)}(hWhen this function returns, there can be a page in the process of deletion (inside __filemap_remove_folio()) in the specified range. Thus mapping->nrpages can be non-zero when this function returns even after truncation of the whole mapping.h]hWhen this function returns, there can be a page in the process of deletion (inside __filemap_remove_folio()) in the specified range. Thus mapping->nrpages can be non-zero when this function returns even after truncation of the whole mapping.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'truncate_inode_pages_final (C function)c.truncate_inode_pages_finalhNtauh1hhj_hhhNhNubh)}(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}(hj9#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5#ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj#hhhj&#hMubj )}(h(struct address_space *mapping)h]j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjU#hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjQ#ubj)}(h h]h }(hjb#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ#ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjs#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp#ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetju#modnameN classnameNjpjs)}jv]jy)}jlj;#sbc.truncate_inode_pages_finalasbuh1hhjQ#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ#ubjF )}(hjI h]h*}(hj#hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjQ#ubj)}(hmappingh]hmapping}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjM#ubah}(h]h ]h"]h$]h&]jjuh1j hj#hhhj&#hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj#hhhj&#hMubah}(h]j #ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj&#hMhj #hhubj4)}(hhh]jM)}(h&truncate *all* pages before inode diesh](h truncate }(hj#hhhNhNubj_)}(h*all*h]hall}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j^hj#ubh pages before inode dies}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj#hhubah}(h]h ]h"]h$]h&]uh1j3hj #hhhj&#hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj$jHj$jIjJjKuh1hhhhj_hNhNubj)}(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}(hjD$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@$hMhjA$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)}(hjf$h]h Description}(hjh$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd$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&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%invalidate_mapping_pages (C function)c.invalidate_mapping_pageshNtauh1hhj_hhhNhNubh)}(hhh](h)}(hbunsigned long invalidate_mapping_pages (struct address_space *mapping, pgoff_t start, pgoff_t end)h]h)}(haunsigned long invalidate_mapping_pages(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j)}(hunsignedh]hunsigned}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMJubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj$hMJubj)}(hlongh]hlong}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj$hMJubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj$hMJubh)}(hinvalidate_mapping_pagesh]j)}(hinvalidate_mapping_pagesh]hinvalidate_mapping_pages}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj$hhhj$hMJubj )}(h;(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj%hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj%ubj)}(h h]h }(hj %hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj1%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.%ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3%modnameN classnameNjpjs)}jv]jy)}jlj$sbc.invalidate_mapping_pagesasbuh1hhj%ubj)}(h h]h }(hjQ%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjF )}(hjI h]h*}(hj_%hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj%ubj)}(hmappingh]hmapping}(hjl%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]jM%c.invalidate_mapping_pagesasbuh1hhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hstarth]hstart}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj %ubj )}(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]jM%c.invalidate_mapping_pagesasbuh1hhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hendh]hend}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj %ubeh}(h]h ]h"]h$]h&]jjuh1j hj$hhhj$hMJubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj$hhhj$hMJubah}(h]j$ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj$hMJhj$hhubj4)}(hhh]jM)}(h1Invalidate all clean, unlocked cache of one inodeh]h1Invalidate all clean, unlocked cache of one inode}(hj&&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMJhj#&hhubah}(h]h ]h"]h$]h&]uh1j3hj$hhhj$hMJubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj>&jHj>&jIjJjKuh1hhhhj_hNhNubj)}(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)}(hjH&h]h Parameters}(hjJ&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF&ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMNhjB&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)}(hjg&h]hstruct address_space *mapping}(hji&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje&ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMKhja&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&]uh1jhja&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)}(hj&h]h pgoff_t start}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMLhj&ubj)}(hhh]jM)}(h%the offset 'from' which to invalidateh]h)the offset ‘from’ which to invalidate}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&hMLhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMLhj^&ubj)}(h@``pgoff_t end`` the offset 'to' which to invalidate (inclusive) h](j)}(h``pgoff_t end``h]jS)}(hj&h]h pgoff_t end}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMMhj&ubj)}(hhh]jM)}(h/the offset 'to' which to invalidate (inclusive)h]h3the offset ‘to’ which to invalidate (inclusive)}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&hMMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMMhj^&ubeh}(h]h ]h"]h$]h&]uh1jhjB&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.chMOhjB&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.chMNhjB&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().}(hj9'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMQhjB&ubjM)}(h **Return**h]j)}(hjJ'h]hReturn}(hjL'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH'ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMThjB&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.chMUhjB&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*invalidate_inode_pages2_range (C function)c.invalidate_inode_pages2_rangehNtauh1hhj_hhhNhNubh)}(hhh](h)}(h]int invalidate_inode_pages2_range (struct address_space *mapping, pgoff_t start, pgoff_t end)h]h)}(h\int invalidate_inode_pages2_range(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j)}(hinth]hint}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj'hMubh)}(hinvalidate_inode_pages2_rangeh]j)}(hinvalidate_inode_pages2_rangeh]hinvalidate_inode_pages2_range}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj'hhhj'hMubj )}(h;(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj'hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj'modnameN classnameNjpjs)}jv]jy)}jlj'sbc.invalidate_inode_pages2_rangeasbuh1hhj'ubj)}(h h]h }(hj (hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjF )}(hjI h]h*}(hj(hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj'ubj)}(hmappingh]hmapping}(hj%(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj'ubj )}(h pgoff_t starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjA(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjC(modnameN classnameNjpjs)}jv]j(c.invalidate_inode_pages2_rangeasbuh1hhj:(ubj)}(h h]h }(hj_(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:(ubj)}(hstarth]hstart}(hjm(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj'ubj )}(h pgoff_t endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]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}(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+remove range of pages from an address_spaceh]h+remove range of pages from an address_space}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj(hhubah}(h]h ]h"]h$]h&]uh1j3hj'hhhj'hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj(jHj(jIjJjKuh1hhhhj_hNhNubj)}(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}(hj9)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5)hMhj6)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj5)hMhj)ubj)}(h=``pgoff_t start`` the page offset 'from' which to invalidate h](j)}(h``pgoff_t start``h]jS)}(hjY)h]h pgoff_t start}(hj[)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjW)ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjS)ubj)}(hhh]jM)}(h*the page offset 'from' which to invalidateh]h.the page offset ‘from’ which to invalidate}(hjr)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjn)hMhjo)ubah}(h]h ]h"]h$]h&]uh1jhjS)ubeh}(h]h ]h"]h$]h&]uh1jhjn)hMhj)ubj)}(hE``pgoff_t end`` the page offset 'to' which to invalidate (inclusive) h](j)}(h``pgoff_t end``h]jS)}(hj)h]h pgoff_t end}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj)ubj)}(hhh]jM)}(h4the page offset 'to' which to invalidate (inclusive)h]h8the page offset ‘to’ which to invalidate (inclusive)}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj)ubeh}(h]h ]h"]h$]h&]uh1jhj(ubjM)}(h**Description**h]j)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj(ubjM)}(hZAny pages which are found to be mapped into pagetables are unmapped prior to invalidation.h]hZAny pages which are found to be mapped into pagetables are unmapped prior to invalidation.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj(ubjM)}(h **Return**h]j)}(hj)h]hReturn}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj(ubjM)}(h--EBUSY if any pages could not be invalidated.h]h--EBUSY if any pages could not be invalidated.}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$invalidate_inode_pages2 (C function)c.invalidate_inode_pages2hNtauh1hhj_hhhNhNubh)}(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}(hj9*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5*hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hjH*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5*hhhjG*hMubh)}(hinvalidate_inode_pages2h]j)}(hinvalidate_inode_pages2h]hinvalidate_inode_pages2}(hjZ*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV*ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj5*hhhjG*hMubj )}(h(struct address_space *mapping)h]j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjv*hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjr*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr*ubh)}(hhh]j)}(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_pages2asbuh1hhjr*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr*ubjF )}(hjI h]h*}(hj*hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjr*ubj)}(hmappingh]hmapping}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjn*ubah}(h]h ]h"]h$]h&]jjuh1j hj5*hhhjG*hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj1*hhhjG*hMubah}(h]j,*ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjG*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.*hhhjG*hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj+jHj+jIjJjKuh1hhhhj_hNhNubj)}(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&]uh1jRhj8+ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj4+ubj)}(hhh]jM)}(hthe address_spaceh]hthe address_space}(hjS+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjO+hMhjP+ubah}(h]h ]h"]h$]h&]uh1jhj4+ubeh}(h]h ]h"]h$]h&]uh1jhjO+hMhj1+ubah}(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&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj+ubjM)}(hZAny pages which are found to be mapped into pagetables are unmapped prior to invalidation.h]hZAny pages which are found to be mapped into pagetables are unmapped prior to invalidation.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj+ubjM)}(h **Return**h]j)}(hj+h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj+ubjM)}(h--EBUSY if any pages could not be invalidated.h]h--EBUSY if any pages could not be invalidated.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htruncate_pagecache (C function)c.truncate_pagecachehNtauh1hhj_hhhNhNubh)}(hhh](h)}(h=void truncate_pagecache (struct inode *inode, loff_t newsize)h]h)}(h,modnameN classnameNjpjs)}jv]jy)}jlj,sbc.truncate_pagecacheasbuh1hhj,ubj)}(h h]h }(hj\,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjF )}(hjI h]h*}(hjj,hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj,ubj)}(hinodeh]hinode}(hjw,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj,ubj )}(hloff_t newsizeh](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]jX,c.truncate_pagecacheasbuh1hhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hnewsizeh]hnewsize}(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)}(h2unmap and remove pagecache that has been truncatedh]h2unmap and remove pagecache that has been truncated}(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-jIjJjKuh1hhhhj_hNhNubj)}(hX+**Parameters** ``struct inode *inode`` inode ``loff_t newsize`` new file size **Description** inode's new i_size must already be written before truncate_pagecache is called. This function should typically be called before the filesystem releases resources associated with the freed range (eg. deallocates blocks). This way, pagecache will always stay logically coherent with on-disk format, and the filesystem would not have to deal with situations such as writepage being called for a page that has already had its underlying blocks deallocated.h](jM)}(h**Parameters**h]j)}(hj -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)}(h``struct inode *inode`` inode 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&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj$-ubj)}(hhh]jM)}(hinodeh]hinode}(hjC-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!``loff_t newsize`` new file size h](j)}(h``loff_t newsize``h]jS)}(hjc-h]hloff_t newsize}(hje-hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhja-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 new file sizeh]h new file size}(hj|-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjx-hMhjy-ubah}(h]h ]h"]h$]h&]uh1jhj]-ubeh}(h]h ]h"]h$]h&]uh1jhjx-hMhj!-ubeh}(h]h ]h"]h$]h&]uh1jhj-ubjM)}(h**Description**h]j)}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj-ubjM)}(hOinode's new i_size must already be written before truncate_pagecache is called.h]hQinode’s new i_size must already be written before truncate_pagecache is called.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj-ubjM)}(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.}(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&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htruncate_setsize (C function)c.truncate_setsizehNtauh1hhj_hhhNhNubh)}(hhh](h)}(h;void truncate_setsize (struct inode *inode, loff_t newsize)h]h)}(h:void truncate_setsize(struct inode *inode, loff_t newsize)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.chM$ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj.hM$ubh)}(htruncate_setsizeh]j)}(htruncate_setsizeh]htruncate_setsize}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj-hhhj.hM$ubj )}(h%(struct inode *inode, loff_t newsize)h](j )}(hstruct inode *inodeh](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)}(hinodeh]hinode}(hjM.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ.ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjO.modnameN classnameNjpjs)}jv]jy)}jlj.sbc.truncate_setsizeasbuh1hhj+.ubj)}(h h]h }(hjm.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+.ubjF )}(hjI h]h*}(hj{.hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj+.ubj)}(hinodeh]hinode}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+.ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj'.ubj )}(hloff_t newsizeh](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]ji.c.truncate_setsizeasbuh1hhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hnewsizeh]hnewsize}(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.update inode and pagecache for a new file sizeh]h.update inode and pagecache for a new file size}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM$hj.hhubah}(h]h ]h"]h$]h&]uh1j3hj-hhhj.hM$ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj/jHj/jIjJjKuh1hhhhj_hNhNubj)}(hX**Parameters** ``struct inode *inode`` inode ``loff_t newsize`` new file size **Description** truncate_setsize updates i_size and performs pagecache truncation (if necessary) to **newsize**. It will be typically be called from the filesystem's setattr function when ATTR_SIZE is passed in. Must be called with a lock serializing truncates and writes (generally i_rwsem but e.g. xfs uses a different lock) and before all filesystem specific block truncation has been performed.h](jM)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM(hj/ubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]jS)}(hj;/h]hstruct inode *inode}(hj=/hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9/ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM%hj5/ubj)}(hhh]jM)}(hinodeh]hinode}(hjT/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjP/hM%hjQ/ubah}(h]h ]h"]h$]h&]uh1jhj5/ubeh}(h]h ]h"]h$]h&]uh1jhjP/hM%hj2/ubj)}(h!``loff_t newsize`` new file size h](j)}(h``loff_t newsize``h]jS)}(hjt/h]hloff_t newsize}(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:82: ./mm/truncate.chM&hjn/ubj)}(hhh]jM)}(h new file sizeh]h new file size}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hM&hj/ubah}(h]h ]h"]h$]h&]uh1jhjn/ubeh}(h]h ]h"]h$]h&]uh1jhj/hM&hj2/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.chM(hj/ubjM)}(htruncate_setsize updates i_size and performs pagecache truncation (if necessary) to **newsize**. It will be typically be called from the filesystem's setattr function when ATTR_SIZE is passed in.h](hTtruncate_setsize updates i_size and performs pagecache truncation (if necessary) to }(hj/hhhNhNubj)}(h **newsize**h]hnewsize}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhf. It will be typically be called from the filesystem’s setattr function when ATTR_SIZE is passed in.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM'hj/ubjM)}(hMust be called with a lock serializing truncates and writes (generally i_rwsem but e.g. xfs uses a different lock) and before all filesystem specific block truncation has been performed.h]hMust be called with a lock serializing truncates and writes (generally i_rwsem but e.g. xfs uses a different lock) and before all filesystem specific block truncation has been performed.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM+hj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%pagecache_isize_extended (C function)c.pagecache_isize_extendedhNtauh1hhj_hhhNhNubh)}(hhh](h)}(hKvoid pagecache_isize_extended (struct inode *inode, loff_t from, loff_t to)h]h)}(hJvoid pagecache_isize_extended(struct inode *inode, loff_t from, loff_t to)h](j)}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM<ubj)}(h h]h }(hj$0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj#0hM<ubh)}(hpagecache_isize_extendedh]j)}(hpagecache_isize_extendedh]hpagecache_isize_extended}(hj60hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj20ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj0hhhj#0hM<ubj )}(h-(struct inode *inode, loff_t from, loff_t to)h](j )}(hstruct inode *inodeh](j5)}(hj8h]hstruct}(hjR0hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjN0ubj)}(h h]h }(hj_0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN0ubh)}(hhh]j)}(hinodeh]hinode}(hjp0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjr0modnameN classnameNjpjs)}jv]jy)}jlj80sbc.pagecache_isize_extendedasbuh1hhjN0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN0ubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjN0ubj)}(hinodeh]hinode}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJ0ubj )}(h loff_t fromh](h)}(hhh]j)}(hloff_th]hloff_t}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj0modnameN classnameNjpjs)}jv]j0c.pagecache_isize_extendedasbuh1hhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hfromh]hfrom}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJ0ubj )}(h loff_t toh](h)}(hhh]j)}(hloff_th]hloff_t}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj1modnameN classnameNjpjs)}jv]j0c.pagecache_isize_extendedasbuh1hhj1ubj)}(h h]h }(hj-1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(htoh]hto}(hj;1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJ0ubeh}(h]h ]h"]h$]h&]jjuh1j hj0hhhj#0hM<ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj 0hhhj#0hM<ubah}(h]j0ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj#0hM<hj 0hhubj4)}(hhh]jM)}(h*update pagecache after extension of i_sizeh]h*update pagecache after extension of i_size}(hje1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM<hjb1hhubah}(h]h ]h"]h$]h&]uh1j3hj 0hhhj#0hM<ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj}1jHj}1jIjJjKuh1hhhhj_hNhNubj)}(hXq**Parameters** ``struct inode *inode`` inode for which i_size was extended ``loff_t from`` original inode size ``loff_t to`` new inode size **Description** Handle extension of inode size either caused by extending truncate or by write starting after current i_size. We mark the page straddling current i_size RO so that page_mkwrite() is called on the first write access to the page. The filesystem will update its per-block information before user writes to the page via mmap after the i_size has been changed. The function must be called after i_size is updated so that page fault coming after we unlock the folio will already see the new i_size. The function must be called while we still hold i_rwsem - this not only makes sure i_size is stable but also that userspace cannot observe new i_size value before we are prepared to store mmap writes at new inode size.h](jM)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(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@hj1ubj)}(hhh](j)}(h<``struct inode *inode`` inode for which i_size was extended h](j)}(h``struct inode *inode``h]jS)}(hj1h]hstruct inode *inode}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj1ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM=hj1ubj)}(hhh]jM)}(h#inode for which i_size was extendedh]h#inode for which i_size was extended}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hM=hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM=hj1ubj)}(h$``loff_t from`` original inode size h](j)}(h``loff_t from``h]jS)}(hj1h]h loff_t from}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj1ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM>hj1ubj)}(hhh]jM)}(horiginal inode sizeh]horiginal inode size}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hM>hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM>hj1ubj)}(h``loff_t to`` new inode size h](j)}(h ``loff_t to``h]jS)}(hj2h]h loff_t to}(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)}(hnew inode sizeh]hnew inode size}(hj12hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj-2hM?hj.2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj-2hM?hj1ubeh}(h]h ]h"]h$]h&]uh1jhj1ubjM)}(h**Description**h]j)}(hjS2h]h Description}(hjU2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ2ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMAhj1ubjM)}(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.}(hji2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM@hj1ubjM)}(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.}(hjx2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMGhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%truncate_pagecache_range (C function)c.truncate_pagecache_rangehNtauh1hhj_hhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM|ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj2hM|ubh)}(htruncate_pagecache_rangeh]j)}(htruncate_pagecache_rangeh]htruncate_pagecache_range}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj2hhhj2hM|ubj )}(h1(struct inode *inode, loff_t lstart, loff_t lend)h](j )}(hstruct inode *inodeh](j5)}(hj8h]hstruct}(hj2hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]j)}(hinodeh]hinode}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3modnameN classnameNjpjs)}jv]jy)}jlj2sbc.truncate_pagecache_rangeasbuh1hhj2ubj)}(h h]h }(hj"3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjF )}(hjI h]h*}(hj03hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2ubj)}(hinodeh]hinode}(hj=3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2ubj )}(h loff_t lstarth](h)}(hhh]j)}(hloff_th]hloff_t}(hjY3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj[3modnameN classnameNjpjs)}jv]j3c.truncate_pagecache_rangeasbuh1hhjR3ubj)}(h h]h }(hjw3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR3ubj)}(hlstarth]hlstart}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2ubj )}(h loff_t lendh](h)}(hhh]j)}(hloff_th]hloff_t}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3modnameN classnameNjpjs)}jv]j3c.truncate_pagecache_rangeasbuh1hhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hlendh]hlend}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2ubeh}(h]h ]h"]h$]h&]jjuh1j hj2hhhj2hM|ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj2hhhj2hM|ubah}(h]j2ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj2hM|hj2hhubj4)}(hhh]jM)}(h/unmap and remove pagecache that is hole-punchedh]h/unmap and remove pagecache that is hole-punched}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM|hj3hhubah}(h]h ]h"]h$]h&]uh1j3hj2hhhj2hM|ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj4jHj4jIjJjKuh1hhhhj_hNhNubj)}(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)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj4ubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]jS)}(hj84h]hstruct inode *inode}(hj:4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj64ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM}hj24ubj)}(hhh]jM)}(hinodeh]hinode}(hjQ4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjM4hM}hjN4ubah}(h]h ]h"]h$]h&]uh1jhj24ubeh}(h]h ]h"]h$]h&]uh1jhjM4hM}hj/4ubj)}(h.``loff_t lstart`` offset of beginning of hole h](j)}(h``loff_t lstart``h]jS)}(hjq4h]h loff_t lstart}(hjs4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjo4ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM~hjk4ubj)}(hhh]jM)}(hoffset of beginning of holeh]hoffset of beginning of hole}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4hM~hj4ubah}(h]h ]h"]h$]h&]uh1jhjk4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM~hj/4ubj)}(h,``loff_t lend`` offset of last byte of hole h](j)}(h``loff_t lend``h]jS)}(hj4h]h loff_t lend}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj4ubj)}(hhh]jM)}(hoffset of last byte of holeh]hoffset of last byte of hole}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj/4ubeh}(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&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj4ubjM)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_set_wb_err (C function)c.filemap_set_wb_errhNtauh1hhj_hhhNhNubh)}(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}(hj*5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&5hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKEubj)}(h h]h }(hj95hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&5hhhj85hKEubh)}(hfilemap_set_wb_errh]j)}(hfilemap_set_wb_errh]hfilemap_set_wb_err}(hjK5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG5ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj&5hhhj85hKEubj )}(h((struct address_space *mapping, int err)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjg5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjc5ubj)}(h h]h }(hjt5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc5ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj5modnameN classnameNjpjs)}jv]jy)}jljM5sbc.filemap_set_wb_errasbuh1hhjc5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc5ubjF )}(hjI h]h*}(hj5hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjc5ubj)}(hmappingh]hmapping}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_5ubj )}(hint errh](j)}(hinth]hint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(herrh]herr}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_5ubeh}(h]h ]h"]h$]h&]jjuh1j hj&5hhhj85hKEubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj"5hhhj85hKEubah}(h]j5ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj85hKEhj5hhubj4)}(hhh]jM)}(h)set a writeback error on an address_spaceh]h)set a writeback error on an address_space}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKEhj6hhubah}(h]h ]h"]h$]h&]uh1j3hj5hhhj85hKEubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj76jHj76jIjJjKuh1hhhhj_hNhNubj)}(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)}(hjA6h]h Parameters}(hjC6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?6ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKIhj;6ubj)}(hhh](j)}(hJ``struct address_space *mapping`` mapping in which to set writeback error h](j)}(h!``struct address_space *mapping``h]jS)}(hj`6h]hstruct address_space *mapping}(hjb6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^6ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKFhjZ6ubj)}(hhh]jM)}(h'mapping in which to set writeback errorh]h'mapping in which to set writeback error}(hjy6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhju6hKFhjv6ubah}(h]h ]h"]h$]h&]uh1jhjZ6ubeh}(h]h ]h"]h$]h&]uh1jhju6hKFhjW6ubj)}(h'``int err`` error to be set in mapping h](j)}(h ``int err``h]jS)}(hj6h]hint err}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKGhj6ubj)}(hhh]jM)}(herror to be set in mappingh]herror to be set in mapping}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hKGhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKGhjW6ubeh}(h]h ]h"]h$]h&]uh1jhj;6ubjM)}(h**Description**h]j)}(hj6h]h Description}(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.hhKIhj;6ubjM)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKHhj;6ubjM)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKMhj;6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!filemap_check_wb_err (C function)c.filemap_check_wb_errhNtauh1hhj_hhhNhNubh)}(hhh](h)}(hHint filemap_check_wb_err (struct address_space *mapping, errseq_t since)h]h)}(hGint filemap_check_wb_err(struct address_space *mapping, errseq_t since)h](j)}(hinth]hint}(hj(7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$7hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKZubj)}(h h]h }(hj77hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$7hhhj67hKZubh)}(hfilemap_check_wb_errh]j)}(hfilemap_check_wb_errh]hfilemap_check_wb_err}(hjI7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE7ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj$7hhhj67hKZubj )}(h/(struct address_space *mapping, errseq_t since)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hje7hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hja7ubj)}(h h]h }(hjr7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja7ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7modnameN classnameNjpjs)}jv]jy)}jljK7sbc.filemap_check_wb_errasbuh1hhja7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja7ubjF )}(hjI h]h*}(hj7hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hja7ubj)}(hmappingh]hmapping}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]7ubj )}(herrseq_t sinceh](h)}(hhh]j)}(herrseq_th]herrseq_t}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7modnameN classnameNjpjs)}jv]j7c.filemap_check_wb_errasbuh1hhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hsinceh]hsince}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]7ubeh}(h]h ]h"]h$]h&]jjuh1j hj$7hhhj67hKZubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj 7hhhj67hKZubah}(h]j7ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj67hKZhj7hhubj4)}(hhh]jM)}(h1has an error occurred since the mark was sampled?h]h1has an error occurred since the mark was sampled?}(hj08hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKZhj-8hhubah}(h]h ]h"]h$]h&]uh1j3hj7hhhj67hKZubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjH8jHjH8jIjJjKuh1hhhhj_hNhNubj)}(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)}(hjR8h]h Parameters}(hjT8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP8ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK^hjL8ubj)}(hhh](j)}(hH``struct address_space *mapping`` mapping to check for writeback errors h](j)}(h!``struct address_space *mapping``h]jS)}(hjq8h]hstruct address_space *mapping}(hjs8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjo8ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK[hjk8ubj)}(hhh]jM)}(h%mapping to check for writeback errorsh]h%mapping to check for writeback errors}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hK[hj8ubah}(h]h ]h"]h$]h&]uh1jhjk8ubeh}(h]h ]h"]h$]h&]uh1jhj8hK[hjh8ubj)}(h/``errseq_t since`` previously-sampled errseq_t h](j)}(h``errseq_t since``h]jS)}(hj8h]herrseq_t since}(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.hhK\hj8ubj)}(hhh]jM)}(hpreviously-sampled errseq_th]hpreviously-sampled errseq_t}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hK\hj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hK\hjh8ubeh}(h]h ]h"]h$]h&]uh1jhjL8ubjM)}(h**Description**h]j)}(hj8h]h Description}(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.hhK^hjL8ubjM)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK]hjL8ubjM)}(h?If it has then report the latest error set, otherwise return 0.h]h?If it has then report the latest error set, otherwise return 0.}(hj 9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK`hjL8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"filemap_sample_wb_err (C function)c.filemap_sample_wb_errhNtauh1hhj_hhhNhNubh)}(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}(hj<9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj99ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj>9modnameN classnameNjpjs)}jv]jy)}jlfilemap_sample_wb_errsbc.filemap_sample_wb_errasbuh1hhj59hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKjubj)}(h h]h }(hj^9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj59hhhj]9hKjubh)}(hfilemap_sample_wb_errh]j)}(hjZ9h]hfilemap_sample_wb_err}(hjp9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl9ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj59hhhj]9hKjubj )}(h(struct address_space *mapping)h]j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj9hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj9modnameN classnameNjpjs)}jv]jX9c.filemap_sample_wb_errasbuh1hhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjF )}(hjI h]h*}(hj9hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj9ubj)}(hmappingh]hmapping}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj9ubah}(h]h ]h"]h$]h&]jjuh1j hj59hhhj]9hKjubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj19hhhj]9hKjubah}(h]j,9ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj]9hKjhj.9hhubj4)}(hhh]jM)}(h4sample the current errseq_t to test for later errorsh]h4sample the current errseq_t to test for later errors}(hj :hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKjhj :hhubah}(h]h ]h"]h$]h&]uh1j3hj.9hhhj]9hKjubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj$:jHj$:jIjJjKuh1hhhhj_hNhNubj)}(h**Parameters** ``struct address_space *mapping`` mapping to be sampled **Description** Writeback errors are always reported relative to a particular sample point in the past. This function provides those sample points.h](jM)}(h**Parameters**h]j)}(hj.:h]h Parameters}(hj0:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,:ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKnhj(:ubj)}(hhh]j)}(h8``struct address_space *mapping`` mapping to be sampled h](j)}(h!``struct address_space *mapping``h]jS)}(hjM:h]hstruct address_space *mapping}(hjO:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjK:ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKkhjG:ubj)}(hhh]jM)}(hmapping to be sampledh]hmapping to be sampled}(hjf:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjb:hKkhjc:ubah}(h]h ]h"]h$]h&]uh1jhjG:ubeh}(h]h ]h"]h$]h&]uh1jhjb:hKkhjD:ubah}(h]h ]h"]h$]h&]uh1jhj(:ubjM)}(h**Description**h]j)}(hj:h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKmhj(:ubjM)}(hWriteback errors are always reported relative to a particular sample point in the past. This function provides those sample points.h]hWriteback errors are always reported relative to a particular sample point in the past. This function provides those sample points.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKlhj(:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfile_sample_sb_err (C function)c.file_sample_sb_errhNtauh1hhj_hhhNhNubh)}(hhh](h)}(h/errseq_t file_sample_sb_err (struct file *file)h]h)}(h.errseq_t file_sample_sb_err(struct file *file)h](h)}(hhh]j)}(herrseq_th]herrseq_t}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj:modnameN classnameNjpjs)}jv]jy)}jlfile_sample_sb_errsbc.file_sample_sb_errasbuh1hhj:hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKvubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hKvubh)}(hfile_sample_sb_errh]j)}(hj:h]hfile_sample_sb_err}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhj:hKvubj )}(h(struct file *file)h]j )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hj;hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj;ubj)}(h h]h }(hj,;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]j)}(hfileh]hfile}(hj=;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:;ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj?;modnameN classnameNjpjs)}jv]j:c.file_sample_sb_errasbuh1hhj;ubj)}(h h]h }(hj[;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjF )}(hjI h]h*}(hji;hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj;ubj)}(hfileh]hfile}(hjv;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj;ubah}(h]h ]h"]h$]h&]jjuh1j hj:hhhj:hKvubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj:hhhj:hKvubah}(h]j:ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj:hKvhj:hhubj4)}(hhh]jM)}(h4sample the current errseq_t to test for later errorsh]h4sample the current errseq_t to test for later errors}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKvhj;hhubah}(h]h ]h"]h$]h&]uh1j3hj:hhhj:hKvubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj;jHj;jIjJjKuh1hhhhj_hNhNubj)}(h**Parameters** ``struct file *file`` file pointer to be sampled **Description** Grab the most current superblock-level errseq_t value for the given struct file.h](jM)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKzhj;ubj)}(hhh]j)}(h1``struct file *file`` file pointer to be sampled h](j)}(h``struct file *file``h]jS)}(hj;h]hstruct file *file}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKwhj;ubj)}(hhh]jM)}(hfile pointer to be sampledh]hfile pointer to be sampled}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hKwhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hKwhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubjM)}(h**Description**h]j)}(hj<h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKyhj;ubjM)}(hPGrab the most current superblock-level errseq_t value for the given struct file.h]hPGrab the most current superblock-level errseq_t value for the given struct file.}(hj2<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKxhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmapping_set_error (C function)c.mapping_set_errorhNtauh1hhj_hhhNhNubh)}(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}(hja<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 }(hjp<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]<hhhjo<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]<hhhjo<hKubj )}(h*(struct address_space *mapping, int error)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj<hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj<modnameN classnameNjpjs)}jv]jy)}jlj<sbc.mapping_set_errorasbuh1hhj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjF )}(hjI h]h*}(hj<hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj<ubj)}(hmappingh]hmapping}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj<ubj )}(h int errorh](j)}(hinth]hint}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj =ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj =ubj)}(herrorh]herror}(hj,=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj =ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj<ubeh}(h]h ]h"]h$]h&]jjuh1j hj]<hhhjo<hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjY<hhhjo<hKubah}(h]jT<ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjo<hKhjV<hhubj4)}(hhh]jM)}(h-record a writeback error in the address_spaceh]h-record a writeback error in the address_space}(hjV=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhjS=hhubah}(h]h ]h"]h$]h&]uh1j3hjV<hhhjo<hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjn=jHjn=jIjJjKuh1hhhhj_hNhNubj)}(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)}(hjx=h]h Parameters}(hjz=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv=ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhjr=ubj)}(hhh](j)}(hN``struct address_space *mapping`` the mapping in which an error should be set h](j)}(h!``struct address_space *mapping``h]jS)}(hj=h]hstruct address_space *mapping}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj=ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj=ubj)}(hhh]jM)}(h+the mapping in which an error should be seth]h+the mapping in which an error should be set}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hKhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhj=ubj)}(h.``int error`` the error to set in the mapping h](j)}(h ``int error``h]jS)}(hj=h]h int error}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj=ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj=ubj)}(hhh]jM)}(hthe error to set in the mappingh]hthe error to set in the mapping}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hKhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhj=ubeh}(h]h ]h"]h$]h&]uh1jhjr=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.hhKhjr=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.hhKhjr=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).}(hj0>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhjr=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%mapping_set_large_folios (C function)c.mapping_set_large_folioshNtauh1hhj_hhhNhNubh)}(hhh](h)}(h=void mapping_set_large_folios (struct address_space *mapping)h]h)}(hhhhNhNubah}(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 }(hjn>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[>hhhjm>hMubh)}(hmapping_set_large_foliosh]j)}(hmapping_set_large_foliosh]hmapping_set_large_folios}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|>ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj[>hhhjm>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.mapping_set_large_foliosasbuh1hhj>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>ubah}(h]h ]h"]h$]h&]jjuh1j hj[>hhhjm>hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjW>hhhjm>hMubah}(h]jR>ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjm>hMhjT>hhubj4)}(hhh]jM)}(h(Indicate the file supports large folios.h]h(Indicate the file supports large folios.}(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&]uh1j3hjT>hhhjm>hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj7?jHj7?jIjJjKuh1hhhhj_hNhNubj)}(hXN**Parameters** ``struct address_space *mapping`` The address space of the file. **Description** The 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. **Context** This should not be called while the inode is active as it is non-atomic.h](jM)}(h**Parameters**h]j)}(hjA?h]h Parameters}(hjC?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)}(hA``struct address_space *mapping`` The address space of the file. h](j)}(h!``struct address_space *mapping``h]jS)}(hj`?h]hstruct address_space *mapping}(hjb?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.hhMhjZ?ubj)}(hhh]jM)}(hThe address space of the file.h]hThe address space of the file.}(hjy?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhju?hMhjv?ubah}(h]h ]h"]h$]h&]uh1jhjZ?ubeh}(h]h ]h"]h$]h&]uh1jhju?hMhjW?ubah}(h]h ]h"]h$]h&]uh1jhj;?ubjM)}(h**Description**h]j)}(hj?h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.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.}(hj?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)}(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.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.}(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&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h mapping_align_index (C function)c.mapping_align_indexhNtauh1hhj_hhhNhNubh)}(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}(hjY@hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjU@ubj)}(h h]h }(hjf@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU@ubj5)}(hj8h]hstruct}(hjt@hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjU@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU@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_indexasbuh1hhjU@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU@ubjF )}(hjI h]h*}(hj@hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjU@ubj)}(hmappingh]hmapping}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQ@ubj )}(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.mapping_align_indexasbuh1hhj@ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hindexh]hindex}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjQ@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=AhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:Ahhubah}(h]h ]h"]h$]h&]uh1j3hj?hhhj+@hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjUAjHjUAjIjJjKuh1hhhhj_hNhNubj)}(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_Ah]h Parameters}(hjaAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Aubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjYAubj)}(hhh](j)}(h;``const struct address_space *mapping`` The address_space. h](j)}(h'``const struct address_space *mapping``h]jS)}(hj~Ah]h#const struct address_space *mapping}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj|Aubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjxAubj)}(hhh]jM)}(hThe address_space.h]hThe address_space.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjxAubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjuAubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]jS)}(hjAh]h pgoff_t index}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjAubj)}(hhh]jM)}(hThe page index.h]hThe page index.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjuAubeh}(h]h ]h"]h$]h&]uh1jhjYAubjM)}(h**Description**h]j)}(hjAh]h Description}(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.hhMhjYAubjM)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjYAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_flush_mapping (C function)c.folio_flush_mappinghNtauh1hhj_hhhNhNubh)}(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}(hj7BhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj3BhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM*ubj)}(h h]h }(hjEBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3BhhhjDBhM*ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjVBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSBubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjXBmodnameN classnameNjpjs)}jv]jy)}jlfolio_flush_mappingsbc.folio_flush_mappingasbuh1hhj3BhhhjDBhM*ubj)}(h h]h }(hjwBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3BhhhjDBhM*ubjF )}(hjI h]h*}(hjBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj3BhhhjDBhM*ubh)}(hfolio_flush_mappingh]j)}(hjtBh]hfolio_flush_mapping}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1hhj3BhhhjDBhM*ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjBhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(hfolioh]hfolio}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]jrBc.folio_flush_mappingasbuh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjF )}(hjI h]h*}(hjBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjBubj)}(hfolioh]hfolio}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjBubah}(h]h ]h"]h$]h&]jjuh1j hj3BhhhjDBhM*ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj/BhhhjDBhM*ubah}(h]j*Bah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjDBhM*hj,Bhhubj4)}(hhh]jM)}(h,Find the file mapping this folio belongs to.h]h,Find the file mapping this folio belongs to.}(hj2ChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM*hj/Chhubah}(h]h ]h"]h$]h&]uh1j3hj,BhhhjDBhM*ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjJCjHjJCjIjJjKuh1hhhhj_hNhNubj)}(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)}(hjTCh]h Parameters}(hjVChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRCubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM.hjNCubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjsCh]hstruct folio *folio}(hjuChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjqCubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM+hjmCubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChM+hjCubah}(h]h ]h"]h$]h&]uh1jhjmCubeh}(h]h ]h"]h$]h&]uh1jhjChM+hjjCubah}(h]h ]h"]h$]h&]uh1jhjNCubjM)}(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.hhM-hjNCubjM)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM,hjNCubjM)}(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().}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM0hjNCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_inode (C function) c.folio_inodehNtauh1hhj_hhhNhNubh)}(hhh](h)}(h0struct inode * folio_inode (struct folio *folio)h]h)}(h.struct inode *folio_inode(struct folio *folio)h](j5)}(hj8h]hstruct}(hjDhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjChhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM>ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjDhM>ubh)}(hhh]j)}(hinodeh]hinode}(hj!DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj#DmodnameN classnameNjpjs)}jv]jy)}jl folio_inodesb c.folio_inodeasbuh1hhjChhhjDhM>ubj)}(h h]h }(hjBDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjDhM>ubjF )}(hjI h]h*}(hjPDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjChhhjDhM>ubh)}(h folio_inodeh]j)}(hj?Dh]h folio_inode}(hjaDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Dubah}(h]h ](jjeh"]h$]h&]jjuh1hhjChhhjDhM>ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj|DhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjxDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxDubh)}(hhh]j)}(hfolioh]hfolio}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDmodnameN classnameNjpjs)}jv]j=D c.folio_inodeasbuh1hhjxDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxDubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjxDubj)}(hfolioh]hfolio}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjtDubah}(h]h ]h"]h$]h&]jjuh1j hjChhhjDhM>ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjChhhjDhM>ubah}(h]jCah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjDhM>hjChhubj4)}(hhh]jM)}(h"Get the host inode for this folio.h]h"Get the host inode for this folio.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM>hjDhhubah}(h]h ]h"]h$]h&]uh1j3hjChhhjDhM>ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjEjHjEjIjJjKuh1hhhhj_hNhNubj)}(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)}(hjEh]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.hhMBhjEubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hj>Eh]hstruct folio *folio}(hj@EhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj;Lubh% - The folio will be marked accessed.}(hj;LhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj7Lubah}(h]h ]h"]h$]h&]uh1j+hj4Lubj+)}(h,``FGP_LOCK`` - The folio is returned locked.h]jM)}(hj_Lh](jS)}(h ``FGP_LOCK``h]hFGP_LOCK}(hjdLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaLubh - The folio is returned locked.}(hjaLhhhNhNubeh}(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+hj4Lubj+)}(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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubh - 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.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjLubah}(h]h ]h"]h$]h&]uh1j+hj4Lubj+)}(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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubh - 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.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjLubah}(h]h ]h"]h$]h&]uh1j+hj4Lubj+)}(h;``FGP_WRITE`` - The folio will be written to by the caller.h]jM)}(hjLh](jS)}(h ``FGP_WRITE``h]h FGP_WRITE}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubh. - The folio will be written to by the caller.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjLubah}(h]h ]h"]h$]h&]uh1j+hj4Lubj+)}(h0``FGP_NOFS`` - __GFP_FS will get cleared in gfp.h]jM)}(hjLh](jS)}(h ``FGP_NOFS``h]hFGP_NOFS}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubh$ - __GFP_FS will get cleared in gfp.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjLubah}(h]h ]h"]h$]h&]uh1j+hj4Lubj+)}(h/``FGP_NOWAIT`` - Don't block on the folio lock.h]jM)}(hjMh](jS)}(h``FGP_NOWAIT``h]h FGP_NOWAIT}(hj$MhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!Mubh# - Don’t block on the folio lock.}(hj!MhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjMubah}(h]h ]h"]h$]h&]uh1j+hj4Lubj+)}(hE``FGP_STABLE`` - Wait for the folio to be stable (finished writeback)h]jM)}(hjEMh](jS)}(h``FGP_STABLE``h]h FGP_STABLE}(hjJMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGMubh7 - Wait for the folio to be stable (finished writeback)}(hjGMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjCMubah}(h]h ]h"]h$]h&]uh1j+hj4Lubj+)}(h(``FGP_DONTCACHE`` - Uncached buffered IOh]jM)}(hjkMh](jS)}(h``FGP_DONTCACHE``h]h FGP_DONTCACHE}(hjpMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjmMubh - Uncached buffered IO}(hjmMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjiMubah}(h]h ]h"]h$]h&]uh1j+hj4Lubj+)}(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}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubhA - The flags to use in a filesystem write_begin() implementation.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjMubah}(h]h ]h"]h$]h&]uh1j+hj4Lubeh}(h]h ]h"]h$]h&]jPLjI uh1j-LhjVLhMhj_hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfgf_set_order (C function)c.fgf_set_orderhNtauh1hhj_hhhNhNubh)}(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}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjMmodnameN classnameNjpjs)}jv]jy)}jl fgf_set_ordersbc.fgf_set_orderasbuh1hhjMhhhW/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)}(h fgf_set_orderh]j)}(hjMh]h fgf_set_order}(hj NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1hhjMhhhjMhMubj )}(h (size_t size)h]j )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj*NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Nubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,NmodnameN classnameNjpjs)}jv]jMc.fgf_set_orderasbuh1hhj#Nubj)}(h h]h }(hjHNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Nubj)}(hsizeh]hsize}(hjVNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Nubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjNubah}(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#Encode a length in the fgf_t flags.h]h#Encode a length in the fgf_t flags.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj}Nhhubah}(h]h ]h"]h$]h&]uh1j3hjMhhhjMhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjNjHjNjIjJjKuh1hhhhj_hNhNubj)}(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)}(hjNh]h Parameters}(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.hhMhjNubj)}(hhh]j)}(h;``size_t size`` The suggested size of the folio to create. h](j)}(h``size_t size``h]jS)}(hjNh]h size_t size}(hjNhhhNhNubah}(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 suggested size of the folio to create.h]h*The suggested size of the folio to create.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubjM)}(h**Description**h]j)}(hjNh]h Description}(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.hhMhjNubjM)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"write_begin_get_folio (C function)c.write_begin_get_foliohNtauh1hhj_hhhNhNubh)}(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}(hjAOhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj=OhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjOOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=OhhhjNOhMubh)}(hhh]j)}(hfolioh]hfolio}(hj`OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Oubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbOmodnameN classnameNjpjs)}jv]jy)}jlwrite_begin_get_foliosbc.write_begin_get_folioasbuh1hhj=OhhhjNOhMubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=OhhhjNOhMubjF )}(hjI h]h*}(hjOhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj=OhhhjNOhMubh)}(hwrite_begin_get_folioh]j)}(hj~Oh]hwrite_begin_get_folio}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jjuh1hhj=OhhhjNOhMubj )}(hT(const struct kiocb *iocb, struct address_space *mapping, pgoff_t index, size_t len)h](j )}(hconst struct kiocb *iocbh](j5)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj5)}(hj8h]hstruct}(hjOhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(hkiocbh]hkiocb}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjOmodnameN classnameNjpjs)}jv]j|Oc.write_begin_get_folioasbuh1hhjOubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjF )}(hjI h]h*}(hj PhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjOubj)}(hiocbh]hiocb}(hj-PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubj )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjFPhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjBPubj)}(h h]h }(hjSPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBPubh)}(hhh]j)}(h address_spaceh]h address_space}(hjdPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaPubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjfPmodnameN classnameNjpjs)}jv]j|Oc.write_begin_get_folioasbuh1hhjBPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBPubjF )}(hjI h]h*}(hjPhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjBPubj)}(hmappingh]hmapping}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBPubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjPmodnameN classnameNjpjs)}jv]j|Oc.write_begin_get_folioasbuh1hhjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hindexh]hindex}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubj )}(h size_t lenh](h)}(hhh]jO)}(hsize_th]hsize_t}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjQmodnameN classnameNjpjs)}jv]j|Oc.write_begin_get_folioasbuh1hhjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hlenh]hlen}(hj-QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubeh}(h]h ]h"]h$]h&]jjuh1j hj=OhhhjNOhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj9OhhhjNOhMubah}(h]j4Oah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjNOhMhj6Ohhubj4)}(hhh]jM)}(h%Get folio for write_begin with flags.h]h%Get folio for write_begin with flags.}(hjWQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjTQhhubah}(h]h ]h"]h$]h&]uh1j3hj6OhhhjNOhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjoQjHjoQjIjJjKuh1hhhhj_hNhNubj)}(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)}(hjyQh]h Parameters}(hj{QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwQubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsQubj)}(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)}(hjQh]hconst struct kiocb *iocb}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjQubj)}(hhh]jM)}(h0The kiocb passed from write_begin (may be NULL).h]h0The kiocb passed from write_begin (may be NULL).}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjQubj)}(h?``struct address_space *mapping`` The address space to search. h](j)}(h!``struct address_space *mapping``h]jS)}(hjQh]hstruct address_space *mapping}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjQubj)}(hhh]jM)}(hThe address space to search.h]hThe address space to search.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjQubj)}(h(``pgoff_t index`` The page cache index. h](j)}(h``pgoff_t index``h]jS)}(hj Rh]h pgoff_t index}(hj RhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjRubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjRubj)}(hhh]jM)}(hThe page cache index.h]hThe page cache index.}(hj#RhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjRhMhj Rubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjQubj)}(h-``size_t len`` Length of data being written. h](j)}(h``size_t len``h]jS)}(hjCRh]h size_t len}(hjERhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjARubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=Rubj)}(hhh]jM)}(hLength of data being written.h]hLength of data being written.}(hj\RhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXRhMhjYRubah}(h]h ]h"]h$]h&]uh1jhj=Rubeh}(h]h ]h"]h$]h&]uh1jhjXRhMhjQubeh}(h]h ]h"]h$]h&]uh1jhjsQubjM)}(h**Description**h]j)}(hj~Rh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Rubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsQubjM)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsQubjM)}(h **Return**h]j)}(hjRh]hReturn}(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.hhMhjsQubjM)}(hA folio or an ERR_PTR.h]hA folio or an ERR_PTR.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hjsQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_get_folio (C function)c.filemap_get_foliohNtauh1hhj_hhhNhNubh)}(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}(hjRhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjRhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjRhMubh)}(hhh]j)}(hfolioh]hfolio}(hj ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj SmodnameN classnameNjpjs)}jv]jy)}jlfilemap_get_foliosbc.filemap_get_folioasbuh1hhjRhhhjRhMubj)}(h h]h }(hj*ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjRhMubjF )}(hjI h]h*}(hj8ShhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjRhhhjRhMubh)}(hfilemap_get_folioh]j)}(hj'Sh]hfilemap_get_folio}(hjIShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjESubah}(h]h ](jjeh"]h$]h&]jjuh1hhjRhhhjRhMubj )}(h.(struct address_space *mapping, pgoff_t index)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjdShhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj`Subj)}(h h]h }(hjqShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Subh)}(hhh]j)}(h address_spaceh]h address_space}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjSmodnameN classnameNjpjs)}jv]j%Sc.filemap_get_folioasbuh1hhj`Subj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`SubjF )}(hjI h]h*}(hjShhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj`Subj)}(hmappingh]hmapping}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Subeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\Subj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjSmodnameN classnameNjpjs)}jv]j%Sc.filemap_get_folioasbuh1hhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hindexh]hindex}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\Subeh}(h]h ]h"]h$]h&]jjuh1j hjRhhhjRhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjRhhhjRhMubah}(h]jRah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjRhMhjRhhubj4)}(hhh]jM)}(hFind and get a folio.h]hFind and get a folio.}(hj-ThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj*Thhubah}(h]h ]h"]h$]h&]uh1j3hjRhhhjRhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjETjHjETjIjJjKuh1hhhhj_hNhNubj)}(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)}(hjOTh]h Parameters}(hjQThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMTubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjITubj)}(hhh](j)}(h?``struct address_space *mapping`` The address_space to search. h](j)}(h!``struct address_space *mapping``h]jS)}(hjnTh]hstruct address_space *mapping}(hjpThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlTubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhTubj)}(hhh]jM)}(hThe address_space to search.h]hThe address_space to search.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjhTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjeTubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]jS)}(hjTh]h pgoff_t index}(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 index.h]hThe page index.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjeTubeh}(h]h ]h"]h$]h&]uh1jhjITubjM)}(h**Description**h]j)}(hjTh]h Description}(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.hhMhjITubjM)}(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 }(hjThhhNhNubj)}(h **mapping**h]hmapping}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh & }(hjThhhNhNubj)}(h **index**h]hindex}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubhD. If a folio is present, it is returned with an increased refcount.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjITubjM)}(h **Return**h]j)}(hj-Uh]hReturn}(hj/UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Uubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hjITubjM)}(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.}(hjCUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM!hjITubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_lock_folio (C function)c.filemap_lock_foliohNtauh1hhj_hhhNhNubh)}(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}(hjrUhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjnUhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM+ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnUhhhjUhM+ubh)}(hhh]j)}(hfolioh]hfolio}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jy)}jlfilemap_lock_foliosbc.filemap_lock_folioasbuh1hhjnUhhhjUhM+ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnUhhhjUhM+ubjF )}(hjI h]h*}(hjUhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjnUhhhjUhM+ubh)}(hfilemap_lock_folioh]j)}(hjUh]hfilemap_lock_folio}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1hhjnUhhhjUhM+ubj )}(h.(struct address_space *mapping, pgoff_t index)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjUhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(hhh]j)}(h address_spaceh]h address_space}(hj VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj VmodnameN classnameNjpjs)}jv]jUc.filemap_lock_folioasbuh1hhjUubj)}(h h]h }(hj(VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjF )}(hjI h]h*}(hj6VhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjUubj)}(hmappingh]hmapping}(hjCVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjUubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj_VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Vubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjaVmodnameN classnameNjpjs)}jv]jUc.filemap_lock_folioasbuh1hhjXVubj)}(h h]h }(hj}VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXVubj)}(hindexh]hindex}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjUubeh}(h]h ]h"]h$]h&]jjuh1j hjnUhhhjUhM+ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjjUhhhjUhM+ubah}(h]jeUah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjUhM+hjgUhhubj4)}(hhh]jM)}(hFind and lock a folio.h]hFind and lock a folio.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM+hjVhhubah}(h]h ]h"]h$]h&]uh1j3hjgUhhhjUhM+ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjVjHjVjIjJjKuh1hhhhj_hNhNubj)}(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)}(hjVh]h Parameters}(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.hhM/hjVubj)}(hhh](j)}(h?``struct address_space *mapping`` The address_space to search. h](j)}(h!``struct address_space *mapping``h]jS)}(hjVh]hstruct address_space *mapping}(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.hhM,hjVubj)}(hhh]jM)}(hThe address_space to search.h]hThe address_space to search.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj WhM,hj Wubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhj WhM,hjVubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]jS)}(hj/Wh]h pgoff_t index}(hj1WhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-Wubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM-hj)Wubj)}(hhh]jM)}(hThe page index.h]hThe page index.}(hjHWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDWhM-hjEWubah}(h]h ]h"]h$]h&]uh1jhj)Wubeh}(h]h ]h"]h$]h&]uh1jhjDWhM-hjVubeh}(h]h ]h"]h$]h&]uh1jhjVubjM)}(h**Description**h]j)}(hjjWh]h Description}(hjlWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhWubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM/hjVubjM)}(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 }(hjWhhhNhNubj)}(h **mapping**h]hmapping}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh & }(hjWhhhNhNubj)}(h **index**h]hindex}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubhK. If a folio is present, it is returned locked with an increased refcount.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM.hjVubjM)}(h **Context**h]j)}(hjWh]hContext}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM1hjVubjM)}(h May sleep.h]h May sleep.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM2hjVubjM)}(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.hhM4hjVubjM)}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM3hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfilemap_grab_folio (C function)c.filemap_grab_foliohNtauh1hhj_hhhNhNubh)}(hhh](h)}(hPstruct folio * filemap_grab_folio (struct address_space *mapping, pgoff_t index)h]h)}(hNstruct folio *filemap_grab_folio(struct address_space *mapping, pgoff_t index)h](j5)}(hj8h]hstruct}(hj!XhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjXhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM=ubj)}(h h]h }(hj/XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhj.XhM=ubh)}(hhh]j)}(hfolioh]hfolio}(hj@XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Xubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBXmodnameN classnameNjpjs)}jv]jy)}jlfilemap_grab_foliosbc.filemap_grab_folioasbuh1hhjXhhhj.XhM=ubj)}(h h]h }(hjaXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhj.XhM=ubjF )}(hjI h]h*}(hjoXhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjXhhhj.XhM=ubh)}(hfilemap_grab_folioh]j)}(hj^Xh]hfilemap_grab_folio}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Xubah}(h]h ](jjeh"]h$]h&]jjuh1hhjXhhhj.XhM=ubj )}(h.(struct address_space *mapping, pgoff_t index)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjXhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]j)}(h address_spaceh]h address_space}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjXmodnameN classnameNjpjs)}jv]j\Xc.filemap_grab_folioasbuh1hhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjF )}(hjI h]h*}(hjXhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjXubj)}(hmappingh]hmapping}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjXubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Yubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjYmodnameN classnameNjpjs)}jv]j\Xc.filemap_grab_folioasbuh1hhjYubj)}(h h]h }(hj,YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hindexh]hindex}(hj:YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjXubeh}(h]h ]h"]h$]h&]jjuh1j hjXhhhj.XhM=ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjXhhhj.XhM=ubah}(h]jXah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj.XhM=hjXhhubj4)}(hhh]jM)}(h grab a folio from the page cacheh]h grab a folio from the page cache}(hjdYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM=hjaYhhubah}(h]h ]h"]h$]h&]uh1j3hjXhhhj.XhM=ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj|YjHj|YjIjJjKuh1hhhhj_hNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The address space to search ``pgoff_t index`` The page index **Description** Looks up the page cache entry at **mapping** & **index**. If no folio is found, a new folio is created. The folio is locked, marked as accessed, and returned. **Return** A found or created folio. ERR_PTR(-ENOMEM) if no folio is found and failed to create a folio.h](jM)}(h**Parameters**h]j)}(hjYh]h Parameters}(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.hhMAhjYubj)}(hhh](j)}(h>``struct address_space *mapping`` The address space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hjYh]hstruct address_space *mapping}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM>hjYubj)}(hhh]jM)}(hThe address space to searchh]hThe address space to search}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYhM>hjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhM>hjYubj)}(h!``pgoff_t index`` The page index h](j)}(h``pgoff_t index``h]jS)}(hjYh]h pgoff_t index}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM?hjYubj)}(hhh]jM)}(hThe page indexh]hThe page index}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYhM?hjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhM?hjYubeh}(h]h ]h"]h$]h&]uh1jhjYubjM)}(h**Description**h]j)}(hjZh]h Description}(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.hhMAhjYubjM)}(hLooks up the page cache entry at **mapping** & **index**. If no folio is found, a new folio is created. The folio is locked, marked as accessed, and returned.h](h!Looks up the page cache entry at }(hj/ZhhhNhNubj)}(h **mapping**h]hmapping}(hj7ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Zubh & }(hj/ZhhhNhNubj)}(h **index**h]hindex}(hjIZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Zubhf. If no folio is found, a new folio is created. The folio is locked, marked as accessed, and returned.}(hj/ZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM@hjYubjM)}(h **Return**h]j)}(hjdZh]hReturn}(hjfZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbZubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMDhjYubjM)}(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.}(hjzZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMEhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfind_get_page (C function)c.find_get_pagehNtauh1hhj_hhhNhNubh)}(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}(hjZhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjZhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMQubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjZhMQubh)}(hhh]j)}(hpageh]hpage}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjZmodnameN classnameNjpjs)}jv]jy)}jl find_get_pagesbc.find_get_pageasbuh1hhjZhhhjZhMQubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjZhMQubjF )}(hjI h]h*}(hjZhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjZhhhjZhMQubh)}(h find_get_pageh]j)}(hjZh]h find_get_page}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjZhhhjZhMQubj )}(h/(struct address_space *mapping, pgoff_t offset)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj#[hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj[ubj)}(h h]h }(hj0[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjA[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>[ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjC[modnameN classnameNjpjs)}jv]jZc.find_get_pageasbuh1hhj[ubj)}(h h]h }(hj_[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjF )}(hjI h]h*}(hjm[hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj[ubj)}(hmappingh]hmapping}(hjz[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj[ubj )}(hpgoff_t offseth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj[modnameN classnameNjpjs)}jv]jZc.find_get_pageasbuh1hhj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hoffseth]hoffset}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj[ubeh}(h]h ]h"]h$]h&]jjuh1j hjZhhhjZhMQubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjZhhhjZhMQubah}(h]jZah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjZhMQhjZhhubj4)}(hhh]jM)}(hfind and get a page referenceh]hfind and get a page reference}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMQhj[hhubah}(h]h ]h"]h$]h&]uh1j3hjZhhhjZhMQubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj\jHj\jIjJjKuh1hhhhj_hNhNubj)}(hX-**Parameters** ``struct address_space *mapping`` the address_space to search ``pgoff_t offset`` the page index **Description** Looks up the page cache slot at **mapping** & **offset**. If there is a page cache page, it is returned with an increased refcount. Otherwise, ``NULL`` is returned.h](jM)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj \ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMUhj\ubj)}(hhh](j)}(h>``struct address_space *mapping`` the address_space to search h](j)}(h!``struct address_space *mapping``h]jS)}(hj-\h]hstruct address_space *mapping}(hj/\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj+\ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMRhj'\ubj)}(hhh]jM)}(hthe address_space to searchh]hthe address_space to search}(hjF\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjB\hMRhjC\ubah}(h]h ]h"]h$]h&]uh1jhj'\ubeh}(h]h ]h"]h$]h&]uh1jhjB\hMRhj$\ubj)}(h"``pgoff_t offset`` the page index h](j)}(h``pgoff_t offset``h]jS)}(hjf\h]hpgoff_t offset}(hjh\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjd\ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMShj`\ubj)}(hhh]jM)}(hthe page indexh]hthe page index}(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&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMUhj\ubjM)}(hLooks up the page cache slot at **mapping** & **offset**. If there is a page cache page, it is returned with an increased refcount.h](h Looks up the page cache slot at }(hj\hhhNhNubj)}(h **mapping**h]hmapping}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh & }(hj\hhhNhNubj)}(h **offset**h]hoffset}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubhL. If there is a page cache page, it is returned 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.hhMThj\ubjM)}(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.hhMWhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfind_lock_page (C function)c.find_lock_pagehNtauh1hhj_hhhNhNubh)}(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 }(hj9]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj']hhhj8]hMgubh)}(hhh]j)}(hpageh]hpage}(hjJ]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjL]modnameN classnameNjpjs)}jv]jy)}jlfind_lock_pagesbc.find_lock_pageasbuh1hhj']hhhj8]hMgubj)}(h h]h }(hjk]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj']hhhj8]hMgubjF )}(hjI h]h*}(hjy]hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj']hhhj8]hMgubh)}(hfind_lock_pageh]j)}(hjh]h]hfind_lock_page}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj']hhhj8]hMgubj )}(h.(struct address_space *mapping, pgoff_t index)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]jf]c.find_lock_pageasbuh1hhj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjF )}(hjI h]h*}(hj]hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj]ubj)}(hmappingh]hmapping}(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&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj^modnameN classnameNjpjs)}jv]jf]c.find_lock_pageasbuh1hhj^ubj)}(h h]h }(hj6^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hindexh]hindex}(hjD^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]ubeh}(h]h ]h"]h$]h&]jjuh1j hj']hhhj8]hMgubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj#]hhhj8]hMgubah}(h]j]ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj8]hMghj ]hhubj4)}(hhh]jM)}(h%locate, pin and lock a pagecache pageh]h%locate, pin and lock a pagecache page}(hjn^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMghjk^hhubah}(h]h ]h"]h$]h&]uh1j3hj ]hhhj8]hMgubeh}(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 **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)}(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.hhMhhj^ubj)}(hhh]jM)}(hthe address_space to searchh]hthe address_space to search}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hMhhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^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&]uh1jRhj^ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMihj^ubj)}(hhh]jM)}(hthe page indexh]hthe page index}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hMihj^ubah}(h]h ]h"]h$]h&]uh1jhj^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 }(hj9_hhhNhNubj)}(h **mapping**h]hmapping}(hjA_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9_ubh & }(hj9_hhhNhNubj)}(h **index**h]hindex}(hjS_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9_ubhW. If there is a page cache page, it is returned locked and with an increased refcount.}(hj9_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)}(hjn_h]hContext}(hjp_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl_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}(hj_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&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h find_or_create_page (C function)c.find_or_create_pagehNtauh1hhj_hhhNhNubh)}(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}(hjK`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG`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}(hjf`hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjb`ubj)}(h h]h }(hjs`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb`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_pageasbuh1hhjb`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)}(hmappingh]hmapping}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb`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&]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)}(hindexh]hindex}(hjahhhNhNubah}(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!ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj#amodnameN classnameNjpjs)}jv]j'`c.find_or_create_pageasbuh1hhjaubj)}(h h]h }(hj?ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hgfp_maskh]hgfp_mask}(hjMahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(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'hj_hhhj_hMzubah}(h]j_ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj_hMzhj_hhubj4)}(hhh]jM)}(hlocate or add a pagecache pageh]hlocate or add a pagecache page}(hjwahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMzhjtahhubah}(h]h ]h"]h$]h&]uh1j3hj_hhhj_hMzubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjajHjajIjJjKuh1hhhhj_hNhNubj)}(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)}(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 address_space *mapping`` the page's address_space h](j)}(h!``struct address_space *mapping``h]jS)}(hjah]hstruct address_space *mapping}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM{hjaubj)}(hhh]jM)}(hthe page's address_spaceh]hthe page’s address_space}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahM{hjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahM{hjaubj)}(h4``pgoff_t index`` the page's index into the mapping h](j)}(h``pgoff_t index``h]jS)}(hjah]h pgoff_t index}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM|hjaubj)}(hhh]jM)}(h!the page's index into the mappingh]h#the page’s index into the mapping}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbhM|hjbubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjbhM|hjaubj)}(h(``gfp_t gfp_mask`` page allocation mode h](j)}(h``gfp_t gfp_mask``h]jS)}(hj*bh]hgfp_t gfp_mask}(hj,bhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(bubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM}hj$bubj)}(hhh]jM)}(hpage allocation modeh]hpage allocation mode}(hjCbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj?bhM}hj@bubah}(h]h ]h"]h$]h&]uh1jhj$bubeh}(h]h ]h"]h$]h&]uh1jhj?bhM}hjaubeh}(h]h ]h"]h$]h&]uh1jhjaubjM)}(h**Description**h]j)}(hjebh]h Description}(hjgbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcbubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubjM)}(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 }(hj{bhhhNhNubj)}(h **mapping**h]hmapping}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{bubh & }(hj{bhhhNhNubj)}(h **offset**h]hoffset}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{bubhW. If there is a page cache page, it is returned locked and with an increased refcount.}(hj{bhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM~hjaubjM)}(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 }(hjbhhhNhNubj)}(h **gfp_mask**h]hgfp_mask}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubhr and added to the page cache and the VM’s LRU list. The page is returned locked and with an increased refcount.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubjM)}(h+On memory exhaustion, ``NULL`` is returned.h](hOn memory exhaustion, }(hjbhhhNhNubjS)}(h``NULL``h]hNULL}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbubh is returned.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubjM)}(hVfind_or_create_page() may sleep, even if **gfp_flags** specifies an atomic allocation!h](h)find_or_create_page() may sleep, even if }(hjbhhhNhNubj)}(h **gfp_flags**h]h gfp_flags}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh specifies an atomic allocation!}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#grab_cache_page_nowait (C function)c.grab_cache_page_nowaithNtauh1hhj_hhhNhNubh)}(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}(hj1chhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-chhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hj?chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-chhhj>chMubh)}(hhh]j)}(hpageh]hpage}(hjPchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMcubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRcmodnameN classnameNjpjs)}jv]jy)}jlgrab_cache_page_nowaitsbc.grab_cache_page_nowaitasbuh1hhj-chhhj>chMubj)}(h h]h }(hjqchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-chhhj>chMubjF )}(hjI h]h*}(hjchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-chhhj>chMubh)}(hgrab_cache_page_nowaith]j)}(hjnch]hgrab_cache_page_nowait}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1hhj-chhhj>chMubj )}(h.(struct address_space *mapping, pgoff_t index)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjchhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hhh]j)}(h address_spaceh]h address_space}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjcmodnameN classnameNjpjs)}jv]jlcc.grab_cache_page_nowaitasbuh1hhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjF )}(hjI h]h*}(hjchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjcubj)}(hmappingh]hmapping}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj dmodnameN classnameNjpjs)}jv]jlcc.grab_cache_page_nowaitasbuh1hhjdubj)}(h h]h }(hjchMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj)chhhj>chMubah}(h]j$cah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj>chMhj&chhubj4)}(hhh]jM)}(h1returns locked page at given index in given cacheh]h1returns locked page at given index in given cache}(hjtdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjqdhhubah}(h]h ]h"]h$]h&]uh1j3hj&chhhj>chMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjdjHjdjIjJjKuh1hhhhj_hNhNubj)}(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)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjdubj)}(hhh](j)}(h7``struct address_space *mapping`` target address_space h](j)}(h!``struct address_space *mapping``h]jS)}(hjdh]hstruct address_space *mapping}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjdubj)}(hhh]jM)}(htarget address_spaceh]htarget address_space}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjdubj)}(h!``pgoff_t index`` the page index h](j)}(h``pgoff_t index``h]jS)}(hjdh]h pgoff_t index}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjdubj)}(hhh]jM)}(hthe page indexh]hthe page index}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehMhjeubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjehMhjdubeh}(h]h ]h"]h$]h&]uh1jhjdubjM)}(h**Description**h]j)}(hj)eh]h Description}(hj+ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'eubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjdubjM)}(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.}(hj?ehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjdubjM)}(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.}(hjNehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_next_index (C function)c.folio_next_indexhNtauh1hhj_hhhNhNubh)}(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}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}eubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjemodnameN classnameNjpjs)}jv]jy)}jlfolio_next_indexsbc.folio_next_indexasbuh1hhjyehhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyehhhjehMubh)}(hfolio_next_indexh]j)}(hjeh]hfolio_next_index}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1hhjyehhhjehMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj5)}(hj8h]hstruct}(hjehhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hhh]j)}(hfolioh]hfolio}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj fmodnameN classnameNjpjs)}jv]jec.folio_next_indexasbuh1hhjeubj)}(h h]h }(hj&fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjF )}(hjI h]h*}(hj4fhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjeubj)}(hfolioh]hfolio}(hjAfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeubah}(h]h ]h"]h$]h&]jjuh1j hjyehhhjehMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjuehhhjehMubah}(h]jpeah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjehMhjrehhubj4)}(hhh]jM)}(h Get the index of the next folio.h]h Get the index of the next folio.}(hjkfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhfhhubah}(h]h ]h"]h$]h&]uh1j3hjrehhhjehMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjfjHjfjIjJjKuh1hhhhj_hNhNubj)}(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)}(hjfh]h Parameters}(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.hhMhjfubj)}(hhh]j)}(h1``const struct folio *folio`` The current folio. h](j)}(h``const struct folio *folio``h]jS)}(hjfh]hconst struct folio *folio}(hjfhhhNhNubah}(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.hhMhjfubj)}(hhh]jM)}(hThe current folio.h]hThe current folio.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubjM)}(h **Return**h]j)}(hjfh]hReturn}(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.hhMhjfubjM)}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj6hubj)}(hhh]j)}(h1``const struct folio *folio`` The current folio. h](j)}(h``const struct folio *folio``h]jS)}(hj[hh]hconst struct folio *folio}(hj]hhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYhubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjUhubj)}(hhh]jM)}(hThe current folio.h]hThe current folio.}(hjthhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphhMhjqhubah}(h]h ]h"]h$]h&]uh1jhjUhubeh}(h]h ]h"]h$]h&]uh1jhjphhMhjRhubah}(h]h ]h"]h$]h&]uh1jhj6hubjM)}(h **Return**h]j)}(hjhh]hReturn}(hjhhhhNhNubah}(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.hhMhj6hubjM)}(h?The position of the folio which follows this folio in the file.h]h?The position of the folio which follows this folio in the file.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj6hubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_file_page (C function)c.folio_file_pagehNtauh1hhj_hhhNhNubh)}(hhh](h)}(hBstruct page * folio_file_page (struct folio *folio, pgoff_t index)h]h)}(h@struct page *folio_file_page(struct folio *folio, pgoff_t index)h](j5)}(hj8h]hstruct}(hjhhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMubh)}(hhh]j)}(hpageh]hpage}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjhmodnameN classnameNjpjs)}jv]jy)}jlfolio_file_pagesbc.folio_file_pageasbuh1hhjhhhhjhhMubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMubjF )}(hjI h]h*}(hj)ihhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhhjhhMubh)}(hfolio_file_pageh]j)}(hjih]hfolio_file_page}(hj:ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6iubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhhjhhMubj )}(h$(struct folio *folio, pgoff_t index)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjUihhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjQiubj)}(h h]h }(hjbihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQiubh)}(hhh]j)}(hfolioh]hfolio}(hjsihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpiubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjuimodnameN classnameNjpjs)}jv]jic.folio_file_pageasbuh1hhjQiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQiubjF )}(hjI h]h*}(hjihhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjQiubj)}(hfolioh]hfolio}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMiubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjimodnameN classnameNjpjs)}jv]jic.folio_file_pageasbuh1hhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hindexh]hindex}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMiubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhhjhhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhhjhhMubah}(h]jhah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhhMhjhhhubj4)}(hhh]jM)}(h The page for a particular index.h]h The page for a particular 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&]uh1j3hjhhhhjhhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj6jjHj6jjIjJjKuh1hhhhj_hNhNubj)}(hXL**Parameters** ``struct folio *folio`` The folio which contains this index. ``pgoff_t index`` The index we want to look up. **Description** Sometimes after looking up a folio in the page cache, we need to obtain the specific page for an index (eg a page fault). **Return** The page containing the file data for this index.h](jM)}(h**Parameters**h]j)}(hj@jh]h Parameters}(hjBjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>jubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:jubj)}(hhh](j)}(h=``struct folio *folio`` The folio which contains this index. h](j)}(h``struct folio *folio``h]jS)}(hj_jh]hstruct folio *folio}(hjajhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj]jubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjYjubj)}(hhh]jM)}(h$The folio which contains this index.h]h$The folio which contains this index.}(hjxjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjtjhMhjujubah}(h]h ]h"]h$]h&]uh1jhjYjubeh}(h]h ]h"]h$]h&]uh1jhjtjhMhjVjubj)}(h0``pgoff_t index`` The index we want to look up. h](j)}(h``pgoff_t index``h]jS)}(hjjh]h pgoff_t index}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjjubj)}(hhh]jM)}(hThe index we want to look up.h]hThe index we want to look up.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjVjubeh}(h]h ]h"]h$]h&]uh1jhj:jubjM)}(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.hhMhj:jubjM)}(hySometimes after looking up a folio in the page cache, we need to obtain the specific page for an index (eg a page fault).h]hySometimes after looking up a folio in the page cache, we need to obtain the specific page for an index (eg a page fault).}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:jubjM)}(h **Return**h]j)}(hjjh]hReturn}(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.hhMhj:jubjM)}(h1The page containing the file data for this index.h]h1The page containing the file data for this index.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:jubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_contains (C function)c.folio_containshNtauh1hhj_hhhNhNubh)}(hhh](h)}(h>bool 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}(hj?khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;khhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjMkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;khhhjLkhMubh)}(hfolio_containsh]j)}(hfolio_containsh]hfolio_contains}(hj_khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[kubah}(h]h ](jjeh"]h$]h&]jjuh1hhj;khhhjLkhMubj )}(h*(const struct folio *folio, pgoff_t index)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj{khhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwkubj5)}(hj8h]hstruct}(hjkhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwkubh)}(hhh]j)}(hfolioh]hfolio}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjkmodnameN classnameNjpjs)}jv]jy)}jljaksbc.folio_containsasbuh1hhjwkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwkubjF )}(hjI h]h*}(hjkhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwkubj)}(hfolioh]hfolio}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwkubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjskubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj lmodnameN classnameNjpjs)}jv]jkc.folio_containsasbuh1hhjlubj)}(h h]h }(hj)lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hindexh]hindex}(hj7lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjskubeh}(h]h ]h"]h$]h&]jjuh1j hj;khhhjLkhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj7khhhjLkhMubah}(h]j2kah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjLkhMhj4khhubj4)}(hhh]jM)}(h#Does this folio contain this index?h]h#Does this folio contain this index?}(hjalhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj^lhhubah}(h]h ]h"]h$]h&]uh1j3hj4khhhjLkhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjyljHjyljIjJjKuh1hhhhj_hNhNubj)}(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)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj}lubj)}(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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjlubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubj)}(h2``pgoff_t index`` The page index within the file. h](j)}(h``pgoff_t index``h]jS)}(hjlh]h pgoff_t index}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjlubj)}(hhh]jM)}(hThe page index within the file.h]hThe page index within the file.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubeh}(h]h ]h"]h$]h&]uh1jhj}lubjM)}(h **Context**h]j)}(hjmh]hContext}(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.hhMhj}lubjM)}(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.}(hj,mhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj}lubjM)}(h **Return**h]j)}(hj=mh]hReturn}(hj?mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;mubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj}lubjM)}(htrue or false.h]htrue or false.}(hjSmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj}lubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpage_pgoff (C function) c.page_pgoffhNtauh1hhj_hhhNhNubh)}(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}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmmodnameN classnameNjpjs)}jv]jy)}jl page_pgoffsb c.page_pgoffasbuh1hhj~mhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~mhhhjmhMubh)}(h page_pgoffh]j)}(hjmh]h page_pgoff}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1hhj~mhhhjmhMubj )}(h4(const struct folio *folio, const struct page *page)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}(hj nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj nubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jm c.page_pgoffasbuh1hhjmubj)}(h h]h }(hj+nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjF )}(hjI h]h*}(hj9nhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjmubj)}(hfolioh]hfolio}(hjFnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjmubj )}(hconst struct page *pageh](j5)}(hjh]hconst}(hj_nhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj[nubj)}(h h]h }(hjlnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[nubj5)}(hj8h]hstruct}(hjznhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj[nubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[nubh)}(hhh]j)}(hpageh]hpage}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jm c.page_pgoffasbuh1hhj[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)}(hpageh]hpage}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[nubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjmubeh}(h]h ]h"]h$]h&]jjuh1j hj~mhhhjmhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjzmhhhjmhMubah}(h]jumah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjmhMhjwmhhubj4)}(hhh]jM)}(h/Calculate the logical page offset of this page.h]h/Calculate the logical page offset of this page.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjnhhubah}(h]h ]h"]h$]h&]uh1j3hjwmhhhjmhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjojHjojIjJjKuh1hhhhj_hNhNubj)}(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)}(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 containing this page. h](j)}(h``const struct folio *folio``h]jS)}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:oubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj6oubj)}(hhh]jM)}(hThe folio containing this page.h]hThe folio containing this page.}(hjUohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQohMhjRoubah}(h]h ]h"]h$]h&]uh1jhj6oubeh}(h]h ]h"]h$]h&]uh1jhjQohMhj3oubj)}(hB``const struct page *page`` The page which we need the offset of. h](j)}(h``const struct page *page``h]jS)}(hjuoh]hconst struct page *page}(hjwohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjsoubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjooubj)}(hhh]jM)}(h%The page which we need the offset of.h]h%The page which we need the offset of.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjooubeh}(h]h ]h"]h$]h&]uh1jhjohMhj3oubeh}(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&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjoubjM)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjoubjM)}(h **Context**h]j)}(hjoh]hContext}(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.hhMhjoubjM)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjoubjM)}(h **Return**h]j)}(hjoh]hReturn}(hjphhhNhNubah}(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.hhM hjoubjM)}(h!The offset in units of PAGE_SIZE.h]h!The offset in units of PAGE_SIZE.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_pos (C function) c.folio_poshNtauh1hhj_hhhNhNubh)}(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}(hjFphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjHpmodnameN classnameNjpjs)}jv]jy)}jl folio_possb c.folio_posasbuh1hhj?phhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjhphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?phhhjgphMubh)}(h folio_posh]j)}(hjdph]h folio_pos}(hjzphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvpubah}(h]h ](jjeh"]h$]h&]jjuh1hhj?phhhjgphMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj5)}(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]jbp c.folio_posasbuh1hhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjF )}(hjI h]h*}(hjphhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjpubj)}(hfolioh]hfolio}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpubah}(h]h ]h"]h$]h&]jjuh1j hj?phhhjgphMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj;phhhjgphMubah}(h]j6pah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjgphMhj8phhubj4)}(hhh]jM)}(h4Returns the byte position of this folio in its file.h]h4Returns the byte position of this folio in its file.}(hj1qhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj.qhhubah}(h]h ]h"]h$]h&]uh1j3hj8phhhjgphMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjIqjHjIqjIjJjKuh1hhhhj_hNhNubj)}(h:**Parameters** ``const struct folio *folio`` The folio.h](jM)}(h**Parameters**h]j)}(hjSqh]h Parameters}(hjUqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQqubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjMqubj)}(hhh]j)}(h(``const struct folio *folio`` The folio.h](j)}(h``const struct folio *folio``h]jS)}(hjrqh]hconst struct folio *folio}(hjtqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpqubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjlqubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjqubah}(h]h ]h"]h$]h&]uh1jhjlqubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjiqubah}(h]h ]h"]h$]h&]uh1jhjMqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_trylock (C function)c.folio_trylockhNtauh1hhj_hhhNhNubh)}(hhh](h)}(h(bool folio_trylock (struct folio *folio)h]h)}(h'bool folio_trylock(struct folio *folio)h](j)}(hj)h]hbool}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMUubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhMUubh)}(h folio_trylockh]j)}(h folio_trylockh]h folio_trylock}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1hhjqhhhjqhMUubj )}(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_trylockasbuh1hhjrubj)}(h h]h }(hjFrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjF )}(hjI h]h*}(hjTrhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjrubj)}(hfolioh]hfolio}(hjarhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubah}(h]h ]h"]h$]h&]jjuh1j hjqhhhjqhMUubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjqhhhjqhMUubah}(h]jqah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjqhMUhjqhhubj4)}(hhh]jM)}(hAttempt to lock a folio.h]hAttempt to lock a folio.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMUhjrhhubah}(h]h ]h"]h$]h&]uh1j3hjqhhhjqhMUubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjrjHjrjIjJjKuh1hhhhj_hNhNubj)}(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)}(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.hhMYhjrubj)}(hhh]j)}(h6``struct folio *folio`` The folio to attempt to lock. h](j)}(h``struct folio *folio``h]jS)}(hjrh]hstruct folio *folio}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjrubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMVhjrubj)}(hhh]jM)}(hThe folio to attempt to lock.h]hThe folio to attempt to lock.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhMVhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMVhjrubah}(h]h ]h"]h$]h&]uh1jhjrubjM)}(h**Description**h]j)}(hjsh]h Description}(hj shhhNhNubah}(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.hhMXhjrubjM)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMWhjrubjM)}(h **Context**h]j)}(hj.sh]hContext}(hj0shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,subah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM\hjrubjM)}(h Any context.h]h Any context.}(hjDshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM]hjrubjM)}(h **Return**h]j)}(hjUsh]hReturn}(hjWshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSsubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM_hjrubjM)}(h+Whether the lock was successfully acquired.h]h+Whether the lock was successfully acquired.}(hjkshhhNhNubah}(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&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_lock (C function) c.folio_lockhNtauh1hhj_hhhNhNubh)}(hhh](h)}(h%void folio_lock (struct folio *folio)h]h)}(h$void folio_lock(struct folio *folio)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.hhMnubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjshMnubh)}(h folio_lockh]j)}(h folio_lockh]h folio_lock}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1hhjshhhjshMnubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j)}(hfolioh]hfolio}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjsmodnameN classnameNjpjs)}jv]jy)}jljssb c.folio_lockasbuh1hhjsubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjF )}(hjI h]h*}(hj#thhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsubj)}(hfolioh]hfolio}(hj0thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubah}(h]h ]h"]h$]h&]jjuh1j hjshhhjshMnubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjshhhjshMnubah}(h]jsah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjshMnhjshhubj4)}(hhh]jM)}(hLock this folio.h]hLock this folio.}(hjZthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMnhjWthhubah}(h]h ]h"]h$]h&]uh1j3hjshhhjshMnubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjrtjHjrtjIjJjKuh1hhhhj_hNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to lock. **Description** The folio lock protects against many things, probably more than it should. It is primarily held while a folio is being brought uptodate, either from its backing file or from swap. It is also held while a folio is being truncated from its address_space, so holding the lock is sufficient to keep folio->mapping stable. The folio lock is also held while write() is modifying the page to provide POSIX atomicity guarantees (as long as the write does not cross a page boundary). Other modifications to the data in the folio do not hold the folio lock and can race with writes, eg DMA and stores to mapped pages. **Context** May sleep. If you need to acquire the locks of two or more folios, they must be in order of ascending index, if they are in the same address_space. If they are in different address_spaces, acquire the lock of the folio which belongs to the address_space which has the lowest address in memory first.h](jM)}(h**Parameters**h]j)}(hj|th]h Parameters}(hj~thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjztubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMrhjvtubj)}(hhh]j)}(h+``struct folio *folio`` The folio to lock. h](j)}(h``struct folio *folio``h]jS)}(hjth]hstruct folio *folio}(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.hhMohjtubj)}(hhh]jM)}(hThe folio to lock.h]hThe folio to lock.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjthMohjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMohjtubah}(h]h ]h"]h$]h&]uh1jhjvtubjM)}(h**Description**h]j)}(hjth]h Description}(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.hhMqhjvtubjM)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMphjvtubjM)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMvhjvtubjM)}(h **Context**h]j)}(hj uh]hContext}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj uubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM|hjvtubjM)}(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.}(hj"uhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM}hjvtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlock_page (C function) c.lock_pagehNtauh1hhj_hhhNhNubh)}(hhh](h)}(h"void lock_page (struct page *page)h]h)}(h!void lock_page(struct page *page)h](j)}(hvoidh]hvoid}(hjQuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMuhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hj`uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMuhhhj_uhMubh)}(h lock_pageh]j)}(h lock_pageh]h lock_page}(hjruhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnuubah}(h]h ](jjeh"]h$]h&]jjuh1hhjMuhhhj_uhMubj )}(h(struct page *page)h]j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjuhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hhh]j)}(hpageh]hpage}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjumodnameN classnameNjpjs)}jv]jy)}jljtusb c.lock_pageasbuh1hhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjF )}(hjI h]h*}(hjuhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjuubj)}(hpageh]hpage}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubah}(h]h ]h"]h$]h&]jjuh1j hjMuhhhj_uhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjIuhhhj_uhMubah}(h]jDuah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj_uhMhjFuhhubj4)}(hhh]jM)}(h$Lock the folio containing this page.h]h$Lock the folio containing this page.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjvhhubah}(h]h ]h"]h$]h&]uh1j3hjFuhhhj_uhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj)vjHj)vjIjJjKuh1hhhhj_hNhNubj)}(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)}(hj3vh]h Parameters}(hj5vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1vubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj-vubj)}(hhh]j)}(h(``struct page *page`` The page to lock. h](j)}(h``struct page *page``h]jS)}(hjRvh]hstruct page *page}(hjTvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPvubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjLvubj)}(hhh]jM)}(hThe page to lock.h]hThe page to lock.}(hjkvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjgvhMhjhvubah}(h]h ]h"]h$]h&]uh1jhjLvubeh}(h]h ]h"]h$]h&]uh1jhjgvhMhjIvubah}(h]h ]h"]h$]h&]uh1jhj-vubjM)}(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.hhMhj-vubjM)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj-vubjM)}(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.hhMhj-vubjM)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj-vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_lock_killable (C function)c.folio_lock_killablehNtauh1hhj_hhhNhNubh)}(hhh](h)}(h-int folio_lock_killable (struct folio *folio)h]h)}(h,int folio_lock_killable(struct folio *folio)h](j)}(hinth]hint}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjwhMubh)}(hfolio_lock_killableh]j)}(hfolio_lock_killableh]hfolio_lock_killable}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1hhjvhhhjwhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj6whhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj2wubj)}(h h]h }(hjCwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2wubh)}(hhh]j)}(hfolioh]hfolio}(hjTwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQwubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjVwmodnameN classnameNjpjs)}jv]jy)}jljwsbc.folio_lock_killableasbuh1hhj2wubj)}(h h]h }(hjtwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2wubjF )}(hjI h]h*}(hjwhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2wubj)}(hfolioh]hfolio}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2wubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj.wubah}(h]h ]h"]h$]h&]jjuh1j hjvhhhjwhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjvhhhjwhMubah}(h]jvah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjwhMhjvhhubj4)}(hhh]jM)}(h1Lock this folio, interruptible by a fatal signal.h]h1Lock this folio, interruptible by a fatal signal.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjwhhubah}(h]h ]h"]h$]h&]uh1j3hjvhhhjwhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjwjHjwjIjJjKuh1hhhhj_hNhNubj)}(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)}(hjwh]h Parameters}(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.hhMhjwubj)}(hhh]j)}(h+``struct folio *folio`` The folio to lock. h](j)}(h``struct folio *folio``h]jS)}(hjwh]hstruct folio *folio}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjwubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjwubj)}(hhh]jM)}(hThe folio to lock.h]hThe folio to lock.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjwubah}(h]h ]h"]h$]h&]uh1jhjwubjM)}(h**Description**h]j)}(hj5xh]h Description}(hj7xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3xubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjwubjM)}(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.}(hjKxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjwubjM)}(h **Context**h]j)}(hj\xh]hContext}(hj^xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZxubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjwubjM)}(hMay sleep; see folio_lock().h]hMay sleep; see folio_lock().}(hjrxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjwubjM)}(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.hhMhjwubjM)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*filemap_range_needs_writeback (C function)c.filemap_range_needs_writebackhNtauh1hhj_hhhNhNubh)}(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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjxhMubh)}(hfilemap_range_needs_writebackh]j)}(hfilemap_range_needs_writebackh]hfilemap_range_needs_writeback}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1hhjxhhhjxhMubj )}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)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}(hj"yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj$ymodnameN classnameNjpjs)}jv]jy)}jljxsbc.filemap_range_needs_writebackasbuh1hhjyubj)}(h h]h }(hjByhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjF )}(hjI h]h*}(hjPyhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjyubj)}(hmappingh]hmapping}(hj]yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjxubj )}(hloff_t start_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjyyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj{ymodnameN classnameNjpjs)}jv]j>yc.filemap_range_needs_writebackasbuh1hhjryubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjryubj)}(h start_byteh]h start_byte}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjryubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjxubj )}(hloff_t end_byteh](h)}(hhh]j)}(hloff_th]hloff_t}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjymodnameN classnameNjpjs)}jv]j>yc.filemap_range_needs_writebackasbuh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hend_byteh]hend_byte}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjxubeh}(h]h ]h"]h$]h&]jjuh1j hjxhhhjxhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjxhhhjxhMubah}(h]jxah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjxhMhjxhhubj4)}(hhh]jM)}(h*check if range potentially needs writebackh]h*check if range potentially needs writeback}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjzhhubah}(h]h ]h"]h$]h&]uh1j3hjxhhhjxhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj/zjHj/zjIjJjKuh1hhhhj_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. 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)}(hj9zh]h Parameters}(hj;zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7zubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj3zubj)}(hhh](j)}(hF``struct address_space *mapping`` address space within which to check h](j)}(h!``struct address_space *mapping``h]jS)}(hjXzh]hstruct address_space *mapping}(hjZzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVzubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjRzubj)}(hhh]jM)}(h#address space within which to checkh]h#address space within which to check}(hjqzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmzhMhjnzubah}(h]h ]h"]h$]h&]uh1jhjRzubeh}(h]h ]h"]h$]h&]uh1jhjmzhMhjOzubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]jS)}(hjzh]hloff_t start_byte}(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.hhMhjzubj)}(hhh]jM)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjOzubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]jS)}(hjzh]hloff_t end_byte}(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.hhMhjzubj)}(hhh]jM)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjOzubeh}(h]h ]h"]h$]h&]uh1jhj3zubjM)}(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.hhMhj3zubjM)}(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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj3zubjM)}(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#hj3zubjM)}(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}(hjF{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjB{ubhg if the caller should do filemap_write_and_wait_range() before doing O_DIRECT to a page in this range, }(hjB{hhhNhNubjS)}(h ``false``h]hfalse}(hjX{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjB{ubh otherwise.}(hjB{hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM$hj3zubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_control (C struct)c.readahead_controlhNtauh1hhj_hhhNhNubh)}(hhh](h)}(hreadahead_controlh]h)}(hstruct readahead_controlh](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)}(hreadahead_controlh]j)}(hj{h]hreadahead_control}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj{hhhj{hM*ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj{hhhj{hM*ubah}(h]j{ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj{hM*hj{hhubj4)}(hhh]jM)}(hDescribes a readahead request.h]hDescribes a readahead request.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM4hj{hhubah}(h]h ]h"]h$]h&]uh1j3hj{hhhj{hM*ubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGj{jHj{jIjJjKuh1hhhhj_hNhNubj)}(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}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh:}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM8hj{ubj()}(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; };}hj|sbah}(h]h ]h"]h$]h&]jjuh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM:hj{ubjM)}(h **Members**h]j)}(hj!|h]hMembers}(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``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)}(hj@|h]hfile}(hjB|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)}(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.}(hjY|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM?hjV|ubah}(h]h ]h"]h$]h&]uh1jhj:|ubeh}(h]h ]h"]h$]h&]uh1jhjU|hM@hj7|ubj)}(h.``mapping`` Readahead this filesystem object. h](j)}(h ``mapping``h]jS)}(hjz|h]hmapping}(hj||hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjx|ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMAhjt|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&]uh1jhjt|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMAhj7|ubj)}(h*``ra`` File readahead state. May be NULL.h](j)}(h``ra``h]jS)}(hj|h]hra}(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#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&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMAhj7|ubeh}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubjM)}(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.hhMEhj_hhubjM)}(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.hhM5hj_hhubjM)}(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:hj_hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&page_cache_sync_readahead (C function)c.page_cache_sync_readaheadhNtauh1hhj_hhhNhNubh)}(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}(hjC}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 }(hjR}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?}hhhjQ}hMcubh)}(hpage_cache_sync_readaheadh]j)}(hpage_cache_sync_readaheadh]hpage_cache_sync_readahead}(hjd}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`}ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj?}hhhjQ}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}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jy)}jljf}sbc.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)}(hmappingh]hmapping}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjx}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]j}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}(hjI~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjx}ubj )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hjb~hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj^~ubj)}(h h]h }(hjo~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]j}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)}(hfileh]hfile}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjx}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.page_cache_sync_readaheadasbuh1hhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjx}ubj )}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h req_counth]h req_count}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjx}ubeh}(h]h ]h"]h$]h&]jjuh1j hj?}hhhjQ}hMcubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj;}hhhjQ}hMcubah}(h]j6}ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjQ}hMchj8}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.hhMchjyhhubah}(h]h ]h"]h$]h&]uh1j3hj8}hhhjQ}hMcubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj_hNhNubj)}(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)}(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.hhMghjubj)}(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)}(hjh]hstruct address_space *mapping}(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.hhMdhjubj)}(hhh]jM)}(h7address_space which holds the pagecache and I/O vectorsh]h7address_space which holds the pagecache and I/O vectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjubj)}(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.hhMehjubj)}(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&]uh1jLhj hMehj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMehjubj)}(hA``struct file *file`` Used by the filesystem for authentication. h](j)}(h``struct file *file``h]jS)}(hj/h]hstruct file *file}(hj1hhhNhNubah}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhMfhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMfhjubj)}(h2``pgoff_t index`` Index of first page to be read. h](j)}(h``pgoff_t index``h]jS)}(hjhh]h pgoff_t index}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMghjbubj)}(hhh]jM)}(hIndex of first page to be read.h]hIndex of first page to be read.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}hMghj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMghjubj)}(hL``unsigned long req_count`` Total number of pages being read by the caller. h](j)}(h``unsigned long req_count``h]jS)}(hjh]hunsigned long req_count}(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.hhMhhjubj)}(hhh]jM)}(h/Total number of pages being read by the caller.h]h/Total number of pages being read by the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj܀h]h Description}(hjހhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڀubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMjhjubjM)}(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.hhMihjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'page_cache_async_readahead (C function)c.page_cache_async_readaheadhNtauh1hhj_hhhNhNubh)}(hhh](h)}(hvoid page_cache_async_readahead (struct address_space *mapping, struct file_ra_state *ra, struct file *file, struct folio *folio, unsigned long req_count)h]h)}(hvoid page_cache_async_readahead(struct address_space *mapping, struct file_ra_state *ra, struct file *file, struct folio *folio, unsigned long req_count)h](j)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMyubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj/hMyubh)}(hpage_cache_async_readaheadh]j)}(hpage_cache_async_readaheadh]hpage_cache_async_readahead}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj/hMyubj )}(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}(hj^hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j)}(h address_spaceh]h address_space}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj~modnameN classnameNjpjs)}jv]jy)}jljDsbc.page_cache_async_readaheadasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjZubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.page_cache_async_readaheadasbuh1hhj́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)}(hrah]hra}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj́ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubj )}(hstruct file *fileh](j5)}(hj8h]hstruct}(hj@hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj<ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j)}(hfileh]hfile}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj`modnameN classnameNjpjs)}jv]jc.page_cache_async_readaheadasbuh1hhj<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)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubj )}(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]jc.page_cache_async_readaheadasbuh1hhjubj)}(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 hjVubj )}(hunsigned long req_counth](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(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 }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h req_counth]h req_count}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj/hMyubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj/hMyubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj/hMyhjhhubj4)}(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&]uh1j3hjhhhj/hMyubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhj_hNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM}hjubj)}(hhh](j)}(hZ``struct address_space *mapping`` address_space which holds the pagecache and I/O vectors h](j)}(h!``struct address_space *mapping``h]jS)}(hjÃh]hstruct address_space *mapping}(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.hhMzhjubj)}(hhh]jM)}(h7address_space which holds the pagecache and I/O vectorsh]h7address_space which holds the pagecache and I/O vectors}(hj܃hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj؃hMzhjكubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj؃hMzhjubj)}(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{hjubj)}(hA``struct file *file`` Used by the filesystem for authentication. h](j)}(h``struct file *file``h]jS)}(hj5h]hstruct file *file}(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.hhM|hj/ubj)}(hhh]jM)}(h*Used by the filesystem for authentication.h]h*Used by the filesystem for authentication.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhM|hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM|hjubj)}(hF``struct folio *folio`` The folio which triggered the readahead call. h](j)}(h``struct folio *folio``h]jS)}(hjnh]hstruct folio *folio}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM}hjhubj)}(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&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjubj)}(hL``unsigned long req_count`` Total number of pages being read by the caller. h](j)}(h``unsigned long req_count``h]jS)}(hjh]hunsigned long req_count}(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/Total number of pages being read by the caller.h]h/Total number of pages being read by the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM~hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubjM)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_folio (C function)c.readahead_foliohNtauh1hhj_hhhNhNubh)}(hhh](h)}(h@struct folio * readahead_folio (struct readahead_control *ractl)h]h)}(h>struct folio *readahead_folio(struct readahead_control *ractl)h](j5)}(hj8h]hstruct}(hj'hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj#hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj4hMubh)}(hhh]j)}(hfolioh]hfolio}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjHmodnameN classnameNjpjs)}jv]jy)}jlreadahead_foliosbc.readahead_folioasbuh1hhj#hhhj4hMubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj4hMubjF )}(hjI h]h*}(hjuhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj#hhhj4hMubh)}(hreadahead_folioh]j)}(hjdh]hreadahead_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj#hhhj4hMubj )}(h!(struct readahead_control *ractl)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]jbc.readahead_folioasbuh1hhjubj)}(h h]h }(hj݅hhhNhNubah}(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 hjubah}(h]h ]h"]h$]h&]jjuh1j hj#hhhj4hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj4hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj4hMhjhhubj4)}(hhh]jM)}(hGet the next folio to read.h]hGet the next folio to read.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj4hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj:jHj:jIjJjKuh1hhhhj_hNhNubj)}(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)}(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)}(hC``struct readahead_control *ractl`` The current readahead request. h](j)}(h#``struct readahead_control *ractl``h]jS)}(hjch]hstruct readahead_control *ractl}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj]ubj)}(hhh]jM)}(hThe current readahead request.h]hThe current readahead request.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]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.}(hjhhhNhNubah}(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)}(hjņh]hReturn}(hjdž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)}(h8A pointer to the next folio, or ``NULL`` if we are done.h](h A pointer to the next folio, or }(hjۆhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjۆubh if we are done.}(hjۆhhhNhNubeh}(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&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_pos (C function)c.readahead_poshNtauh1hhj_hhhNhNubh)}(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 reftargetj!modnameN 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 }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj@hMubh)}(h readahead_posh]j)}(hj=h]h readahead_pos}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj@hMubj )}(h%(const struct readahead_control *rac)h]j )}(h#const struct readahead_control *rach](j5)}(hjh]hconst}(hjnhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjjubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j;c.readahead_posasbuh1hhjjubj)}(h h]h }(hjŇhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjF )}(hjI h]h*}(hjӇhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjjubj)}(hrach]hrac}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjfubah}(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.}(hj hhhNhNubah}(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"jIjJjKuh1hhhhj_hNhNubj)}(hP**Parameters** ``const struct readahead_control *rac`` The readahead request.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 readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]jS)}(hjKh]h#const struct readahead_control *rac}(hjMhhhNhNubah}(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.hhMhjEubj)}(hhh]jM)}(hThe readahead request.h]hThe readahead request.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_length (C function)c.readahead_lengthhNtauh1hhj_hhhNhNubh)}(hhh](h)}(h=size_t readahead_length (const struct readahead_control *rac)h]h)}(h``const struct readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]jS)}(hjԉh]h#const struct readahead_control *rac}(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 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&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_index (C function)c.readahead_indexhNtauh1hhj_hhhNhNubh)}(hhh](h)}(h=pgoff_t readahead_index (const struct readahead_control *rac)h]h)}(hh]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.hhMhj8ubj)}(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}(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.hhMhjWubj)}(hhh]jM)}(hThe readahead request.h]hThe readahead request.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hreadahead_count (C function)c.readahead_counthNtauh1hhj_hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjƋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjŋhMubj)}(hinth]hint}(hjԋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjŋhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjŋhMubh)}(hreadahead_counth]j)}(hreadahead_counth]hreadahead_count}(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&]uh1j4hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj5)}(hj8h]hstruct}(hj+hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hreadahead_controlh]hreadahead_control}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKmodnameN classnameNjpjs)}jv]jy)}jljsbc.readahead_countasbuh1hhj ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjwhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hrach]hrac}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(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)}(h.The number of pages in this readahead request.h]h.The number of pages in 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&]jFjAjGjƌjHjƌjIjJjKuh1hhhhj_hNhNubj)}(hP**Parameters** ``const struct readahead_control *rac`` The readahead request.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 readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]jS)}(hjh]h#const struct readahead_control *rac}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubj)}(hhh]jM)}(hThe readahead request.h]hThe readahead request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjʌubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#readahead_batch_length (C function)c.readahead_batch_lengthhNtauh1hhj_hhhNhNubh)}(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}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjNmodnameN classnameNjpjs)}jv]jy)}jlreadahead_batch_lengthsbc.readahead_batch_lengthasbuh1hhjEhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjmhMubh)}(hreadahead_batch_lengthh]j)}(hjjh]hreadahead_batch_length}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjEhhhjmhMubj )}(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]jhc.readahead_batch_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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjEhhhjmhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjAhhhjmhMubah}(h]j<ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjmhMhj>hhubj4)}(hhh]jM)}(h)The number of bytes in the current batch.h]h)The number of bytes in the current batch.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj4hhubah}(h]h ]h"]h$]h&]uh1j3hj>hhhjmhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjOjHjOjIjJjKuh1hhhhj_hNhNubj)}(hP**Parameters** ``const struct readahead_control *rac`` The readahead request.h](jM)}(h**Parameters**h]j)}(hjYh]h Parameters}(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.hhMhjSubj)}(hhh]j)}(h>``const struct readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]jS)}(hjxh]h#const struct readahead_control *rac}(hjzhhhNhNubah}(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.hhMhjrubj)}(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&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)folio_mkwrite_check_truncate (C function)c.folio_mkwrite_check_truncatehNtauh1hhj_hhhNhNubh)}(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}(hjՎhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҎubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj׎modnameN classnameNjpjs)}jv]jy)}jlfolio_mkwrite_check_truncatesbc.folio_mkwrite_check_truncateasbuh1hhjΎ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)}(hfolio_mkwrite_check_truncateh]j)}(hjh]hfolio_mkwrite_check_truncate}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjΎhhhjhMubj )}(h6(const struct folio *folio, const struct inode *inode)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj$hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj5)}(hj8h]hstruct}(hj?hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hfolioh]hfolio}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]jc.folio_mkwrite_check_truncateasbuh1hhj ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hconst struct inode *inodeh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hjʏhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj׏hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hinodeh]hinode}(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)}(hinodeh]hinode}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjΎhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjʎhhhjhMubah}(h]jŎah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjǎhhubj4)}(hhh]jM)}(hcheck if folio was truncatedh]hcheck if folio was truncated}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjHhhubah}(h]h ]h"]h$]h&]uh1j3hjǎhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjcjHjcjIjJjKuh1hhhhj_hNhNubj)}(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)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjgubj)}(hhh](j)}(h1``const struct folio *folio`` the folio to check h](j)}(h``const struct folio *folio``h]jS)}(hjh]hconst struct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjubj)}(hhh]jM)}(hthe folio to checkh]hthe folio to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hC``const struct inode *inode`` the inode to check the folio against h](j)}(h``const struct inode *inode``h]jS)}(hjŐh]hconst struct inode *inode}(hjǐhhhNhNubah}(h]h ]h"]h$]h&]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)}(h$the inode to check the folio againsth]h$the inode to check the folio against}(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&]uh1jhjgubjM)}(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.hhMhjgubjM)}(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.hhMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hi_blocks_per_folio (C function)c.i_blocks_per_foliohNtauh1hhj_hhhNhNubh)}(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}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjShMubj)}(hinth]hint}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjShMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjShMubh)}(hi_blocks_per_folioh]j)}(hi_blocks_per_folioh]hi_blocks_per_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjAhhhjShMubj )}(h6(const struct inode *inode, const struct folio *folio)h](j )}(hconst struct inode *inodeh](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)}(hinodeh]hinode}(hjבhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԑubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjّmodnameN classnameNjpjs)}jv]jy)}jljsbc.i_blocks_per_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj+hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj5)}(hj8h]hstruct}(hjFhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj'ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j)}(hfolioh]hfolio}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjfmodnameN classnameNjpjs)}jv]jc.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)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjAhhhjShMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj=hhhjShMubah}(h]j8ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjShMhj: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.hhMhjĒhhubah}(h]h ]h"]h$]h&]uh1j3hj:hhhjShMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjߒjHjߒjIjJjKuh1hhhhj_hNhNubj)}(hXy**Parameters** ``const struct inode *inode`` The inode which contains the blocks. ``const struct folio *folio`` The folio. **Description** If the block size is larger than the size of this folio, return zero. **Context** The caller should hold a refcount on the folio to prevent it from being split. **Return** The number of filesystem blocks covered by this folio.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM#hjubj)}(hhh](j)}(hC``const struct inode *inode`` The inode which contains the blocks. h](j)}(h``const struct inode *inode``h]jS)}(hjh]hconst struct inode *inode}(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.hhM hjubj)}(hhh]jM)}(h$The inode which contains the blocks.h]h$The inode which contains the blocks.}(hj!hhhNhNubah}(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)}(hjAh]hconst struct folio *folio}(hjChhhNhNubah}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhM!hjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhM!hjubeh}(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&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM#hjubjM)}(hEIf the block size is larger than the size of this folio, return zero.h]hEIf the block size is larger than the size of this folio, return zero.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM"hjubjM)}(h **Context**h]j)}(hjh]hContext}(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$hjubjM)}(hNThe caller should hold a refcount on the folio to prevent it from being split.h]hNThe caller should hold a refcount on the folio to prevent it from being split.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM%hjubjM)}(h **Return**h]j)}(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(hjubjM)}(h6The number of filesystem blocks covered by this folio.h]h6The number of filesystem blocks covered by this folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM'hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_hhhNhNubeh}(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}(hj hhhNhNubah}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj>hKubh)}(h mempool_exith]j)}(h mempool_exith]h mempool_exit}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1hhj,hhhj>hKubj )}(h(struct mempool *pool)h]j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hjmhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hhh]j)}(hmempoolh]hmempool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljSsbc.mempool_exitasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjiubj)}(hpoolh]hpool}(hjƔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeubah}(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.exit a mempool initialized with mempool_init()h]h.exit a mempool initialized with mempool_init()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjhhubah}(h]h ]h"]h$]h&]uh1j3hj%hhhj>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.chKhj ubj)}(hhh]j)}(h_``struct mempool *pool`` pointer to the memory pool which was initialized with mempool_init(). h](j)}(h``struct mempool *pool``h]jS)}(hj1h]hstruct mempool *pool}(hj3hhhNhNubah}(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.chKhj+ubj)}(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().}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhKhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj ubjM)}(hxFree all reserved elements in **pool** and **pool** itself. This function only sleeps if the free_fn() function sleeps.h](hFree all reserved elements in }(hjhhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhE itself. This function only sleeps if the free_fn() function sleeps.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj ubjM)}(hTMay be called on a zeroed but uninitialized mempool (i.e. allocated with kzalloc()).h]hTMay be called on a zeroed but uninitialized mempool (i.e. allocated with kzalloc()).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmempool_destroy (C function)c.mempool_destroyhNtauh1hhjhhhNhNubh)}(hhh](h)}(h+void mempool_destroy (struct mempool *pool)h]h)}(h*void mempool_destroy(struct mempool *pool)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hmempool_destroyh]j)}(hmempool_destroyh]hmempool_destroy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubj )}(h(struct mempool *pool)h]j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hj"hhhNhNubah}(h]h ]jAah"]h$]h&]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 reftargetjBmodnameN classnameNjpjs)}jv]jy)}jljsbc.mempool_destroyasbuh1hhjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjnhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpoolh]hpool}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjݕhhhjhKubah}(h]jؕah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjڕhhubj4)}(hhh]jM)}(hdeallocate a memory poolh]hdeallocate a memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjڕhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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&]uh1jhjŖubah}(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 allocated via mempool_create(). h](j)}(h``struct mempool *pool``h]jS)}(hjh]hstruct mempool *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubj)}(hhh]jM)}(hDpointer to the memory pool which was allocated via mempool_create().h]hDpointer to the memory pool which was allocated via mempool_create().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjݖubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj"h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.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 }(hj8hhhNhNubj)}(h**pool**h]hpool}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh and }(hj8hhhNhNubj)}(h**pool**h]hpool}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhE itself. This function only sleeps if the free_fn() function sleeps.}(hj8hhhNhNubeh}(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_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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h mempool_inith]j)}(h mempool_inith]h mempool_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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&]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_initasbuh1hhjė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)}(hpoolh]hpool}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjėubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int min_nrh](j)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hmin_nrh]hmin_nr}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hmempool_alloc_t *alloc_fnh](h)}(hhh]j)}(hmempool_alloc_th]hmempool_alloc_t}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjtmodnameN classnameNjpjs)}jv]jc.mempool_initasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjkubj)}(halloc_fnh]halloc_fn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hmempool_free_t *free_fnh](h)}(hhh]j)}(hmempool_free_th]hmempool_free_t}(hjǘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĘubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjɘmodnameN classnameNjpjs)}jv]jc.mempool_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfree_fnh]hfree_fn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hvoid *pool_datah](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)}(h pool_datah]h pool_data}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]j~ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hinitialize a memory poolh]hinitialize a memory pool}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjihhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(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)}(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)}(hO``struct mempool *pool`` pointer to the memory pool that should be initialized h](j)}(h``struct mempool *pool``h]jS)}(hjh]hstruct mempool *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(h5pointer to the memory pool that should be initializedh]h5pointer to the memory pool that should be initialized}(hjƙhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj™hMhjÙubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj™hMhjubj)}(hX``int min_nr`` the minimum number of elements guaranteed to be allocated for this pool. h](j)}(h``int min_nr``h]jS)}(hjh]h int min_nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(hHthe minimum number of elements guaranteed to be allocated for this pool.h]hHthe minimum number of elements guaranteed to be allocated for this pool.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hH``mempool_alloc_t *alloc_fn`` user-defined element-allocation function. h](j)}(h``mempool_alloc_t *alloc_fn``h]jS)}(hj h]hmempool_alloc_t *alloc_fn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(hC``mempool_free_t *free_fn`` user-defined element-freeing function. h](j)}(h``mempool_free_t *free_fn``h]jS)}(hjYh]hmempool_free_t *free_fn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjSubj)}(hhh]jM)}(h&user-defined element-freeing function.h]h&user-defined element-freeing function.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubj)}(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.chMhjubj)}(hhh]jM)}(h>optional private data available to the user-defined functions.h]h>optional private data available to the user-defined functions.}(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: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).}(hjhhhNhNubah}(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&]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: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}(hjGhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjChhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM(ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjThM(ubh)}(hhh]j)}(hmempoolh]hmempool}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjhmodnameN classnameNjpjs)}jv]jy)}jlmempool_create_nodesbc.mempool_create_nodeasbuh1hhjChhhjThM(ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjThM(ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjChhhjThM(ubh)}(hmempool_create_nodeh]j)}(hjh]hmempool_create_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjChhhjThM(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjϛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmin_nrh]hmin_nr}(hjݛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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*}(hj%hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(halloc_fnh]halloc_fn}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hmempool_free_t *free_fnh](h)}(hhh]j)}(hmempool_free_th]hmempool_free_t}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjPmodnameN classnameNjpjs)}jv]jc.mempool_create_nodeasbuh1hhjGubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjF )}(hjI h]h*}(hjzhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjGubj)}(hfree_fnh]hfree_fn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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*}(hjhhhNhNubah}(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 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.mempool_create_nodeasbuh1hhjޜ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 hjubj )}(h int node_idh](j)}(hinth]hint}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hnode_idh]hnode_id}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjChhhjThM(ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj?hhhjThM(ubah}(h]j:ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjThM(hj<hhubj4)}(hhh]jM)}(hcreate a memory poolh]hcreate a memory pool}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM(hjmhhubah}(h]h ]h"]h$]h&]uh1j3hj<hhhjThM(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)}(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.chM,hjubj)}(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)}(hjh]h int min_nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM*hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƝhM*hjubj)}(hH``mempool_alloc_t *alloc_fn`` user-defined element-allocation function. h](j)}(h``mempool_alloc_t *alloc_fn``h]jS)}(hjh]hmempool_alloc_t *alloc_fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM+hjubj)}(hhh]jM)}(h)user-defined element-allocation function.h]h)user-defined element-allocation function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjubj)}(hC``mempool_free_t *free_fn`` user-defined element-freeing function. h](j)}(h``mempool_free_t *free_fn``h]jS)}(hj$h]hmempool_free_t *free_fn}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM,hjubj)}(hhh]jM)}(h&user-defined element-freeing function.h]h&user-defined element-freeing function.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9hM,hj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hM,hjubj)}(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.chM-hjWubj)}(hhh]jM)}(h>optional private data available to the user-defined functions.h]h>optional private data available to the user-defined functions.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhM-hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM-hjubj)}(h+``gfp_t gfp_mask`` memory allocation flags 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.chM.hjubj)}(hhh]jM)}(hmemory allocation flagsh]hmemory allocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjubj)}(h)``int node_id`` numa node to allocate on h](j)}(h``int node_id``h]jS)}(hjϞh]h int node_id}(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)}(hnuma node to allocate onh]hnuma node to allocate on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjɞubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(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:91: ./mm/mempool.chM1hjubjM)}(hX>this function creates and allocates a guaranteed size, preallocated memory pool. The pool can be used from the mempool_alloc() and mempool_free() functions. This function might sleep. Both the alloc_fn() and the free_fn() functions might sleep - as long as the mempool_alloc() function is not called from IRQ contexts.h]hX>this function creates and allocates a guaranteed size, preallocated memory pool. The pool can be used from the mempool_alloc() and mempool_free() functions. This function might sleep. Both the alloc_fn() and the free_fn() functions might sleep - as long as the mempool_alloc() function is not called from IRQ contexts.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM0hjubjM)}(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:91: ./mm/mempool.chM6hjubjM)}(h?pointer to the created memory pool object or ``NULL`` on error.h](h-pointer to the created memory pool object or }(hjGhhhNhNubjS)}(h``NULL``h]hNULL}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGubh on error.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM7hjubeh}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMNubh)}(hmempool_resizeh]j)}(hmempool_resizeh]hmempool_resize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMNubj )}(h&(struct mempool *pool, int new_min_nr)h](j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hjşhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjҟhhhNhNubah}(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)}jljsbc.mempool_resizeasbuh1hhjubj)}(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 hjubj )}(hint new_min_nrh](j)}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h new_min_nrh]h new_min_nr}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMNubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMNubah}(h]j{ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMNhj}hhubj4)}(hhh]jM)}(hresize an existing memory poolh]hresize an existing memory pool}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMNhjzhhubah}(h]h ]h"]h$]h&]uh1j3hj}hhhjhMNubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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)}(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.chMRhjubj)}(hhh](j)}(h^``struct mempool *pool`` pointer to the memory pool which was allocated via mempool_create(). h](j)}(h``struct mempool *pool``h]jS)}(hjh]hstruct mempool *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMPhjubj)}(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().}(hjנhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMOhjԠubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӠhMPhjubj)}(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&]uh1jhj hMRhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMThjubjM)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMShjubjM)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMXhjubjM)}(h **Return**h]j)}(hjjh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM\hjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM]hjubeh}(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}(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)}(hmempool_alloc_bulkh]j)}(hmempool_alloc_bulkh]hmempool_alloc_bulk}(hjޡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڡubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjˡ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)}jljsbc.mempool_alloc_bulkasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjFhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpoolh]hpool}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h void **elemsh](j)}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjzhhhNhNubah}(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)}(helemsh]helems}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjɢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjעhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int allocatedh](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 }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h allocatedh]h allocated}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjˡhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjˡhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjˡhMhjhhubj4)}(hhh]jM)}(h-allocate multiple elements from a memory poolh]h-allocate multiple elements from a memory pool}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjkhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjˡ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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh](j)}(h4``struct mempool *pool`` pointer to the memory pool h](j)}(h``struct mempool *pool``h]jS)}(hjh]hstruct mempool *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hjȣhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjģhMhjţubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjģhMhjubj)}(h=``void **elems`` partially or fully populated elements array h](j)}(h``void **elems``h]jS)}(hjh]h void **elems}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hO``unsigned int count`` number of entries in **elem** that need to be allocated h](j)}(h``unsigned int count``h]jS)}(hj!h]hunsigned int count}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api: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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh that need to be allocated}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(hK``unsigned int allocated`` number of entries in **elem** already allocated h](j)}(h``unsigned int allocated``h]jS)}(hjlh]hunsigned int allocated}(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.chMhjfubj)}(hhh]jM)}(h/number of entries in **elem** already allocatedh](hnumber of entries in }(hjhhhNhNubj)}(h**elem**h]helem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh already allocated}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubjM)}(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 }(hjϤhhhNhNubj)}(h**elem**h]helem}(hjפhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϤubh that is non-}(hjϤhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjϤubh. 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.}(hjϤhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubjM)}(h@On return all **count** elements in **elems** will be populated.h](hOn return all }(hjhhhNhNubj)}(h **count**h]hcount}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh elements in }(hjhhhNhNubj)}(h **elems**h]helems}(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)}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(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.}(hjMhhhNhNubah}(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}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjxhhhjhMubh)}(h mempool_alloch]j)}(h mempool_alloch]h mempool_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjxhhhjhMubj )}(h&(struct mempool *pool, gfp_t gfp_mask)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_allocasbuh1hhj¥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)}(hpoolh]hpool}(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&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj=modnameN classnameNjpjs)}jv]jc.mempool_allocasbuh1hhj4ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hgfp_maskh]hgfp_mask}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjxhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjthhhjhMubah}(h]joah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjqhhubj4)}(hhh]jM)}(h&allocate an element from a memory poolh]h&allocate an element from a memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjqhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh](j)}(h4``struct mempool *pool`` pointer to the memory pool h](j)}(h``struct mempool *pool``h]jS)}(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.chMhj̦ubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj̦ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjɦubj)}(hB``gfp_t gfp_mask`` GFP_* flags. ``__GFP_ZERO`` is not supported. h](j)}(h``gfp_t gfp_mask``h]jS)}(hj h]hgfp_t gfp_mask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(h.GFP_* flags. ``__GFP_ZERO`` is not supported.h](hGFP_* flags. }(hj$hhhNhNubjS)}(h``__GFP_ZERO``h]h __GFP_ZERO}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubh is not supported.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjɦ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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubjM)}(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 }(hjnhhhNhNubj)}(h**pool**h]hpool}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh. 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.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubjM)}(hxThis function only sleeps if the alloc_fn callback sleeps, or when waiting for elements to become available in the pool.h]hxThis function only sleeps if the alloc_fn callback sleeps, or when waiting for elements to become available in the pool.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.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:91: ./mm/mempool.chM#hjubjM)}(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 }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhO when failing to allocate an element. Allocation failure can only happen when }(hjhhhNhNubj)}(h **gfp_mask**h]hgfp_mask}(hjЧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh does not include }(hjhhhNhNubjS)}(h``__GFP_DIRECT_RECLAIM``h]h__GFP_DIRECT_RECLAIM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM$hjubeh}(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 }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hMQubjF )}(hjI h]h*}(hj8hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj)hMQubh)}(hmempool_alloc_preallocatedh]j)}(hmempool_alloc_preallocatedh]hmempool_alloc_preallocated}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj)hMQubj )}(h(struct mempool *pool)h]j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hjehhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j)}(hmempoolh]hmempool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljKsbc.mempool_alloc_preallocatedasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjaubj)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhj)hMQubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj)hMQubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj)hMQhjhhubj4)}(hhh]jM)}(hIallocate an element from preallocated elements belonging to a memory poolh]hIallocate an element from preallocated elements belonging to a memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMQhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj)hMQubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjhNhNubj)}(hX**Parameters** ``struct mempool *pool`` pointer to the memory pool **Description** This function is similar to mempool_alloc(), but it only attempts allocating an element from the preallocated elements. It only takes a single spinlock_t and immediately returns if no preallocated elements are available. **Return** pointer to the allocated element or ``NULL`` if no elements are available.h](jM)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]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)}(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.chMShj#ubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hMShj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMShj ubah}(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: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.}(hjzhhhNhNubah}(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}(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.chMXhjubjM)}(hJpointer to the allocated element or ``NULL`` if no elements are available.h](h$pointer to the allocated element or }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if no elements are available.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjީhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjީhhhjhMfubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjީhhhjhMfubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjީhhhjhMfubh)}(hmempool_free_bulkh]j)}(hmempool_free_bulkh]hmempool_free_bulk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjީhhhjhMfubj )}(h8(struct mempool *pool, void **elems, unsigned int count)h](j )}(hstruct mempool *poolh](j5)}(hj8h]hstruct}(hj;hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(hmempoolh]hmempool}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj[modnameN classnameNjpjs)}jv]jy)}jlj!sbc.mempool_free_bulkasbuh1hhj7ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj7ubj)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubj )}(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*}(hjɪhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubjF )}(hjI h]h*}(hj֪hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(helemsh]helems}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubj )}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcounth]hcount}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubeh}(h]h ]h"]h$]h&]jjuh1j hjީhhhjhMfubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjکhhhjhMfubah}(h]jթah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMfhjשhhubj4)}(hhh]jM)}(hreturn elements to a mempoolh]hreturn elements to a mempool}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMfhj[hhubah}(h]h ]h"]h$]h&]uh1j3hjשhhhjhMfubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjvjHjvjIjJjKuh1hhhhjhNhNubj)}(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&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMjhjzubj)}(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.chMghjubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMghjubj)}(h$``void **elems`` elements to return h](j)}(h``void **elems``h]jS)}(hjثh]h void **elems}(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.chMhhjҫubj)}(hhh]jM)}(helements to returnh]helements to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjҫubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubj)}(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.chMihj ubj)}(hhh]jM)}(hnumber of elements to returnh]hnumber of elements to return}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&hMihj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMihjubeh}(h]h ]h"]h$]h&]uh1jhjzubjM)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMkhjzubjM)}(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 }(hjbhhhNhNubj)}(h**elem**h]helem}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh to }(hjbhhhNhNubj)}(h**pool**h]hpool}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh if }(hjbhhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh, needs replenishing and sets their slots in }(hjbhhhNhNubj)}(h**elem**h]helem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh& to NULL. Other elements are left in }(hjbhhhNhNubj)}(h**elem**h]helem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMjhjzubjM)}(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.chMnhjzubjM)}(hnumber of elements transferred to **pool**. Elements are always transferred from the beginning of **elem**, so the return value can be used as an offset into **elem** for the freeing the remaining elements in the caller.h](h"number of elements transferred to }(hjhhhNhNubj)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh9. Elements are always transferred from the beginning of }(hjhhhNhNubj)}(h**elem**h]helem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh4, so the return value can be used as an offset into }(hjhhhNhNubj)}(h**elem**h]helem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh6 for the freeing the remaining elements in the caller.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMohjzubeh}(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}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjVhMubh)}(h mempool_freeh]j)}(h mempool_freeh]h mempool_free}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1hhjDhhhjVhMubj )}(h%(void *element, struct mempool *pool)h](j )}(h void *elementh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(helementh]helement}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}ubj )}(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)}jljksbc.mempool_freeasbuh1hhjí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)}(hpoolh]hpool}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjíubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}ubeh}(h]h ]h"]h$]h&]jjuh1j hjDhhhjVhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj@hhhjVhMubah}(h]j;ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjVhMhj=hhubj4)}(hhh]jM)}(hreturn an element to the pool.h]hreturn an element to the pool.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjGhhubah}(h]h ]h"]h$]h&]uh1j3hj=hhhjVhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjbjHjbjIjJjKuh1hhhhjhNhNubj)}(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)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjfubj)}(hhh](j)}(h$``void *element`` element to return h](j)}(h``void *element``h]jS)}(hjh]h void *element}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(helement to returnh]helement to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``struct mempool *pool`` pointer to the memory pool h](j)}(h``struct mempool *pool``h]jS)}(hjĮh]hstruct mempool *pool}(hjƮhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj®ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]jM)}(hpointer to the memory poolh]hpointer to the memory pool}(hjݮhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjٮhMhjڮubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjٮhMhjubeh}(h]h ]h"]h$]h&]uh1jhjfubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjfubjM)}(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}(hjAhhhNhNubah}(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.chMhjfubjM)}(h9This function only sleeps if the free_fn callback sleeps.h]h9This function only sleeps if the free_fn callback sleeps.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjfubeh}(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}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhhhhhK_ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"zap_special_vma_range (C function)c.zap_special_vma_rangehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hbvoid zap_special_vma_range (struct vm_area_struct *vma, unsigned long address, unsigned long size)h]h)}(havoid zap_special_vma_range(struct vm_area_struct *vma, unsigned long address, unsigned long size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hzap_special_vma_rangeh]j)}(hzap_special_vma_rangeh]hzap_special_vma_range}(hjïhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hG(struct vm_area_struct *vma, unsigned long address, unsigned long size)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)}jljůsbc.zap_special_vma_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)}(hvmah]hvma}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۯubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjׯubj )}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hlongh]hlong}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(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)}(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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hXj**Parameters** ``struct vm_area_struct *vma`` the vma covering the range to zap ``unsigned long address`` starting address of the range to zap ``unsigned long size`` number of bytes to zap **Description** This function does nothing when the provided address range is not fully contained in **vma**, or when the **vma** is not VM_PFNMAP or VM_MIXEDMAP.h](jM)}(h**Parameters**h]j)}(hj&h]h Parameters}(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.chMhj ubj)}(hhh](j)}(hA``struct vm_area_struct *vma`` the vma covering the range to zap h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjEh]hstruct vm_area_struct *vma}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCubah}(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}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubj)}(h?``unsigned long address`` starting address of the range to zap h](j)}(h``unsigned long address``h]jS)}(hj~h]hunsigned long address}(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.chMhjxubj)}(hhh]jM)}(h$starting address of the range to zaph]h$starting address of the range to zap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhj<ubj)}(h.``unsigned long size`` number of bytes to zap 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.chMhjubj)}(hhh]jM)}(hnumber of bytes to zaph]hnumber of bytes to zap}(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&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj ubjM)}(hThis function does nothing when the provided address range is not fully contained in **vma**, or when the **vma** is not VM_PFNMAP or VM_MIXEDMAP.h](hUThis function does nothing when the provided address range is not fully contained in }(hjhhhNhNubj)}(h**vma**h]hvma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, or when the }(hjhhhNhNubj)}(h**vma**h]hvma}(hj"hhhNhNubah}(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.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_insert_pages (C function)c.vm_insert_pageshNtauh1hhjxhhhNhNubh)}(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}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhjihM ubh)}(hvm_insert_pagesh]j)}(hvm_insert_pagesh]hvm_insert_pages}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1hhjWhhhjihM ubj )}(hY(struct vm_area_struct *vma, unsigned long addr, struct page **pages, unsigned long *num)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj~sbc.vm_insert_pagesasbuh1hhjubj)}(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}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjBhhhNhNubah}(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&]uh1j4hjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j)}(hpageh]hpage}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj{modnameN classnameNjpjs)}jv]jҲc.vm_insert_pagesasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjWubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjWubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long *numh](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ԳubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjԳubj)}(hnumh]hnum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԳubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjWhhhjihM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjShhhjihM ubah}(h]jNah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjihM hjPhhubj4)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjDhhubah}(h]h ]h"]h$]h&]uh1j3hjPhhhjihM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj_jHj_jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjih]h Parameters}(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.chM hjcubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h@``unsigned long addr`` target start user address of these pages h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjôhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(h(target start user address of these pagesh]h(target start user address of these pages}(hjڴhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjִhM hj״ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjִhM hjubj)}(h,``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)}(hj3h]hunsigned long *num}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj1ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj-ubj)}(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 }(hjLhhhNhNubj_)}(h*not*h]hnot}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j^hjLubh6 mapped. (0 means all pages were successfully mapped).}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhM 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&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjcubjM)}(h>Preferred over vm_insert_page() when inserting multiple pages.h]h>Preferred over vm_insert_page() when inserting multiple pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjcubjM)}(hIn case of error, we may have mapped a subset of the provided pages. It is the caller's responsibility to account for this case.h]hIn case of error, we may have mapped a subset of the provided pages. It is the caller’s responsibility to account for this case.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjcubjM)}(h3The same restrictions apply as in vm_insert_page().h]h3The same restrictions apply as in vm_insert_page().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_insert_page (C function)c.vm_insert_pagehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hVint vm_insert_page (struct vm_area_struct *vma, unsigned long addr, struct page *page)h]h)}(hUint vm_insert_page(struct vm_area_struct *vma, unsigned long addr, struct page *page)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hvm_insert_pageh]j)}(hvm_insert_pageh]hvm_insert_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(hC(struct vm_area_struct *vma, unsigned long addr, struct page *page)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj!hhhNhNubah}(h]h ]jAah"]h$]h&]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 reftargetjAmodnameN classnameNjpjs)}jv]jy)}jljsbc.vm_insert_pageasbuh1hhjubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjmhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hj˶hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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.vm_insert_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}(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'hjܵhhhjhM ubah}(h]j׵ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjٵhhubj4)}(hhh]jM)}(h insert single page into user vmah]h insert single page into user vma}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjbhhubah}(h]h ]h"]h$]h&]uh1j3hjٵhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj}jHj}jIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``unsigned long addr`` target user address of this page ``struct page *page`` source kernel page **Description** This allows drivers to insert individual pages they've allocated into a user vma. The zeropage is supported in some VMAs, see vm_mixed_zeropage_allowed(). The page has to be a nice clean _individual_ kernel allocation. If you allocate a compound page, you need to have marked it as such (__GFP_COMP), or manually just split the page up yourself (see split_page()). NOTE! Traditionally this was done with "remap_pfn_range()" which took an arbitrary page protection parameter. This doesn't allow that. Your vma protection will have to be set up correctly, which means that if you want a shared writable mapping, you'd better ask for a shared writable mapping! The page does not need to be reserved. Usually this function is called from f_op->mmap() handler under mm->mmap_lock write-lock, so it can change vma->vm_flags. Caller must set VM_MIXEDMAP on vma if it wants to call this function from other places, for example from page-fault handler. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(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)}(hj߷h]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjݷubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjٷubj)}(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&]uh1jhjٷubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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}(hj1hhhNhNubah}(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)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.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().}(hjihhhNhNubah}(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()).}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hX$NOTE! Traditionally this was done with "remap_pfn_range()" which took an arbitrary page protection parameter. This doesn't allow that. Your vma protection will have to be set up correctly, which means that if you want a shared writable mapping, you'd better ask for a shared writable mapping!h]hX,NOTE! Traditionally this was done with “remap_pfn_range()” which took an arbitrary page protection parameter. This doesn’t allow that. Your vma protection will have to be set up correctly, which means that if you want a shared writable mapping, you’d better ask for a shared writable mapping!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h&The page does not need to be reserved.h]h&The page does not need to be reserved.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hUsually this function is called from f_op->mmap() handler under mm->mmap_lock write-lock, so it can change vma->vm_flags. Caller must set VM_MIXEDMAP on vma if it wants to call this function from other places, for example from page-fault handler.h]hUsually this function is called from f_op->mmap() handler under mm->mmap_lock write-lock, so it can change vma->vm_flags. Caller must set VM_MIXEDMAP on vma if it wants to call this function from other places, for example from page-fault handler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjиhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj̸ubh+ on success, negative error code otherwise.}(hj̸hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_map_pages (C function)c.vm_map_pageshNtauh1hhjxhhhNhNubh)}(hhh](h)}(hUint vm_map_pages (struct vm_area_struct *vma, struct page **pages, unsigned long num)h]h)}(hTint vm_map_pages(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMB ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMB ubh)}(h vm_map_pagesh]j)}(h vm_map_pagesh]h vm_map_pages}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMB ubj )}(hD(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjFhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjfmodnameN classnameNjpjs)}jv]jy)}jlj,sbc.vm_map_pagesasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjBubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubj )}(hstruct page **pagesh](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]jc.vm_map_pagesasbuh1hhjubj)}(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)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubj )}(hunsigned long numh](j)}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hlongh]hlong}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hnumh]hnum}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMB ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMB ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMB hjhhubj4)}(hhh]jM)}(h6maps range of kernel pages starts with non zero offseth]h6maps range of kernel pages starts with non zero offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMB hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMB ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMF 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.chMC hjҺubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMC hjubah}(h]h ]h"]h$]h&]uh1jhjҺubeh}(h]h ]h"]h$]h&]uh1jhjhMC hjϺubj)}(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.chMD hj ubj)}(hhh]jM)}(h'pointer to array of source kernel pagesh]h'pointer to array of source kernel pages}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&hMD hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMD hjϺubj)}(h4``unsigned long num`` number of pages in page array h](j)}(h``unsigned long num``h]jS)}(hjJh]hunsigned long num}(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.chME hjDubj)}(hhh]jM)}(hnumber of pages in page arrayh]hnumber of pages in page array}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hME hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hME 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.chMG hjubjM)}(hVMaps an object consisting of **num** pages, catering for the user's requested vm_pgoffh](hMaps an object consisting of }(hjhhhNhNubj)}(h**num**h]hnum}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh4 pages, catering for the user’s requested vm_pgoff}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMF hjubjM)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMI hjubjM)}(h **Context**h]j)}(hjͻh]hContext}(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.chMO hjubjM)}(h)Process context. Called by mmap handlers.h]h)Process context. Called by mmap handlers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMP 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.chMR hjubjM)}(h&0 on success and error code otherwise.h]h&0 on success and error code otherwise.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMQ hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_map_pages_zero (C function)c.vm_map_pages_zerohNtauh1hhjxhhhNhNubh)}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM[ ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhjGhM[ ubh)}(hvm_map_pages_zeroh]j)}(hvm_map_pages_zeroh]hvm_map_pages_zero}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1hhj5hhhjGhM[ ubj )}(hD(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjvhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj\sbc.vm_map_pages_zeroasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjF )}(hjI h]h*}(hj¼hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjrubj)}(hvmah]hvma}(hjϼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjnubj )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.vm_map_pages_zeroasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj2hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubjF )}(hjI h]h*}(hj?hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpagesh]hpages}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjnubj )}(hunsigned long numh](j)}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hnumh]hnum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjnubeh}(h]h ]h"]h$]h&]jjuh1j hj5hhhjGhM[ ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj1hhhjGhM[ ubah}(h]j,ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjGhM[ 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.chM[ hjĽhhubah}(h]h ]h"]h$]h&]uh1j3hj.hhhjGhM[ ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj߽jHj߽jIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``struct page **pages`` pointer to array of source kernel pages ``unsigned long num`` number of pages in page array **Description** Similar to vm_map_pages(), except that it explicitly sets the offset to 0. This function is intended for the drivers that did not consider vm_pgoff. **Context** Process context. Called by mmap handlers. **Return** 0 on success and error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM_ hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM\ hjubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM\ hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM\ hjubj)}(h@``struct page **pages`` pointer to array of source kernel pages h](j)}(h``struct page **pages``h]jS)}(hjAh]hstruct page **pages}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj?ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM] hj;ubj)}(hhh]jM)}(h'pointer to array of source kernel pagesh]h'pointer to array of source kernel pages}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhM] hjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhM] hjubj)}(h4``unsigned long num`` number of pages in page array h](j)}(h``unsigned long num``h]jS)}(hjzh]hunsigned long num}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM^ hjtubj)}(hhh]jM)}(hnumber of pages in page arrayh]hnumber of pages in page array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM^ hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM^ hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM` hjubjM)}(hSimilar to vm_map_pages(), except that it explicitly sets the offset to 0. This function is intended for the drivers that did not consider vm_pgoff.h]hSimilar to vm_map_pages(), except that it explicitly sets the offset to 0. This function is intended for the drivers that did not consider vm_pgoff.}(hj˾hhhNhNubah}(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)}(hjܾh]hContext}(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.chMc hjubjM)}(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.chMd hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMf hjubjM)}(h&0 on success and error code otherwise.h]h&0 on success and error code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMe hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h vmf_insert_pfn_prot (C function)c.vmf_insert_pfn_prothNtauh1hhjxhhhNhNubh)}(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}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjMmodnameN classnameNjpjs)}jv]jy)}jlvmf_insert_pfn_protsbc.vmf_insert_pfn_protasbuh1hhjDhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjlhM ubh)}(hvmf_insert_pfn_proth]j)}(hjih]hvmf_insert_pfn_prot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjDhhhjlhM ubj )}(hT(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, pgprot_t pgprot)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jgc.vmf_insert_pfn_protasbuh1hhjubj)}(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}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjBhhhNhNubah}(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&]uh1jhjWubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hlongh]hlong}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hpgprot_t pgproth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jgc.vmf_insert_pfn_protasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpgproth]hpgprot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjDhhhjlhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj@hhhjlhM ubah}(h]j;ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjlhM 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=hhhjlhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chM hj!ubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjFh]hstruct vm_area_struct *vma}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj@ubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hM hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hM hj=ubj)}(h8``unsigned long addr`` target user address of this page h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj}ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjyubj)}(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&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhM hj=ubj)}(h(``unsigned long pfn`` source kernel pfn h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(hsource kernel pfnh]hsource kernel pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj=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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj=ubeh}(h]h ]h"]h$]h&]uh1jhj!ubjM)}(h**Description**h]j)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj!ubjM)}(hlThis is exactly like vmf_insert_pfn(), except that it allows drivers to override pgprot on a per-page basis.h]hlThis is exactly like vmf_insert_pfn(), except that it allows drivers to override pgprot on a per-page basis.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj!ubjM)}(hThis only makes sense for IO mappings, and it makes no sense for COW mappings. In general, using multiple vmas is preferable; vmf_insert_pfn_prot should only be used if using multiple VMAs is impractical.h]hThis only makes sense for IO mappings, and it makes no sense for COW mappings. In general, using multiple vmas is preferable; vmf_insert_pfn_prot should only be used if using multiple VMAs is impractical.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj!ubjM)}(hpgprot typically only differs from **vma->vm_page_prot** when drivers set caching- and encryption bits different than those of **vma->vm_page_prot**, because the caching- or encryption mode may not be known at mmap() time.h](h#pgprot typically only differs from }(hj`hhhNhNubj)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubhG when drivers set caching- and encryption bits different than those of }(hj`hhhNhNubj)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubhJ, because the caching- or encryption mode may not be known at mmap() time.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj!ubjM)}(hXMThis is ok as long as **vma->vm_page_prot** is not used by the core vm to set caching and encryption bits for those vmas (except for COW pages). This is ensured by core vm only modifying these page table entries using functions that don't touch caching- or encryption bits, using pte_modify() if needed. (See for example mprotect()).h](hThis is ok as long as }(hjhhhNhNubj)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX$ is not used by the core vm to set caching and encryption bits for those vmas (except for COW pages). This is ensured by core vm only modifying these page table entries using functions that don’t touch caching- or encryption bits, using pte_modify() if needed. (See for example mprotect()).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj!ubjM)}(hAlso when new page-table entries are created, this is only done using the fault() callback, and never using the value of vma->vm_page_prot, except for page-table entries that point to anonymous pages as the result of COW.h]hAlso when new page-table entries are created, this is only done using the fault() callback, and never using the value of vma->vm_page_prot, except for page-table entries that point to anonymous pages as the result of COW.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj!ubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj!ubjM)}(h4Process context. May allocate using ``GFP_KERNEL``.h](h%Process context. May allocate using }(hjhhhNhNubjS)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj!ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj!ubjM)}(hvm_fault_t value.h]hvm_fault_t value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmf_insert_pfn (C function)c.vmf_insert_pfnhNtauh1hhjxhhhNhNubh)}(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}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjHmodnameN classnameNjpjs)}jv]jy)}jlvmf_insert_pfnsbc.vmf_insert_pfnasbuh1hhj?hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjghM ubh)}(hvmf_insert_pfnh]j)}(hjdh]hvmf_insert_pfn}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1hhj?hhhjghM ubj )}(hC(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jbc.vmf_insert_pfnasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](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)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj?hhhjghM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj;hhhjghM ubah}(h]j6ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjghM hj8hhubj4)}(hhh]jM)}(hinsert single pfn into user vmah]hinsert single pfn into user vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hj8hhhjghM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``unsigned long addr`` target user address of this page ``unsigned long pfn`` source kernel pfn **Description** Similar to vm_insert_page, this allows drivers to insert individual pages they've allocated into a user vma. Same comments apply. This function should only be called from a vm_ops->fault handler, and in that case the handler should return the result of this function. vma cannot be a COW mapping. As this is called only for pages that do not currently exist, we do not need to flush old virtual caches or the TLB. **Context** Process context. May allocate using ``GFP_KERNEL``. **Return** vm_fault_t value.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM 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)}(hj2h]hunsigned long addr}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj,ubj)}(hhh]jM)}(h target user address of this pageh]h target user address of this page}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhM hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM hjubj)}(h(``unsigned long pfn`` source kernel pfn h](j)}(h``unsigned long pfn``h]jS)}(hjkh]hunsigned long pfn}(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.chM hjeubj)}(hhh]jM)}(hsource kernel pfnh]hsource kernel pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hSimilar to vm_insert_page, this allows drivers to insert individual pages they've allocated into a user vma. Same comments apply.h]hSimilar to vm_insert_page, this allows drivers to insert individual pages they’ve allocated into a user vma. Same comments apply.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hThis function should only be called from a vm_ops->fault handler, and in that case the handler should return the result of this function.h]hThis function should only be called from a vm_ops->fault handler, and in that case the handler should return the result of this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hvma cannot be a COW mapping.h]hvma cannot be a COW mapping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(htAs this is called only for pages that do not currently exist, we do not need to flush old virtual caches or the TLB.h]htAs this is called only for pages that do not currently exist, we do not need to flush old virtual caches or the TLB.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h4Process context. May allocate using ``GFP_KERNEL``.h](h%Process context. May allocate using }(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 hjubjM)}(h **Return**h]j)}(hj3h]hReturn}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(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.}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hremap_pfn_range (C function)c.remap_pfn_rangehNtauh1hhjxhhhNhNubh)}(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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMw ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjhMw ubh)}(hremap_pfn_rangeh]j)}(hremap_pfn_rangeh]hremap_pfn_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjthhhjhMw ubj )}(hf(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.remap_pfn_rangeasbuh1hhjubj)}(h h]h }(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 )}(hunsigned long pfnh](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)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgprot_t proth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.remap_pfn_rangeasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hproth]hprot}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjthhhjhMw ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjphhhjhMw ubah}(h]jkah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMw hjmhhubj4)}(hhh]jM)}(h remap kernel memory to userspaceh]h remap kernel memory to userspace}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMw hjphhubah}(h]h ]h"]h$]h&]uh1j3hjmhhhjhMw ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``unsigned long addr`` target page aligned user address to start at ``unsigned long pfn`` page frame number of kernel physical memory address ``unsigned long size`` size of mapping area ``pgprot_t prot`` page protection flags for this mapping **Note** this is only safe if the mm semaphore is held when called. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM{ hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMx hjubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMx hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMx hjubj)}(hD``unsigned long addr`` target page aligned user address to start at h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(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.chMy hjubj)}(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&]uh1jLhjhMy hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMy hjubj)}(hJ``unsigned long pfn`` page frame number of kernel physical memory address h](j)}(h``unsigned long pfn``h]jS)}(hj&h]hunsigned long pfn}(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.chMz hj ubj)}(hhh]jM)}(h3page frame number of kernel physical memory addressh]h3page frame number of kernel physical memory address}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hMz hj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMz hjubj)}(h,``unsigned long size`` size of mapping area h](j)}(h``unsigned long size``h]jS)}(hj_h]hunsigned long size}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj]ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM{ hjYubj)}(hhh]jM)}(hsize of mapping areah]hsize of mapping area}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjthM{ hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthM{ hjubj)}(h9``pgprot_t prot`` page protection flags for this mapping h](j)}(h``pgprot_t prot``h]jS)}(hjh]h pgprot_t prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM| hjubj)}(hhh]jM)}(h&page protection flags for this mappingh]h&page protection flags for this mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM| hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM| hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM~ hjubjM)}(h:this is only safe if the mm semaphore is held when called.h]h:this is only safe if the mm semaphore is held when called.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM~ hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvm_iomap_memory (C function)c.vm_iomap_memoryhNtauh1hhjxhhhNhNubh)}(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}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhj[hM ubh)}(hvm_iomap_memoryh]j)}(hvm_iomap_memoryh]hvm_iomap_memory}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjIhhhj[hM ubj )}(hB(struct vm_area_struct *vma, phys_addr_t start, unsigned long len)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljpsbc.vm_iomap_memoryasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hphys_addr_t starth](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.vm_iomap_memoryasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long lenh](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)}(hlenh]hlen}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjIhhhj[hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjEhhhj[hM ubah}(h]j@ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj[hM hjBhhubj4)}(hhh]jM)}(hremap memory to userspaceh]hremap memory to userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjBhhhj[hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX.**Parameters** ``struct vm_area_struct *vma`` user vma to map to ``phys_addr_t start`` start of the physical memory to be mapped ``unsigned long len`` size of area **Description** This is a simplified io_remap_pfn_range() for common driver use. The driver just needs to give us the physical memory range to be mapped, we'll figure out the rest from the vma information. NOTE! Some drivers might want to tweak vma->vm_page_prot first to get whatever write-combining details or similar. **Return** ``0`` on success, negative error code otherwise.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]jM)}(huser vma to map toh]huser vma to map to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h@``phys_addr_t start`` start of the physical memory to be mapped h](j)}(h``phys_addr_t start``h]jS)}(hj h]hphys_addr_t start}(hj"hhhNhNubah}(h]h ]h"]h$]h&]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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hM hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM hjubj)}(h#``unsigned long len`` size of area h](j)}(h``unsigned long len``h]jS)}(hjYh]hunsigned long len}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjSubj)}(hhh]jM)}(h size of areah]h size of area}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjnhM hjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hThis is a simplified io_remap_pfn_range() for common driver use. The driver just needs to give us the physical memory range to be mapped, we'll figure out the rest from the vma information.h]hThis is a simplified io_remap_pfn_range() for common driver use. The driver just needs to give us the physical memory range to be mapped, we’ll figure out the rest from the vma information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(hrNOTE! Some drivers might want to tweak vma->vm_page_prot first to get whatever write-combining details or similar.h]hrNOTE! Some drivers might want to tweak vma->vm_page_prot first to get whatever write-combining details or similar.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubjM)}(h0``0`` on success, negative error code otherwise.h](jS)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h unmap_mapping_pages (C function)c.unmap_mapping_pageshNtauh1hhjxhhhNhNubh)}(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.chM,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj+hM,ubh)}(hunmap_mapping_pagesh]j)}(hunmap_mapping_pagesh]hunmap_mapping_pages}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj+hM,ubj )}(hJ(struct address_space *mapping, pgoff_t start, pgoff_t nr, bool even_cows)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjZhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j)}(h address_spaceh]h address_space}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjzmodnameN classnameNjpjs)}jv]jy)}jlj@sbc.unmap_mapping_pagesasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubj )}(h pgoff_t starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.unmap_mapping_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubj )}(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]jc.unmap_mapping_pagesasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnrh]hnr}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubj )}(hbool even_cowsh](j)}(hj)h]hbool}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h even_cowsh]h even_cows}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjRubeh}(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)}(hUnmap pages from processes.h]hUnmap pages from processes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM,hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj+hM,ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX **Parameters** ``struct address_space *mapping`` The address space containing pages to be unmapped. ``pgoff_t start`` Index of first page to be unmapped. ``pgoff_t nr`` Number of pages to be unmapped. 0 to unmap to end of file. ``bool even_cows`` Whether to unmap even private COWed pages. **Description** Unmap the pages in this address space from any userspace process which has them mmaped. Generally, you want to remove COWed pages as well when a file is being truncated, but not when invalidating pages from the page cache.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM0hjubj)}(hhh](j)}(hU``struct address_space *mapping`` The address space containing pages to be unmapped. h](j)}(h!``struct address_space *mapping``h]jS)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM-hjubj)}(hhh]jM)}(h2The address space containing pages to be unmapped.h]h2The address space containing pages to be unmapped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(h6``pgoff_t start`` Index of first page to be unmapped. h](j)}(h``pgoff_t start``h]jS)}(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.chM.hjubj)}(hhh]jM)}(h#Index of first page to be unmapped.h]h#Index of first page to be unmapped.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hM.hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM.hjubj)}(hK``pgoff_t nr`` Number of pages to be unmapped. 0 to unmap to end of file. h](j)}(h``pgoff_t nr``h]jS)}(hjTh]h pgoff_t nr}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjRubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM/hjNubj)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjihM/hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM/hjubj)}(h>``bool even_cows`` Whether to unmap even private COWed pages. h](j)}(h``bool even_cows``h]jS)}(hjh]hbool even_cows}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM0hjubj)}(hhh]jM)}(h*Whether to unmap even private COWed pages.h]h*Whether to unmap even private COWed pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM2hjubjM)}(hUnmap the pages in this address space from any userspace process which has them mmaped. Generally, you want to remove COWed pages as well when a file is being truncated, but not when invalidating pages from the page cache.h]hUnmap the pages in this address space from any userspace process which has them mmaped. Generally, you want to remove COWed pages as well when a file is being truncated, but not when invalidating pages from the page cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h unmap_mapping_range (C function)c.unmap_mapping_rangehNtauh1hhjxhhhNhNubh)}(hhh](h)}(huvoid unmap_mapping_range (struct address_space *mapping, loff_t const holebegin, loff_t const holelen, int even_cows)h]h)}(htvoid unmap_mapping_range(struct address_space *mapping, loff_t const holebegin, loff_t const holelen, int even_cows)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMKubh)}(hunmap_mapping_rangeh]j)}(hunmap_mapping_rangeh]hunmap_mapping_range}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhjhMKubj )}(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}(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}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjjmodnameN classnameNjpjs)}jv]jy)}jlj0sbc.unmap_mapping_rangeasbuh1hhjFubj)}(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 )}(hloff_t const holebeginh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.unmap_mapping_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h holebeginh]h holebegin}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjBubj )}(hloff_t const holelenh](h)}(hhh]j)}(hloff_th]hloff_t}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj$modnameN classnameNjpjs)}jv]jc.unmap_mapping_rangeasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hjh]hconst}(hjNhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hholelenh]hholelen}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjBubj )}(h int even_cowsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h even_cowsh]h even_cows}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjBubeh}(h]h ]h"]h$]h&]jjuh1j hj hhhjhMKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMKhjhhubj4)}(hhh]jM)}(hunmap the portion of all mmaps in the specified address_space corresponding to the specified byte range in the underlying file.h]hunmap the portion of all mmaps in the specified address_space corresponding to the specified byte range in the underlying file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` the address space containing mmaps to be unmapped. ``loff_t const holebegin`` byte in first page to unmap, relative to the start of the underlying file. This will be rounded down to a PAGE_SIZE boundary. Note that this is different from truncate_pagecache(), which must keep the partial page. In contrast, we must get rid of partial pages. ``loff_t const holelen`` size of prospective hole in bytes. This will be rounded up to a PAGE_SIZE boundary. A holelen of zero truncates to the end of the file. ``int even_cows`` 1 when truncating a file, unmap even private COWed pages; but 0 when invalidating pagecache, don't throw away private data.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMOhjubj)}(hhh](j)}(hU``struct address_space *mapping`` the address space containing mmaps to be unmapped. h](j)}(h!``struct address_space *mapping``h]jS)}(hj h]hstruct address_space *mapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMOhjubj)}(hhh]jM)}(h2the address space containing mmaps to be unmapped.h]h2the address space containing mmaps to be unmapped.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubj)}(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)}(hjBh]hloff_t const holebegin}(hjDhhhNhNubah}(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.chMThj<ubj)}(hhh]jM)}(hXbyte in first page to unmap, relative to the start of the underlying file. This will be rounded down to a PAGE_SIZE boundary. Note that this is different from truncate_pagecache(), which must keep the partial page. In contrast, we must get rid of partial pages.h]hXbyte in first page to unmap, relative to the start of the underlying file. This will be rounded down to a PAGE_SIZE boundary. Note that this is different from truncate_pagecache(), which must keep the partial page. In contrast, we must get rid of partial pages.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMPhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMThjubj)}(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)}(hj|h]hloff_t const holelen}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMWhjvubj)}(hhh]jM)}(hsize of prospective hole in bytes. This will be rounded up to a PAGE_SIZE boundary. A holelen of zero truncates to the end of the file.h]hsize of prospective hole in bytes. This will be rounded up to a PAGE_SIZE boundary. A holelen of zero truncates to the end of the file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMUhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjubj)}(h``int even_cows`` 1 when truncating a file, unmap even private COWed pages; but 0 when invalidating pagecache, don't throw away private data.h](j)}(h``int even_cows``h]jS)}(hjh]h int even_cows}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMXhjubj)}(hhh]jM)}(h{1 when truncating a file, unmap even private COWed pages; but 0 when invalidating pagecache, don't throw away private data.h]h}1 when truncating a file, unmap even private COWed pages; but 0 when invalidating pagecache, don’t throw away private data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMXhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h follow_pfnmap_start (C function)c.follow_pfnmap_starthNtauh1hhjxhhhNhNubh)}(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&]uh1jhj hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubh)}(hfollow_pfnmap_starth]j)}(hfollow_pfnmap_starth]hfollow_pfnmap_start}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhjhMubj )}(h!(struct follow_pfnmap_args *args)h]j )}(hstruct follow_pfnmap_args *argsh](j5)}(hj8h]hstruct}(hjLhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjHubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]j)}(hfollow_pfnmap_argsh]hfollow_pfnmap_args}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlmodnameN classnameNjpjs)}jv]jy)}jlj2sbc.follow_pfnmap_startasbuh1hhjHubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjHubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubah}(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/Look up a pfn mapping at a user virtual addressh]h/Look up a pfn mapping at a user virtual address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.chMhj ubj)}(hhh]jM)}(h(Pointer to struct **follow_pfnmap_args**h](hPointer to struct }(hj)hhhNhNubj)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jLhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubah}(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&]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.}(hjohhhNhNubah}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(hXtDuring the start() and end() calls, the results in **args** will be valid as proper locks will be held. After the end() is called, all the fields in **follow_pfnmap_args** will be invalid to be further accessed. Further use of such information after end() may require proper synchronizations by the caller with page table updates, otherwise it can create a security bug.h](h3During the start() and end() calls, the results in }(hjhhhNhNubj)}(h**args**h]hargs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh[ will be valid as proper locks will be held. After the end() is called, all the fields in }(hjhhhNhNubj)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh will be invalid to be further accessed. Further use of such information after end() may require proper synchronizations by the caller with page table updates, otherwise it can create a security bug.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(hIf the PTE maps a refcounted page, callers are responsible to protect against invalidation with MMU notifiers; otherwise access to the PFN at a later point in time can trigger use-after-free.h]hIf the PTE maps a refcounted page, callers are responsible to protect against invalidation with MMU notifiers; otherwise access to the PFN at a later point in time can trigger use-after-free.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(hOnly IO mappings and raw PFN mappings are allowed. The mmap semaphore should be taken for read, and the mmap semaphore cannot be released before the end() is invoked.h]hOnly IO mappings and raw PFN mappings are allowed. The mmap semaphore should be taken for read, and the mmap semaphore cannot be released before the end() is invoked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(h5This function must not be used to modify PTE content.h]h5This function must not be used to modify PTE content.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubjM)}(h **Return**h]j)}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfollow_pfnmap_end (C function)c.follow_pfnmap_endhNtauh1hhjxhhhNhNubh)}(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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMJubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjBhMJubh)}(hfollow_pfnmap_endh]j)}(hfollow_pfnmap_endh]hfollow_pfnmap_end}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1hhj0hhhjBhMJubj )}(h!(struct follow_pfnmap_args *args)h]j )}(hstruct follow_pfnmap_args *argsh](j5)}(hj8h]hstruct}(hjqhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(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)}jljWsbc.follow_pfnmap_endasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjmubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjiubah}(h]h ]h"]h$]h&]jjuh1j hj0hhhjBhMJubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj,hhhjBhMJubah}(h]j'ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjBhMJhj)hhubj4)}(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.chMJhjhhubah}(h]h ]h"]h$]h&]uh1j3hj)hhhjBhMJubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjxhNhNubj)}(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.chMNhjubj)}(hhh]j)}(hM``struct follow_pfnmap_args *args`` Pointer to struct **follow_pfnmap_args** h](j)}(h#``struct follow_pfnmap_args *args``h]jS)}(hj5h]hstruct follow_pfnmap_args *args}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMKhj/ubj)}(hhh]jM)}(h(Pointer to struct **follow_pfnmap_args**h](hPointer to struct }(hjNhhhNhNubj)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jLhjJhMKhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMKhj,ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMMhjubjM)}(hdMust be used in pair of follow_pfnmap_start(). See the start() function above for more information.h]hdMust be used in pair of follow_pfnmap_start(). See the start() function above for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMLhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h generic_access_phys (C function)c.generic_access_physhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hgint generic_access_phys (struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write)h]h)}(hfint generic_access_phys(struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM[ubh)}(hgeneric_access_physh]j)}(hgeneric_access_physh]hgeneric_access_phys}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM[ubj )}(hO(struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write)h](j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljsbc.generic_access_physasbuh1hhjubj)}(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 hjubj )}(hunsigned long addrh](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)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h void *bufh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint lenh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlenh]hlen}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int writeh](j)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hwriteh]hwrite}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM[ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM[ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM[hjhhubj4)}(hhh]jM)}(h,generic implementation for iomem mmap accessh]h,generic implementation for iomem mmap access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM[hj}hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM[ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct vm_area_struct *vma`` the vma to access ``unsigned long addr`` userspace address, not relative offset within **vma** ``void *buf`` buffer to read/write ``int len`` length of transfer ``int write`` set to FOLL_WRITE when writing, otherwise reading **Description** This is a generic implementation for :c:type:`vm_operations_struct.access ` for an iomem mapping. This callback is used by access_process_vm() when the **vma** is not page based.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM_hjubj)}(hhh](j)}(h1``struct vm_area_struct *vma`` the vma to access h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM\hjubj)}(hhh]jM)}(hthe vma to accessh]hthe vma to access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjubj)}(hM``unsigned long addr`` userspace address, not relative offset within **vma** h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM]hjubj)}(hhh]jM)}(h5userspace address, not relative offset within **vma**h](h.userspace address, not relative offset within }(hjhhhNhNubj)}(h**vma**h]hvma}(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]hjubj)}(h#``void *buf`` buffer to read/write h](j)}(h ``void *buf``h]jS)}(hjAh]h void *buf}(hjChhhNhNubah}(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)}(hbuffer to read/writeh]hbuffer to read/write}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVhM^hjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhM^hjubj)}(h``int len`` length of transfer h](j)}(h ``int len``h]jS)}(hjzh]hint len}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM_hjtubj)}(hhh]jM)}(hlength of transferh]hlength of transfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjubj)}(h@``int write`` set to FOLL_WRITE when writing, otherwise reading h](j)}(h ``int write``h]jS)}(hjh]h int write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM`hjubj)}(hhh]jM)}(h1set to FOLL_WRITE when writing, otherwise readingh]h1set to FOLL_WRITE when writing, otherwise reading}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMbhjubjM)}(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&]uh1jRhj ubah}(h]h ]h"]h$]h&]refdocjE refdomainjAreftypetype refexplicitrefwarnjpjKjNvm_operations_structuh1hhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMahjubhM for an iomem mapping. This callback is used by access_process_vm() when the }(hjhhhNhNubj)}(h**vma**h]hvma}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not page based.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj+hMahjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcopy_remote_vm_str (C function)c.copy_remote_vm_strhNtauh1hhjxhhhNhNubh)}(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}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjvhMfubh)}(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&]jjuh1hhjdhhhjvhMfubj )}(hY(struct task_struct *tsk, unsigned long addr, void *buf, int len, unsigned int gup_flags)h](j )}(hstruct task_struct *tskh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.copy_remote_vm_strasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(htskh]htsk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h void *bufh](j)}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjdubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint lenh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int gup_flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h gup_flagsh]h gup_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjdhhhjvhMfubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj`hhhjvhMfubah}(h]j[ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjvhMfhj]hhubj4)}(hhh]jM)}(h3copy a string from another process's address space.h]h5copy a string from another process’s address space.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMfhj>hhubah}(h]h ]h"]h$]h&]uh1j3hj]hhhjvhMfubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjYjHjYjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMjhj]ubj)}(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.chMghj|ubj)}(hhh]jM)}(h$the task of the target address spaceh]h$the task of the target address space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMghjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMghjyubj)}(h2``unsigned long addr`` start address to read from h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhhjubj)}(hhh]jM)}(hstart address to read fromh]hstart address to read from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjyubj)}(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.chMihjubj)}(hhh]jM)}(hdestination bufferh]hdestination buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMihj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMihjyubj)}(h$``int len`` number of bytes to copy h](j)}(h ``int len``h]jS)}(hj-h]hint len}(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.chMjhj'ubj)}(hhh]jM)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhMjhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMjhjyubj)}(h<``unsigned int gup_flags`` flags modifying lookup behaviour h](j)}(h``unsigned int gup_flags``h]jS)}(hjfh]hunsigned int gup_flags}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMkhj`ubj)}(hhh]jM)}(h flags modifying lookup behaviourh]h flags modifying lookup behaviour}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj{hMkhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMkhjyubeh}(h]h ]h"]h$]h&]uh1jhj]ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMmhj]ubjM)}(h+The caller must hold a reference on **mm**.h](h$The caller must hold a reference on }(hjhhhNhNubj)}(h**mm**h]hmm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMlhj]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.chMnhj]ubjM)}(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}(hj hhhNhNubah}(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.chMohj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&__get_pfnblock_flags_mask (C function)c.__get_pfnblock_flags_maskhNtauh1hhjxhhhNhNubh)}(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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMpubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhMpubj)}(hlongh]hlong}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhMpubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhMpubh)}(h__get_pfnblock_flags_maskh]j)}(h__get_pfnblock_flags_maskh]h__get_pfnblock_flags_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj?hhhjQhMpubj )}(h@(const struct page *page, unsigned long pfn, unsigned long mask)h](j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.__get_pfnblock_flags_maskasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjhhhNhNubah}(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&]uh1jhj%ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hlongh]hlong}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hpfnh]hpfn}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long maskh](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)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj?hhhjQhMpubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj;hhhjQhMpubah}(h]j6ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjQhMphj8hhubj4)}(hhh]jM)}(hKReturn the requested group of flags for a pageblock_nr_pages block of pagesh]hKReturn the requested group of flags for a pageblock_nr_pages block of pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMphjhhubah}(h]h ]h"]h$]h&]uh1j3hj8hhhjQhMpubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2hMrhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMrhjubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]jS)}(hjVh]hunsigned long pfn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjTubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMshjPubj)}(hhh]jM)}(hThe target page frame numberh]hThe target page frame number}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjkhMshjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMshjubj)}(hE``unsigned long mask`` mask of bits that the caller is interested in h](j)}(h``unsigned long mask``h]jS)}(hjh]hunsigned long mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMthjubj)}(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&]uh1jLhjhMthjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMthjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMvhjubjM)}(hpageblock_bits flagsh]hpageblock_bits flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMvhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_pfnblock_bit (C function)c.get_pfnblock_bithNtauh1hhjxhhhNhNubh)}(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&]uh1jhj hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubh)}(hget_pfnblock_bith]j)}(hget_pfnblock_bith]hget_pfnblock_bit}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhjhMubj )}(hH(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjKhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj5)}(hj8h]hstruct}(hjfhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjGubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj1sbc.get_pfnblock_bitasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjGubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCubj )}(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 hjCubj )}(henum pageblock_bits pb_bith](j5)}(henumh]henum}(hj)hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj%ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hhh]j)}(hpageblock_bitsh]hpageblock_bits}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjJmodnameN classnameNjpjs)}jv]jc.get_pfnblock_bitasbuh1hhj%ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hpb_bith]hpb_bit}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjCubeh}(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/Check if a standalone bit of a pageblock is seth]h/Check if a standalone bit of a pageblock is set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(h**Parameters** ``const struct page *page`` The page within the block of interest ``unsigned long pfn`` The target page frame number ``enum pageblock_bits pb_bit`` pageblock bit to check **Return** true if the bit is set, otherwise falseh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(hB``const struct page *page`` The page within the block of interest h](j)}(h``const struct page *page``h]jS)}(hjh]hconst struct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h%The page within the block of interesth]h%The page within the block of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]jS)}(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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjubj)}(h6``enum pageblock_bits pb_bit`` pageblock bit to check h](j)}(h``enum pageblock_bits pb_bit``h]jS)}(hjQh]henum pageblock_bits pb_bit}(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)}(hpageblock bit to checkh]hpageblock bit to check}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h'true if the bit is set, otherwise falseh]h'true if the bit is set, otherwise false}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%get_pfnblock_migratetype (C function)c.get_pfnblock_migratetypehNtauh1hhjxhhhNhNubh)}(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)}(hj+h]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(h migratetypeh]h migratetype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlget_pfnblock_migratetypesbc.get_pfnblock_migratetypeasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hget_pfnblock_migratetypeh]j)}(hjh]hget_pfnblock_migratetype}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h,(const struct page *page, unsigned long pfn)h](j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hj>hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj5)}(hj8h]hstruct}(hjYhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(hpageh]hpage}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjymodnameN classnameNjpjs)}jv]j c.get_pfnblock_migratetypeasbuh1hhj: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 hj6ubj )}(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 hj6ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h%Return the migratetype of a pageblockh]h%Return the migratetype 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&]jFjAjGjCjHjCjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjGubj)}(hhh](j)}(hB``const struct page *page`` The page within the block of interest h](j)}(h``const struct page *page``h]jS)}(hjlh]hconst struct page *page}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjfubj)}(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&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(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&]uh1jhjhMhjcubeh}(h]h ]h"]h$]h&]uh1jhjGubjM)}(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.chMhjGubjM)}(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.chMhjGubjM)}(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.chMhjGubjM)}(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}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**pfn**h]hpfn}(hj7hhhNhNubah}(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.chMhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&__set_pfnblock_flags_mask (C function)c.__set_pfnblock_flags_maskhNtauh1hhjxhhhNhNubh)}(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}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhj~hMubh)}(h__set_pfnblock_flags_maskh]j)}(h__set_pfnblock_flags_maskh]h__set_pfnblock_flags_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjlhhhj~hMubj )}(hO(struct page *page, unsigned long pfn, unsigned long flags, unsigned long mask)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.__set_pfnblock_flags_maskasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long maskh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjlhhhj~hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhhj~hMubah}(h]jcah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj~hMhjehhubj4)}(hhh]jM)}(hHSet the requested group of flags for a pageblock_nr_pages block of pagesh]hHSet the requested group of flags for a pageblock_nr_pages block of pages}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj hhubah}(h]h ]h"]h$]h&]uh1j3hjehhhj~hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj;jHj;jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj?ubj)}(hhh](j)}(h<``struct page *page`` The page within the block of interest h](j)}(h``struct page *page``h]jS)}(hjdh]hstruct page *page}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjbubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj^ubj)}(hhh]jM)}(h%The page within the block of interesth]h%The page within the block of interest}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj[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)}(h)``unsigned long flags`` The flags to set h](j)}(h``unsigned long flags``h]jS)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hThe flags to seth]hThe flags to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj[ubj)}(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&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj ubj)}(hhh]jM)}(h-mask of bits that the caller is interested inh]h-mask of bits that the caller is interested in}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhj[ubeh}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hset_pfnblock_bit (C function)c.set_pfnblock_bithNtauh1hhjxhhhNhNubh)}(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}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjwhMubh)}(hset_pfnblock_bith]j)}(hset_pfnblock_bith]hset_pfnblock_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjehhhjwhMubj )}(hH(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.set_pfnblock_bitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hpfnh]hpfn}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum pageblock_bits pb_bith](j5)}(hj+h]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageblock_bitsh]hpageblock_bits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.set_pfnblock_bitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpb_bith]hpb_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjehhhjwhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjahhhjwhMubah}(h]j\ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjwhMhj^hhubj4)}(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&]uh1j3hj^hhhjwhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj9h]hconst struct page *page}(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)}(h%The page within the block of interesth]h%The page within the block of interest}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhMhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj0ubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]jS)}(hjrh]hunsigned long pfn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjlubj)}(hhh]jM)}(hThe target page frame numberh]hThe target page frame number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMhj0ubj)}(h3``enum pageblock_bits pb_bit`` pageblock bit to seth](j)}(h``enum pageblock_bits pb_bit``h]jS)}(hjh]henum pageblock_bits pb_bit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hpageblock bit to seth]hpageblock bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj0ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_pfnblock_bit (C function)c.clear_pfnblock_bithNtauh1hhjxhhhNhNubh)}(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}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(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}(hjBhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj5)}(hj8h]hstruct}(hj]hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj>ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]j)}(hpageh]hpage}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jy)}jlj(sbc.clear_pfnblock_bitasbuh1hhj>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 )}(henum pageblock_bits pb_bith](j5)}(hj+h]henum}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageblock_bitsh]hpageblock_bits}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj@modnameN classnameNjpjs)}jv]jc.clear_pfnblock_bitasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpb_bith]hpb_bit}(hjjhhhNhNubah}(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%Clear a standalone bit of a pageblockh]h%Clear a standalone bit of a pageblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(h**Parameters** ``const struct page *page`` The page within the block of interest ``unsigned long pfn`` The target page frame number ``enum pageblock_bits pb_bit`` pageblock bit to clearh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(hB``const struct page *page`` The page within the block of interest h](j)}(h``const struct page *page``h]jS)}(hjh]hconst struct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h%The page within the block of interesth]h%The page within the block of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(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.chMhjubj)}(hhh]jM)}(hThe target page frame numberh]hThe target page frame number}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubj)}(h5``enum pageblock_bits pb_bit`` pageblock bit to clearh](j)}(h``enum pageblock_bits pb_bit``h]jS)}(hjGh]henum pageblock_bits pb_bit}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjEubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjAubj)}(hhh]jM)}(hpageblock bit to clearh]hpageblock bit to clear}(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&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&set_pageblock_migratetype (C function)c.set_pageblock_migratetypehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hPvoid set_pageblock_migratetype (struct page *page, enum migratetype migratetype)h]h)}(hOvoid set_pageblock_migratetype(struct page *page, enum migratetype migratetype)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hset_pageblock_migratetypeh]j)}(hset_pageblock_migratetypeh]hset_pageblock_migratetype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h1(struct page *page, enum migratetype migratetype)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.set_pageblock_migratetypeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj*hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum migratetype migratetypeh](j5)}(hj+h]henum}(hjPhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]j)}(h migratetypeh]h migratetype}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjpmodnameN classnameNjpjs)}jv]jc.set_pageblock_migratetypeasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h migratetypeh]h migratetype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h"Set the migratetype of a pageblockh]h"Set the migratetype of a pageblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(h**Parameters** ``struct page *page`` The page within the block of interest ``enum migratetype migratetype`` migratetype to seth](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.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&]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)}(hj>h]henum migratetype migratetype}(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.chMhj8ubj)}(hhh]jM)}(hmigratetype to seth]hmigratetype to set}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+__move_freepages_block_isolate (C function) c.__move_freepages_block_isolatehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hXbool __move_freepages_block_isolate (struct zone *zone, struct page *page, bool isolate)h]h)}(hWbool __move_freepages_block_isolate(struct zone *zone, struct page *page, bool isolate)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h__move_freepages_block_isolateh]j)}(h__move_freepages_block_isolateh]h__move_freepages_block_isolate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h4(struct zone *zone, struct page *page, bool isolate)h](j )}(hstruct zone *zoneh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hzoneh]hzone}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsb 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)}(hzoneh]hzone}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjfmodnameN classnameNjpjs)}jv]j c.__move_freepages_block_isolateasbuh1hhjBubj)}(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 hjubj )}(h bool isolateh](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hisolateh]hisolate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.chMhjubj)}(hhh](j)}(h``struct zone *zone`` the zone h](j)}(h``struct zone *zone``h]jS)}(hj<h]hstruct zone *zone}(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.chMhj6ubj)}(hhh]jM)}(hthe zoneh]hthe zone}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubj)}(h)``struct page *page`` the pageblock page h](j)}(h``struct page *page``h]jS)}(hjuh]hstruct page *page}(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.chMhjoubj)}(hhh]jM)}(hthe pageblock pageh]hthe pageblock page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhj3ubj)}(h@``bool isolate`` to isolate the given pageblock or unisolate it h](j)}(h``bool isolate``h]jS)}(hjh]h bool isolate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h.to isolate the given pageblock or unisolate ith]h.to isolate the given pageblock or unisolate it}(hjhhhNhNubah}(h]h ]h"]h$]h&]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&]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.chMhjubjM)}(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 }(hj,hhhNhNubjS)}(h``true``h]htrue}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj,ubh if pages could be moved, }(hj,hhhNhNubjS)}(h ``false``h]hfalse}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj,ubh otherwise.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM*hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$__putback_isolated_page (C function)c.__putback_isolated_pagehNtauh1hhjxhhhNhNubh)}(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&]uh1jhj{hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMO ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhjhMO ubh)}(h__putback_isolated_pageh]j)}(h__putback_isolated_pageh]h__putback_isolated_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj{hhhjhMO ubj )}(h/(struct page *page, unsigned int order, int mt)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.__putback_isolated_pageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(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 )}(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}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(horderh]horder}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint mth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hmth]hmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj{hhhjhMO ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjwhhhjhMO ubah}(h]jrah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMO hjthhubj4)}(hhh]jM)}(h/Return a now-isolated page back where we got ith]h/Return a now-isolated page back where we got it}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMO hjhhubah}(h]h ]h"]h$]h&]uh1j3hjthhhjhMO ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX?**Parameters** ``struct page *page`` Page that was isolated ``unsigned int order`` Order of the isolated page ``int mt`` The page's pageblock's migratetype **Description** This function is meant to return a page pulled from the free lists via __isolate_free_page back to the free lists they were pulled from.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMS hjubj)}(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.chMP hjubj)}(hhh]jM)}(hPage that was isolatedh]hPage that was isolated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMP hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMP hjubj)}(h2``unsigned int order`` Order of the isolated page h](j)}(h``unsigned int order``h]jS)}(hj?h]hunsigned int order}(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.chMQ hj9ubj)}(hhh]jM)}(hOrder of the isolated pageh]hOrder of the isolated page}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjThMQ hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMQ hjubj)}(h.``int mt`` The page's pageblock's migratetype h](j)}(h ``int mt``h]jS)}(hjxh]hint mt}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjvubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMR hjrubj)}(hhh]jM)}(h"The page's pageblock's migratetypeh]h&The page’s pageblock’s migratetype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMR hjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMR hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMT hjubjM)}(hThis function is meant to return a page pulled from the free lists via __isolate_free_page back to the free lists they were pulled from.h]hThis function is meant to return a page pulled from the free lists via __isolate_free_page back to the free lists they were pulled from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMS hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__free_pages (C function)c.__free_pageshNtauh1hhjxhhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(hpageh]hpage}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]jy)}jljsbc.__free_pagesasbuh1hhj1ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1ubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-ubj )}(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 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(Free pages allocated with alloc_pages().h]h(Free pages allocated with alloc_pages().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj!jHj!jIjJjKuh1hhhhjxhNhNubj)}(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)}(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)}(hD``struct page *page`` The page pointer returned from alloc_pages(). h](j)}(h``struct page *page``h]jS)}(hjJh]hstruct page *page}(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)}(h-The page pointer returned from alloc_pages().h]h-The page pointer returned from alloc_pages().}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubj)}(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.chMhj}ubj)}(hhh]jM)}(hThe order of the allocation.h]hThe order of the allocation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]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)}(hThis function can free multi-page allocations that are not compound pages. It does not check that the **order** passed in matches that of the allocation, so it is easy to leak memory. Freeing more memory than was allocated will probably emit a warning.h](hgThis function can free multi-page allocations that are not compound pages. It does not check that the }(hjhhhNhNubj)}(h **order**h]horder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh passed in matches that of the allocation, so it is easy to leak memory. Freeing more memory than was allocated will probably emit a warning.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj%ubjM)}(hXIf the last reference to this page is speculative, it will be released by put_page() which only frees the first page of a non-compound allocation. To prevent the remaining pages from being leaked, we free the subsequent pages here. If you want to use the page's reference count to decide when to free the allocation, you should allocate a compound page, and use put_page() instead of __free_pages().h]hXIf the last reference to this page is speculative, it will be released by put_page() which only frees the first page of a non-compound allocation. To prevent the remaining pages from being leaked, we free the subsequent pages here. If you want to use the page’s reference count to decide when to free the allocation, you should allocate a compound page, and use put_page() instead of __free_pages().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj%ubjM)}(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.chMhj%ubjM)}(h~May be called in interrupt context or while holding a normal spinlock, but not in NMI context or while holding a raw spinlock.h]h~May be called in interrupt context or while holding a normal spinlock, but not in NMI context or while holding a raw spinlock.}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfree_pages (C function) c.free_pageshNtauh1hhjxhhhNhNubh)}(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}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjYhMubh)}(h free_pagesh]j)}(h free_pagesh]h free_pages}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1hhjGhhhjYhMubj )}(h((unsigned long addr, unsigned int order)h](j )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(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-Free pages allocated with __get_free_pages().h]h-Free pages allocated with __get_free_pages().}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj8hhubah}(h]h ]h"]h$]h&]uh1j3hj@hhhjYhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjSjHjSjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMhjWubj)}(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)}(hj|h]hunsigned long addr}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjvubj)}(hhh]jM)}(hDThe virtual address tied to a page returned from __get_free_pages().h]hDThe virtual address tied to a page returned from __get_free_pages().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubj)}(h4``unsigned int order`` The order of the allocation. h](j)}(h``unsigned int order``h]jS)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hThe order of the allocation.h]hThe order of the allocation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubeh}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjWubjM)}(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.chMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_pages_exact (C function)c.alloc_pages_exacthNtauh1hhjxhhhNhNubh)}(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}(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&]uh1jhj1hhhjChMubjF )}(hjI h]h*}(hjRhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1hhhjChMubh)}(halloc_pages_exacth]j)}(halloc_pages_exacth]halloc_pages_exact}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj1hhhjChMubj )}(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)}jljesbc.alloc_pages_exactasbuh1hhj{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 hjwubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.alloc_pages_exactasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjwubeh}(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)}(h5allocate an exact number physically-contiguous pages.h]h5allocate an exact number physically-contiguous pages.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hj*hhhjChMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj:jHj:jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjDh]h Parameters}(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.chMhj>ubj)}(hhh](j)}(h0``size_t size`` the number of bytes to allocate h](j)}(h``size_t size``h]jS)}(hjch]h size_t size}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj]ubj)}(hhh]jM)}(hthe number of bytes to allocateh]hthe number of bytes to allocate}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjZubj)}(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.chMhjubj)}(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&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjZubeh}(h]h ]h"]h$]h&]uh1jhj>ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj>ubjM)}(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.chMhj>ubjM)}(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.chMhj>ubjM)}(hIMemory allocated by this function must be released by free_pages_exact().h]hIMemory allocated by this function must be released by free_pages_exact().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj>ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj>ubjM)}(h;pointer to the allocated area or ``NULL`` in case of error.h](h!pointer to the allocated area or }(hj2hhhNhNubjS)}(h``NULL``h]hNULL}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubh in case of error.}(hj2hhhNhNubeOh}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"alloc_pages_exact_nid (C function)c.alloc_pages_exact_nidhNtauh1hhjxhhhNhNubh)}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhP/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&]uh1jhjohhhjhM,ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjohhhjhM,ubh)}(halloc_pages_exact_nidh]j)}(halloc_pages_exact_nidh]halloc_pages_exact_nid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjohhhjhM,ubj )}(h&(int nid, size_t size, gfp_t gfp_mask)h](j )}(hint nidh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnidh]hnid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.alloc_pages_exact_nidasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjAmodnameN classnameNjpjs)}jv]jc.alloc_pages_exact_nidasbuh1hhj8ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hgfp_maskh]hgfp_mask}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(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)}(hBallocate an exact number of physically-contiguous pages on a node.h]hBallocate an exact number of physically-contiguous pages on a node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM,hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhhjhM,ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``int nid`` the preferred node ID where memory should be allocated ``size_t size`` the number of bytes to allocate ``gfp_t gfp_mask`` GFP flags for the allocation, must not contain __GFP_COMP **Description** Like alloc_pages_exact(), but try to allocate on node nid first before falling back. **Return** pointer to the allocated area or ``NULL`` in case of error.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM0hjubj)}(hhh](j)}(hC``int nid`` the preferred node ID where memory should be allocated h](j)}(h ``int nid``h]jS)}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM.hjubj)}(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&]uh1jLhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjubj)}(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&]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)}(hthe number of bytes to allocateh]hthe number of bytes 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/hjubj)}(hM``gfp_t gfp_mask`` GFP flags for the allocation, must not contain __GFP_COMP h](j)}(h``gfp_t gfp_mask``h]jS)}(hjHh]hgfp_t gfp_mask}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM0hjBubj)}(hhh]jM)}(h9GFP flags for the allocation, must not contain __GFP_COMPh]h9GFP flags for the allocation, must not contain __GFP_COMP}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]hM0hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM0hjubeh}(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.chM2hjubjM)}(hTLike alloc_pages_exact(), but try to allocate on node nid first before falling back.h]hTLike alloc_pages_exact(), but try to allocate on node nid first before falling back.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM1hjubjM)}(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.chM4hjubjM)}(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.chM5hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfree_pages_exact (C function)c.free_pages_exacthNtauh1hhjxhhhNhNubh)}(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.chMFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMFubh)}(hfree_pages_exacth]j)}(hfree_pages_exacth]hfree_pages_exact}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMFubj )}(h(void *virt, size_t size)h](j )}(h void *virth](j)}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj: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)}(hvirth]hvirt}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6ubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj$sbc.free_pages_exactasbuh1hhj|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 hj6ubeh}(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)}(h0release memory allocated via alloc_pages_exact()h]h0release memory allocated via alloc_pages_exact()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMFhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMFubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.chMJhjubj)}(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.chMGhjubj)}(hhh]jM)}(h(the value returned by alloc_pages_exact.h]h(the value returned by alloc_pages_exact.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hMGhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMGhjubj)}(hQ``size_t size`` size of allocation, same value as passed to alloc_pages_exact(). h](j)}(h``size_t size``h]jS)}(hjUh]h size_t size}(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.chMHhjOubj)}(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().}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjhMHhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMHhjubeh}(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.chMJhjubjM)}(hERelease the memory allocated by a previous call to alloc_pages_exact.h]hERelease the memory allocated by a previous call to alloc_pages_exact.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hnr_free_zone_pages (C function)c.nr_free_zone_pageshNtauh1hhjxhhhNhNubh)}(hhh](h)}(h-unsigned long nr_free_zone_pages (int offset)h]h)}(h,unsigned long nr_free_zone_pages(int offset)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMYubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMYubh)}(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&]jjuh1hhjhhhjhMYubj )}(h (int offset)h]j )}(h int offseth](j)}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hoffseth]hoffset}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj&ubah}(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)}(h+count number of pages beyond high watermarkh]h+count number of pages beyond high watermark}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMYhjqhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMYubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hXy**Parameters** ``int offset`` The zone index of the highest zone **Description** nr_free_zone_pages() counts the number of pages which are beyond the high watermark within all zones at or below a given zone index. For each zone, the number of pages is calculated as: nr_free_zone_pages = managed_pages - high_pages **Return** number of pages beyond high watermark.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM]hjubj)}(hhh]j)}(h2``int offset`` The zone index of the highest zone h](j)}(h``int offset``h]jS)}(hjh]h int offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMZhjubj)}(hhh]jM)}(h"The zone index of the highest zoneh]h"The zone index of the highest zone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM\hjubjM)}(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[hjubji)}(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.chM_hjubah}(h]h ]h"]h$]h&]uh1jhhj'hM_hjubjM)}(h **Return**h]j)}(hj0h]hReturn}(hj2hhhNhNubah}(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.chMahjubjM)}(h&number of pages beyond high watermark.h]h&number of pages beyond high watermark.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMbhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!nr_free_buffer_pages (C function)c.nr_free_buffer_pageshNtauh1hhjxhhhNhNubh)}(hhh](h)}(h)unsigned long nr_free_buffer_pages (void)h]h)}(h(unsigned long nr_free_buffer_pages(void)h](j)}(hunsignedh]hunsigned}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhMyubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhMyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhMyubh)}(hnr_free_buffer_pagesh]j)}(hnr_free_buffer_pagesh]hnr_free_buffer_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjqhhhjhMyubj )}(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 hjqhhhjhMyubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjmhhhjhMyubah}(h]jhah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMyhjjhhubj4)}(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.chMyhjhhubah}(h]h ]h"]h$]h&]uh1j3hjjhhhjhMyubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.chM}hjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]jS)}(hj9h]hvoid}(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.chKhj3ubj)}(hhh]jM)}(h no argumentsh]h no arguments}(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&]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.chMzhjubjM)}(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)}(hFnumber of pages beyond high watermark within ZONE_DMA and ZONE_NORMAL.h]hFnumber of pages beyond high watermark within ZONE_DMA and ZONE_NORMAL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h find_next_best_node (C function)c.find_next_best_nodehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h>int find_next_best_node (int node, nodemask_t *used_node_mask)h]h)}(h=int find_next_best_node(int node, nodemask_t *used_node_mask)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfind_next_best_nodeh]j)}(hfind_next_best_nodeh]hfind_next_best_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h&(int node, nodemask_t *used_node_mask)h](j )}(hint nodeh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hj9hhhNhNubah}(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}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWmodnameN classnameNjpjs)}jv]jy)}jljsbc.find_next_best_nodeasbuh1hhjNubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjNubj)}(hused_node_maskh]hused_node_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(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)}(hEfind the next node that should appear in a given node's fallback listh]hGfind the next node that should appear in a given node’s fallback list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``int node`` node whose fallback list we're appending ``nodemask_t *used_node_mask`` nodemask_t of already used nodes **Description** We use a number of factors to determine which is the next node that should appear on a given node's fallback list. The node should not have appeared already in **node**'s fallback list, and it should be the next closest node according to the distance array (which contains arbitrary distance values from each node to each node in the system), and should also prefer nodes with no CPUs, since presumably they'll have very little allocation pressure on them otherwise. **Return** node id of the found node or ``NUMA_NO_NODE`` if no node is found.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(h6``int node`` node whose fallback list we're appending h](j)}(h ``int node``h]jS)}(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)}(hj4h]hnodemask_t *used_node_mask}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(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 nodemask_t of already used nodesh]h nodemask_t of already used nodes}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubeh}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hXWe use a number of factors to determine which is the next node that should appear on a given node's fallback list. The node should not have appeared already in **node**'s fallback list, and it should be the next closest node according to the distance array (which contains arbitrary distance values from each node to each node in the system), and should also prefer nodes with no CPUs, since presumably they'll have very little allocation pressure on them otherwise.h](hWe use a number of factors to determine which is the next node that should appear on a given node’s fallback list. The node should not have appeared already in }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(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.chMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hBnode id of the found node or ``NUMA_NO_NODE`` if no node is found.h](hnode id of the found node or }(hjhhhNhNubjS)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if no node is found.}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"setup_per_zone_wmarks (C function)c.setup_per_zone_wmarkshNtauh1hhjxhhhNhNubh)}(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&]uh1jhjhhhj hM ubh)}(hsetup_per_zone_wmarksh]j)}(hsetup_per_zone_wmarksh]hsetup_per_zone_wmarks}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hM ubj )}(h(void)h]j )}(hvoidh]j)}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]noemphjjuh1j hj4ubah}(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)}(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}}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjchhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj~jHj~jIjJjKuh1hhhhjxhNhNubj)}(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)}(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}(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.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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&alloc_contig_frozen_range (C function)c.alloc_contig_frozen_rangehNtauh1hhjxhhhNhNubh)}(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}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj5hMubh)}(halloc_contig_frozen_rangeh]j)}(halloc_contig_frozen_rangeh]halloc_contig_frozen_range}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1hhj#hhhj5hMubj )}(hQ(unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h](j )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjrhhhNhNubah}(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)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubj )}(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 hj\ubj )}(hacr_flags_t alloc_flagsh](h)}(hhh]j)}(h acr_flags_th]h acr_flags_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljJsbc.alloc_contig_frozen_rangeasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h alloc_flagsh]h alloc_flags}(hj7hhhNhNubah}(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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjUmodnameN classnameNjpjs)}jv]j%c.alloc_contig_frozen_rangeasbuh1hhjLubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(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]j.L)}(hhh]j+)}(h-tries to allocate given range of frozen pagesh]jM)}(hjh]h-tries to allocate given range of frozen pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubah}(h]h ]h"]h$]h&]uh1j+hjhhhjhNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj5hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``unsigned long start`` start PFN to allocate ``unsigned long end`` one-past-the-last PFN to allocate ``acr_flags_t alloc_flags`` allocation information ``gfp_t gfp_mask`` GFP mask. Node/zone/placement hints are ignored; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim. **Description** The PFN range does not have to be pageblock aligned. The PFN range must belong to a single zone. The first thing this routine does is attempt to MIGRATE_ISOLATE all pageblocks in the range. Once isolated, the pageblocks should not be modified by others. All frozen pages which PFN is in [start, end) are allocated for the caller, and they could be freed with free_contig_frozen_range(), free_frozen_pages() also could be used to free compound frozen pages directly. **Return** zero on success or negative error code.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(h.``unsigned long start`` start PFN to allocate h](j)}(h``unsigned long start``h]jS)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h8``unsigned long end`` one-past-the-last PFN to allocate h](j)}(h``unsigned long end``h]jS)}(hj5 h]hunsigned long end}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3 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}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJ hMhjK ubah}(h]h ]h"]h$]h&]uh1jhj/ ubeh}(h]h ]h"]h$]h&]uh1jhjJ hMhjubj)}(h3``acr_flags_t alloc_flags`` allocation information h](j)}(h``acr_flags_t alloc_flags``h]jS)}(hjn h]hacr_flags_t alloc_flags}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjl ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjh ubj)}(hhh]jM)}(hallocation informationh]hallocation information}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjh ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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&]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)}(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.}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h`The PFN range does not have to be pageblock aligned. The PFN range must belong to a single zone.h]h`The PFN range does not have to be pageblock aligned. The PFN range must belong to a single zone.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hThe first thing this routine does is attempt to MIGRATE_ISOLATE all pageblocks in the range. Once isolated, the pageblocks should not be modified by others.h]hThe first thing this routine does is attempt to MIGRATE_ISOLATE all pageblocks in the range. Once isolated, the pageblocks should not be modified by others.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hAll frozen pages which PFN is in [start, end) are allocated for the caller, and they could be freed with free_contig_frozen_range(), free_frozen_pages() also could be used to free compound frozen pages directly.h]hAll frozen pages which PFN is in [start, end) are allocated for the caller, and they could be freed with free_contig_frozen_range(), free_frozen_pages() also could be used to free compound frozen pages directly.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h **Return**h]j)}(hj( h]hReturn}(hj* hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj& ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjubjM)}(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.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_contig_range (C function)c.alloc_contig_rangehNtauh1hhjxhhhNhNubh)}(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}(hjm hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji hhhP/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&]uh1jhji hhhj{ 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&]jjuh1hhji hhhj{ hMubj )}(hQ(unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h](j )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj% hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hendh]hend}(hj3 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hacr_flags_t alloc_flagsh](h)}(hhh]j)}(h acr_flags_th]h acr_flags_t}(hjO hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjQ modnameN classnameNjpjs)}jv]jy)}jlj sbc.alloc_contig_rangeasbuh1hhjH ubj)}(h h]h }(hjo hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH ubj)}(h alloc_flagsh]h alloc_flags}(hj} hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH 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]jk c.alloc_contig_rangeasbuh1hhj 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 hji hhhj{ hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hje hhhj{ hMubah}(h]j` ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj{ hMhjb hhubj4)}(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&]uh1j3hjb hhhj{ hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjB h]hunsigned long start}(hjD 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&]uh1jLhjW hMhjX ubah}(h]h ]h"]h$]h&]uh1jhj< ubeh}(h]h ]h"]h$]h&]uh1jhjW hMhj9 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&]uh1jRhjy ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhju 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&]uh1jhju ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj9 ubj)}(h3``acr_flags_t alloc_flags`` allocation information h](j)}(h``acr_flags_t alloc_flags``h]jS)}(hj h]hacr_flags_t alloc_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:100: ./mm/page_alloc.chMhj ubj)}(hhh]jM)}(hallocation informationh]hallocation information}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj9 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 hMhj9 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.}(hjM 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.}(hjt 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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&alloc_contig_frozen_pages (C function)c.alloc_contig_frozen_pageshNtauh1hhjxhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj hhhP/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&]uh1jhj hhhj hMubh)}(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_contig_frozen_pagessbc.alloc_contig_frozen_pagesasbuh1hhj 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)}(halloc_contig_frozen_pagesh]j)}(hj h]halloc_contig_frozen_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj hMubj )}(hG(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h](j )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjsmodnameN classnameNjpjs)}jv]j c.alloc_contig_frozen_pagesasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(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]j c.alloc_contig_frozen_pagesasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(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 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]j.L)}(hhh]j+)}(h;tries to find and allocate contiguous range of frozen pagesh]jM)}(hjVh]h;tries to find and allocate contiguous range of frozen pages}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjTubah}(h]h ]h"]h$]h&]uh1j+hjQhhhjehNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjehMhjNhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj{jHj{jIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``unsigned long nr_pages`` Number of contiguous pages to allocate ``gfp_t gfp_mask`` GFP mask. Node/zone/placement hints limit the search; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim. ``int nid`` Target node ``nodemask_t *nodemask`` Mask for other possible nodes **Description** This routine is a wrapper around alloc_contig_frozen_range(). It scans over zones on an applicable zonelist to find a contiguous pfn range which can then be tried for allocation with alloc_contig_frozen_range(). This routine is intended for allocation requests which can not be fulfilled with the buddy allocator. The allocated memory is always aligned to a page boundary. If nr_pages is a power of two, then allocated range is also guaranteed to be aligned to same nr_pages (e.g. 1GB request would be aligned to 1GB). Allocated frozen pages need be freed with free_contig_frozen_range(), or by manually calling free_frozen_pages() on each allocated frozen non-compound page, for compound frozen pages could be freed with free_frozen_pages() directly. **Return** pointer to contiguous frozen pages on success, or NULL if not successful.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(hB``unsigned long nr_pages`` Number of contiguous pages to allocate h](j)}(h``unsigned long nr_pages``h]jS)}(hjh]hunsigned long nr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(h&Number of contiguous pages to allocateh]h&Number of contiguous pages to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``gfp_t gfp_mask`` GFP mask. Node/zone/placement hints limit the search; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim. h](j)}(h``gfp_t gfp_mask``h]jS)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hGFP mask. Node/zone/placement hints limit the search; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim.h]hGFP mask. Node/zone/placement hints limit the search; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim.}(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&]uh1jhjhMhjubj)}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(h7``nodemask_t *nodemask`` Mask for other possible nodes h](j)}(h``nodemask_t *nodemask``h]jS)}(hjPh]hnodemask_t *nodemask}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjJubj)}(hhh]jM)}(hMask for other possible nodesh]hMask for other possible nodes}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hX9This routine is a wrapper around alloc_contig_frozen_range(). It scans over zones on an applicable zonelist to find a contiguous pfn range which can then be tried for allocation with alloc_contig_frozen_range(). This routine is intended for allocation requests which can not be fulfilled with the buddy allocator.h]hX9This routine is a wrapper around alloc_contig_frozen_range(). It scans over zones on an applicable zonelist to find a contiguous pfn range which can then be tried for allocation with alloc_contig_frozen_range(). This routine is intended for allocation requests which can not be fulfilled with the buddy allocator.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hThe allocated memory is always aligned to a page boundary. If nr_pages is a power of two, then allocated range is also guaranteed to be aligned to same nr_pages (e.g. 1GB request would be aligned to 1GB).h]hThe allocated memory is always aligned to a page boundary. If nr_pages is a power of two, then allocated range is also guaranteed to be aligned to same nr_pages (e.g. 1GB request would be aligned to 1GB).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(hAllocated frozen pages need be freed with free_contig_frozen_range(), or by manually calling free_frozen_pages() on each allocated frozen non-compound page, for compound frozen pages could be freed with free_frozen_pages() directly.h]hAllocated frozen pages need be freed with free_contig_frozen_range(), or by manually calling free_frozen_pages() on each allocated frozen non-compound page, for compound frozen pages could be freed with free_frozen_pages() directly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(h **Return**h]j)}(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)}(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.}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_contig_pages (C function)c.alloc_contig_pageshNtauh1hhjxhhhNhNubh)}(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.chMFubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hMFubh)}(hhh]j)}(hpageh]hpage}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj6modnameN classnameNjpjs)}jv]jy)}jlalloc_contig_pagessbc.alloc_contig_pagesasbuh1hhjhhhj"hMFubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hMFubjF )}(hjI h]h*}(hjchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj"hMFubh)}(halloc_contig_pagesh]j)}(hjRh]halloc_contig_pages}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj"hMFubj )}(hG(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h](j )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jPc.alloc_contig_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint nidh](j)}(hinth]hint}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hnidh]hnid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hnodemask_t *nodemaskh](h)}(hhh]j)}(h nodemask_th]h nodemask_t}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbmodnameN classnameNjpjs)}jv]jPc.alloc_contig_pagesasbuh1hhjYubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjYubj)}(hnodemaskh]hnodemask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj"hMFubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj"hMFubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj"hMFhj hhubj4)}(hhh]j.L)}(hhh]j+)}(h4tries to find and allocate contiguous range of pagesh]jM)}(hjh]h4tries to find and allocate contiguous range of pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMFhjubah}(h]h ]h"]h$]h&]uh1j+hjhhhjhNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjhMFhjhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj"hMFubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.chMJhjubj)}(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.chMGhjubj)}(hhh]jM)}(h&Number of contiguous pages to allocateh]h&Number of contiguous pages to allocate}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+hMGhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMGhj ubj)}(h``gfp_t gfp_mask`` GFP mask. h](j)}(h``gfp_t gfp_mask``h]jS)}(hjOh]hgfp_t gfp_mask}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMHhjIubj)}(hhh]jM)}(h GFP mask.h]h GFP mask.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjdhMHhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMHhj 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.chMIhjubj)}(hhh]jM)}(h Target nodeh]h Target node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhj 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.chMJhjubj)}(hhh]jM)}(hMask for other possible nodesh]hMask for other possible nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhj ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMLhjubjM)}(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.chMKhjubjM)}(hrAllocated pages can be freed with free_contig_range() or by manually calling __free_page() on each allocated page.h]hrAllocated pages can be freed with free_contig_range() or by manually calling __free_page() on each allocated page.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMOhjubjM)}(h **Return**h]j)}(hj2h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMRhjubjM)}(hBpointer to contiguous pages on success, or NULL if not successful.h]hBpointer to contiguous pages on success, or NULL if not successful.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMShjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%free_contig_frozen_range (C function)c.free_contig_frozen_rangehNtauh1hhjxhhhNhNubh)}(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}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjhMgubh)}(hfree_contig_frozen_rangeh]j)}(hfree_contig_frozen_rangeh]hfree_contig_frozen_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjshhhjhMgubj )}(h+(unsigned long pfn, unsigned long nr_pages)h](j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjshhhjhMgubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjohhhjhMgubah}(h]jjah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMghjlhhubj4)}(hhh]j.L)}(hhh]j+)}(h)free the contiguous range of frozen pagesh]jM)}(hjlh]h)free the contiguous range of frozen pages}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMghjjubah}(h]h ]h"]h$]h&]uh1j+hjghhhj{hNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-Lhj{hMghjdhhubah}(h]h ]h"]h$]h&]uh1j3hjlhhhjhMgubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(h**Parameters** ``unsigned long pfn`` start PFN to free ``unsigned long nr_pages`` Number of contiguous frozen pages to free **Description** This can be used to free the allocated compound/non-compound frozen pages.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMkhjubj)}(hhh](j)}(h(``unsigned long pfn`` start PFN to free h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhhjubj)}(hhh]jM)}(hstart PFN to freeh]hstart PFN to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubj)}(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.chMihjubj)}(hhh]jM)}(h)Number of contiguous frozen pages to freeh]h)Number of contiguous frozen pages to free}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMihj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMihjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(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.chMkhjubjM)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMjhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfree_contig_range (C function)c.free_contig_rangehNtauh1hhjxhhhNhNubh)}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhMubh)}(hfree_contig_rangeh]j)}(hfree_contig_rangeh]hfree_contig_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjohhhjhMubj )}(h+(unsigned long pfn, unsigned long nr_pages)h](j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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 }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjohhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjkhhhjhMubah}(h]jfah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhhubj4)}(hhh]j.L)}(hhh]j+)}(h"free the contiguous range of pagesh]jM)}(hjhh]h"free the contiguous range of pages}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjfubah}(h]h ]h"]h$]h&]uh1j+hjchhhjwhNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjwhMhj`hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(h**Parameters** ``unsigned long pfn`` start PFN to free ``unsigned long nr_pages`` Number of contiguous pages to free **Description** This can be only used to free the allocated non-compound pages.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(h(``unsigned long pfn`` start PFN to free h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]jM)}(hstart PFN to freeh]hstart PFN to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj*h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjM)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_pages_nolock (C function)c.alloc_pages_nolockhNtauh1hhjxhhhNhNubh)}(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}(hjohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjkhhhP/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&]uh1jhjkhhhj|hM[ubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlalloc_pages_nolocksbc.alloc_pages_nolockasbuh1hhjkhhhj|hM[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhj|hM[ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjkhhhj|hM[ubh)}(halloc_pages_nolockh]j)}(hjh]halloc_pages_nolock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjkhhhj|hM[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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.alloc_pages_nolockasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h gfp_flagsh]h gfp_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint nidh](j)}(hinth]hint}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hnidh]hnid}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(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)}(h3opportunistic reentrant allocation from any contexth]h3opportunistic reentrant allocation from any context}(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&]uh1j3hjdhhhj|hM[ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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;``gfp_t gfp_flags`` GFP flags. Only __GFP_ACCOUNT allowed. h](j)}(h``gfp_t gfp_flags``h]jS)}(hj h]hgfp_t gfp_flags}(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)}(h&GFP flags. Only __GFP_ACCOUNT allowed.h]h&GFP flags. Only __GFP_ACCOUNT allowed.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjubj)}(h"``int nid`` node to allocate from h](j)}(h ``int nid``h]jS)}(hjBh]hint nid}(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)}(hnode to allocate fromh]hnode to allocate from}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWhM]hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM]hjubj)}(h-``unsigned int order`` allocation order size h](j)}(h``unsigned int order``h]jS)}(hj{h]hunsigned int order}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM^hjuubj)}(hhh]jM)}(hallocation order sizeh]hallocation order size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM^hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM`hjubjM)}(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.}(hjhhhNhNubah}(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)}(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.chMfhjubjM)}(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.chMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hnuma_nearest_node (C function)c.numa_nearest_nodehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h4int numa_nearest_node (int node, unsigned int state)h]h)}(h3int numa_nearest_node(int node, unsigned int state)h](j)}(hinth]hint}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj0hMubh)}(hnuma_nearest_nodeh]j)}(hnuma_nearest_nodeh]hnuma_nearest_node}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj0hMubj )}(h(int node, unsigned int state)h](j )}(hint nodeh](j)}(hinth]hint}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hnodeh]hnode}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubj )}(hunsigned int stateh](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)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj0hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj0hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj0hMhjhhubj4)}(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&]uh1j3hjhhhj0hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj7h]hint node}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhj1ubj)}(hhh]jM)}(hNode id to start the searchh]hNode id to start the search}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhj.ubj)}(h2``unsigned int state`` State to filter the search h](j)}(h``unsigned int state``h]jS)}(hjph]hunsigned int state}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjjubj)}(hhh]jM)}(hState to filter the searchh]hState to filter the search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(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&]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 }(hjhhhNhNubj)}(h**nid**h]hnid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not in state.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjubjM)}(h **Return**h]j)}(hjh]hReturn}(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.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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"nearest_node_nodemask (C function)c.nearest_node_nodemaskhNtauh1hhjxhhhNhNubh)}(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}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM6ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhjIhM6ubh)}(hnearest_node_nodemaskh]j)}(hnearest_node_nodemaskh]hnearest_node_nodemask}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1hhj7hhhjIhM6ubj )}(h(int node, nodemask_t *mask)h](j )}(hint nodeh](j)}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpubj )}(hnodemask_t *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)}jlj^sbc.nearest_node_nodemaskasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpubeh}(h]h ]h"]h$]h&]jjuh1j hj7hhhjIhM6ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj3hhhjIhM6ubah}(h]j.ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjIhM6hj0hhubj4)}(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}(hj/hhhNhNubah}(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&]uh1j3hj0hhhjIhM6ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjQjHjQjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``int node`` a valid node ID to start the search from. ``nodemask_t *mask`` a pointer to a nodemask representing the allowed nodes. **Description** This function iterates over all nodes in **mask** and calculates the distance from the starting **node**, then it returns the node ID that is the closest to **node**, or MAX_NUMNODES if no node is found. Note that **node** must be a valid node ID usable with node_distance(), providing an invalid node ID (e.g., NUMA_NO_NODE) may result in crashes or unexpected behavior.h](jM)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM:hjUubj)}(hhh](j)}(h7``int node`` a valid node ID to start the search from. h](j)}(h ``int node``h]jS)}(hjzh]hint node}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjxubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM9hjtubj)}(hhh]jM)}(h)a valid node ID to start the search from.h]h)a valid node ID to start the search from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjqubj)}(hM``nodemask_t *mask`` a pointer to a nodemask representing the allowed nodes. h](j)}(h``nodemask_t *mask``h]jS)}(hjh]hnodemask_t *mask}(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.chM:hjubj)}(hhh]jM)}(h7a pointer to a nodemask representing the allowed nodes.h]h7a pointer to a nodemask representing the allowed nodes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM:hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM: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&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM<hjUubjM)}(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}(hj hhhNhNubah}(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}(hj0hhhNhNubah}(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;hjUubjM)}(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 }(hjIhhhNhNubj)}(h**node**h]hnode}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh 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.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM?hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_can_map_prot_numa (C function)c.folio_can_map_prot_numahNtauh1hhjxhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM7ubh)}(hfolio_can_map_prot_numah]j)}(hfolio_can_map_prot_numah]hfolio_can_map_prot_numa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM7ubj )}(hR(struct folio *folio, struct vm_area_struct *vma, bool is_private_single_threaded)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_can_map_prot_numaasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj8 hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj4 ubj)}(h h]h }(hjE hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4 ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjV hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjX modnameN classnameNjpjs)}jv]j c.folio_can_map_prot_numaasbuh1hhj4 ubj)}(h h]h }(hjt hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4 ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj4 ubj)}(hvmah]hvma}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4 ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hbool is_private_single_threadedh](j)}(hj)h]hbool}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(his_private_single_threadedh]his_private_single_threaded}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM7ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM7ubah}(h]j}ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM7hjhhubj4)}(hhh]jM)}(h)check whether the folio can map prot numah]h)check whether the folio can map prot numa}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM7hj hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM7ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj!jHj!jIjJjKuh1hhhhjxhNhNubj)}(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)}(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)}(hX``struct folio *folio`` The folio whose mapping considered for being made NUMA hintable h](j)}(h``struct folio *folio``h]jS)}(hj.!h]hstruct folio *folio}(hj0!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.chM8hj(!ubj)}(hhh]jM)}(h?The folio whose mapping considered for being made NUMA hintableh]h?The folio whose mapping considered for being made NUMA hintable}(hjG!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjC!hM8hjD!ubah}(h]h ]h"]h$]h&]uh1jhj(!ubeh}(h]h ]h"]h$]h&]uh1jhjC!hM8hj%!ubj)}(hB``struct vm_area_struct *vma`` The VMA that the folio belongs to. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjg!h]hstruct vm_area_struct *vma}(hji!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje!ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM9hja!ubj)}(hhh]jM)}(h"The VMA that the folio belongs to.h]h"The VMA that the folio belongs to.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|!hM9hj}!ubah}(h]h ]h"]h$]h&]uh1jhja!ubeh}(h]h ]h"]h$]h&]uh1jhj|!hM9hj%!ubj)}(hQ``bool is_private_single_threaded`` Is this a single-threaded private VMA or not h](j)}(h#``bool is_private_single_threaded``h]jS)}(hj!h]hbool is_private_single_threaded}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM:hj!ubj)}(hhh]jM)}(h,Is this a single-threaded private VMA or noth]h,Is this a single-threaded private VMA or not}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj!hM:hj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM:hj%!ubeh}(h]h ]h"]h$]h&]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)}(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;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)}(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.chMAhj !ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_pages_mpol (C function)c.alloc_pages_mpolhNtauh1hhjxhhhNhNubh)}(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}(hjG"hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjC"hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hjU"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC"hhhjT"hM ubh)}(hhh]j)}(hpageh]hpage}(hjf"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc"ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjh"modnameN classnameNjpjs)}jv]jy)}jlalloc_pages_mpolsbc.alloc_pages_mpolasbuh1hhjC"hhhjT"hM ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC"hhhjT"hM ubjF )}(hjI h]h*}(hj"hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjC"hhhjT"hM ubh)}(halloc_pages_mpolh]j)}(hj"h]halloc_pages_mpol}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjC"hhhjT"hM ubj )}(hL(gfp_t gfp, unsigned int order, struct mempolicy *pol, pgoff_t ilx, int nid)h](j )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj"modnameN classnameNjpjs)}jv]j"c.alloc_pages_mpolasbuh1hhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hgfph]hgfp}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj"ubj )}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(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 }(hj3#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(horderh]horder}(hjA#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj"ubj )}(hstruct mempolicy *polh](j5)}(hj8h]hstruct}(hjZ#hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjV#ubj)}(h h]h }(hjg#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV#ubh)}(hhh]j)}(h mempolicyh]h mempolicy}(hjx#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju#ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjz#modnameN classnameNjpjs)}jv]j"c.alloc_pages_mpolasbuh1hhjV#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)}(hpolh]hpol}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj"ubj )}(h pgoff_t ilxh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj#modnameN classnameNjpjs)}jv]j"c.alloc_pages_mpolasbuh1hhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hilxh]hilx}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj"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 hj"ubeh}(h]h ]h"]h$]h&]jjuh1j hjC"hhhjT"hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj?"hhhjT"hM ubah}(h]j:"ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjT"hM hj<"hhubj4)}(hhh]jM)}(h+Allocate pages according to NUMA mempolicy.h]h+Allocate pages according to NUMA mempolicy.}(hjX$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjU$hhubah}(h]h ]h"]h$]h&]uh1j3hj<"hhhjT"hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjp$jHjp$jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjz$h]h Parameters}(hj|$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx$ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjt$ubj)}(hhh](j)}(h``gfp_t gfp`` GFP flags. h](j)}(h ``gfp_t gfp``h]jS)}(hj$h]h gfp_t gfp}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj$ubj)}(hhh]jM)}(h GFP flags.h]h GFP flags.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$hM hj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM hj$ubj)}(h5``unsigned int order`` Order of the page allocation. h](j)}(h``unsigned int order``h]jS)}(hj$h]hunsigned int order}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj$ubj)}(hhh]jM)}(hOrder of the page allocation.h]hOrder of the page allocation.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$hM hj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM hj$ubj)}(h9``struct mempolicy *pol`` Pointer to the NUMA mempolicy. h](j)}(h``struct mempolicy *pol``h]jS)}(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)}(hjD%h]h pgoff_t ilx}(hjF%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjB%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&]uh1jLhjY%hM hjZ%ubah}(h]h ]h"]h$]h&]uh1jhj>%ubeh}(h]h ]h"]h$]h&]uh1jhjY%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 hjw%ubj)}(hhh]jM)}(hEPreferred node (usually numa_node_id() but **mpol** may override it).h](h+Preferred node (usually numa_node_id() but }(hj%hhhNhNubj)}(h**mpol**h]hmpol}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh may override it).}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj%hM hj%ubah}(h]h ]h"]h$]h&]uh1jhjw%ubeh}(h]h ]h"]h$]h&]uh1jhj%hM hj$ubeh}(h]h ]h"]h$]h&]uh1jhjt$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 hjt$ubjM)}(h0The page on success or NULL if allocation fails.h]h0The page on success or NULL if allocation fails.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjt$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvma_alloc_folio (C function)c.vma_alloc_foliohNtauh1hhjxhhhNhNubh)}(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 reftargetj0&modnameN classnameNjpjs)}jv]jy)}jlvma_alloc_foliosbc.vma_alloc_folioasbuh1hhj &hhhj&hM ubj)}(h h]h }(hjO&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)}(hjL&h]hvma_alloc_folio}(hjn&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj&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]jJ&c.vma_alloc_folioasbuh1hhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hgfph]hgfp}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj&ubj )}(h int orderh](j)}(hinth]hint}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(horderh]horder}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj&ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj'hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj'ubj)}(h h]h }(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]jJ&c.vma_alloc_folioasbuh1hhj'ubj)}(h h]h }(hjB'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjF )}(hjI h]h*}(hjP'hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj'ubj)}(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}(hjv'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr'ubj)}(hlongh]hlong}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr'ubj)}(haddrh]haddr}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr'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)}(hAllocate a folio for a VMA.h]hAllocate a folio for a VMA.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj'hhubah}(h]h ]h"]h$]h&]uh1j3hj&hhhj&hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj'jHj'jIjJjKuh1hhhhjxhNhNubj)}(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.}(hj2(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)}(hjR(h]h int order}(hjT(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjP(ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjL(ubj)}(hhh]jM)}(hOrder of the folio.h]hOrder of the folio.}(hjk(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjg(hM hjh(ubah}(h]h ]h"]h$]h&]uh1jhjL(ubeh}(h]h ]h"]h$]h&]uh1jhjg(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.}(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``unsigned long addr`` Virtual address of the allocation. Must be inside **vma**. h](j)}(h``unsigned long addr``h]jS)}(hj(h]hunsigned long addr}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj(ubj)}(hhh]jM)}(h;Virtual address of the allocation. Must be inside **vma**.h](h3Virtual address of the allocation. Must be inside }(hj(hhhNhNubj)}(h**vma**h]hvma}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj(hM hj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hM 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)}(hjJ)h]hReturn}(hjL)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH)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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](halloc_pages (C function) c.alloc_pageshNtauh1hhjxhhhNhNubh)}(hhh](h)}(h9struct page * alloc_pages (gfp_t gfp, unsigned int order)h]h)}(h7struct page *alloc_pages(gfp_t gfp, unsigned int order)h](j5)}(hj8h]hstruct}(hj)hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj)hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj)hM ubh)}(hhh]j)}(hpageh]hpage}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj)modnameN classnameNjpjs)}jv]jy)}jl alloc_pagessb c.alloc_pagesasbuh1hhj)hhhj)hM ubj)}(h h]h }(hj)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)}(h alloc_pagesh]j)}(hj)h]h alloc_pages}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj)hhhj)hM ubj )}(h(gfp_t gfp, unsigned int order)h](j )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(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}(hj8*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj*ubj )}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjQ*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM*ubj)}(h h]h }(hj_*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM*ubj)}(hinth]hint}(hjm*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM*ubj)}(h h]h }(hj{*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM*ubj)}(horderh]horder}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM*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)}(hAllocate pages.h]hAllocate pages.}(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*jIjJjKuh1hhhhjxhNhNubj)}(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)}(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)}(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.}(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*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&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj*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 hj*ubjM)}(h **Context**h]j)}(hj+h]hContext}(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)}(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.}(hj+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)}(hj+h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj*ubjM)}(h0The page on success or NULL if allocation fails.h]h0The page on success or NULL if allocation fails.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmpol_misplaced (C function)c.mpol_misplacedhNtauh1hhjxhhhNhNubh)}(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}(hjJ,hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjF,ubj)}(h h]h }(hjW,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF,ubh)}(hhh]j)}(hfolioh]hfolio}(hjh,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjj,modnameN classnameNjpjs)}jv]jy)}jlj0,sbc.mpol_misplacedasbuh1hhjF,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF,ubjF )}(hjI h]h*}(hj,hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjF,ubj)}(hfolioh]hfolio}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjB,ubj )}(hstruct vm_fault *vmfh](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_faulth]hvm_fault}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,modnameN classnameNjpjs)}jv]j,c.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)}(hvmfh]hvmf}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjB,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}(hjH-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(-ubj)}(h h]h }(hjV-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(-ubj)}(haddrh]haddr}(hjd-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjB,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-jIjJjKuh1hhhhjxhNhNubj)}(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)}(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 folio *folio`` folio to be checked 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&]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&]uh1jLhj-hM hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hM hj-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 hj-ubj)}(ha``unsigned long addr`` virtual address in **vma** for shared policy lookup and interleave policy h](j)}(h``unsigned long addr``h]jS)}(hjA.h]hunsigned long addr}(hjC.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 }(hjZ.hhhNhNubj)}(h**vma**h]hvma}(hjb.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ.ubh/ for shared policy lookup and interleave policy}(hjZ.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjV.hM hjW.ubah}(h]h ]h"]h$]h&]uh1jhj;.ubeh}(h]h ]h"]h$]h&]uh1jhjV.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)}(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.}(hj.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)}(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)}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$mpol_shared_policy_init (C function)c.mpol_shared_policy_inithNtauh1hhjxhhhNhNubh)}(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}(hj7/hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj3/ubj)}(h h]h }(hjD/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3/ubh)}(hhh]j)}(h shared_policyh]h shared_policy}(hjU/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR/ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjW/modnameN classnameNjpjs)}jv]jy)}jlj/sbc.mpol_shared_policy_initasbuh1hhj3/ubj)}(h h]h }(hju/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3/ubjF )}(hjI h]h*}(hj/hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj3/ubj)}(hsph]hsp}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3/ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj//ubj )}(hstruct mempolicy *mpolh](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]jq/c.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)}(hmpolh]hmpol}(hj0hhhNhNubah}(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"initialize shared policy for inodeh]h"initialize shared policy for inode}(hj*0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj'0hhubah}(h]h ]h"]h$]h&]uh1j3hj.hhhj/hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjB0jHjB0jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjL0h]h Parameters}(hjN0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ0ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjF0ubj)}(hhh](j)}(h<``struct shared_policy *sp`` pointer to inode shared policy h](j)}(h``struct shared_policy *sp``h]jS)}(hjk0h]hstruct shared_policy *sp}(hjm0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhji0ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hje0ubj)}(hhh]jM)}(hpointer to inode shared policyh]hpointer to inode shared policy}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hM hj0ubah}(h]h ]h"]h$]h&]uh1jhje0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM hjb0ubj)}(h7``struct mempolicy *mpol`` struct mempolicy to install h](j)}(h``struct mempolicy *mpol``h]jS)}(hj0h]hstruct mempolicy *mpol}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj0ubj)}(hhh]jM)}(hstruct mempolicy to installh]hstruct mempolicy to install}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hM hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM hjb0ubeh}(h]h ]h"]h$]h&]uh1jhjF0ubjM)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjF0ubjM)}(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 }(hj0hhhNhNubj)}(h**mpol**h]hmpol}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh^ in inode’s shared policy rb-tree. On entry, the current task has a reference on a non-NULL }(hj0hhhNhNubj)}(h**mpol**h]hmpol}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh_. This must be released on exit. This is called at get_inode() calls and we can use GFP_KERNEL.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjF0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmpol_parse_str (C function)c.mpol_parse_strhNtauh1hhjxhhhNhNubh)}(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}(hjH1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD1hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMR ubj)}(h h]h }(hjW1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD1hhhjV1hMR ubh)}(hmpol_parse_strh]j)}(hmpol_parse_strh]hmpol_parse_str}(hji1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje1ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjD1hhhjV1hMR ubj )}(h$(char *str, struct mempolicy **mpol)h](j )}(h char *strh](j)}(hcharh]hchar}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjF )}(hjI h]h*}(hj1hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1ubj)}(hstrh]hstr}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}1ubj )}(hstruct mempolicy **mpolh](j5)}(hj8h]hstruct}(hj1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(h mempolicyh]h mempolicy}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj1modnameN classnameNjpjs)}jv]jy)}jljk1sbc.mpol_parse_strasbuh1hhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjF )}(hjI h]h*}(hj2hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1ubjF )}(hjI h]h*}(hj 2hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1ubj)}(hmpolh]hmpol}(hj-2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}1ubeh}(h]h ]h"]h$]h&]jjuh1j hjD1hhhjV1hMR ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj@1hhhjV1hMR ubah}(h]j;1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjV1hMR hj=1hhubj4)}(hhh]jM)}(h7parse string to mempolicy, for tmpfs mpol mount option.h]h7parse string to mempolicy, for tmpfs mpol mount option.}(hjW2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMR hjT2hhubah}(h]h ]h"]h$]h&]uh1j3hj=1hhhjV1hMR ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjo2jHjo2jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjy2h]h Parameters}(hj{2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw2ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMV hjs2ubj)}(hhh](j)}(h3``char *str`` string containing mempolicy to parse h](j)}(h ``char *str``h]jS)}(hj2h]h char *str}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMS hj2ubj)}(hhh]jM)}(h$string containing mempolicy to parseh]h$string containing mempolicy to parse}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2hMS hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMS hj2ubj)}(hV``struct mempolicy **mpol`` pointer to struct mempolicy pointer, returned on success. h](j)}(h``struct mempolicy **mpol``h]jS)}(hj2h]hstruct mempolicy **mpol}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMT hj2ubj)}(hhh]jM)}(h9pointer to struct mempolicy pointer, returned on success.h]h9pointer to struct mempolicy pointer, returned on success.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2hMT hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMT hj2ubeh}(h]h ]h"]h$]h&]uh1jhjs2ubjM)}(h**Description**h]j)}(hj 3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 3ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMV hjs2ubj)}(hhh]j)}(h/Format of input: [=][:] h](j)}(hFormat of input:h]hFormat of input:}(hj)3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMV hj%3ubj)}(hhh]jM)}(h[=][:]h]h[=][:]}(hj;3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj73hMV hj83ubah}(h]h ]h"]h$]h&]uh1jhj%3ubeh}(h]h ]h"]h$]h&]uh1jhj73hMV hj"3ubah}(h]h ]h"]h$]h&]uh1jhjs2ubjM)}(h **Return**h]j)}(hj]3h]hReturn}(hj_3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[3ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMX hjs2ubjM)}(h``0`` on success, else ``1``h](jS)}(h``0``h]h0}(hjw3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjs3ubh on success, else }(hjs3hhhNhNubjS)}(h``1``h]h1}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjs3ubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMY hjs2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmpol_to_str (C function) c.mpol_to_strhNtauh1hhjxhhhNhNubh)}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhj3hM ubh)}(h mpol_to_strh]j)}(h mpol_to_strh]h mpol_to_str}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj3hhhj3hM ubj )}(h1(char *buffer, int maxlen, struct mempolicy *pol)h](j )}(h char *bufferh](j)}(hcharh]hchar}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj 4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjF )}(hjI h]h*}(hj4hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj3ubj)}(hbufferh]hbuffer}(hj$4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubj )}(h int maxlenh](j)}(hinth]hint}(hj=4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj94ubj)}(h h]h }(hjK4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj94ubj)}(hmaxlenh]hmaxlen}(hjY4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj94ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubj )}(hstruct mempolicy *polh](j5)}(hj8h]hstruct}(hjr4hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjn4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn4ubh)}(hhh]j)}(h mempolicyh]h mempolicy}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4modnameN classnameNjpjs)}jv]jy)}jlj3sb c.mpol_to_strasbuh1hhjn4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn4ubjF )}(hjI h]h*}(hj4hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjn4ubj)}(hpolh]hpol}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3ubeh}(h]h ]h"]h$]h&]jjuh1j hj3hhhj3hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj3hhhj3hM ubah}(h]j3ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj3hM hj3hhubj4)}(hhh]jM)}(h)format a mempolicy structure for printingh]h)format a mempolicy structure for printing}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj4hhubah}(h]h ]h"]h$]h&]uh1j3hj3hhhj3hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj 5jHj 5jIjJjKuh1hhhhjxhNhNubj)}(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)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj5ubj)}(hhh](j)}(h7``char *buffer`` to contain formatted mempolicy string h](j)}(h``char *buffer``h]jS)}(hj65h]h char *buffer}(hj85hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj45ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj05ubj)}(hhh]jM)}(h%to contain formatted mempolicy stringh]h%to contain formatted mempolicy string}(hjO5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjK5hM hjL5ubah}(h]h ]h"]h$]h&]uh1jhj05ubeh}(h]h ]h"]h$]h&]uh1jhjK5hM hj-5ubj)}(h$``int maxlen`` length of **buffer** h](j)}(h``int maxlen``h]jS)}(hjo5h]h int maxlen}(hjq5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjm5ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hji5ubj)}(hhh]jM)}(hlength of **buffer**h](h length of }(hj5hhhNhNubj)}(h **buffer**h]hbuffer}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jLhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1jhji5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM hj-5ubj)}(h?``struct mempolicy *pol`` pointer to mempolicy to be formatted h](j)}(h``struct mempolicy *pol``h]jS)}(hj5h]hstruct mempolicy *pol}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj5ubj)}(hhh]jM)}(h$pointer to mempolicy to be formattedh]h$pointer to mempolicy to be formatted}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM hj-5ubeh}(h]h ]h"]h$]h&]uh1jhj5ubjM)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj5ubjM)}(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 }(hj6hhhNhNubj)}(h**pol**h]hpol}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh into a string. If }(hj6hhhNhNubj)}(h **buffer**h]hbuffer}(hj!6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh0 is too short, truncate the string. Recommend a }(hj6hhhNhNubj)}(h **maxlen**h]hmaxlen}(hj36hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh 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.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsoftleaf_t (C type) c.softleaf_thNtauh1hhjxhhhY/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)}(hjKh]htype}(hjm6hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hji6hhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKubj)}(h h]h }(hj{6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji6hhhjz6hKubh)}(h softleaf_th]j)}(hjg6h]h softleaf_t}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1hhji6hhhjz6hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hje6hhhjz6hKubah}(h]j_6ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjz6hKhjb6hhubj4)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM"hj6hhubah}(h]h ]h"]h$]h&]uh1j3hjb6hhhjz6hKubeh}(h]h ](jAtypeeh"]h$]h&]jFjAjGj6jHj6jIjJjKuh1hhhhjxhja6hNubjM)}(h**Description**h]j)}(hj6h]h Description}(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.hhM$hjxhhubjM)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM#hjxhhubjM)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM'hjxhhubjM)}(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 }(hj7hhhNhNubj)}(h**softleaf_type**h]h softleaf_type}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh9 for a list of all possible kinds of software leaf entry.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM+hjxhhubjM)}(heA softleaf_t entry is abstracted from the hardware page table entry, so is not architecture-specific.h]heA softleaf_t entry is abstracted from the hardware page table entry, so is not architecture-specific.}(hj"7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM/hjxhhubjM)}(h**NOTE**h]j)}(hj37h]hNOTE}(hj57hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj17ubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM2hjxhhubj)}(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}(hjP7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM9hjL7ubj)}(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.}(hjb7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM5hj_7ubah}(h]h ]h"]h$]h&]uh1jhjL7ubeh}(h]h ]h"]h$]h&]uh1jhj^7hM9hjI7ubah}(h]h ]h"]h$]h&]uh1jhjxhhhja6hNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio (C struct)c.foliohNtauh1hhjxhhhja6hNubh)}(hhh](h)}(hfolioh]h)}(h struct folioh](j5)}(hj8h]hstruct}(hj7hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj7hhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM;ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hM;ubh)}(hfolioh]j)}(hj7h]hfolio}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj7hhhj7hM;ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj7hhhj7hM;ubah}(h]j7ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj7hM;hj7hhubj4)}(hhh]jM)}(h%Represents a contiguous set of bytes.h]h%Represents a contiguous set of bytes.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMfhj7hhubah}(h]h ]h"]h$]h&]uh1j3hj7hhhj7hM;ubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGj7jHj7jIjJjKuh1hhhhjxhja6hNubj)}(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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh:}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMjhj7ubj()}(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; };}hj8sbah}(h]h ]h"]h$]h&]jjuh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMlhj7ubjM)}(h **Members**h]j)}(hj,8h]hMembers}(hj.8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*8ubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj7ubj)}(hhh](j)}(h'``flags`` Identical to the page flags. h](j)}(h ``flags``h]jS)}(hjK8h]hflags}(hjM8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjI8ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhhjE8ubj)}(hhh]jM)}(hIdentical to the page flags.h]hIdentical to the page flags.}(hjd8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`8hMhhja8ubah}(h]h ]h"]h$]h&]uh1jhjE8ubeh}(h]h ]h"]h$]h&]uh1jhj`8hMhhjB8ubj)}(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.hhKhj~8ubj)}(hhh]jM)}(h anonymoush]h anonymous}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1jhj~8ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhjB8ubj)}(hK``lru`` Least Recently Used list; tracks how recently this folio was used. h](j)}(h``lru``h]jS)}(hj8h]hlru}(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.hhMihj8ubj)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hMihj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMihjB8ubj)}(hG``mlock_count`` Number of times this folio has been pinned by mlock(). h](j)}(h``mlock_count``h]jS)}(hj8h]h mlock_count}(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.hhMjhj8ubj)}(hhh]jM)}(h6Number of times this folio has been pinned by mlock().h]h6Number of times this folio has been pinned by mlock().}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj 9hMjhj 9ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj 9hMjhjB8ubj)}(h,``pgmap`` Metadata for ZONE_DEVICE mappings h](j)}(h ``pgmap``h]jS)}(hj/9h]hpgmap}(hj19hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-9ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMxhj)9ubj)}(hhh]jM)}(h!Metadata for ZONE_DEVICE mappingsh]h!Metadata for ZONE_DEVICE mappings}(hjH9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjD9hMxhjE9ubah}(h]h ]h"]h$]h&]uh1jhj)9ubeh}(h]h ]h"]h$]h&]uh1jhjD9hMxhjB8ubj)}(h[``mapping`` The file this page belongs to, or refers to the anon_vma for anonymous memory. h](j)}(h ``mapping``h]jS)}(hjh9h]hmapping}(hjj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjf9ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMlhjb9ubj)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMkhj~9ubah}(h]h ]h"]h$]h&]uh1jhjb9ubeh}(h]h ]h"]h$]h&]uh1jhj}9hMlhjB8ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hj9h]h{unnamed_union}}(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.hhKhj9ubj)}(hhh]jM)}(h anonymoush]h anonymous}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9hKhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hKhjB8ubj)}(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)}(hj9h]hindex}(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.hhMnhj9ubj)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMmhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMnhjB8ubj)}(hU``share`` number of DAX mappings that reference this folio. See dax_associate_entry. h](j)}(h ``share``h]jS)}(hj:h]hshare}(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.hhMphj:ubj)}(hhh]jM)}(hJnumber of DAX mappings that reference this folio. See dax_associate_entry.h]hJnumber of DAX mappings that reference this folio. See dax_associate_entry.}(hj.:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMohj+:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj*:hMphjB8ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hjO:h]h{unnamed_union}}(hjQ:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjM:ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhjI:ubj)}(hhh]jM)}(h anonymoush]h anonymous}(hjh:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjd:hKhje:ubah}(h]h ]h"]h$]h&]uh1jhjI:ubeh}(h]h ]h"]h$]h&]uh1jhjd:hKhjB8ubj)}(hD``private`` Filesystem per-folio data (see folio_attach_private()). h](j)}(h ``private``h]jS)}(hj:h]hprivate}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMqhj:ubj)}(hhh]jM)}(h7Filesystem per-folio data (see folio_attach_private()).h]h7Filesystem per-folio data (see folio_attach_private()).}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hMqhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMqhjB8ubj)}(h9``swap`` Used for swp_entry_t if folio_test_swapcache(). h](j)}(h``swap``h]jS)}(hj:h]hswap}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj:ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMrhj:ubj)}(hhh]jM)}(h/Used for swp_entry_t if folio_test_swapcache().h]h/Used for swp_entry_t if folio_test_swapcache().}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hMrhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMrhjB8ubj)}(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)}(hj:h]h _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.hhMthj:ubj)}(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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMshj;ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj;hMthjB8ubj)}(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)}(hj4;h]h _refcount}(hj6;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2;ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMvhj.;ubj)}(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.}(hjM;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMuhjJ;ubah}(h]h ]h"]h$]h&]uh1jhj.;ubeh}(h]h ]h"]h$]h&]uh1jhjI;hMvhjB8ubj)}(h*``memcg_data`` Memory Control Group data. h](j)}(h``memcg_data``h]jS)}(hjn;h]h memcg_data}(hjp;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjl;ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMwhjh;ubj)}(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&]uh1jhjh;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMwhjB8ubj)}(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&]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-Placeholder to match obj_exts in struct slab.h]h-Placeholder to match obj_exts in struct slab.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjB8ubj)}(h6``virtual`` Virtual address in the kernel direct map. h](j)}(h ``virtual``h]jS)}(hj;h]hvirtual}(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.hhMyhj;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&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMyhjB8ubj)}(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.}(hj2<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.<hMzhj/<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj.<hMzhjB8ubj)}(h@``_large_mapcount`` Do not use directly, call folio_mapcount(). h](j)}(h``_large_mapcount``h]jS)}(hjR<h]h_large_mapcount}(hjT<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjP<ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM|hjL<ubj)}(hhh]jM)}(h+Do not use directly, call folio_mapcount().h]h+Do not use directly, call folio_mapcount().}(hjk<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjg<hM|hjh<ubah}(h]h ]h"]h$]h&]uh1jhjL<ubeh}(h]h ]h"]h$]h&]uh1jhjg<hM|hjB8ubj)}(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.}(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}hjB8ubj)}(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().}(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{hjB8ubj)}(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~hjB8ubj)}(h5``_mm_id_mapcount`` Do not use outside of rmap code. h](j)}(h``_mm_id_mapcount``h]jS)}(hj6=h]h_mm_id_mapcount}(hj8=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4=ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj0=ubj)}(hhh]jM)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hjO=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjK=hMhjL=ubah}(h]h ]h"]h$]h&]uh1jhj0=ubeh}(h]h ]h"]h$]h&]uh1jhjK=hMhjB8ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hjo=h]h{unnamed_union}}(hjq=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjm=ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhji=ubj)}(hhh]jM)}(h anonymoush]h anonymous}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hKhj=ubah}(h]h ]h"]h$]h&]uh1jhji=ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhjB8ubj)}(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.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=hMhjB8ubj)}(h-``_mm_ids`` Do not use outside of rmap code. h](j)}(h ``_mm_ids``h]jS)}(hj=h]h_mm_ids}(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=hMhjB8ubj)}(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().}(hj3>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/>hMhj0>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj/>hMhjB8ubj)}(h=``_deferred_list`` Folios to be split under memory pressure. h](j)}(h``_deferred_list``h]jS)}(hjS>h]h_deferred_list}(hjU>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQ>ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjM>ubj)}(hhh]jM)}(h)Folios to be split under memory pressure.h]h)Folios to be split under memory pressure.}(hjl>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjh>hMhji>ubah}(h]h ]h"]h$]h&]uh1jhjM>ubeh}(h]h ]h"]h$]h&]uh1jhjh>hMhjB8ubj)}(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().}(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{hjB8ubj)}(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~hjB8ubj)}(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?hMhjB8ubj)}(hK``_hugetlb_cgroup`` Do not use directly, use accessor in hugetlb_cgroup.h. h](j)}(h``_hugetlb_cgroup``h]jS)}(hj7?h]h_hugetlb_cgroup}(hj9?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5?ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj1?ubj)}(hhh]jM)}(h6Do not use directly, use accessor in hugetlb_cgroup.h.h]h6Do not use directly, use accessor in hugetlb_cgroup.h.}(hjP?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjL?hMhjM?ubah}(h]h ]h"]h$]h&]uh1jhj1?ubeh}(h]h ]h"]h$]h&]uh1jhjL?hMhjB8ubj)}(hP``_hugetlb_cgroup_rsvd`` Do not use directly, use accessor in hugetlb_cgroup.h. h](j)}(h``_hugetlb_cgroup_rsvd``h]jS)}(hjp?h]h_hugetlb_cgroup_rsvd}(hjr?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjn?ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjj?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&]uh1jhjj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjB8ubj)}(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.hhMhj?ubj)}(hhh]jM)}(h.Do not use directly, call raw_hwp_list_head().h]h.Do not use directly, call raw_hwp_list_head().}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjB8ubeh}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhja6hNubjM)}(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.hhMhjxhhubjM)}(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.hhMhjxhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hptdesc (C struct)c.ptdeschNtauh1hhjxhhhja6hNubh)}(hhh](h)}(hptdesch]h)}(h struct ptdesch](j5)}(hj8h]hstruct}(hj<@hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj8@hhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMubj)}(h h]h }(hjJ@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8@hhhjI@hMubh)}(hptdesch]j)}(hj6@h]hptdesc}(hj\@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX@ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj8@hhhjI@hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj4@hhhjI@hMubah}(h]j/@ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjI@hMhj1@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&]uh1j3hj1@hhhjI@hMubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGj@jHj@jIjJjKuh1hhhhjxhja6hNubj)}(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}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh:}(hj@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; };}hj@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}(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.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(hj@ubj)}(hhh]jM)}(h%enum pt_flags plus zone/node/section.h]h%enum pt_flags plus zone/node/section.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhM(hjAubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhjAhM(hj@ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hj$Ah]h{unnamed_union}}(hj&AhhhNhNubah}(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.hhKhjAubj)}(hhh]jM)}(h anonymoush]h anonymous}(hj=AhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9AhKhj:Aubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj9AhKhj@ubj)}(h.``pt_rcu_head`` For freeing page table pages. h](j)}(h``pt_rcu_head``h]jS)}(hj]Ah]h pt_rcu_head}(hj_AhhhNhNubah}(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)hjWAubj)}(hhh]jM)}(hFor freeing page table pages.h]hFor freeing page table pages.}(hjvAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrAhM)hjsAubah}(h]h ]h"]h$]h&]uh1jhjWAubeh}(h]h ]h"]h$]h&]uh1jhjrAhM)hj@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)}(hjAh]hpt_list}(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.hhM,hjAubj)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM*hjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhM,hj@ubj)}(h``{unnamed_struct}`` anonymous h](j)}(h``{unnamed_struct}``h]jS)}(hjAh]h{unnamed_struct}}(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.hhKhjAubj)}(hhh]jM)}(h anonymoush]h anonymous}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhKhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj@ubj)}(h>``_pt_pad_1`` Padding that aliases with page's compound head. h](j)}(h ``_pt_pad_1``h]jS)}(hj Bh]h _pt_pad_1}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM-hjBubj)}(hhh]jM)}(h/Padding that aliases with page's compound head.h]h1Padding that aliases with page’s compound head.}(hj"BhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhM-hjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM-hj@ubj)}(h:``pmd_huge_pte`` Protected by ptdesc->ptl, used for THPs. h](j)}(h``pmd_huge_pte``h]jS)}(hjBBh]h pmd_huge_pte}(hjDBhhhNhNubah}(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.hhM.hjptl, used for THPs.h]h(Protected by ptdesc->ptl, used for THPs.}(hj[BhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWBhM.hjXBubah}(h]h ]h"]h$]h&]uh1jhjmapping. Unused for page tables. h](j)}(h``__page_mapping``h]jS)}(hj{Bh]h__page_mapping}(hj}BhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyBubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM/hjuBubj)}(hhh]jM)}(h3Aliases with page->mapping. Unused for page tables.h]h3Aliases with page->mapping. Unused for page tables.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhM/hjBubah}(h]h ]h"]h$]h&]uh1jhjuBubeh}(h]h ]h"]h$]h&]uh1jhjBhM/hj@ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]jS)}(hjBh]h{unnamed_union}}(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.hhKhjBubj)}(hhh]jM)}(h anonymoush]h anonymous}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhKhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhKhj@ubj)}(h!``pt_index`` Used for s390 gmap. h](j)}(h ``pt_index``h]jS)}(hjBh]hpt_index}(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.hhM0hjBubj)}(hhh]jM)}(hUsed for s390 gmap.h]hUsed for s390 gmap.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChM0hjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjChM0hj@ubj)}(h``pt_mm`` Used for x86 pgds. h](j)}(h ``pt_mm``h]jS)}(hj&Ch]hpt_mm}(hj(ChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$Cubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM1hj Cubj)}(hhh]jM)}(hUsed for x86 pgds.h]hUsed for x86 pgds.}(hj?ChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;ChM1hjpage_type. Unused for page tables. h](j)}(h``__page_type``h]jS)}(hjDh]h __page_type}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM6hjDubj)}(hhh]jM)}(h0Same as page->page_type. Unused for page tables.h]h0Same as page->page_type. Unused for page tables.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhM6hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhM6hj@ubj)}(h+``__page_refcount`` Same as page refcount. h](j)}(h``__page_refcount``h]jS)}(hjDh]h__page_refcount}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM7hjDubj)}(hhh]jM)}(hSame as page refcount.h]hSame as page refcount.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhM7hjEubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjEhM7hj@ubj)}(h;``pt_memcg_data`` Memcg data. Tracked for page tables here.h](j)}(h``pt_memcg_data``h]jS)}(hj'Eh]h pt_memcg_data}(hj)EhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%Eubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM7hj!Eubj)}(hhh]jM)}(h)Memcg data. Tracked for page tables here.h]h)Memcg data. Tracked for page tables here.}(hj@EhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM8hj=Eubah}(h]h ]h"]h$]h&]uh1jhj!Eubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjEhM>ubh)}(h vm_fault_th]j)}(hjEh]h vm_fault_t}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1hhjEhhhjEhM>ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjEhhhjEhM>ubah}(h]jEah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjEhM>hjEhhubj4)}(hhh]jM)}(h$Return type for page fault handlers.h]h$Return type for page fault handlers.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhhjEhhubah}(h]h ]h"]h$]h&]uh1j3hjEhhhjEhM>ubeh}(h]h ](jAtypeeh"]h$]h&]jFjAjGjFjHjFjIjJjKuh1hhhhjxhja6hNubjM)}(h**Description**h]j)}(hjFh]h Description}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMjhjxhhubjM)}(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)}(hjFh]h Constants}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMshjFubj)}(hhh](j)}(h``VM_FAULT_OOM`` Out Of Memory h](j)}(h``VM_FAULT_OOM``h]jS)}(hjFh]h VM_FAULT_OOM}(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.hhMvhjFubj)}(hhh]jM)}(h Out Of Memoryh]h Out Of Memory}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFhMvhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMvhjFubj)}(h``VM_FAULT_SIGBUS`` Bad access h](j)}(h``VM_FAULT_SIGBUS``h]jS)}(hjGh]hVM_FAULT_SIGBUS}(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.hhMyhjGubj)}(hhh]jM)}(h Bad accessh]h Bad access}(hj-GhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)GhMyhj*Gubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhj)GhMyhjFubj)}(h*``VM_FAULT_MAJOR`` Page read from storage h](j)}(h``VM_FAULT_MAJOR``h]jS)}(hjMGh]hVM_FAULT_MAJOR}(hjOGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKGubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM|hjGGubj)}(hhh]jM)}(hPage read from storageh]hPage read from storage}(hjfGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbGhM|hjcGubah}(h]h ]h"]h$]h&]uh1jhjGGubeh}(h]h ]h"]h$]h&]uh1jhjbGhM|hjFubj)}(h.``VM_FAULT_HWPOISON`` Hit poisoned small page h](j)}(h``VM_FAULT_HWPOISON``h]jS)}(hjGh]hVM_FAULT_HWPOISON}(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)}(hHit poisoned small pageh]hHit poisoned small page}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjFubj)}(hQ``VM_FAULT_HWPOISON_LARGE`` Hit poisoned large page. Index encoded in upper bits h](j)}(h``VM_FAULT_HWPOISON_LARGE``h]jS)}(hjGh]hVM_FAULT_HWPOISON_LARGE}(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)}(h4Hit poisoned large page. Index encoded in upper bitsh]h4Hit poisoned large page. Index encoded in upper bits}(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&]uh1jhjGhMhjFubj)}(h(``VM_FAULT_SIGSEGV`` segmentation fault h](j)}(h``VM_FAULT_SIGSEGV``h]jS)}(hjGh]hVM_FAULT_SIGSEGV}(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)}(hsegmentation faulth]hsegmentation fault}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjFubj)}(h?``VM_FAULT_NOPAGE`` ->fault installed the pte, not return page h](j)}(h``VM_FAULT_NOPAGE``h]jS)}(hj2Hh]hVM_FAULT_NOPAGE}(hj4HhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0Hubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj,Hubj)}(hhh]jM)}(h*->fault installed the pte, not return pageh]h*->fault installed the pte, not return page}(hjKHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGHhMhjHHubah}(h]h ]h"]h$]h&]uh1jhj,Hubeh}(h]h ]h"]h$]h&]uh1jhjGHhMhjFubj)}(h5``VM_FAULT_LOCKED`` ->fault locked the returned page h](j)}(h``VM_FAULT_LOCKED``h]jS)}(hjkHh]hVM_FAULT_LOCKED}(hjmHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiHubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjeHubj)}(hhh]jM)}(h ->fault locked the returned pageh]h ->fault locked the returned page}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjeHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjFubj)}(h/``VM_FAULT_RETRY`` ->fault blocked, must retry h](j)}(h``VM_FAULT_RETRY``h]jS)}(hjHh]hVM_FAULT_RETRY}(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 blocked, must retryh]h->fault blocked, must retry}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjFubj)}(hA``VM_FAULT_FALLBACK`` huge page fault failed, fall back to small h](j)}(h``VM_FAULT_FALLBACK``h]jS)}(hjHh]hVM_FAULT_FALLBACK}(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*huge page fault failed, fall back to smallh]h*huge page fault failed, fall back to small}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjFubj)}(h4``VM_FAULT_DONE_COW`` ->fault has fully handled COW h](j)}(h``VM_FAULT_DONE_COW``h]jS)}(hjIh]hVM_FAULT_DONE_COW}(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->fault has fully handled COWh]h->fault has fully handled COW}(hj/IhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+IhMhj,Iubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhj+IhMhjFubj)}(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)}(hjOIh]hVM_FAULT_NEEDDSYNC}(hjQIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMIubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjIIubj)}(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)}(hjhIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjeIubah}(h]h ]h"]h$]h&]uh1jhjIIubeh}(h]h ]h"]h$]h&]uh1jhjdIhMhjFubj)}(hG``VM_FAULT_COMPLETED`` ->fault completed, meanwhile mmap lock released h](j)}(h``VM_FAULT_COMPLETED``h]jS)}(hjIh]hVM_FAULT_COMPLETED}(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/->fault completed, meanwhile mmap lock releasedh]h/->fault completed, meanwhile mmap lock released}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjFubj)}(h*``VM_FAULT_HINDEX_MASK`` mask HINDEX valueh](j)}(h``VM_FAULT_HINDEX_MASK``h]jS)}(hjIh]hVM_FAULT_HINDEX_MASK}(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)}(hmask HINDEX valueh]hmask HINDEX value}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjFubeh}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhja6hNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfault_flag (C enum) c.fault_flaghNtauh1hhjxhhhja6hNubh)}(hhh](h)}(h fault_flagh]h)}(henum fault_flagh](j5)}(hj+h]henum}(hjJhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjJhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMubj)}(h h]h }(hj*JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhj)JhMubh)}(h fault_flagh]j)}(hjJh]h fault_flag}(hjorig_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)}(hjJh]h Constants}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Jubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjzJubj)}(hhh](j)}(h.``FAULT_FLAG_WRITE`` Fault was a write fault. h](j)}(h``FAULT_FLAG_WRITE``h]jS)}(hjJh]hFAULT_FLAG_WRITE}(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)}(hFault was a write fault.h]hFault was a write fault.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjJubj)}(h:``FAULT_FLAG_MKWRITE`` Fault was mkwrite of existing PTE. h](j)}(h``FAULT_FLAG_MKWRITE``h]jS)}(hjJh]hFAULT_FLAG_MKWRITE}(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"Fault was mkwrite of existing PTE.h]h"Fault was mkwrite of existing PTE.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjJubj)}(h@``FAULT_FLAG_ALLOW_RETRY`` Allow to retry the fault if blocked. h](j)}(h``FAULT_FLAG_ALLOW_RETRY``h]jS)}(hjKh]hFAULT_FLAG_ALLOW_RETRY}(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.hhMhj Kubj)}(hhh]jM)}(h$Allow to retry the fault if blocked.h]h$Allow to retry the fault if blocked.}(hj*KhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&KhMhj'Kubah}(h]h ]h"]h$]h&]uh1jhj Kubeh}(h]h ]h"]h$]h&]uh1jhj&KhMhjJubj)}(hI``FAULT_FLAG_RETRY_NOWAIT`` Don't drop mmap_lock and wait when retrying. h](j)}(h``FAULT_FLAG_RETRY_NOWAIT``h]jS)}(hjJKh]hFAULT_FLAG_RETRY_NOWAIT}(hjLKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHKubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjDKubj)}(hhh]jM)}(h,Don't drop mmap_lock and wait when retrying.h]h.Don’t drop mmap_lock and wait when retrying.}(hjcKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_KhMhj`Kubah}(h]h ]h"]h$]h&]uh1jhjDKubeh}(h]h ]h"]h$]h&]uh1jhj_KhMhjJubj)}(hF``FAULT_FLAG_KILLABLE`` The fault task is in SIGKILL killable region. h](j)}(h``FAULT_FLAG_KILLABLE``h]jS)}(hjKh]hFAULT_FLAG_KILLABLE}(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.hhMhj}Kubj)}(hhh]jM)}(h-The fault task is in SIGKILL killable region.h]h-The fault task is in SIGKILL killable region.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhj}Kubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjJubj)}(h4``FAULT_FLAG_TRIED`` The fault has been tried once. h](j)}(h``FAULT_FLAG_TRIED``h]jS)}(hjKh]hFAULT_FLAG_TRIED}(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)}(hThe fault has been tried once.h]hThe fault has been tried once.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjJubj)}(h7``FAULT_FLAG_USER`` The fault originated in userspace. h](j)}(h``FAULT_FLAG_USER``h]jS)}(hjKh]hFAULT_FLAG_USER}(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 originated in userspace.h]h"The fault originated in userspace.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj LhMhj Lubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhj LhMhjJubj)}(h<``FAULT_FLAG_REMOTE`` The fault is not for current task/mm. h](j)}(h``FAULT_FLAG_REMOTE``h]jS)}(hj.Lh]hFAULT_FLAG_REMOTE}(hj0LhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj,Lubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj(Lubj)}(hhh]jM)}(h%The fault is not for current task/mm.h]h%The fault is not for current task/mm.}(hjGLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjCLhMhjDLubah}(h]h ]h"]h$]h&]uh1jhj(Lubeh}(h]h ]h"]h$]h&]uh1jhjCLhMhjJubj)}(hF``FAULT_FLAG_INSTRUCTION`` The fault was during an instruction fetch. h](j)}(h``FAULT_FLAG_INSTRUCTION``h]jS)}(hjgLh]hFAULT_FLAG_INSTRUCTION}(hjiLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeLubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjaLubj)}(hhh]jM)}(h*The fault was during an instruction fetch.h]h*The fault was during an instruction fetch.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|LhMhj}Lubah}(h]h ]h"]h$]h&]uh1jhjaLubeh}(h]h ]h"]h$]h&]uh1jhj|LhMhjJubj)}(hP``FAULT_FLAG_INTERRUPTIBLE`` The fault can be interrupted by non-fatal signals. h](j)}(h``FAULT_FLAG_INTERRUPTIBLE``h]jS)}(hjLh]hFAULT_FLAG_INTERRUPTIBLE}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjLubj)}(hhh]jM)}(h2The fault can be interrupted by non-fatal signals.h]h2The fault can be interrupted by non-fatal signals.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjJubj)}(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)}(hjLh]hFAULT_FLAG_UNSHARE}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjLubj)}(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.}(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&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjJubj)}(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)}(hjMh]hFAULT_FLAG_ORIG_PTE_VALID}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj Mubj)}(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.}(hj,MhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj)Mubah}(h]h ]h"]h$]h&]uh1jhj Mubeh}(h]h ]h"]h$]h&]uh1jhj(MhMhjJubj)}(h<``FAULT_FLAG_VMA_LOCK`` The fault is handled under VMA lock.h](j)}(h``FAULT_FLAG_VMA_LOCK``h]jS)}(hjMMh]hFAULT_FLAG_VMA_LOCK}(hjOMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjKMubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjGMubj)}(hhh]jM)}(h$The fault is handled under VMA lock.h]h$The fault is handled under VMA lock.}(hjfMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjcMubah}(h]h ]h"]h$]h&]uh1jhjGMubeh}(h]h ]h"]h$]h&]uh1jhjbMhMhjJubeh}(h]h ]h"]h$]h&]uh1jhjzJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhja6hNubjM)}(h**Description**h]j)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjxhhubjM)}(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 }(hjMhhhNhNubj)}(h**FAULT_FLAG_ALLOW_RETRY**h]hFAULT_FLAG_ALLOW_RETRY}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh and }(hjMhhhNhNubj)}(h**FAULT_FLAG_TRIED**h]hFAULT_FLAG_TRIED}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh: 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:}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjxhhubj+)}(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}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjMubj)}(hhh]jM)}(hthis is the first tryh]hthis is the first try}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1j+hjMubj+)}(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}(hj*NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj&Nubj)}(hhh]jM)}(h!we've already tried at least onceh]h#we’ve already tried at least once}(hjhj|Qubj)}(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)}(hjQh]hstruct 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.hhK@hjQubj)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK;hjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhK@hjQubah}(h]h ]h"]h$]h&]uh1jhj|Qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_lru_list (C function)c.folio_lru_listhNtauh1hhjxhhhNhNubh)}(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)}(hj+h]henum}(hjQhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjQhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKLubj)}(h h]h }(hj RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjRhKLubh)}(hhh]j)}(hlru_listh]hlru_list}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRmodnameN classnameNjpjs)}jv]jy)}jlfolio_lru_listsbc.folio_lru_listasbuh1hhjQhhhjRhKLubj)}(h h]h }(hj;RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjRhKLubh)}(hfolio_lru_listh]j)}(hj8Rh]hfolio_lru_list}(hjMRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIRubah}(h]h ](jjeh"]h$]h&]jjuh1hhjQhhhjRhKLubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjhRhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdRubj)}(h h]h }(hjuRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdRubj5)}(hj8h]hstruct}(hjRhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdRubh)}(hhh]j)}(hfolioh]hfolio}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRmodnameN classnameNjpjs)}jv]j6Rc.folio_lru_listasbuh1hhjdRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdRubjF )}(hjI h]h*}(hjRhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjdRubj)}(hfolioh]hfolio}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`Rubah}(h]h ]h"]h$]h&]jjuh1j hjQhhhjRhKLubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjQhhhjRhKLubah}(h]jQah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjRhKLhjQhhubj4)}(hhh]jM)}(h$Which LRU list should a folio be on?h]h$Which LRU list should a folio be on?}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKLhjShhubah}(h]h ]h"]h$]h&]uh1j3hjQhhhjRhKLubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjSjHjSjIjJjKuh1hhhhjxhNhNubj)}(h**Parameters** ``const struct folio *folio`` The folio to test. **Return** The LRU list a folio should be on, as an index into the array of LRU lists.h](jM)}(h**Parameters**h]j)}(hj&Sh]h Parameters}(hj(ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Subah}(h]h ]h"]h$]h&]uh1jLhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKPhj Subj)}(hhh]j)}(h1``const struct folio *folio`` The folio to test. h](j)}(h``const struct folio *folio``h]jS)}(hjESh]hconst struct folio *folio}(hjGShhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCSubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKMhj?Subj)}(hhh]jM)}(hThe folio to test.h]hThe folio to test.}(hj^ShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZShKMhj[Subah}(h]h ]h"]h$]h&]uh1jhj?Subeh}(h]h ]h"]h$]h&]uh1jhjZShKMhjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Wubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM+hj|VubjM)}(h#The folio which contains this page.h]h#The folio which contains this page.}(hjRWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM*hj|Vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_page (C macro) c.folio_pagehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h folio_pageh]h)}(h folio_pageh]h)}(h folio_pageh]j)}(hj{Wh]h folio_page}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1hhj}Whhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM1ubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjyWhhhjWhM1ubah}(h]jtWah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjWhM1hjvWhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjvWhhhjWhM1ubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjWjHjWjIjJjKuh1hhhhjxhNhNubjM)}(h``folio_page (folio, n)``h]jS)}(hjWh]hfolio_page (folio, n)}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjWubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM3hjxhhubji)}(hReturn a page from a folio. h]jM)}(hReturn a page from a folio.h]hReturn a page from a folio.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM1hjWubah}(h]h ]h"]h$]h&]uh1jhhjWhM1hjxhhubj)}(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)}(hjWh]h Parameters}(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.hhM5hjWubj)}(hhh](j)}(h``folio`` The folio. h](j)}(h ``folio``h]jS)}(hj Xh]hfolio}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj Xubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM2hjXubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj$XhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj XhM2hj!Xubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhj XhM2hjXubj)}(h!``n`` The page number to return. h](j)}(h``n``h]jS)}(hjDXh]hn}(hjFXhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBXubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM3hj>Xubj)}(hhh]jM)}(hThe page number to return.h]hThe page number to return.}(hj]XhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYXhM3hjZXubah}(h]h ]h"]h$]h&]uh1jhj>Xubeh}(h]h ]h"]h$]h&]uh1jhjYXhM3hjXubeh}(h]h ]h"]h$]h&]uh1jhjWubjM)}(h**Description**h]j)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Xubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM5hjWubjM)}(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}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubhg is relative to the start of the folio. This function does not check that the page number lies within }(hjXhhhNhNubj)}(h **folio**h]hfolio}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh9; the caller is presumed to have a reference to the page.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM4hjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(folio_xor_flags_has_waiters (C function)c.folio_xor_flags_has_waitershNtauh1hhjxhhhNhNubh)}(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}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjXhMubh)}(hfolio_xor_flags_has_waitersh]j)}(hfolio_xor_flags_has_waitersh]hfolio_xor_flags_has_waiters}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1hhjXhhhjXhMubj )}(h)(struct folio *folio, unsigned long mask)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj YhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjYubj)}(h h]h }(hj-YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(hfolioh]hfolio}(hj>YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Yubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj@YmodnameN classnameNjpjs)}jv]jy)}jljYsbc.folio_xor_flags_has_waitersasbuh1hhjYubj)}(h h]h }(hj^YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjF )}(hjI h]h*}(hjlYhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjYubj)}(hfolioh]hfolio}(hjyYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubj )}(hunsigned long maskh](j)}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hmaskh]hmask}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjYubeh}(h]h ]h"]h$]h&]jjuh1j hjXhhhjXhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjXhhhjXhMubah}(h]jXah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjXhMhjXhhubj4)}(hhh]jM)}(hChange some folio flags.h]hChange some folio flags.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjYhhubah}(h]h ]h"]h$]h&]uh1j3hjXhhhjXhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj ZjHj ZjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.hhMhjZubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hj5Zh]hstruct folio *folio}(hj7ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3Zubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj/Zubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjNZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJZhMhjKZubah}(h]h ]h"]h$]h&]uh1jhj/Zubeh}(h]h ]h"]h$]h&]uh1jhjJZhMhj,Zubj)}(h>``unsigned long mask`` Bits set in this word will be changed. h](j)}(h``unsigned long mask``h]jS)}(hjnZh]hunsigned long mask}(hjpZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlZubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjhZubj)}(hhh]jM)}(h&Bits set in this word will be changed.h]h&Bits set in this word will be changed.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjhZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj,Zubeh}(h]h ]h"]h$]h&]uh1jhjZubjM)}(h**Description**h]j)}(hjZh]h Description}(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.hhMhjZubjM)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjZubjM)}(h **Return**h]j)}(hjZh]hReturn}(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.hhMhjZubjM)}(h-Whether there are tasks waiting on the folio.h]h-Whether there are tasks waiting on the folio.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_test_uptodate (C function)c.folio_test_uptodatehNtauh1hhjxhhhNhNubh)}(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}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMubj)}(h h]h }(hj#[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhj"[hMubh)}(hfolio_test_uptodateh]j)}(hfolio_test_uptodateh]hfolio_test_uptodate}(hj5[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj[hhhj"[hMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjQ[hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjM[ubj)}(h h]h }(hj^[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM[ubj5)}(hj8h]hstruct}(hjl[hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjM[ubj)}(h h]h }(hjy[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM[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)}jlj7[sbc.folio_test_uptodateasbuh1hhjM[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)}(hfolioh]hfolio}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM[ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjI[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)}(hIs this folio up to date?h]hIs this folio up to date?}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj[hhubah}(h]h ]h"]h$]h&]uh1j3hj [hhhj"[hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj\jHj\jIjJjKuh1hhhhjxhNhNubj)}(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)}(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 folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hj0\h]hconst struct folio *folio}(hj2\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.\ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj*\ubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjI\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjE\hMhjF\ubah}(h]h ]h"]h$]h&]uh1jhj*\ubeh}(h]h ]h"]h$]h&]uh1jhjE\hMhj'\ubah}(h]h ]h"]h$]h&]uh1jhj \ubjM)}(h**Description**h]j)}(hjk\h]h Description}(hjm\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji\ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hj \ubjM)}(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 hj \ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_test_large (C function)c.folio_test_largehNtauh1hhjxhhhNhNubh)}(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}(hj\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 }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj\hMYubh)}(hfolio_test_largeh]j)}(hfolio_test_largeh]hfolio_test_large}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj\hhhj\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)}jlj\sbc.folio_test_largeasbuh1hhj\ubj)}(h h]h }(hjE]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjF )}(hjI h]h*}(hjS]hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj\ubj)}(hfolioh]hfolio}(hj`]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubah}(h]h ]h"]h$]h&]jjuh1j hj\hhhj\hMYubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj\hhhj\hMYubah}(h]j\ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj\hMYhj\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&]uh1j3hj\hhhj\hMYubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj]jHj]jIjJjKuh1hhhhjxhNhNubj)}(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}(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)}(h1``const struct folio *folio`` The folio to test. 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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMZhj]ubj)}(hhh]jM)}(hThe folio to test.h]hThe folio to test.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]hMZhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMZhj]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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hPageHuge (C function) c.PageHugehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h'bool PageHuge (const struct page *page)h]h)}(h&bool PageHuge(const struct page *page)h](j)}(hj)h]hbool}(hjK^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG^hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM#ubj)}(h h]h }(hjY^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG^hhhjX^hM#ubh)}(hPageHugeh]j)}(hPageHugeh]hPageHuge}(hjk^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg^ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjG^hhhjX^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}(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)}jljm^sb c.PageHugeasbuh1hhj^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 hjG^hhhjX^hM#ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjC^hhhjX^hM#ubah}(h]j>^ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjX^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@^hhhjX^hM#ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj=_jHj=_jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjG_h]h Parameters}(hjI_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE_ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM'hjA_ubj)}(hhh]j)}(h.``const struct page *page`` The page to test. h](j)}(h``const struct page *page``h]jS)}(hjf_h]hconst struct page *page}(hjh_hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjd_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&]uh1jhjA_ubjM)}(h **Context**h]j)}(hj_h]hContext}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM&hjA_ubjM)}(h Any context.h]h Any context.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM&hjA_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(hjA_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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM'hjA_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!page_has_movable_ops (C function)c.page_has_movable_opshNtauh1hhjxhhhNhNubh)}(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.hhMhubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj `hhhj`hMhubh)}(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`hMhubj )}(h(const struct page *page)h]j )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjI`hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjE`ubj)}(h h]h }(hjV`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE`ubj5)}(hj8h]hstruct}(hjd`hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjE`ubj)}(h h]h }(hjq`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE`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_opsasbuh1hhjE`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE`ubjF )}(hjI h]h*}(hj`hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjE`ubj)}(hpageh]hpage}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjA`ubah}(h]h ]h"]h$]h&]jjuh1j hj `hhhj`hMhubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj`hhhj`hMhubah}(h]j`ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj`hMhhj`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.hhMhhj`hhubah}(h]h ]h"]h$]h&]uh1j3hj`hhhj`hMhubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj`jHj`jIjJjKuh1hhhhjxhNhNubj)}(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 ah]h Parameters}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMlhjaubj)}(hhh]j)}(h.``const struct page *page`` The page to test. h](j)}(h``const struct page *page``h]jS)}(hj(ah]hconst struct page *page}(hj*ahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&aubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMihj"aubj)}(hhh]jM)}(hThe page to test.h]hThe page to test.}(hjAahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=ahMihj>aubah}(h]h ]h"]h$]h&]uh1jhj"aubeh}(h]h ]h"]h$]h&]uh1jhj=ahMihjaubah}(h]h ]h"]h$]h&]uh1jhjaubjM)}(h**Description**h]j)}(hjcah]h Description}(hjeahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaaubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMkhjaubjM)}(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.}(hjyahhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMjhjaubjM)}(hunsigned 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}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMubj)}(hlongh]hlong}(hj$hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMubj)}(h h]h }(hj2hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMubh)}(hvma_kernel_pagesizeh]j)}(hvma_kernel_pagesizeh]hvma_kernel_pagesize}(hjDhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhhjhhMubj )}(h(struct vm_area_struct *vma)h]j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj`hhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj\hubj)}(h h]h }(hjmhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj~hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjhmodnameN classnameNjpjs)}jv]jy)}jljFhsbc.vma_kernel_pagesizeasbuh1hhj\hubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hubjF )}(hjI h]h*}(hjhhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj\hubj)}(hvmah]hvma}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjXhubah}(h]h ]h"]h$]h&]jjuh1j hjhhhhjhhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjghhhjhhMubah}(h]jgah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhhMhjghhubj4)}(hhh]jM)}(h+Default page size granularity for this VMA.h]h+Default page size granularity for this VMA.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjhhhubah}(h]h ]h"]h$]h&]uh1j3hjghhhjhhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjhjHjhjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.hhMhjhubj)}(hhh]j)}(h1``struct vm_area_struct *vma`` The user mapping. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hj$ih]hstruct vm_area_struct *vma}(hj&ihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"iubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjiubj)}(hhh]jM)}(hThe user mapping.h]hThe user mapping.}(hj=ihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9ihMhj:iubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhj9ihMhjiubah}(h]h ]h"]h$]h&]uh1jhjhubjM)}(h**Description**h]j)}(hj_ih]h Description}(hjaihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]iubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjhubjM)}(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.}(hjuihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjhubjM)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM!hjhubjM)}(h **Return**h]j)}(hjih]hReturn}(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.hhM$hjhubjM)}(h/The default page size granularity for this VMA.h]h/The default page size granularity for this VMA.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM%hjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_order (C function) c.folio_orderhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h4unsigned int folio_order (const struct folio *folio)h]h)}(h3unsigned int folio_order(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjihMubj)}(hinth]hint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjihMubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjihMubh)}(h folio_orderh]j)}(h folio_orderh]h folio_order}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjihhhjihMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj3jhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj/jubj)}(h h]h }(hj@jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/jubj5)}(hj8h]hstruct}(hjNjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj/jubj)}(h h]h }(hj[jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/jubh)}(hhh]j)}(hfolioh]hfolio}(hjljhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjijubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnjmodnameN classnameNjpjs)}jv]jy)}jljjsb c.folio_orderasbuh1hhj/jubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/jubjF )}(hjI h]h*}(hjjhhhNhNubah}(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 hj+jubah}(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 The allocation order of a folio.h]h The allocation order of a folio.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjjhhubah}(h]h ]h"]h$]h&]uh1j3hjihhhjihMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjjHjjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjjh]h Parameters}(hjjhhhNhNubah}(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.hhMhjjubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjkh]hconst struct folio *folio}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjkubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj kubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj+khhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'khMhj(kubah}(h]h ]h"]h$]h&]uh1jhj kubeh}(h]h ]h"]h$]h&]uh1jhj'khMhj kubah}(h]h ]h"]h$]h&]uh1jhjjubjM)}(h**Description**h]j)}(hjMkh]h Description}(hjOkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKkubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjjubjM)}(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.}(hjckhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjjubjM)}(h **Return**h]j)}(hjtkh]hReturn}(hjvkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrkubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjjubjM)}(hThe order of the folio.h]hThe order of the folio.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_reset_order (C function)c.folio_reset_orderhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h,void folio_reset_order (struct folio *folio)h]h)}(h+void folio_reset_order(struct folio *folio)h](j)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhjkhMubh)}(hfolio_reset_orderh]j)}(hfolio_reset_orderh]hfolio_reset_order}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1hhjkhhhjkhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjkhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hhh]j)}(hfolioh]hfolio}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlmodnameN classnameNjpjs)}jv]jy)}jljksbc.folio_reset_orderasbuh1hhjkubj)}(h h]h }(hj4lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjF )}(hjI h]h*}(hjBlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjkubj)}(hfolioh]hfolio}(hjOlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkubah}(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)}(h+Reset the folio order and derived _nr_pagesh]h+Reset the folio order and derived _nr_pages}(hjylhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjvlhhubah}(h]h ]h"]h$]h&]uh1j3hjkhhhjkhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjljHjljIjJjKuh1hhhhjxhNhNubj)}(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)}(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.hhMhjlubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjlh]hstruct 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.hhMhjlubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubjM)}(h**Description**h]j)}(hjlh]h Description}(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.hhMhjlubjM)}(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.}(hj mhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mapcount (C function)c.folio_mapcounthNtauh1hhjxhhhNhNubh)}(hhh](h)}(h.int folio_mapcount (const struct folio *folio)h]h)}(h-int folio_mapcount(const struct folio *folio)h](j)}(hinth]hint}(hj:mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6mhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM8ubj)}(h h]h }(hjImhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6mhhhjHmhM8ubh)}(hfolio_mapcounth]j)}(hfolio_mapcounth]hfolio_mapcount}(hj[mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWmubah}(h]h ](jjeh"]h$]h&]jjuh1hhj6mhhhjHmhM8ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjwmhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsmubj5)}(hj8h]hstruct}(hjmhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsmubh)}(hhh]j)}(hfolioh]hfolio}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmmodnameN classnameNjpjs)}jv]jy)}jlj]msbc.folio_mapcountasbuh1hhjsmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsmubjF )}(hjI h]h*}(hjmhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsmubj)}(hfolioh]hfolio}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsmubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjomubah}(h]h ]h"]h$]h&]jjuh1j hj6mhhhjHmhM8ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj2mhhhjHmhM8ubah}(h]j-mah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjHmhM8hj/mhhubj4)}(hhh]jM)}(h!Number of mappings of this folio.h]h!Number of mappings of this folio.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM8hjnhhubah}(h]h ]h"]h$]h&]uh1j3hj/mhhhjHmhM8ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj-njHj-njIjJjKuh1hhhhjxhNhNubj)}(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)}(hj7nh]h Parameters}(hj9nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5nubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM<hj1nubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjVnh]hconst struct folio *folio}(hjXnhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjTnubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM9hjPnubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjonhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjknhM9hjlnubah}(h]h ]h"]h$]h&]uh1jhjPnubeh}(h]h ]h"]h$]h&]uh1jhjknhM9hjMnubah}(h]h ]h"]h$]h&]uh1jhj1nubjM)}(h**Description**h]j)}(hjnh]h Description}(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;hj1nubjM)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM:hj1nubjM)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM>hj1nubjM)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMAhj1nubjM)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMEhj1nubjM)}(h **Return**h]j)}(hjnh]hReturn}(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.hhMHhj1nubjM)}(h)The number of times this folio is mapped.h]h)The number of times this folio is mapped.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMIhj1nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mapped (C function)c.folio_mappedhNtauh1hhjxhhhNhNubh)}(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}(hj*ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ohhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMYubj)}(h h]h }(hj8ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ohhhj7ohMYubh)}(h folio_mappedh]j)}(h folio_mappedh]h folio_mapped}(hjJohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFoubah}(h]h ](jjeh"]h$]h&]jjuh1hhj&ohhhj7ohMYubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjfohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjboubj)}(h h]h }(hjsohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjboubj5)}(hj8h]hstruct}(hjohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjboubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjboubh)}(hhh]j)}(hfolioh]hfolio}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjomodnameN classnameNjpjs)}jv]jy)}jljLosbc.folio_mappedasbuh1hhjboubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjboubjF )}(hjI h]h*}(hjohhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjboubj)}(hfolioh]hfolio}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjboubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj^oubah}(h]h ]h"]h$]h&]jjuh1j hj&ohhhj7ohMYubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj"ohhhj7ohMYubah}(h]joah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj7ohMYhjohhubj4)}(hhh]jM)}(h$Is this folio mapped into userspace?h]h$Is this folio mapped into userspace?}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMYhjphhubah}(h]h ]h"]h$]h&]uh1j3hjohhhj7ohMYubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjpjHjpjIjJjKuh1hhhhjxhNhNubj)}(h**Parameters** ``const struct folio *folio`` The folio. **Return** True if any page in this folio is referenced by user page tables.h](jM)}(h**Parameters**h]j)}(hj&ph]h Parameters}(hj(phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$pubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM]hj pubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjEph]hconst struct folio *folio}(hjGphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCpubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMZhj?pubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj^phhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZphMZhj[pubah}(h]h ]h"]h$]h&]uh1jhj?pubeh}(h]h ]h"]h$]h&]uh1jhjZphMZhjqmodnameN classnameNjpjs)}jv]jy)}jljqsb c.thp_orderasbuh1hhjqubj)}(h h]h }(hj\qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjF )}(hjI h]h*}(hjjqhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjqubj)}(hpageh]hpage}(hjwqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjqubah}(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!Order of a transparent huge page.h]h!Order 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&]jFjAjGjqjHjqjIjJjKuh1hhhhjxhNhNubj)}(hM**Parameters** ``struct page *page`` Head page of a transparent huge 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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hthp_size (C function) c.thp_sizehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h*unsigned long thp_size (struct page *page)h]h)}(h)unsigned long thp_size(struct page *page)h](j)}(hunsignedh]hunsigned}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:vubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj6vubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hj[vh]hstruct folio *folio}(hj]vhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYvubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjUvubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjtvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjpvhMhjqvubah}(h]h ]h"]h$]h&]uh1jhjUvubeh}(h]h ]h"]h$]h&]uh1jhjpvhMhjRvubah}(h]h ]h"]h$]h&]uh1jhj6vubjM)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj6vubjM)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj6vubjM)}(h **Context**h]j)}(hjvh]hContext}(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.hhM#hj6vubjM)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM$hj6vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_put_refs (C function)c.folio_put_refshNtauh1hhjxhhhNhNubh)}(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}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM.ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjwhM.ubh)}(hfolio_put_refsh]j)}(hfolio_put_refsh]hfolio_put_refs}(hj#whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1hhjvhhhjwhM.ubj )}(h(struct folio *folio, int refs)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj?whhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj;wubj)}(h h]h }(hjLwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;wubh)}(hhh]j)}(hfolioh]hfolio}(hj]whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZwubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_wmodnameN classnameNjpjs)}jv]jy)}jlj%wsbc.folio_put_refsasbuh1hhj;wubj)}(h h]h }(hj}whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;wubjF )}(hjI h]h*}(hjwhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj;wubj)}(hfolioh]hfolio}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;wubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj7wubj )}(hint refsh](j)}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hrefsh]hrefs}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj7wubeh}(h]h ]h"]h$]h&]jjuh1j hjvhhhjwhM.ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjvhhhjwhM.ubah}(h]jvah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjwhM.hjvhhubj4)}(hhh]jM)}(h&Reduce the reference count on a folio.h]h&Reduce the reference count on a folio.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM.hjwhhubah}(h]h ]h"]h$]h&]uh1j3hjvhhhjwhM.ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjxjHjxjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.hhM2hjxubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hj8xh]hstruct folio *folio}(hj:xhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6xubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM/hj2xubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjQxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMxhM/hjNxubah}(h]h ]h"]h$]h&]uh1jhj2xubeh}(h]h ]h"]h$]h&]uh1jhjMxhM/hj/xubj)}(hF``int refs`` The amount to subtract from the folio's reference count. h](j)}(h ``int refs``h]jS)}(hjqxh]hint refs}(hjsxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoxubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM0hjkxubj)}(hhh]jM)}(h8The amount to subtract from the folio's reference count.h]h:The amount to subtract from the folio’s reference count.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhM0hjxubah}(h]h ]h"]h$]h&]uh1jhjkxubeh}(h]h ]h"]h$]h&]uh1jhjxhM0hj/xubeh}(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.hhM2hjxubjM)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM1hjxubjM)}(h **Context**h]j)}(hjxh]hContext}(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.hhM7hjxubjM)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM8hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolios_put (C function) c.folios_puthNtauh1hhjxhhhNhNubh)}(hhh](h)}(h,void folios_put (struct folio_batch *folios)h]h)}(h+void folios_put(struct folio_batch *folios)h](j)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMWubj)}(h h]h }(hj'yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhj&yhMWubh)}(h folios_puth]j)}(h folios_puth]h folios_put}(hj9yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5yubah}(h]h ](jjeh"]h$]h&]jjuh1hhjyhhhj&yhMWubj )}(h(struct folio_batch *folios)h]j )}(hstruct folio_batch *foliosh](j5)}(hj8h]hstruct}(hjUyhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjQyubj)}(h h]h }(hjbyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQyubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjsyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjuymodnameN classnameNjpjs)}jv]jy)}jlj;ysb c.folios_putasbuh1hhjQyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQyubjF )}(hjI h]h*}(hjyhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjQyubj)}(hfoliosh]hfolios}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjMyubah}(h]h ]h"]h$]h&]jjuh1j hjyhhhj&yhMWubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjyhhhj&yhMWubah}(h]j yah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj&yhMWhj yhhubj4)}(hhh]jM)}(h4Decrement the reference count on an array of folios.h]h4Decrement the reference count on an array of folios.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMWhjyhhubah}(h]h ]h"]h$]h&]uh1j3hj yhhhj&yhMWubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjyjHjyjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM[hjyubj)}(hhh]j)}(h+``struct folio_batch *folios`` The folios. h](j)}(h``struct folio_batch *folios``h]jS)}(hjzh]hstruct folio_batch *folios}(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.hhMXhjzubj)}(hhh]jM)}(h The folios.h]h The folios.}(hj2zhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.zhMXhj/zubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj.zhMXhjzubah}(h]h ]h"]h$]h&]uh1jhjyubjM)}(h**Description**h]j)}(hjTzh]h Description}(hjVzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRzubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMZhjyubjM)}(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.}(hjjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMYhjyubjM)}(h **Context**h]j)}(hj{zh]hContext}(hj}zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyzubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM_hjyubjM)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM`hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_pfn (C function) c.folio_pfnhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h3unsigned long folio_pfn (const struct folio *folio)h]h)}(h2unsigned long folio_pfn(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhM ubj)}(hlongh]hlong}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhM ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhM ubh)}(h folio_pfnh]j)}(h folio_pfnh]h folio_pfn}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jjuh1hhjzhhhjzhM 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}(hj4{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj{ubj)}(h h]h }(hjA{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]j)}(hfolioh]hfolio}(hjR{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO{ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjT{modnameN classnameNjpjs)}jv]jy)}jljzsb c.folio_pfnasbuh1hhj{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)}(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 hjzhhhjzhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjzhhhjzhM ubah}(h]jzah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjzhM hjzhhubj4)}(hhh]jM)}(h(Return the Page Frame Number of a folio.h]h(Return the Page Frame Number of 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&]uh1j3hjzhhhjzhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj{jHj{jIjJjKuh1hhhhjxhNhNubj)}(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)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj{ubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(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)}(h The folio.h]h The folio.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj |hM hj|ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj |hM hj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubjM)}(h**Description**h]j)}(hj3|h]h Description}(hj5|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1|ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj{ubjM)}(hSA folio may contain multiple pages. The pages have consecutive Page Frame Numbers.h]hSA folio may contain multiple pages. The pages have consecutive Page Frame Numbers.}(hjI|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)}(hjZ|h]hReturn}(hj\|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX|ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj{ubjM)}(h5The Page Frame Number of the first page in the folio.h]h5The Page Frame Number of the first page in the folio.}(hjp|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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mk_pte (C function)c.folio_mk_ptehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h?pte_t folio_mk_pte (const struct folio *folio, pgprot_t pgprot)h]h)}(h>pte_t folio_mk_pte(const struct folio *folio, pgprot_t pgprot)h](h)}(hhh]j)}(hpte_th]hpte_t}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj|modnameN classnameNjpjs)}jv]jy)}jl folio_mk_ptesbc.folio_mk_pteasbuh1hhj|hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj|hM ubh)}(h folio_mk_pteh]j)}(hj|h]h folio_mk_pte}(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_pteasbuh1hhj|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)}(hfolioh]hfolio}(hjc}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]j|c.folio_mk_pteasbuh1hhjx}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx}ubj)}(hpgproth]hpgprot}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx}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 PTE for this folioh]hCreate a PTE 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}jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjO~h]hpgprot_t pgprot}(hjQ~hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjM~ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjI~ubj)}(hhh]jM)}(hThe page protection bits to useh]hThe page protection bits to use}(hjh~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjd~hM hje~ubah}(h]h ]h"]h$]h&]uh1jhjI~ubeh}(h]h ]h"]h$]h&]uh1jhjd~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().}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj}ubjM)}(h **Return**h]j)}(hj~h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj}ubjM)}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mk_pmd (C function)c.folio_mk_pmdhNtauh1hhjxhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhM ubh)}(h folio_mk_pmdh]j)}(hjh]h folio_mk_pmd}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj~hhhjhM ubj )}(h,(const struct folio *folio, pgprot_t pgprot)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj5)}(hj8h]hstruct}(hjchhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_mk_pmdasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj@ubj )}(hpgprot_t pgproth](h)}(hhh]j)}(hpgprot_th]hpgprot_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_mk_pmdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpgproth]hpgprot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j 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)}(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~hhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjDjHjDjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjNh]h Parameters}(hjPhhhNhNubah}(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 hjHubj)}(hhh](j)}(h<``const struct folio *folio`` The folio to create a PMD for h](j)}(h``const struct folio *folio``h]jS)}(hjmh]hconst struct folio *folio}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjkubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjgubj)}(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&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhM hjdubj)}(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 hjdubeh}(h]h ]h"]h$]h&]uh1jhjHubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj߀ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjHubjM)}(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 hjHubjM)}(h **Return**h]j)}(hjh]hReturn}(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.hhM hjHubjM)}(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 hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mk_pud (C function)c.folio_mk_pudhNtauh1hhjxhhhNhNubh)}(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}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjRmodnameN classnameNjpjs)}jv]jy)}jl folio_mk_pudsbc.folio_mk_pudasbuh1hhjIhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjqhM ubh)}(h folio_mk_pudh]j)}(hjnh]h folio_mk_pud}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjIhhhjqhM ubj )}(h,(const struct folio *folio, pgprot_t pgprot)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]jlc.folio_mk_pudasbuh1hhjubj)}(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 )}(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]jlc.folio_mk_pudasbuh1hhj&ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hpgproth]hpgprot}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjIhhhjqhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjEhhhjqhM ubah}(h]j@ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjqhM hjBhhubj4)}(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&]uh1j3hjBhhhjqhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubj)}(hhh](j)}(h<``const struct folio *folio`` The folio to create a PUD 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 hjubj)}(hhh]jM)}(hThe folio to create a PUD forh]hThe folio to create a PUD for}(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)}(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 hjubeh}(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&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(hiCreate a page table entry for the first page of this folio. This is suitable for passing to set_pud_at().h]hiCreate a page table entry for the first page of this folio. This is suitable for passing to set_pud_at().}(hjNhhhNhNubah}(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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(h3A page table entry suitable for mapping this folio.h]h3A page table entry suitable for mapping this folio.}(hjuhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#folio_maybe_dma_pinned (C function)c.folio_maybe_dma_pinnedhNtauh1hhjxhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM, ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM, ubh)}(hfolio_maybe_dma_pinnedh]j)}(hfolio_maybe_dma_pinnedh]hfolio_maybe_dma_pinned}(hjăhhhNhNubah}(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&]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_maybe_dma_pinnedasbuh1hhj܃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}(hj9hhhNhNubah}(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(Report if a folio may be pinned for DMA.h]h(Report if a folio may be pinned for DMA.}(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&]uh1j3hjhhhjhM, ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj{jHj{jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM- hjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM- hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM- hjubah}(h]h ]h"]h$]h&]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)}(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.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM: hjubjM)}(hKFor more information, please see Documentation/core-api/pin_user_pages.rst.h]hKFor more information, please see Documentation/core-api/pin_user_pages.rst.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM> hjubjM)}(h **Return**h]j)}(hjBh]hReturn}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM@ hjubjM)}(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.}(hjXhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](his_zero_page (C function)c.is_zero_pagehNtauh1hhjxhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMg ubh)}(h is_zero_pageh]j)}(h is_zero_pageh]h is_zero_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMg ubj )}(h(const struct page *page)h]j )}(hconst struct page *pageh](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)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.is_zero_pageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj*hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMg ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMg ubah}(h]jzah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMg hj|hhubj4)}(hhh]jM)}(hQuery if a page is a zero pageh]hQuery if a page is a zero page}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMg hj^hhubah}(h]h ]h"]h$]h&]uh1j3hj|hhhjhMg ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjyjHjyjIjJjKuh1hhhhjxhNhNubj)}(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 hj}ubj)}(hhh]j)}(h.``const struct page *page`` The page to query 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMh hjubj)}(hhh]jM)}(hThe page to queryh]hThe page to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMh hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMh hjubah}(h]h ]h"]h$]h&]uh1jhj}ubjM)}(h**Description**h]j)}(hj݆h]h Description}(hj߆hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۆubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMj hj}ubjM)}(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 hj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](his_zero_folio (C function)c.is_zero_foliohNtauh1hhjxhhhNhNubh)}(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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMr ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjAhMr ubh)}(h is_zero_folioh]j)}(h is_zero_folioh]h is_zero_folio}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1hhj0hhhjAhMr ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlubj)}(h h]h }(hjhhhNhNubah}(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.is_zero_folioasbuh1hhjlubj)}(h h]h }(hjɇhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjF )}(hjI h]h*}(hjׇhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjlubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjhubah}(h]h ]h"]h$]h&]jjuh1j hj0hhhjAhMr ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj,hhhjAhMr ubah}(h]j'ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjAhMr hj)hhubj4)}(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 hj hhubah}(h]h ]h"]h$]h&]uh1j3hj)hhhjAhMr ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj&jHj&jIjJjKuh1hhhhjxhNhNubj)}(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)}(hj0h]h Parameters}(hj2hhhNhNubah}(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 hj*ubj)}(hhh]j)}(h1``const struct folio *folio`` The folio to query h](j)}(h``const struct folio *folio``h]jS)}(hjOh]hconst struct folio *folio}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMs hjIubj)}(hhh]jM)}(hThe folio to queryh]hThe folio to query}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjdhMs hjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMs hjFubah}(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.hhMu hj*ubjM)}(hBThis returns true if **folio** is one of the permanent zero pages.h](hThis returns true if }(hjhhhNhNubj)}(h **folio**h]hfolio}(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.hhMt hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_nr_pages (C function)c.folio_nr_pageshNtauh1hhjxhhhNhNubh)}(hhh](h)}(h8unsigned long folio_nr_pages (const struct folio *folio)h]h)}(h7unsigned long folio_nr_pages(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj݈hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj݈hhhjhM ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj݈hhhjhM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj݈hhhjhM ubh)}(hfolio_nr_pagesh]j)}(hfolio_nr_pagesh]hfolio_nr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj݈hhhjhM ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](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)}(hfolioh]hfolio}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjumodnameN classnameNjpjs)}jv]jy)}jlj sbc.folio_nr_pagesasbuh1hhj6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj6ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj2ubah}(h]h ]h"]h$]h&]jjuh1j hj݈hhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjوhhhjhM ubah}(h]jԈah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hjֈhhubj4)}(hhh]jM)}(h!The number of pages in the folio.h]h!The number of pages 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 hjՉhhubah}(h]h ]h"]h$]h&]uh1j3hjֈhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.}(hj2hhhNhNubah}(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)}(hjTh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(hA positive power of two.h]hA positive power of two.}(hjjhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_next (C function) c.folio_nexthNtauh1hhjxhhhNhNubh)}(hhh](h)}(h/struct folio * folio_next (struct folio *folio)h]h)}(h-struct folio *folio_next(struct folio *folio)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.hhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jl folio_nextsb c.folio_nextasbuh1hhjhhhjhM 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)}(h folio_nexth]j)}(hj֊h]h folio_next}(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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj3modnameN classnameNjpjs)}jv]jԊ c.folio_nextasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj]hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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 Move to the next physical folio.h]h Move to the next physical 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&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hXa**Parameters** ``struct folio *folio`` The folio we're currently operating on. **Description** If you have physically contiguous memory which may span more than one folio (eg a :c:type:`struct bio_vec `), use this function to move from one folio to the next. Do not use it if the memory is only virtually contiguous as the folios are almost certainly not adjacent to each other. This is the folio equivalent to writing ``page++``. **Context** We assume that the folios are refcounted and/or locked at a higher level and do not adjust the reference counts. **Return** The next struct folio.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubj)}(hhh]j)}(h@``struct folio *folio`` The folio we're currently operating on. h](j)}(h``struct folio *folio``h]jS)}(hjՋh]hstruct folio *folio}(hj׋hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjӋubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjϋubj)}(hhh]jM)}(h'The folio we're currently operating on.h]h)The folio we’re currently operating on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjϋubeh}(h]h ]h"]h$]h&]uh1jhjhM hj̋ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(hXZIf you have physically contiguous memory which may span more than one folio (eg a :c:type:`struct bio_vec `), use this function to move from one folio to the next. Do not use it if the memory is only virtually contiguous as the folios are almost certainly not adjacent to each other. This is the folio equivalent to writing ``page++``.h](hRIf you have physically contiguous memory which may span more than one folio (eg a }(hj&hhhNhNubh)}(h":c:type:`struct bio_vec `h]jS)}(hj0h]hstruct bio_vec}(hj2hhhNhNubah}(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 hj&ubh), use this function to move from one folio to the next. Do not use it if the memory is only virtually contiguous as the folios are almost certainly not adjacent to each other. This is the folio equivalent to writing }(hj&hhhNhNubjS)}(h ``page++``h]hpage++}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubh.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjMhM hjubjM)}(h **Context**h]j)}(hjlh]hContext}(hjnhhhNhNubah}(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.hhM hjubjM)}(hpWe assume that the folios are refcounted and/or locked at a higher level and do not adjust the reference counts.h]hpWe assume that the folios are refcounted and/or locked at a higher level and do not adjust the reference counts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(h **Return**h]j)}(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)}(hThe next struct folio.h]hThe next struct folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_shift (C function) c.folio_shifthNtauh1hhjxhhhNhNubh)}(hhh](h)}(h4unsigned int folio_shift (const struct folio *folio)h]h)}(h3unsigned int folio_shift(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hj،hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԌhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԌhhhjhM ubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԌhhhjhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԌhhhjhM ubh)}(h folio_shifth]j)}(h folio_shifth]h folio_shift}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjԌhhhjhM ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj5)}(hj8h]hstruct}(hjLhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj-ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(hfolioh]hfolio}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlmodnameN classnameNjpjs)}jv]jy)}jljsb c.folio_shiftasbuh1hhj-ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj-ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj)ubah}(h]h ]h"]h$]h&]jjuh1j hjԌhhhjhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjЌhhhjhM ubah}(h]jˌah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM hj͌hhubj4)}(hhh]jM)}(h/The size of the memory described by this folio.h]h/The size of the memory described by this folio.}(hjύhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj̍hhubah}(h]h ]h"]h$]h&]uh1j3hj͌hhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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 hj ubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%hM hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hM hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]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().}(hjahhhNhNubah}(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)}(hjrh]hContext}(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.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)}(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)}(h/The base-2 logarithm of the size of this folio.h]h/The base-2 logarithm of the size of this folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_size (C function) c.folio_sizehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h-size_t folio_size (const struct folio *folio)h]h)}(h,size_t folio_size(const struct folio *folio)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjގubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jl folio_sizesb c.folio_sizeasbuh1hhjڎhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڎhhhjhM ubh)}(h folio_sizeh]j)}(hjh]h folio_size}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjڎhhhjhM ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](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)}(hfolioh]hfolio}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjkmodnameN classnameNjpjs)}jv]j c.folio_sizeasbuh1hhj,ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj,ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(ubah}(h]h ]h"]h$]h&]jjuh1j 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)}(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&]uh1j3hjӎhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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 hjubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hj h]hconst struct folio *folio}(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 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 **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: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.}(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)}(hjoh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&folio_maybe_mapped_shared (C function)c.folio_maybe_mapped_sharedhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h4bool folio_maybe_mapped_shared (struct folio *folio)h]h)}(h3bool folio_maybe_mapped_shared(struct folio *folio)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_maybe_mapped_sharedh]j)}(hfolio_maybe_mapped_sharedh]hfolio_maybe_mapped_shared}(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&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj֐sbc.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}(hjIhhhNhNubah}(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)}(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}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjphhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hj͑hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjɑhM hjʑubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɑhM hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubjM)}(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 hjubjM)}(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 hjubjM)}(hXFor small anonymous folios and anonymous hugetlb folios, the return value will be exactly correct: non-KSM folios can only be mapped at most once into an MM, and they cannot be partially mapped. KSM folios are considered shared even if mapped multiple times into the same MM.h]hXFor small anonymous folios and anonymous hugetlb folios, the return value will be exactly correct: non-KSM folios can only be mapped at most once into an MM, and they cannot be partially mapped. KSM folios are considered shared even if mapped multiple times into the same MM.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubj)}(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:}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj5ubj)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjNubah}(h]h ]h"]h$]h&]uh1j+hjKubj+)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjgubah}(h]h ]h"]h$]h&]uh1j+hjKubeh}(h]h ]h"]h$]h&]j+j+j+hj+j+uh1j+hjHubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjGhM hj2ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubj)}(hhh]j)}(hX-This function does not consider: #. If the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration). #. If the folio is mapped differently (VM_PFNMAP). #. If hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared(). h](j)}(h This function does not consider:h]h This function does not consider:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM# hjubj)}(hhh]j+)}(hhh](j+)}(hsIf the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration).h]jM)}(hsIf the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration).h]hsIf the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration).}(hjǒhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjÒubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(h/If the folio is mapped differently (VM_PFNMAP).h]jM)}(hjޒh]h/If the folio is mapped differently (VM_PFNMAP).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM! hjܒubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(hYIf hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared(). h]jM)}(hXIf hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared().h]hXIf hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared().}(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+hjubeh}(h]h ]h"]h$]h&]j+j+j+hj+j+uh1j+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM# hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hj'h]hReturn}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM% hjubjM)}(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& hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%folio_expected_ref_count (C function)c.folio_expected_ref_counthNtauh1hhjxhhhNhNubh)}(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}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMC ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjzhMC ubh)}(hfolio_expected_ref_counth]j)}(hfolio_expected_ref_counth]hfolio_expected_ref_count}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhhjzhMC ubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hjēhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjѓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߓubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_expected_ref_countasbuh1hhjubj)}(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 hjhhhhjzhMC ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjdhhhjzhMC ubah}(h]j_ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjzhMC hjahhubj4)}(hhh]jM)}(h%calculate the expected folio refcounth]h%calculate the expected folio refcount}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMC hjDhhubah}(h]h ]h"]h$]h&]uh1j3hjahhhjzhMC ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj_jHj_jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjih]h Parameters}(hjkhhhNhNubah}(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.hhMG hjcubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMD hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMD hjubah}(h]h ]h"]h$]h&]uh1jhjcubjM)}(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:106: ./include/linux/mm.hhMF hjcubjM)}(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).}(hjٔhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhME hjcubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMJ hjcubjM)}(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 hjcubjM)}(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 hjcubjM)}(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 hjcubjM)}(hHowever, even when called without the folio lock or on a mapped folio, this function can be used to detect unexpected references early (for example, if it makes sense to even lock the folio and unmap it).h]hHowever, even when called without the folio lock or on a mapped folio, this function can be used to detect unexpected references early (for example, if it makes sense to even lock the folio and unmap it).}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMY hjcubjM)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM] hjcubjM)}(h **Return**h]j)}(hjDh]hReturn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM` hjcubjM)}(hthe expected folio refcount.h]hthe expected folio refcount.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMa hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hzap_vma (C function) c.zap_vmahNtauh1hhjxhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hzap_vmah]j)}(hzap_vmah]hzap_vma}(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}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsb c.zap_vmaasbuh1hhj•ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj•ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj•ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj•ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(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 hj~hhubj4)}(hhh]jM)}(h#zap all page table entries in a vmah]h#zap all page table entries in a vma}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjFhhubah}(h]h ]h"]h$]h&]uh1j3hj~hhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjajHjajIjJjKuh1hhhhjxhNhNubj)}(h@**Parameters** ``struct vm_area_struct *vma`` The vma to zap.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.hhM hjeubj)}(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}(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 vma to zap.h]hThe vma to zap.}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hptdesc_address (C function)c.ptdesc_addresshNtauh1hhjxhhhNhNubh)}(hhh](h)}(h/void * ptdesc_address (const struct ptdesc *pt)h]h)}(h-void *ptdesc_address(const struct ptdesc *pt)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hptdesc_addressh]j)}(hptdesc_addressh]hptdesc_address}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(const struct ptdesc *pt)h]j )}(hconst struct ptdesc *pth](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}(hjIhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj*ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j)}(hptdesch]hptdesc}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjimodnameN classnameNjpjs)}jv]jy)}jljsbc.ptdesc_addressasbuh1hhj*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)}(hpth]hpt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj&ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjܖhhhjhMubah}(h]jזah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjٖhhubj4)}(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&]uh1j3hjٖhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.hhMhjubj)}(hhh]j)}(h3``const struct ptdesc *pt`` Page table descriptor. h](j)}(h``const struct ptdesc *pt``h]jS)}(hj h]hconst struct ptdesc *pt}(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.hhMhjubj)}(hhh]jM)}(hPage table descriptor.h]hPage table descriptor.}(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 **Return**h]j)}(hjHh]hReturn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubjM)}(h5The first byte of the page table described by **pt**.h](h.The first byte of the page table described by }(hj^hhhNhNubj)}(h**pt**h]hpt}(hjfhhhNhNubah}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hptdesc_set_kernel (C function)c.ptdesc_set_kernelhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h.void ptdesc_set_kernel (struct ptdesc *ptdesc)h]h)}(h-void ptdesc_set_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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hptdesc_set_kernelh]j)}(hptdesc_set_kernelh]hptdesc_set_kernel}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(struct ptdesc *ptdesc)h]j )}(hstruct ptdesc *ptdesch](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)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj˜sbc.ptdesc_set_kernelasbuh1hhjؘ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)}(hptdesch]hptdesc}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjؘubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjԘubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h$Mark a ptdesc used to map the kernelh]h$Mark a ptdesc used to map the kernel}(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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjwjHjwjIjJjKuh1hhhhjxhNhNubj)}(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.hhMhj{ubj)}(hhh]j)}(h2``struct ptdesc *ptdesc`` The ptdesc to be marked 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 markedh]hThe ptdesc to be marked}(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**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.hhMhj{ubjM)}(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.hhMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h ptdesc_clear_kernel (C function)c.ptdesc_clear_kernelhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h0void ptdesc_clear_kernel (struct ptdesc *ptdesc)h]h)}(h/void ptdesc_clear_kernel(struct ptdesc *ptdesc)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)}(hptdesc_clear_kernelh]j)}(hptdesc_clear_kernelh]hptdesc_clear_kernel}(hjAhhhNhNubah}(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}(hj]hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(hptdesch]hptdesc}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jy)}jljCsbc.ptdesc_clear_kernelasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjYubj)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjUubah}(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}(hjhhhNhNubah}(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&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj!h]hstruct ptdesc *ptdesc}(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)}(hThe ptdesc to be unmarkedh]hThe ptdesc to be unmarked}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubah}(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&]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.}(hjrhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hptdesc_test_kernel (C function)c.ptdesc_test_kernelhNtauh1hhjxhhhNhNubh)}(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}(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)}(hptdesc_test_kernelh]j)}(hptdesc_test_kernelh]hptdesc_test_kernel}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM-ubj )}(h(const struct ptdesc *ptdesc)h]j )}(hconst struct ptdesc *ptdesch](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)}(hptdesch]hptdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljÛsbc.ptdesc_test_kernelasbuh1hhjٛubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٛubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjٛubj)}(hptdesch]hptdesc}(hjQhhhNhNubah}(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+Check if a ptdesc is used to map the kernelh]h+Check if a ptdesc is used to map the kernel}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM-hjxhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM-ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.hhM1hjubj)}(hhh]j)}(h8``const struct ptdesc *ptdesc`` The ptdesc being tested h](j)}(h``const struct ptdesc *ptdesc``h]jS)}(hjh]hconst struct ptdesc *ptdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM.hjubj)}(hhh]jM)}(hThe ptdesc being testedh]hThe ptdesc being tested}(hj՜hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjќhM.hjҜubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjќhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM0hjubjM)}(h2Call to tell if the ptdesc used to map the kernel.h]h2Call to tell if the ptdesc used to map the kernel.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpagetable_alloc (C function)c.pagetable_allochNtauh1hhjxhhhNhNubh)}(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&]uh1j4hj8hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM8ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhM8ubh)}(hhh]j)}(hptdesch]hptdesc}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj]modnameN classnameNjpjs)}jv]jy)}jlpagetable_allocsbc.pagetable_allocasbuh1hhj8hhhjIhM8ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhM8ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj8hhhjIhM8ubh)}(hpagetable_alloch]j)}(hjyh]hpagetable_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj8hhhjIhM8ubj )}(h(gfp_t gfp, unsigned int order)h](j )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jwc.pagetable_allocasbuh1hhjubj)}(h h]h }(hjםhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int orderh](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)}(horderh]horder}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj8hhhjIhM8ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj4hhhjIhM8ubah}(h]j/ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjIhM8hj1hhubj4)}(hhh]jM)}(hAllocate pagetablesh]hAllocate pagetables}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM8hj]hhubah}(h]h ]h"]h$]h&]uh1j3hj1hhhjIhM8ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjxjHjxjIjJjKuh1hhhhjxhNhNubj)}(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<hj|ubj)}(hhh](j)}(h``gfp_t gfp`` GFP flags h](j)}(h ``gfp_t gfp``h]jS)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM9hjubj)}(hhh]jM)}(h GFP flagsh]h GFP flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjubj)}(h/``unsigned int order`` desired pagetable order 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM:hjԞubj)}(hhh]jM)}(hdesired pagetable orderh]hdesired pagetable order}(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&]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)}(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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM;hj|ubjM)}(h **Return**h]j)}(hj<h]hReturn}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM>hj|ubjM)}(h0The ptdesc describing the allocated page tables.h]h0The ptdesc describing the allocated page tables.}(hjRhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpagetable_free (C function)c.pagetable_freehNtauh1hhjxhhhNhNubh)}(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&]uh1jhj}hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhjhMYubh)}(hpagetable_freeh]j)}(hpagetable_freeh]hpagetable_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj}hhhjhMYubj )}(h(struct ptdesc *pt)h]j )}(hstruct ptdesc *pth](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj˟hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hptdesch]hptdesc}(hjܟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٟubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjޟmodnameN classnameNjpjs)}jv]jy)}jljsbc.pagetable_freeasbuh1hhjubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hj}hhhjhMYubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjyhhhjhMYubah}(h]jtah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMYhjvhhubj4)}(hhh]jM)}(hFree pagetablesh]hFree pagetables}(hjAhhhNhNubah}(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&]uh1j3hjvhhhjhMYubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjYjHjYjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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)}(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.hhMZhj|ubj)}(hhh]jM)}(hThe page table descriptorh]hThe page table descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjyubah}(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)}(hpagetable_free frees the memory of all page tables described by a page table descriptor and the memory for the descriptor itself.h]hpagetable_free frees the memory of all page tables described by a page table descriptor and the memory for the descriptor itself.}(hjӠhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM[hj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvma_lookup (C function) c.vma_lookuphNtauh1hhjxhhhNhNubh)}(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}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj#modnameN classnameNjpjs)}jv]jy)}jl vma_lookupsb c.vma_lookupasbuh1hhjhhhjhMcubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMcubjF )}(hjI h]h*}(hjPhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMcubh)}(h vma_lookuph]j)}(hj?h]h vma_lookup}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMcubj )}(h*(struct mm_struct *mm, unsigned long addr)h](j )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hj|hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(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.vma_lookupasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjF )}(hjI h]h*}(hjơhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjxubj)}(hmmh]hmm}(hjӡhhhNhNubah}(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}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjtubeh}(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}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMchjKhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMcubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjfjHjfjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjph]h Parameters}(hjrhhhNhNubah}(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.hhMghjjubj)}(hhh](j)}(h4``struct mm_struct *mm`` The process address space. 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&]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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjubj)}(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&]uh1jRhjƢubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMehj¢ubj)}(hhh]jM)}(hThe user address.h]hThe user address.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjݢhMehjޢubah}(h]h ]h"]h$]h&]uh1jhj¢ubeh}(h]h ]h"]h$]h&]uh1jhjݢhMehjubeh}(h]h ]h"]h$]h&]uh1jhjjubjM)}(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.hhMghjjubjM)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj=hMubh)}(hmmap_action_ioremap_fullh]j)}(hmmap_action_ioremap_fullh]hmmap_action_ioremap_full}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1hhj+hhhj=hMubj )}(h4(struct vm_area_desc *desc, unsigned long start_pfn)h](j )}(hstruct vm_area_desc *desch](j5)}(hj8h]hstruct}(hjlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(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)}jljRsbc.mmap_action_ioremap_fullasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhubj)}(hdesch]hdesc}(hjūhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjdubj )}(hunsigned long start_pfnh](j)}(hunsignedh]hunsigned}(hjޫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjګubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjګubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjګubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjګubj)}(h start_pfnh]h start_pfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjګubeh}(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)}(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&]uh1j3hj$hhhj=hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjXjHjXjIjJjKuh1hhhhjxhNhNubj)}(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)}(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:106: ./include/linux/mm.hhMhj\ubj)}(hhh](j)}(hN``struct vm_area_desc *desc`` The VMA descriptor for the VMA requiring remap. h](j)}(h``struct vm_area_desc *desc``h]jS)}(hjh]hstruct vm_area_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj{ubj)}(hhh]jM)}(h/The VMA descriptor for the VMA requiring remap.h]h/The VMA descriptor for the VMA requiring remap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubj)}(h@``unsigned long start_pfn`` The first PFN in the range to remap.h](j)}(h``unsigned long start_pfn``h]jS)}(hjh]hunsigned long start_pfn}(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 first PFN in the range to remap.h]h$The first PFN in the range to remap.}(hjӬhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjЬubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϬhMhjxubeh}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'mmap_action_simple_ioremap (C function)c.mmap_action_simple_ioremaphNtauh1hhjxhhhNhNubh)}(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 }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hMubh)}(hmmap_action_simple_ioremaph]j)}(hmmap_action_simple_ioremaph]hmmap_action_simple_ioremap}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj"hMubj )}(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}(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}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjqmodnameN classnameNjpjs)}jv]jy)}jlj7sbc.mmap_action_simple_ioremapasbuh1hhjMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjMubj)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubj )}(hphys_addr_t start_phys_addrh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjƭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjíubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjȭmodnameN classnameNjpjs)}jv]jc.mmap_action_simple_ioremapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstart_phys_addrh]hstart_phys_addr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubj )}(hunsigned long sizeh](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 }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjIubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj"hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj"hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj"hMhj hhubj4)}(hhh]jM)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjjhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj"hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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)}(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)}(hjh]hphys_addr_t start_phys_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh]jM)}(h*Start 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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``unsigned long size`` Size of the area to map. h](j)}(h``unsigned long size``h]jS)}(hj h]hunsigned long size}(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)}(hSize of the area to map.h]hSize of the area to map.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**NOTE**h]j)}(hj[h]hNOTE}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubjM)}(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.}(hjqhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)mmap_action_map_kernel_pages (C function)c.mmap_action_map_kernel_pageshNtauh1hhjxhhhNhNubh)}(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}(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_map_kernel_pagesh]j)}(hmmap_action_map_kernel_pagesh]hmmap_action_map_kernel_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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}(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ïsbc.mmap_action_map_kernel_pagesasbuh1hhjٯubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٯubjF )}(hjI h]h*}(hj)hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjٯubj)}(hdesch]hdesc}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٯubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjկubj )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hlongh]hlong}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjկubj )}(hstruct page **pagesh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mmap_action_map_kernel_pagesasbuh1hhjubj)}(h h]h }(hjܰhhhNhNubah}(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)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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 }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hjUhhhNhNubah}(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 **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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh@ array should be mapped to userland starting at virtual address }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj|hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjͱjHjͱjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjױh]h Parameters}(hjٱhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjձubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjѱubj)}(hhh](j)}(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&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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}(hj1hhhNhNubah}(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 virtual address from which to map them.h]h+The virtual address from which to map them.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj)}(hW``struct page **pages`` An array of struct page pointers describing the memory to map. h](j)}(h``struct page **pages``h]jS)}(hjhh]hstruct page **pages}(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.hhMhjbubj)}(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&]uh1jLhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhjubj)}(hG``unsigned long nr_pages`` The number of entries in the **pages** aray.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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjubj)}(hhh]jM)}(h,The number of entries in the **pages** aray.h](hThe number of entries in the }(hjhhhNhNubj)}(h **pages**h]hpages}(hj²hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh aray.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjѱubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.mmap_action_map_kernel_pages_full (C function)#c.mmap_action_map_kernel_pages_fullhNtauh1hhjxhhhNhNubh)}(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}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubh)}(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&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhjhMubj )}(h0(struct vm_area_desc *desc, struct page **pages)h](j )}(hstruct vm_area_desc *desch](j5)}(hj8h]hstruct}(hjJhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjFubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]j)}(h vm_area_desch]h vm_area_desc}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjjmodnameN classnameNjpjs)}jv]jy)}jlj0sb#c.mmap_action_map_kernel_pages_fullasbuh1hhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjFubj)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjBubj )}(hstruct page **pagesh](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.mmap_action_map_kernel_pages_fullasbuh1hhjubj)}(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)}(hpagesh]hpages}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjBubeh}(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)}(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 }(hjJhhhNhNubj)}(h **pages**h]hpages}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh) array should be mapped to userland from }(hjJhhhNhNubj)}(h**desc->start**h]h desc->start}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh to }(hjJhhhNhNubj)}(h **desc->end**h]h desc->end}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjGhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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)}(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}(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)}(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.}(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&]uh1jhjhMhjubeh}(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&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubjM)}(hrThe caller must ensure that **pages** contains sufficient entries to cover the entire range described by **desc**.h](hThe caller must ensure that }(hjKhhhNhNubj)}(h **pages**h]hpages}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubhD contains sufficient entries to cover the entire range described by }(hjKhhhNhNubj)}(h**desc**h]hdesc}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh.}(hjKhhhNhNubeh}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_is_subset (C function)c.range_is_subsethNtauh1hhjxhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM9ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM9ubh)}(hrange_is_subseth]j)}(hrange_is_subseth]hrange_is_subset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM9ubj )}(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}(hjڵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֵubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֵubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֵubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֵubj)}(h outer_starth]h outer_start}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֵubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjҵubj )}(hunsigned long outer_endh](j)}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hlongh]hlong}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h outer_endh]h outer_end}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjҵubj )}(hunsigned long inner_starth](j)}(hunsignedh]hunsigned}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h inner_starth]h inner_start}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjҵubj )}(hunsigned long inner_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)}(h inner_endh]h inner_end}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɶubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjҵubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM9ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM9ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM9hjhhubj4)}(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.hhM9hj,hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM9ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjGjHjGjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjQh]h Parameters}(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=hjKubj)}(hhh](j)}(h<``unsigned long outer_start`` The start of the outer range. h](j)}(h``unsigned long outer_start``h]jS)}(hjph]hunsigned long outer_start}(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 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&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjgubj)}(hB``unsigned long outer_end`` The exclusive end of the outer range. h](j)}(h``unsigned long outer_end``h]jS)}(hjh]hunsigned long outer_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM;hjubj)}(hhh]jM)}(h%The exclusive end of the outer range.h]h%The exclusive end of the outer range.}(hj·hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjgubj)}(h<``unsigned long inner_start`` The start of the inner range. h](j)}(h``unsigned long inner_start``h]jS)}(hjh]hunsigned long inner_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM<hjܷubj)}(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&]uh1jhjܷubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjgubj)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hM=hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM=hjgubeh}(h]h ]h"]h$]h&]uh1jhjKubjM)}(h **Return**h]j)}(hjVh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM?hjKubjM)}(hb``true`` if [inner_start, inner_end) is a subset of [outer_start, outer_end), otherwise ``false``.h](jS)}(h``true``h]htrue}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubhP if [inner_start, inner_end) is a subset of [outer_start, outer_end), otherwise }(hjlhhhNhNubjS)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubh.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM?hjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_in_vma (C function)c.range_in_vmahNtauh1hhjxhhhNhNubh)}(hhh](h)}(h\bool range_in_vma (const struct vm_area_struct *vma, unsigned long start, unsigned long end)h]h)}(h[bool range_in_vma(const struct vm_area_struct *vma, unsigned long start, unsigned long end)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMKubj)}(h h]h }(hjɸhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjȸhMKubh)}(h range_in_vmah]j)}(h range_in_vmah]h range_in_vma}(hj۸hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׸ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjȸ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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj2modnameN classnameNjpjs)}jv]jy)}jljݸsbc.range_in_vmaasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj^hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long endh](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)}(hendh]hend}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѹubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjȸhMKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjȸhMKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjȸhMKhjhhubj4)}(hhh]jM)}(h@is the specified [**start**, **end**) range a subset of the VMA?h](his the specified [}(hj7hhhNhNubj)}(h **start**h]hstart}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, }(hj7hhhNhNubj)}(h**end**h]hend}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh) range a subset of the VMA?}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMKhj4hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjȸhMKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjsjHjsjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMOhjwubj)}(hhh](j)}(hb``const struct vm_area_struct *vma`` The VMA against which we want to check [**start**, **end**). h](j)}(h$``const struct vm_area_struct *vma``h]jS)}(hjh]h const struct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMLhjubj)}(hhh]jM)}(hvm_start**, **vma->vm_end**), ``false`` otherwise.h](jS)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh if [}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) is a subset of [}(hjhhhNhNubj)}(h**vma->vm_start**h]h vma->vm_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**vma->vm_end**h]h vma->vm_end}(hjϻhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh), }(hjhhhNhNubjS)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMPhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_in_vma_desc (C function)c.range_in_vma_deschNtauh1hhjxhhhNhNubh)}(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 }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj'hM]ubh)}(hrange_in_vma_desch]j)}(hrange_in_vma_desch]hrange_in_vma_desc}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj'hM]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}(hjVhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj5)}(hj8h]hstruct}(hjqhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjRubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(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.range_in_vma_descasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjRubj)}(hdesch]hdesc}(hjʼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjNubj )}(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 hjNubj )}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hlongh]hlong}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hendh]hend}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjNubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj'hM]ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj'hM]ubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj'hM]hjhhubj4)}(hhh]jM)}(hhis the specified [**start**, **end**) range a subset of the VMA described by **desc**, a VMA descriptor?h](his the specified [}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh)) range a subset of the VMA described by }(hjhhhNhNubj)}(h**desc**h]hdesc}(hj½hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, a VMA descriptor?}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM]hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj'hM]ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.hhMahjubj)}(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)}(hj h]hconst struct vm_area_desc *desc}(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_hjubj)}(hhh]jM)}(hGThe VMA descriptor against which we want to check [**start**, **end**).h](h3The VMA descriptor against which we want to check [}(hj&hhhNhNubj)}(h **start**h]hstart}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh, }(hj&hhhNhNubj)}(h**end**h]hend}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh).}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj"hM_hj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hM_hjubj)}(hA``unsigned long start`` The start of the range we wish to check. h](j)}(h``unsigned long start``h]jS)}(hjjh]hunsigned long start}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjhubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM`hjdubj)}(hhh]jM)}(h(The 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&]uh1jhjdubeh}(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)}(hjh]hunsigned long end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMahjubj)}(hhh]jM)}(h0The exclusive end of the range we wish to check.h]h0The exclusive end of the range we wish to check.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hj޾h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܾubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMchjubjM)}(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}(hj hhhNhNubah}(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}(hjRhhhNhNubah}(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.hhMchjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_pages (C function) c.clear_pageshNtauh1hhjxhhhNhNubh)}(hhh](h)}(h2void clear_pages (void *addr, unsigned int npages)h]h)}(h1void clear_pages(void *addr, unsigned int npages)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h clear_pagesh]j)}(h clear_pagesh]h clear_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h!(void *addr, unsigned int npages)h](j )}(h void *addrh](j)}(hvoidh]hvoid}(hjȿhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĿubj)}(h h]h }(hjֿhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĿubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjĿubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĿubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int npagesh](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 }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnpagesh]hnpages}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]j~ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h+clear a page range for kernel-internal use.h]h+clear a page range for kernel-internal use.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjihhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``void *addr`` start address ``unsigned int npages`` number of pages **Description** Use clear_user_pages() instead when clearing a page range to be mapped to user space. Does absolutely no exception handling. Note that even though the clearing operation is preemptible, clear_pages() does not (and on architectures where it reduces to a few long-running instructions, might not be able to) call cond_resched() to check if rescheduling is required. When running under preemptible models this is not a problem. Under cooperatively scheduled models, however, the caller is expected to limit **npages** to no more than PROCESS_PAGES_NON_PREEMPT_BATCH.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh](j)}(h``void *addr`` start address h](j)}(h``void *addr``h]jS)}(hjh]h void *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjubj)}(hhh]jM)}(h start addressh]h start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``unsigned int npages`` number of pages h](j)}(h``unsigned int npages``h]jS)}(hjh]hunsigned int npages}(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)}(hnumber of pagesh]hnumber of pages}(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&]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.}(hj7hhhNhNubah}(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.}(hjFhhhNhNubah}(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.}(hjUhhhNhNubah}(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 }(hjdhhhNhNubj)}(h **npages**h]hnpages}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh1 to no more than PROCESS_PAGES_NON_PREEMPT_BATCH.}(hjdhhhNhNubeh}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_ref_count (C function)c.folio_ref_counthNtauh1hhjxhhhNhNubh)}(hhh](h)}(h/int folio_ref_count (const struct folio *folio)h]h)}(h.int folio_ref_count(const struct folio *folio)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKGubh)}(hfolio_ref_counth]j)}(hfolio_ref_counth]hfolio_ref_count}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKGubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_ref_countasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjIhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKGubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKGubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKGhjhhubj4)}(hhh]jM)}(h"The reference count on this folio.h]h"The reference count on this folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKGhj}hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKGubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKKhjubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]jS)}(hjh]hconst struct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKHhjubj)}(hhh]jM)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(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.hhKJhjubjM)}(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.hhKIhjubj.L)}(hhh](j+)}(h Each reference from a page tableh]jM)}(hj&h]h Each reference from a page table}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKMhj$ubah}(h]h ]h"]h$]h&]uh1j+hj!ubj+)}(hThe page cacheh]jM)}(hj>h]hThe page cache}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKNhj<ubah}(h]h ]h"]h$]h&]uh1j+hj!ubj+)}(hFilesystem private datah]jM)}(hjVh]hFilesystem private data}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKOhjTubah}(h]h ]h"]h$]h&]uh1j+hj!ubj+)}(h The LRU listh]jM)}(hjnh]h The LRU list}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKPhjlubah}(h]h ]h"]h$]h&]uh1j+hj!ubj+)}(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+hj!ubj+)}(hBDirect IO which references this page in the process address space h]jM)}(hADirect IO which references this page in the process address spaceh]hADirect IO which references this page in the process address space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKRhjubah}(h]h ]h"]h$]h&]uh1j+hj!ubeh}(h]h ]h"]h$]h&]jPLjQLuh1j-Lhj5hKMhjubjM)}(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.hhKThjubjM)}(h'The number of references to this folio.h]h'The number of references to this folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKUhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_try_get (C function)c.folio_try_gethNtauh1hhjxhhhNhNubh)}(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}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj>hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(hfolioh]hfolio}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj^modnameN classnameNjpjs)}jv]jy)}jlj$sbc.folio_try_getasbuh1hhj:ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj:ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6ubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhjubj)}(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&]uh1jhjubjM)}(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:108: ./include/linux/page_ref.hhKhjubjM)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhjubjM)}(h **Return**h]j)}(hjdh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhjubjM)}(h9True if the reference count was successfully incremented.h]h9True if the reference count was successfully incremented.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](his_highmem (C function) c.is_highmemhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h(int is_highmem (const struct zone *zone)h]h)}(h'int is_highmem(const struct zone *zone)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h is_highmemh]j)}(h is_highmemh]h is_highmem}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(const struct zone *zone)h]j )}(hconst struct zone *zoneh](j5)}(hjh]hconst}(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)}(hzoneh]hzone}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj!modnameN classnameNjpjs)}jv]jy)}jljsb c.is_highmemasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjMhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hzoneh]hzone}(hjZhhhNhNubah}(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)}(hhelper function to quickly check if a struct zone is a highmem zone or not. This is an attempt to keep references to ZONE_{DMA/NORMAL/HIGHMEM/etc} in general code to a minimum.h]hhelper function to quickly check if a struct zone is a highmem zone or not. This is an attempt to keep references to ZONE_{DMA/NORMAL/HIGHMEM/etc} in general code to a minimum.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(h|**Parameters** ``const struct zone *zone`` pointer to struct zone variable **Return** 1 for a highmem zone, 0 otherwiseh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j)}(h<``const struct zone *zone`` pointer to struct zone variable h](j)}(h``const struct zone *zone``h]jS)}(hjh]hconst struct zone *zone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]jM)}(hpointer to struct zone variableh]hpointer to struct zone variable}(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&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubjM)}(h!1 for a highmem zone, 0 otherwiseh]h!1 for a highmem zone, 0 otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfor_each_online_pgdat (C macro)c.for_each_online_pgdathNtauh1hhjxhhhNhNubh)}(hhh](h)}(hfor_each_online_pgdath]h)}(hfor_each_online_pgdath]h)}(hfor_each_online_pgdath]j)}(hj?h]hfor_each_online_pgdat}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1hhjAhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj=hhhj\hMubah}(h]j8ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj\hMhj:hhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hj:hhhj\hMubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjujHjujIjJjKuh1hhhhjxhNhNubjM)}(h!``for_each_online_pgdat (pgdat)``h]jS)}(hj{h]hfor_each_online_pgdat (pgdat)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjxhhubji)}(h.helper macro to iterate over all online nodes h]jM)}(h-helper macro to iterate over all online nodesh]h-helper macro to iterate over all online nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubah}(h]h ]h"]h$]h&]uh1jhhjhMhjxhhubj)}(h;**Parameters** ``pgdat`` pointer to a pg_data_t variableh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j)}(h)``pgdat`` pointer to a pg_data_t variableh](j)}(h ``pgdat``h]jS)}(hjh]hpgdat}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]jM)}(hpointer to a pg_data_t variableh]hpointer to a pg_data_t variable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfor_each_zone (C macro)c.for_each_zonehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h for_each_zoneh]h)}(h for_each_zoneh]h)}(h for_each_zoneh]j)}(hj#h]h for_each_zone}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj%hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj!hhhj@hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj@hMhjhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjhhhj@hMubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjYjHjYjIjJjKuh1hhhhjxhNhNubjM)}(h``for_each_zone (zone)``h]jS)}(hj_h]hfor_each_zone (zone)}(hjahhhNhNubah}(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.hhMhjxhhubji)}(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}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjuubah}(h]h ]h"]h$]h&]uh1jhhjhMhjxhhubj)}(h**Parameters** ``zone`` pointer to struct zone variable **Description** The user only needs to declare the zone variable, for_each_zone fills it in.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j)}(h)``zone`` pointer to struct zone variable h](j)}(h``zone``h]jS)}(hjh]hzone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]jM)}(hpointer to struct zone variableh]hpointer to struct zone variable}(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&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubjM)}(hLThe user only needs to declare the zone variable, for_each_zone fills it in.h]hLThe user only needs to declare the zone variable, for_each_zone fills it in.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h next_zones_zonelist (C function)c.next_zones_zonelisthNtauh1hhjxhhhNhNubh)}(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}(hj3hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj/hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM(ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj@hM(ubh)}(hhh]j)}(hzonerefh]hzoneref}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjTmodnameN classnameNjpjs)}jv]jy)}jlnext_zones_zonelistsbc.next_zones_zonelistasbuh1hhj/hhhj@hM(ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj@hM(ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj/hhhj@hM(ubh)}(hnext_zones_zonelisth]j)}(hjph]hnext_zones_zonelist}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj/hhhj@hM(ubj )}(hF(struct zoneref *z, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j )}(hstruct zoneref *zh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hzonerefh]hzoneref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jnc.next_zones_zonelistasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hzh]hz}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum zone_type highest_zoneidxh](j5)}(hj+h]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h zone_typeh]h zone_type}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj=modnameN classnameNjpjs)}jv]jnc.next_zones_zonelistasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hhighest_zoneidxh]hhighest_zoneidx}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hnodemask_t *nodesh](h)}(hhh]j)}(h nodemask_th]h nodemask_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jnc.next_zones_zonelistasbuh1hhj|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)}(hnodesh]hnodes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj/hhhj@hM(ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj+hhhj@hM(ubah}(h]j&ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj@hM(hj(hhubj4)}(hhh]jM)}(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}(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&]uh1j3hj(hhhj@hM(ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.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)}(hj'h]hstruct zoneref *z}(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)}(h2The cursor used as a starting point for the searchh]h2The cursor used as a starting point for the search}(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)}(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)}(hj`h]henum zone_type highest_zoneidx}(hjbhhhNhNubah}(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*hjZubj)}(hhh]jM)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuhM*hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhM*hjubj)}(hG``nodemask_t *nodes`` An optional nodemask to filter the zonelist with h](j)}(h``nodemask_t *nodes``h]jS)}(hjh]hnodemask_t *nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM+hjubj)}(hhh]jM)}(h0An optional nodemask to filter the zonelist withh]h0An optional nodemask to filter the zonelist with}(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&]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.}(hjhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!first_zones_zonelist (C function)c.first_zones_zonelisthNtauh1hhjxhhhNhNubh)}(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}(hj@hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj<hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM@ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhjMhM@ubh)}(hhh]j)}(hzonerefh]hzoneref}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjamodnameN classnameNjpjs)}jv]jy)}jlfirst_zones_zonelistsbc.first_zones_zonelistasbuh1hhj<hhhjMhM@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhjMhM@ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj<hhhjMhM@ubh)}(hfirst_zones_zonelisth]j)}(hj}h]hfirst_zones_zonelist}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj<hhhjMhM@ubj )}(hN(struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j )}(hstruct zonelist *zonelisth](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hzonelisth]hzonelist}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j{c.first_zones_zonelistasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hzonelisth]hzonelist}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum zone_type highest_zoneidxh](j5)}(hj+h]henum}(hj*hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]j)}(h zone_typeh]h zone_type}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjJmodnameN classnameNjpjs)}jv]j{c.first_zones_zonelistasbuh1hhj&ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hhighest_zoneidxh]hhighest_zoneidx}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hnodemask_t *nodesh](h)}(hhh]j)}(h nodemask_th]h nodemask_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j{c.first_zones_zonelistasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnodesh]hnodes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj<hhhjMhM@ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj8hhhjMhM@ubah}(h]j3ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjMhM@hj5hhubj4)}(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&]uh1j3hj5hhhjMhM@ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjxhNhNubj)}(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)}(hj4h]hstruct zonelist *zonelist}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMAhj.ubj)}(hhh]jM)}(h*The zonelist to search for a suitable zoneh]h*The zonelist to search for a suitable zone}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhMAhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMAhj+ubj)}(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)}(hjmh]henum zone_type highest_zoneidx}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjkubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMBhjgubj)}(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&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMBhj+ubj)}(hG``nodemask_t *nodes`` An optional nodemask to filter the zonelist with h](j)}(h``nodemask_t *nodes``h]jS)}(hjh]hnodemask_t *nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMChjubj)}(hhh]jM)}(h0An optional nodemask to filter the zonelist withh]h0An optional nodemask to filter the zonelist with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChj+ubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.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}(hj-hhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)for_each_zone_zonelist_nodemask (C macro)!c.for_each_zone_zonelist_nodemaskhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hfor_each_zone_zonelist_nodemaskh]h)}(hfor_each_zone_zonelist_nodemaskh]h)}(hfor_each_zone_zonelist_nodemaskh]j)}(hjVh]hfor_each_zone_zonelist_nodemask}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjXhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMYubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjThhhjshMYubah}(h]jOah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjshMYhjQhhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hjQhhhjshMYubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubjM)}(hG``for_each_zone_zonelist_nodemask (zone, z, zlist, highidx, nodemask)``h]jS)}(hjh]hCfor_each_zone_zonelist_nodemask (zone, z, zlist, highidx, nodemask)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM[hjxhhubji)}(hlhelper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemask h]jM)}(hkhelper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemaskh]hkhelper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMYhjubah}(h]h ]h"]h$]h&]uh1jhhjhMYhjxhhubj)}(hX**Parameters** ``zone`` The current zone in the iterator ``z`` The current pointer within zonelist->_zonerefs being iterated ``zlist`` The zonelist being iterated ``highidx`` The zone index of the highest zone to return ``nodemask`` Nodemask allowed by the allocator **Description** This iterator iterates though all zones at or below a given zone index and within a given nodemaskh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(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)}(h*``zone`` The current zone in the iterator h](j)}(h``zone``h]jS)}(hjh]hzone}(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.hhMZhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjubj)}(hD``z`` The current pointer within zonelist->_zonerefs being iterated h](j)}(h``z``h]jS)}(hjh]hz}(hj!hhhNhNubah}(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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4hM[hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hM[hjubj)}(h&``zlist`` The zonelist being iterated h](j)}(h ``zlist``h]jS)}(hjXh]hzlist}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM\hjRubj)}(hhh]jM)}(hThe zonelist being iteratedh]hThe zonelist being iterated}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmhM\hjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhM\hjubj)}(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.hhM]hjubj)}(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&]uh1jLhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjubj)}(h/``nodemask`` Nodemask allowed by the allocator h](j)}(h ``nodemask``h]jS)}(hjh]hnodemask}(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!Nodemask allowed by the allocatorh]h!Nodemask allowed by the allocator}(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&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM`hjubjM)}(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_hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h for_each_zone_zonelist (C macro)c.for_each_zone_zonelisthNtauh1hhjxhhhNhNubh)}(hhh](h)}(hfor_each_zone_zonelisth]h)}(hfor_each_zone_zonelisth]h)}(hfor_each_zone_zonelisth]j)}(hjDh]hfor_each_zone_zonelist}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1hhjFhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMqubah}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjBhhhjahMqubah}(h]j=ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjahMqhj?hhubj4)}(hhh]h}(h]h ]h"]h$]h&]uh1j3hj?hhhjahMqubeh}(h]h ](jAmacroeh"]h$]h&]jFjAjGjzjHjzjIjJjKuh1hhhhjxhNhNubjM)}(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&]uh1jRhj~ubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMshjxhhubji)}(hVhelper macro to iterate over valid zones in a zonelist at or below a given zone index h]jM)}(hUhelper macro to iterate over valid zones in a zonelist at or below a given zone indexh]hUhelper macro to iterate over valid zones in a zonelist at or below a given zone index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMqhjubah}(h]h ]h"]h$]h&]uh1jhhjhMqhjxhhubj)}(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)}(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.hhMuhjubj)}(hhh](j)}(h*``zone`` The current zone in the iterator h](j)}(h``zone``h]jS)}(hjh]hzone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMrhjubj)}(hhh]jM)}(h The current zone in the iteratorh]h The current zone in the iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubj)}(h@``z`` The current pointer within zonelist->zones being iterated h](j)}(h``z``h]jS)}(hj h]hz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMshjubj)}(hhh]jM)}(h9The current pointer within zonelist->zones being iteratedh]h9The current pointer within zonelist->zones being iterated}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"hMshj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMshjubj)}(h&``zlist`` The zonelist being iterated h](j)}(h ``zlist``h]jS)}(hjFh]hzlist}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMthj@ubj)}(hhh]jM)}(hThe zonelist being iteratedh]hThe zonelist being iterated}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hMthj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMthjubj)}(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&]uh1jRhj}ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMuhjyubj)}(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&]uh1jLhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMwhjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMvhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpfn_valid (C function) c.pfn_validhNtauh1hhjxhhhNhNubh)}(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&]uh1jhjhhhj hMubh)}(h pfn_validh]j)}(h pfn_validh]h pfn_valid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hMubj )}(h(unsigned long pfn)h]j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hlongh]hlong}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hpfnh]hpfn}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj4ubah}(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)}(h4check if there is a valid memory map entry for a PFNh]h4check if there is a valid memory map entry for a PFN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``unsigned long pfn`` the page frame number to check **Description** Check if there is a valid memory map entry aka struct page for the **pfn**. Note, that availability of the memory map entry does not imply that there is actual usable memory at that **pfn**. The struct page may represent a hole or an unusable page frame. **Return** 1 for PFNs that have memory map entries and 0 otherwiseh](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j)}(h5``unsigned long pfn`` the page frame number to check h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]jM)}(hthe page frame number to checkh]hthe page frame number to check}(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&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubjM)}(hCheck if there is a valid memory map entry aka struct page for the **pfn**. Note, that availability of the memory map entry does not imply that there is actual usable memory at that **pfn**. The struct page may represent a hole or an unusable page frame.h](hCCheck if there is a valid memory map entry aka struct page for the }(hj0hhhNhNubj)}(h**pfn**h]hpfn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubhl. Note, that availability of the memory map entry does not imply that there is actual usable memory at that }(hj0hhhNhNubj)}(h**pfn**h]hpfn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubhA. The struct page may represent a hole or an unusable page frame.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubjM)}(h **Return**h]j)}(hjeh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubjM)}(h71 for PFNs that have memory map entries and 0 otherwiseh]h71 for PFNs that have memory map entries and 0 otherwise}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_mapping (C function)c.folio_mappinghNtauh1hhjxhhhNhNubh)}(hhh](h)}(h@struct address_space * folio_mapping (const struct folio *folio)h]h)}(h>struct address_space *folio_mapping(const struct folio *folio)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jl folio_mappingsbc.folio_mappingasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(h folio_mappingh]j)}(hjh]h folio_mapping}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(const struct folio *folio)h]j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj$hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj5)}(hj8h]hstruct}(hj?hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hfolioh]hfolio}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]jc.folio_mappingasbuh1hhj ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j 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,Find the mapping where this folio is stored.h]h,Find the mapping where this folio is stored.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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:110: ./mm/util.chMhjubj)}(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&]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:110: ./mm/util.chMhjubjM)}(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).}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjubjM)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__anon_vma_prepare (C function)c.__anon_vma_preparehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h3int __anon_vma_prepare (struct vm_area_struct *vma)h]h)}(h2int __anon_vma_prepare(struct vm_area_struct *vma)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(h__anon_vma_prepareh]j)}(h__anon_vma_prepareh]h__anon_vma_prepare}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubj )}(h(struct vm_area_struct *vma)h]j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.__anon_vma_prepareasbuh1hhjubj)}(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 hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjhhubj4)}(hhh]jM)}(h%attach an anon_vma to a memory regionh]h%attach an anon_vma to a memory region}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjMhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjhjHjhjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjlubj)}(hhh]j)}(h=``struct vm_area_struct *vma`` the memory region in question h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjubj)}(hhh]jM)}(hthe memory region in questionh]hthe memory region in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubjM)}(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.chKhjlubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjlubjM)}(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.chKhjlubjM)}(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.chKhjlubjM)}(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.chKhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hanon_vma_clone (C function)c.anon_vma_clonehNtauh1hhjxhhhNhNubh)}(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}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM%ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjLhM%ubh)}(hanon_vma_cloneh]j)}(hanon_vma_cloneh]hanon_vma_clone}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhjLhM%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}(hj{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(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)}jljasbc.anon_vma_cloneasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwubj)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(hstruct vm_area_struct *srch](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]jc.anon_vma_cloneasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj7hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hsrch]hsrc}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(henum vma_operation operationh](j5)}(hj+h]henum}(hj]hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(h vma_operationh]h vma_operation}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jc.anon_vma_cloneasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h operationh]h operation}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubeh}(h]h ]h"]h$]h&]jjuh1j hj:hhhjLhM%ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6hhhjLhM%ubah}(h]j1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjLhM%hj3hhubj4)}(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 }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh9 linking to all of the anon_vma objects contained within }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh anon_vma_chain’s.}(hjhhhNhNubeh}(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&]uh1j3hj3hhhjLhM%ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjxhNhNubj)}(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)}(hj6h]hstruct vm_area_struct *dst}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM'hj0ubj)}(hhh]jM)}(h1The destination VMA with an empty anon_vma_chain.h]h1The destination VMA with an empty anon_vma_chain.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhM'hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhM'hj-ubj)}(hD``struct vm_area_struct *src`` The source VMA we wish to duplicate. h](j)}(h``struct vm_area_struct *src``h]jS)}(hjoh]hstruct vm_area_struct *src}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjmubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM(hjiubj)}(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&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhM(hj-ubj)}(hT``enum vma_operation operation`` The type of operation which resulted in the clone. h](j)}(h ``enum vma_operation operation``h]jS)}(hjh]henum vma_operation operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM)hjubj)}(hhh]jM)}(h2The type of operation which resulted in the clone.h]h2The type of operation which resulted in the clone.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM)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&]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}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is unfaulted and }(hjhhhNhNubj)}(h**src**h]hsrc}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is faulted - meaning we clone }(hjhhhNhNubj)}(h**src**h]hsrc}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh into }(hjhhhNhNubj)}(h**dst**h]hdst}(hj\hhhNhNubah}(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)}(hj}h]h VMA split.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM1hj{ubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(h VMA (m)remap.h]jM)}(hjh]h VMA (m)remap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM2hjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(hFork of faulted VMA. h]jM)}(hFork of faulted VMA.h]hFork of faulted VMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM3hjubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjthM/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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM8hjubjM)}(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.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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hunlink_anon_vmas (C function)c.unlink_anon_vmashNtauh1hhjxhhhNhNubh)}(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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj=hMubh)}(hunlink_anon_vmash]j)}(hunlink_anon_vmash]hunlink_anon_vmas}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1hhj+hhhj=hMubj )}(h(struct vm_area_struct *vma)h]j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(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)}jljRsbc.unlink_anon_vmasasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjdubah}(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)}(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&]uh1j3hj$hhhj=hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.chMhj ubj)}(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)}(hj0h]hstruct vm_area_struct *vma}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj*ubj)}(hhh]jM)}(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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj ubjM)}(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.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h page_address_in_vma (C function)c.page_address_in_vmahNtauh1hhjxhhhNhNubh)}(hhh](h)}(hxunsigned long page_address_in_vma (const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)h]h)}(hwunsigned long page_address_in_vma(const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMGubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMGubh)}(hpage_address_in_vmah]j)}(hpage_address_in_vmah]hpage_address_in_vma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMGubj )}(hV(const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)h](j )}(hconst struct folio *folioh](j5)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hj$hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDmodnameN classnameNjpjs)}jv]jy)}jljsbc.page_address_in_vmaasbuh1hhjubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjphhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hconst struct page *pageh](j5)}(hjh]hconst}(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]j^c.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)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h const struct vm_area_struct *vmah](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 }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(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]j^c.page_address_in_vmaasbuh1hhjubj)}(h h]h }(hjxhhhNhNubah}(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 hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMGubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMGubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMGhjhhubj4)}(hhh]jM)}(h*The virtual address of a page in this VMA.h]h*The virtual address of a page in this VMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMGhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMGubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMKhjubj)}(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)}(hj7h]hconst struct page *page}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMIhj1ubj)}(hhh]jM)}(hThe page within the folio.h]hThe page within the folio.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhMIhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMIhjubj)}(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)}(hjph]h const struct vm_area_struct *vma}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMJhjjubj)}(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&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubeh}(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.chMLhjubjM)}(hX$Calculates the user virtual address of this page in the specified VMA. It is the caller's responsibility to check the page is actually within the VMA. There may not currently be a PTE pointing at this page, but if a page fault occurs at this address, this is the page which will be accessed.h]hX&Calculates the user virtual address of this page in the specified VMA. It is the caller’s responsibility to check the page is actually within the VMA. There may not currently be a PTE pointing at this page, but if a page fault occurs at this address, this is the page which will be accessed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMKhjubjM)}(h **Context**h]j)}(hjh]hContext}(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.chMQhjubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMRhjubjM)}(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.chMVhjubjM)}(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.chMVhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_referenced (C function)c.folio_referencedhNtauh1hhjxhhhNhNubh)}(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}(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 }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjLhMubh)}(hfolio_referencedh]j)}(hfolio_referencedh]hfolio_referenced}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhjLhMubj )}(hT(struct folio *folio, int is_locked, struct mem_cgroup *memcg, vm_flags_t *vm_flags)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljasbc.folio_referencedasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(h int is_lockedh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h is_lockedh]h is_locked}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(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}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]jc.folio_referencedasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmemcgh]hmemcg}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(hvm_flags_t *vm_flagsh](h)}(hhh]j)}(h vm_flags_th]h vm_flags_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_referencedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvm_flagsh]hvm_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubeh}(h]h ]h"]h$]h&]jjuh1j hj:hhhjLhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6hhhjLhMubah}(h]j1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjLhMhj3hhubj4)}(hhh]jM)}(h!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&]uh1j3hj3hhhjLhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj9h]hstruct folio *folio}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj3ubj)}(hhh]jM)}(hThe folio to test.h]hThe folio to test.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhMhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj0ubj)}(h2``int is_locked`` Caller holds lock on the folio. h](j)}(h``int is_locked``h]jS)}(hjrh]h int is_locked}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjlubj)}(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&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMhj0ubj)}(h2``struct mem_cgroup *memcg`` target memory cgroup h](j)}(h``struct mem_cgroup *memcg``h]jS)}(hjh]hstruct mem_cgroup *memcg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubj)}(hhh]jM)}(htarget memory cgrouph]htarget memory cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj0ubj)}(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)}(hjh]hvm_flags_t *vm_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)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM!hj0ubeh}(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&]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 }(hjhhhNhNubj)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is mapped within }(hjhhhNhNubj)}(h **mapping**h]hmapping}(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&]uh1jhjhMhjmubj)}(hN``unsigned long pfn`` The PFN of the page mapped in **mapping** at **pgoff**. 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&]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 }(hj%hhhNhNubj)}(h **mapping**h]hmapping}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh at }(hj%hhhNhNubj)}(h **pgoff**h]hpgoff}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjmubj)}(hS``unsigned long nr_pages`` The number of physically contiguous base pages spanned. h](j)}(h``unsigned long nr_pages``h]jS)}(hjih]hunsigned long nr_pages}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjcubj)}(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&]uh1jLhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhjmubeh}(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&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjQubjM)}(hX(Traverses the reverse mapping, finding all VMAs which contain a shared mapping of the pages in the specified range in **mapping**, and write-protects them (that is, updates the page tables to mark the mappings read-only such that a write protection fault arises when the mappings are written to).h](hvTraverses the reverse mapping, finding all VMAs which contain a shared mapping of the pages in the specified range in }(hjhhhNhNubj)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, and write-protects them (that is, updates the page tables to mark the mappings read-only such that a write protection fault arises when the mappings are written to).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjQubjM)}(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 }(hjhhhNhNubj)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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 }(hjhhhNhNubj)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **pgoff**h]hpgoff}(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.chMhjQubjM)}(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:113: ./mm/rmap.chMhjQubjM)}(h0the number of write-protected PTEs, or an error.h]h0the number of write-protected PTEs, or an error.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpfn_mkclean_range (C function)c.pfn_mkclean_rangehNtauh1hhjxhhhNhNubh)}(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}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjuhMubh)}(hpfn_mkclean_rangeh]j)}(hpfn_mkclean_rangeh]hpfn_mkclean_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjchhhjuhMubj )}(hV(unsigned long pfn, unsigned long nr_pages, pgoff_t pgoff, struct vm_area_struct *vma)h](j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(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}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t pgoffh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKmodnameN classnameNjpjs)}jv]jy)}jljsbc.pfn_mkclean_rangeasbuh1hhjBubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hpgoffh]hpgoff}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(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]jec.pfn_mkclean_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 hjubeh}(h]h ]h"]h$]h&]jjuh1j hjchhhjuhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj_hhhjuhMubah}(h]jZah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjuhMhj\hhubj4)}(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}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h **nr_pages**h]hnr_pages}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) at the specific offset (}(hjhhhNhNubj)}(h **pgoff**h]hpgoff}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ) within the }(hjhhhNhNubj)}(h**vma**h]hvma}(hjahhhNhNubah}(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&]uh1j3hj\hhhjuhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hXU**Parameters** ``unsigned long pfn`` start pfn. ``unsigned long nr_pages`` number of physically contiguous pages srarting with **pfn**. ``pgoff_t pgoff`` page offset that the **pfn** mapped with. ``struct vm_area_struct *vma`` vma that **pfn** mapped within. **Description** Returns the number of cleaned PTEs (including PMDs).h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh](j)}(h!``unsigned long pfn`` start pfn. h](j)}(h``unsigned long pfn``h]jS)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(h start pfn.h]h start pfn.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hX``unsigned long nr_pages`` number of physically contiguous pages srarting with **pfn**. h](j)}(h``unsigned long nr_pages``h]jS)}(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)}(h``unsigned long address`` User virtual address of the mapping h](j)}(h``unsigned long address``h]jS)}(hjh]hunsigned long address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(h#User virtual address of the mappingh]h#User virtual address of the mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj$ubj)}(hA``bool exclusive`` Whether the folio is exclusive to the process.h](j)}(h``bool exclusive``h]jS)}(hjh]hbool exclusive}(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.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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj$ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__page_check_anon_rmap (C function)c.__page_check_anon_rmaphNtauh1hhjxhhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj@hMubh)}(h__page_check_anon_rmaph]j)}(h__page_check_anon_rmaph]h__page_check_anon_rmap}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jjuh1hhj.hhhj@hMubj )}(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}(hjohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjkubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljUsbc.__page_check_anon_rmapasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjkubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjgubj )}(hconst struct page *pageh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj7modnameN classnameNjpjs)}jv]jc.__page_check_anon_rmapasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjahhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjgubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__page_check_anon_rmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjgubj )}(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 }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddressh]haddress}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjgubeh}(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$sanity check anonymous rmap additionh]h$sanity check anonymous rmap addition}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjVhhubah}(h]h ]h"]h$]h&]uh1j3hj'hhhj@hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjqjHjqjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjuubj)}(hhh](j)}(h=``const struct folio *folio`` The folio containing **page**. h](j)}(h``const struct folio *folio``h]jS)}(hjh]hconst struct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hThe folio containing **page**.h](hThe folio containing }(hjhhhNhNubj)}(h**page**h]hpage}(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)}(h=``const struct page *page`` the page to check the mapping of 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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hI``struct vm_area_struct *vma`` the vm area in which the mapping is added h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjh]hstruct vm_area_struct *vma}(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 vm area in which the mapping is addedh]h)the vm area in which the mapping is added}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(h9``unsigned long address`` the user virtual address mappedh](j)}(h``unsigned long address``h]jS)}(hjWh]hunsigned long address}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjUubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjQubj)}(hhh]jM)}(hthe user virtual address mappedh]hthe user virtual address mapped}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjubeh}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%folio_add_anon_rmap_ptes (C function)c.folio_add_anon_rmap_pteshNtauh1hhjxhhhNhNubh)}(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}(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_anon_rmap_ptesh]j)}(hfolio_add_anon_rmap_ptesh]hfolio_add_anon_rmap_ptes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM,ubj )}(hw(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_add_anon_rmap_ptesasbuh1hhjubj)}(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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hj`hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hhh]j)}(hpageh]hpage}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j(c.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)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int nr_pagesh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj%modnameN classnameNjpjs)}jv]j(c.folio_add_anon_rmap_ptesasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjOhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(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]j(c.folio_add_anon_rmap_ptesasbuh1hhjubj)}(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 hjhhhjhM,ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM,ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM,hjhhubj4)}(hhh]jM)}(h1add PTE mappings to a page range of an anon folioh]h1add PTE mappings to a page range of an anon folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM,hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM,ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj7jHj7jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM0hj;ubj)}(hhh](j)}(h9``struct folio *folio`` The folio to add the mappings to h](j)}(h``struct folio *folio``h]jS)}(hj`h]hstruct folio *folio}(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.chM-hjZubj)}(hhh]jM)}(h The folio to add the mappings toh]h The folio to add the mappings to}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuhM-hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhM-hjWubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM.hjubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjWubj)}(h:``int nr_pages`` The number of pages which will be mapped h](j)}(h``int nr_pages``h]jS)}(hjh]h int 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.chM/hjubj)}(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&]uh1jLhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjWubj)}(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)}(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.chM0hjubj)}(hhh]jM)}(h+The vm area in which the mappings are addedh]h+The vm area in which the mappings are added}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hM0hj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM0hjWubj)}(hL``unsigned long address`` The user virtual address of the first page to map h](j)}(h``unsigned long address``h]jS)}(hjDh]hunsigned long address}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM1hj>ubj)}(hhh]jM)}(h1The user virtual address of the first page to maph]h1The user virtual address of the first page to map}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYhM1hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM1hjWubj)}(h ``rmap_t flags`` The rmap flags h](j)}(h``rmap_t flags``h]jS)}(hj}h]h rmap_t flags}(hjhhhNhNubah}(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.chM2hjwubj)}(hhh]jM)}(hThe rmap flagsh]hThe rmap flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjWubeh}(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&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM4hj;ubjM)}(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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM3hj;ubjM)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM5hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_add_anon_rmap_pmd (C function)c.folio_add_anon_rmap_pmdhNtauh1hhjxhhhNhNubh)}(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}(hj hhhNhNubah}(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}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(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}(hjIhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(hfolioh]hfolio}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjimodnameN classnameNjpjs)}jv]jy)}jlj/sbc.folio_add_anon_rmap_pmdasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjEubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(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_pmdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj+hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKmodnameN classnameNjpjs)}jv]jc.folio_add_anon_rmap_pmdasbuh1hhj'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)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(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 hjAubj )}(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_pmdasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubeh}(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}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMDhjBhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMDubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj]jHj]jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMHhjaubj)}(hhh](j)}(h8``struct folio *folio`` The folio to add the mapping to h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMEhjubj)}(hhh]jM)}(hThe folio to add the mapping toh]hThe folio to add the mapping to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMEhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMEhj}ubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMFhjubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMFhj}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.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&]uh1jLhj hMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMGhj}ubj)}(hL``unsigned long address`` The user virtual address of the first page to map h](j)}(h``unsigned long address``h]jS)}(hj1h]hunsigned long address}(hj3hhhNhNubah}(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.chMHhj+ubj)}(hhh]jM)}(h1The user virtual address of the first page to maph]h1The user virtual address of the first page to map}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFhMHhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMHhj}ubj)}(h ``rmap_t flags`` The rmap flags h](j)}(h``rmap_t flags``h]jS)}(hjjh]h rmap_t flags}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjhubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMIhjdubj)}(hhh]jM)}(hThe rmap flagsh]hThe rmap flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMIhj}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&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMKhjaubjM)}(hMThe page range of folio is defined by [first_page, first_page + HPAGE_PMD_NR)h]hMThe page range of folio is defined by [first_page, first_page + HPAGE_PMD_NR)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMJhjaubjM)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMLhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_add_new_anon_rmap (C function)c.folio_add_new_anon_rmaphNtauh1hhjxhhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]j)}(hfolioh]hfolio}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjVmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_add_new_anon_rmapasbuh1hhj2ubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj2ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj.ubj )}(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]jpc.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)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj.ubj )}(hunsigned long addressh](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)}(haddressh]haddress}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj.ubj )}(h rmap_t flagsh](h)}(hhh]j)}(hrmap_th]hrmap_t}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jpc.folio_add_new_anon_rmapasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(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%Add mapping to a new anonymous folio.h]h%Add mapping to a new anonymous folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM\hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM\ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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)}(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)}(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.chM^hj6ubj)}(hhh]jM)}(h)the vm area in which the mapping is addedh]h)the vm area in which the mapping is added}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQhM^hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM^hjubj)}(h:``unsigned long address`` the user virtual address mapped h](j)}(h``unsigned long address``h]jS)}(hjuh]hunsigned long address}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjsubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM_hjoubj)}(hhh]jM)}(hthe user virtual address mappedh]hthe user virtual address mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjubj)}(h ``rmap_t flags`` The rmap flags h](j)}(h``rmap_t flags``h]jS)}(hjh]h rmap_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM`hjubj)}(hhh]jM)}(hThe rmap flagsh]hThe rmap flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`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.chMbhjubjM)}(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.chMahjubjM)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%folio_add_file_rmap_ptes (C function)c.folio_add_file_rmap_pteshNtauh1hhjxhhhNhNubh)}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj]hMubh)}(hfolio_add_file_rmap_ptesh]j)}(hfolio_add_file_rmap_ptesh]hfolio_add_file_rmap_ptes}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1hhjKhhhj]hMubj )}(hR(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljrsbc.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)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_add_file_rmap_ptesasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjHhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int nr_pagesh](j)}(hinth]hint}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_add_file_rmap_ptesasbuh1hhjubj)}(h h]h }(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 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+add PTE mappings to a page range of a folioh]h+add PTE mappings to a page range of a folio}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj!hhubah}(h]h ]h"]h$]h&]uh1j3hjDhhhj]hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj<jHj<jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj@ubj)}(hhh](j)}(h9``struct folio *folio`` The folio to add the mappings to h](j)}(h``struct folio *folio``h]jS)}(hjeh]hstruct folio *folio}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj_ubj)}(hhh]jM)}(h The folio to add the mappings toh]h The folio to add the mappings to}(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 page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj\ubj)}(hD``int nr_pages`` The number of pages that will be mapped using PTEs h](j)}(h``int nr_pages``h]jS)}(hjh]h int 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)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj\ubj)}(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.chMhj ubj)}(hhh]jM)}(h+The vm area in which the mappings are addedh]h+The vm area in which the mappings are added}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj\ubeh}(h]h ]h"]h$]h&]uh1jhj@ubjM)}(h**Description**h]j)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj@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)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj@ubjM)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_add_file_rmap_pmd (C function)c.folio_add_file_rmap_pmdhNtauh1hhjxhhhNhNubh)}(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}(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_pmdh]j)}(hfolio_add_file_rmap_pmdh]hfolio_add_file_rmap_pmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_add_file_rmap_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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjNhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]j)}(hpageh]hpage}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjnmodnameN classnameNjpjs)}jv]jc.folio_add_file_rmap_pmdasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjJubj)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_add_file_rmap_pmdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j 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 a PMD mapping to a page range of a folioh]h,add a PMD mapping to a page range of a folio}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj<hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjWjHjWjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjah]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj[ubj)}(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&]uh1jRhj~ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjzubj)}(hhh]jM)}(hThe folio to add the mapping toh]hThe folio to add the mapping to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubeh}(h]h ]h"]h$]h&]uh1jhj[ubjM)}(h**Description**h]j)}(hj-h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj[ubjM)}(hEThe page range of the folio is defined by [page, page + HPAGE_PMD_NR)h]hEThe page range of the folio is defined by [page, page + HPAGE_PMD_NR)}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj[ubjM)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$folio_add_file_rmap_pud (C function)c.folio_add_file_rmap_pudhNtauh1hhjxhhhNhNubh)}(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&]uh1jhj}hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhjhMubh)}(hfolio_add_file_rmap_pudh]j)}(hfolio_add_file_rmap_pudh]hfolio_add_file_rmap_pud}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj}hhhjhMubj )}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_add_file_rmap_pudasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct page *pageh](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)}(hpageh]hpage}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjPmodnameN classnameNjpjs)}jv]jc.folio_add_file_rmap_pudasbuh1hhj,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)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.folio_add_file_rmap_pudasbuh1hhjubj)}(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 hjubeh}(h]h ]h"]h$]h&]jjuh1j hj}hhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjyhhhjhMubah}(h]jtah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjvhhubj4)}(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}(hj!hhhNhNubah}(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&]uh1j3hjvhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj9jHj9jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj=ubj)}(hhh](j)}(h8``struct folio *folio`` The folio to add the mapping to h](j)}(h``struct folio *folio``h]jS)}(hjbh]hstruct folio *folio}(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.chMhj\ubj)}(hhh]jM)}(hThe folio to add the mapping toh]hThe folio to add the mapping to}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjYubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hThe first page to addh]hThe first page to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjYubj)}(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&]uh1jhjhMhjYubeh}(h]h ]h"]h$]h&]uh1jhj=ubjM)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj=ubjM)}(hEThe page range of the folio is defined by [page, page + HPAGE_PUD_NR)h]hEThe page range of the folio is defined by [page, page + HPAGE_PUD_NR)}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj=ubjM)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#folio_remove_rmap_ptes (C function)c.folio_remove_rmap_pteshNtauh1hhjxhhhNhNubh)}(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}(hjc hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM_ubj)}(h h]h }(hjr hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ hhhjq hM_ubh)}(hfolio_remove_rmap_ptesh]j)}(hfolio_remove_rmap_ptesh]hfolio_remove_rmap_ptes}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj_ hhhjq hM_ubj )}(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&]uh1j4hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jlj sbc.folio_remove_rmap_ptesasbuh1hhj 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}(hj0 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj- ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj2 modnameN classnameNjpjs)}jv]j c.folio_remove_rmap_ptesasbuh1hhj 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)}(hpageh]hpage}(hji hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]j c.folio_remove_rmap_ptesasbuh1hhj 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 ubeh}(h]h ]h"]h$]h&]jjuh1j hj_ hhhjq hM_ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj[ hhhjq hM_ubah}(h]jV ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjq hM_hjX hhubj4)}(hhh]jM)}(h0remove PTE mappings from a page range of a folioh]h0remove PTE mappings from a page range of a folio}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM_hj5 hhubah}(h]h ]h"]h$]h&]uh1j3hjX hhhjq hM_ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjP jHjP jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjZ h]h Parameters}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMchjT ubj)}(hhh](j)}(h>``struct folio *folio`` The folio to remove the mappings from h](j)}(h``struct folio *folio``h]jS)}(hjy h]hstruct folio *folio}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjw ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM`hjs 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&]uh1jhjs ubeh}(h]h ]h"]h$]h&]uh1jhj hM`hjp ubj)}(h/``struct page *page`` The first page to remove h](j)}(h``struct page *page``h]jS)}(hj h]hstruct page *page}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.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 hMahjp 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.chMbhj ubj)}(hhh]jM)}(h9The number of pages that will be removed from the mappingh]h9The number of pages that will be removed from the mapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMbhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMbhjp 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&]uh1jLhj9 hMchj: ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj9 hMchjp ubeh}(h]h ]h"]h$]h&]uh1jhjT ubjM)}(h**Description**h]j)}(hj_ h]h Description}(hja 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.chMehjT 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)}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMdhjT 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.chMfhjT ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_remove_rmap_pmd (C function)c.folio_remove_rmap_pmdhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h_void folio_remove_rmap_pmd (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h^void folio_remove_rmap_pmd(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMpubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMpubh)}(hfolio_remove_rmap_pmdh]j)}(hfolio_remove_rmap_pmdh]hfolio_remove_rmap_pmd}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhj 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)}jlj 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}(hjI hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjb hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj^ ubj)}(h h]h }(hjo 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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj^ ubj)}(hpageh]hpage}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj ubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hj hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjhhhNhNubah}(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 ubeh}(h]h ]h"]h$]h&]jjuh1j hj hhhj hMpubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj hhhj hMpubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj 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}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMphjPhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj hMpubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjkjHjkjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMthjoubj)}(hhh](j)}(h=``struct folio *folio`` The folio to remove the mapping from h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMqhjubj)}(hhh]jM)}(h$The folio to remove the mapping fromh]h$The folio to remove the mapping from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjubj)}(h/``struct page *page`` The first page to remove h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMrhjubj)}(hhh]jM)}(hThe first page to removeh]hThe first page to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubj)}(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)}(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.chMshjubj)}(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&]uh1jLhjhMshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubeh}(h]h ]h"]h$]h&]uh1jhjoubjM)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMuhjoubjM)}(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)}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMthjoubjM)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMvhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_remove_rmap_pud (C function)c.folio_remove_rmap_pudhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h_void folio_remove_rmap_pud (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h^void folio_remove_rmap_pud(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_remove_rmap_pudh]j)}(hfolio_remove_rmap_pudh]hfolio_remove_rmap_pud}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.folio_remove_rmap_pudasbuh1hhjubj)}(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 *pageh](j5)}(hj8h]hstruct}(hjDhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j)}(hpageh]hpage}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]j c.folio_remove_rmap_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)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(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]j c.folio_remove_rmap_pudasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h1remove a PUD mapping from a page range of a folioh]h1remove a PUD mapping from a page range of a folio}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj2hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjMjHjMjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjWh]h Parameters}(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.chMhjQubj)}(hhh](j)}(h=``struct folio *folio`` The folio to remove the mapping from h](j)}(h``struct folio *folio``h]jS)}(hjvh]hstruct folio *folio}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjpubj)}(hhh]jM)}(h$The folio to remove the mapping fromh]h$The folio to remove the mapping from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubj)}(h/``struct page *page`` The first page to remove h](j)}(h``struct page *page``h]jS)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]jM)}(hThe first page to removeh]hThe first page to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubj)}(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)}(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 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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubeh}(h]h ]h"]h$]h&]uh1jhjQubjM)}(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.chMhjQubjM)}(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)}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjQubjM)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htry_to_unmap (C function)c.try_to_unmaphNtauh1hhjxhhhNhNubh)}(hhh](h)}(h=void try_to_unmap (struct folio *folio, enum ttu_flags flags)h]h)}(hvoid try_to_migrate(struct folio *folio, enum ttu_flags flags)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(htry_to_migrateh]j)}(htry_to_migrateh]htry_to_migrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM 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)}jljsbc.try_to_migrateasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum ttu_flags flagsh](j5)}(hj+h]henum}(hjjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j)}(h ttu_flagsh]h ttu_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j2c.try_to_migrateasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(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)}(h8try to replace all page table mappings with swap entriesh]h8try to replace all page table mappings with swap entries}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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}(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)}(h+the folio to replace page table entries forh]h+the folio to replace page table entries for}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4hM hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hM hjubj)}(h*``enum ttu_flags flags`` action and flags h](j)}(h``enum ttu_flags flags``h]jS)}(hjXh]henum ttu_flags 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)}(haction and flagsh]haction and flags}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmhM hjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhM 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)}(hTries to remove all the page table entries which are mapping this folio and replace them with special swap entries. Caller must hold the folio lock.h]hTries to remove all the page table entries which are mapping this folio and replace them with special swap entries. Caller must hold the folio lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"make_device_exclusive (C function)c.make_device_exclusivehNtauh1hhjxhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhJ/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)}(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_exclusiveasbuh1hhjhhhjhM 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)}(hmake_device_exclusiveh]j)}(hjh]hmake_device_exclusive}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(hN(struct mm_struct *mm, unsigned long addr, void *owner, struct folio **foliop)h](j )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hjRhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrmodnameN classnameNjpjs)}jv]jc.make_device_exclusiveasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjNubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubj )}(h void *ownerh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj/hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hownerh]howner}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubj )}(hstruct folio **folioph](j5)}(hj8h]hstruct}(hjUhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j)}(hfolioh]hfolio}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjumodnameN classnameNjpjs)}jv]jc.make_device_exclusiveasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjQubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjQubj)}(hfolioph]hfoliop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubeh}(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)Mark a page for exclusive use by a deviceh]h)Mark a page for exclusive use by a device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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:113: ./mm/rmap.chM hjubj)}(hhh]jM)}(h&mm_struct of associated target processh]h&mm_struct of associated target process}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9hM hj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hM hjubj)}(hO``unsigned long addr`` the virtual address to mark for exclusive device access 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:113: ./mm/rmap.chM hjWubj)}(hhh]jM)}(h7the virtual address to mark for exclusive device accessh]h7the virtual address to mark for exclusive device access}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhM hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM hjubj)}(hQ``void *owner`` passed to MMU_NOTIFY_EXCLUSIVE range notifier to allow filtering h](j)}(h``void *owner``h]jS)}(hjh]h void *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubj)}(hhh]jM)}(h@passed to MMU_NOTIFY_EXCLUSIVE range notifier to allow filteringh]h@passed to MMU_NOTIFY_EXCLUSIVE range notifier to allow filtering}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hH``struct folio **foliop`` folio pointer will be stored here on success. h](j)}(h``struct folio **foliop``h]jS)}(hjh]hstruct folio **foliop}(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-folio pointer will be stored here on success.h]h-folio pointer will be stored here on success.}(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&]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.}(hj hhhNhNubah}(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.}(hj/hhhNhNubah}(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.}(hj>hhhNhNubah}(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.}(hjMhhhNhNubah}(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)}(hj^h]hNotes}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM 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 hj{ubah}(h]h ]h"]h$]h&]uh1j+hjxubj+)}(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.}(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&]uh1j+hjxubj+)}(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.}(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&]uh1j+hjxubeh}(h]h ]h"]h$]h&]j+j+j+hj+j+uh1j+hjtubah}(h]h ]h"]h$]h&]uh1jhhjhM hjubjM)}(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.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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__rmap_walk_file (C function)c.__rmap_walk_filehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hvoid __rmap_walk_file (struct folio *folio, struct address_space *mapping, pgoff_t pgoff_start, unsigned long nr_pages, struct rmap_walk_control *rwc, bool locked)h]h)}(hvoid __rmap_walk_file(struct folio *folio, struct address_space *mapping, pgoff_t pgoff_start, unsigned long nr_pages, struct rmap_walk_control *rwc, bool locked)h](j)}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj9hM ubh)}(h__rmap_walk_fileh]j)}(h__rmap_walk_fileh]h__rmap_walk_file}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1hhj'hhhj9hM 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}(hjhhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljNsbc.__rmap_walk_fileasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjdubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubj )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__rmap_walk_fileasbuh1hhjubj)}(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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubj )}(hpgoff_t pgoff_starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjOmodnameN classnameNjpjs)}jv]jc.__rmap_walk_fileasbuh1hhjFubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h pgoff_starth]h pgoff_start}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(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`ubj )}(hstruct rmap_walk_control *rwch](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hrmap_walk_controlh]hrmap_walk_control}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__rmap_walk_fileasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj-hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hrwch]hrwc}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubj )}(h bool lockedh](j)}(hj)h]hbool}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hlockedh]hlocked}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(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)}(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.}(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 hhhj9hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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`` 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)}(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)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``struct address_space *mapping`` The page cache object whose mapping VMAs we intend to traverse. If **folio** is non-NULL, this should be equal to folio_mapping(folio). h](j)}(h!``struct address_space *mapping``h]jS)}(hj%h]hstruct address_space *mapping}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM 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 }(hj>hhhNhNubj)}(h **folio**h]hfolio}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh; is non-NULL, this should be equal to folio_mapping(folio).}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hM hjubj)}(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)}(hjqh]hpgoff_t pgoff_start}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjkubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) of the page which we are looking up. If }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(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&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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)}(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.chM hjubj)}(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 }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh< is non-NULL, this should be equal to folio_nr_pages(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 hjubj)}(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.ckhM 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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM hjubj)}(hO``bool locked`` Is the **mapping** already locked? If not, we acquire the lock.h](j)}(h``bool locked``h]jS)}(hjUh]h bool locked}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjSubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjOubj)}(hhh]jM)}(h?Is the **mapping** already locked? If not, we acquire the lock.h](hIs the }(hjnhhhNhNubj)}(h **mapping**h]hmapping}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh- already locked? If not, we acquire the lock.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjjhM hjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%isolate_movable_ops_page (C function)c.isolate_movable_ops_pagehNtauh1hhjxhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKdubh)}(hisolate_movable_ops_pageh]j)}(hisolate_movable_ops_pageh]hisolate_movable_ops_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKdubj )}(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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljsbc.isolate_movable_ops_pageasbuh1hhjubj)}(h h]h }(hj: hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjH hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpageh]hpage}(hjU hhhNhNubah}(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}(hjq hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjs modnameN classnameNjpjs)}jv]j6 c.isolate_movable_ops_pageasbuh1hhjj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj ubj)}(hmodeh]hmode}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKdubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKdubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKdhjhhubj4)}(hhh]jM)}(h(isolate a movable_ops page for migrationh]h(isolate a movable_ops page for migration}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKdhj hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKdubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj jHj jIjJjKuh1hhhhjxhNhNubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhhj 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&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKehj!ubj)}(hhh]jM)}(h The page.h]h The page.}(hj!!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj!hKehj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hKehj ubj)}(h,``isolate_mode_t mode`` The isolation mode. h](j)}(h``isolate_mode_t mode``h]jS)}(hjA!h]hisolate_mode_t mode}(hjC!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj?!ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKfhj;!ubj)}(hhh]jM)}(hThe isolation mode.h]hThe isolation mode.}(hjZ!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjV!hKfhjW!ubah}(h]h ]h"]h$]h&]uh1jhj;!ubeh}(h]h ]h"]h$]h&]uh1jhjV!hKfhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubjM)}(h**Description**h]j)}(hj|!h]h Description}(hj~!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz!ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhhj ubjM)}(hTry to isolate a movable_ops page for migration. Will fail if the page is not a movable_ops page, if the page is already isolated for migration or if the page was just was released by its owner.h]hTry to isolate a movable_ops page for migration. Will fail if the page is not a movable_ops page, if the page is already isolated for migration or if the page was just was released by its owner.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKghj ubjM)}(hPOnce isolated, the page cannot get freed until it is either putback or migrated.h]hPOnce isolated, the page cannot get freed until it is either putback or migrated.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKkhj ubjM)}(h5Returns true if isolation succeeded, otherwise false.h]h5Returns true if isolation succeeded, otherwise false.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKnhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%putback_movable_ops_page (C function)c.putback_movable_ops_pagehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h1void putback_movable_ops_page (struct page *page)h]h)}(h0void putback_movable_ops_page(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:114: ./mm/migrate.chKubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!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&]jjuh1hhj!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&]uh1jhj7"ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj<"modnameN classnameNjpjs)}jv]jy)}jlj"sbc.putback_movable_ops_pageasbuh1hhj"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)}(hpageh]hpage}(hju"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj"ubah}(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$putback an isolated movable_ops pageh]h$putback an isolated movable_ops page}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj"hhubah}(h]h ]h"]h$]h&]uh1j3hj!hhhj!hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj"jHj"jIjJjKuh1hhhhjxhNhNubj)}(h**Parameters** ``struct page *page`` The isolated page. **Description** Putback an isolated movable_ops page. After the page was putback, it might get freed instantly.h](jM)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj"ubj)}(hhh]j)}(h)``struct page *page`` The isolated page. h](j)}(h``struct page *page``h]jS)}(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:114: ./mm/migrate.chKhj"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&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hKhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubjM)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj"ubjM)}(h%Putback an isolated movable_ops page.h]h%Putback an isolated movable_ops page.}(hj1#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj"ubjM)}(h9After the page was putback, it might get freed instantly.h]h9After the page was putback, it might get freed instantly.}(hj@#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%migrate_movable_ops_page (C function)c.migrate_movable_ops_pagehNtauh1hhjxhhhNhNubh)}(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}(hjo#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk#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&]uh1jhjk#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&]jjuh1hhjk#hhhj}#hKubj )}(h<(struct page *dst, struct page *src, enum migrate_mode mode)h](j )}(hstruct page *dsth](j5)}(hj8h]hstruct}(hj#hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubh)}(hhh]j)}(hpageh]hpage}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj#modnameN classnameNjpjs)}jv]jy)}jlj#sbc.migrate_movable_ops_pageasbuh1hhj#ubj)}(h h]h }(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 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&]uh1jhj9$ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj>$modnameN classnameNjpjs)}jv]j#c.migrate_movable_ops_pageasbuh1hhj$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)}(hsrch]hsrc}(hju$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#ubj )}(henum migrate_mode modeh](j5)}(hj+h]henum}(hj$hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]j)}(h migrate_modeh]h migrate_mode}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj$modnameN classnameNjpjs)}jv]j#c.migrate_movable_ops_pageasbuh1hhj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hmodeh]hmode}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj#ubeh}(h]h ]h"]h$]h&]jjuh1j hjk#hhhj}#hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjg#hhhj}#hKubah}(h]jb#ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj}#hKhjd#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&]uh1j3hjd#hhhj}#hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj%jHj%jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjC%h]hstruct page *dst}(hjE%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjA%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&]uh1jLhjX%hKhjY%ubah}(h]h ]h"]h$]h&]uh1jhj=%ubeh}(h]h ]h"]h$]h&]uh1jhjX%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&]uh1jRhjz%ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjv%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&]uh1jhjv%ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhj:%ubj)}(h/``enum migrate_mode mode`` The migration mode. h](j)}(h``enum migrate_mode mode``h]jS)}(hj%h]henum migrate_mode mode}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj%ubj)}(hhh]jM)}(hThe migration mode.h]hThe migration mode.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhj:%ubeh}(h]h ]h"]h$]h&]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.}(hj3&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.}(hjB&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.}(hjQ&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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmigrate_folio (C function)c.migrate_foliohNtauh1hhjxhhhNhNubh)}(hhh](h)}(hoint migrate_folio (struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h]h)}(hnint migrate_folio(struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hinth]hint}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|&hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMsubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|&hhhj&hMsubh)}(h migrate_folioh]j)}(h migrate_folioh]h migrate_folio}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj|&hhhj&hMsubj )}(h](struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hj&hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]j)}(h address_spaceh]h address_space}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj&modnameN classnameNjpjs)}jv]jy)}jlj&sbc.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}(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}(hjM'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ'ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjO'modnameN classnameNjpjs)}jv]j&c.migrate_folioasbuh1hhj+'ubj)}(h h]h }(hjk'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+'ubjF )}(hjI h]h*}(hjy'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.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)}(hj+h]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 }(hjK(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj (ubj)}(hmodeh]hmode}(hjY(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj (ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj&ubeh}(h]h ]h"]h$]h&]jjuh1j hj|&hhhj&hMsubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjx&hhhj&hMsubah}(h]js&ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj&hMshju&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&]uh1j3hju&hhhj&hMsubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj(jHj(jIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct address_space *mapping`` The address_space containing the folio. ``struct folio *dst`` The folio to migrate the data to. ``struct folio *src`` The folio containing the current data. ``enum migrate_mode mode`` How to migrate the page. **Description** Common logic to directly migrate a single LRU folio suitable for folios that do not have private data. Folios are locked upon entry and exit.h](jM)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMwhj(ubj)}(hhh](j)}(hJ``struct address_space *mapping`` The address_space containing the folio. h](j)}(h!``struct address_space *mapping``h]jS)}(hj(h]hstruct address_space *mapping}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMthj(ubj)}(hhh]jM)}(h'The address_space containing the folio.h]h'The address_space containing the folio.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj(hMthj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMthj(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)hMuhj(ubj)}(h=``struct folio *src`` The folio containing the current data. h](j)}(h``struct folio *src``h]jS)}(hj6)h]hstruct folio *src}(hj8)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4)ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMvhj0)ubj)}(hhh]jM)}(h&The folio containing the current data.h]h&The folio containing the current data.}(hjO)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjK)hMvhjL)ubah}(h]h ]h"]h$]h&]uh1jhj0)ubeh}(h]h ]h"]h$]h&]uh1jhjK)hMvhj(ubj)}(h4``enum migrate_mode mode`` How to migrate the page. h](j)}(h``enum migrate_mode mode``h]jS)}(hjo)h]henum migrate_mode mode}(hjq)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjm)ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMwhji)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&]uh1jhji)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMwhj(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.chMyhj(ubjM)}(hfCommon logic to directly migrate a single LRU folio suitable for folios that do not have private data.h]hfCommon logic to directly migrate a single LRU folio suitable for folios that do not have private data.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMxhj(ubjM)}(h&Folios are locked upon entry and exit.h]h&Folios are locked upon entry and exit.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM{hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!buffer_migrate_folio (C function)c.buffer_migrate_foliohNtauh1hhjxhhhNhNubh)}(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&]uh1j4hj7*ubj)}(h h]h }(hjH*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7*ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjY*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV*ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj[*modnameN classnameNjpjs)}jv]jy)}jlj!*sbc.buffer_migrate_folioasbuh1hhj7*ubj)}(h h]h }(hjy*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7*ubjF )}(hjI h]h*}(hj*hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj7*ubj)}(hmappingh]hmapping}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3*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]ju*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 hj3*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&]uh1jhj8+ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj=+modnameN classnameNjpjs)}jv]ju*c.buffer_migrate_folioasbuh1hhj+ubj)}(h h]h }(hjY+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjF )}(hjI h]h*}(hjg+hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj+ubj)}(hsrch]hsrc}(hjt+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3*ubj )}(henum migrate_mode modeh](j5)}(hj+h]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]ju*c.buffer_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 hj3*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,jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjB,h]hstruct address_space *mapping}(hjD,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}(hjc,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[,ubh.}(hj[,hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjW,hMhjX,ubah}(h]h ]h"]h$]h&]uh1jhj<,ubeh}(h]h ]h"]h$]h&]uh1jhjW,hMhj9,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,hMhj9,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.chMhj,ubj)}(hhh]jM)}(hThe folio to migrate from.h]hThe folio to migrate from.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj9,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-hMhj9,ubeh}(h]h ]h"]h$]h&]uh1jhj,ubjM)}(h**Description**h]j)}(hj:-h]h Description}(hj<-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8-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 }(hjP-hhhNhNubj)}(h**src**h]hsrc}(hjX-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP-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.}(hjP-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)}(hjs-h]hReturn}(hju-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq-ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(buffer_migrate_folio_norefs (C function)c.buffer_migrate_folio_norefshNtauh1hhjxhhhNhNubh)}(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}(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_folio_norefsh]j)}(hbuffer_migrate_folio_norefsh]hbuffer_migrate_folio_norefs}(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_folio_norefsasbuh1hhj-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)}(hmappingh]hmapping}(hjN.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-ubj )}(hstruct folio *dsth](j5)}(hj8h]hstruct}(hjg.hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjc.ubj)}(h h]h }(hjt.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc.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_norefsasbuh1hhjc.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc.ubjF )}(hjI h]h*}(hj.hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjc.ubj)}(hdsth]hdst}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc.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_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)}(hsrch]hsrc}(hj./hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-ubj )}(henum migrate_mode modeh](j5)}(hj+h]henum}(hjG/hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjC/ubj)}(h h]h }(hjT/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC/ubh)}(hhh]j)}(h migrate_modeh]h migrate_mode}(hje/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb/ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjg/modnameN classnameNjpjs)}jv]j/.c.buffer_migrate_folio_norefsasbuh1hhjC/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC/ubj)}(hmodeh]hmode}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC/ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-ubeh}(h]h ]h"]h$]h&]jjuh1j hj-hhhj-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/jIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chM hj/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 }(hj0hhhNhNubj)}(h**src**h]hsrc}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj/ubj)}(h/``struct folio *dst`` The folio to migrate to. h](j)}(h``struct folio *dst``h]jS)}(hjG0h]hstruct folio *dst}(hjI0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjE0ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjA0ubj)}(hhh]jM)}(hThe folio to migrate to.h]hThe folio to migrate to.}(hj`0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\0hMhj]0ubah}(h]h ]h"]h$]h&]uh1jhjA0ubeh}(h]h ]h"]h$]h&]uh1jhj\0hMhj/ubj)}(h1``struct folio *src`` The folio to migrate from. h](j)}(h``struct folio *src``h]jS)}(hj0h]hstruct folio *src}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj~0ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM hjz0ubj)}(hhh]jM)}(hThe folio to migrate from.h]hThe folio to migrate from.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hM hj0ubah}(h]h ]h"]h$]h&]uh1jhjz0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM hj/ubj)}(h5``enum migrate_mode mode`` How to migrate the folio. h](j)}(h``enum migrate_mode mode``h]jS)}(hj0h]henum migrate_mode mode}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM hj0ubj)}(hhh]jM)}(hHow to migrate the folio.h]hHow to migrate the folio.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hM hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM hj/ubeh}(h]h ]h"]h$]h&]uh1jhj/ubjM)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM hj/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 1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chM hj/ubjM)}(h **Return**h]j)}(hj1h]hReturn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(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.}(hj11hhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdo_mmap (C function) c.do_mmaphNtauh1hhjxhhhNhNubh)}(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`1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\1hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMubj)}(h h]h }(hjo1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\1hhhjn1hMubj)}(hlongh]hlong}(hj}1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\1hhhjn1hMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\1hhhjn1hMubh)}(hdo_mmaph]j)}(hdo_mmaph]hdo_mmap}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj\1hhhjn1hMubj )}(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}(hj1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(hfileh]hfile}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj1modnameN classnameNjpjs)}jv]jy)}jlj1sb c.do_mmapasbuh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjF )}(hjI h]h*}(hj2hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1ubj)}(hfileh]hfile}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj+2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'2ubj)}(h h]h }(hj92hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'2ubj)}(hlongh]hlong}(hjG2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'2ubj)}(h h]h }(hjU2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'2ubj)}(haddrh]haddr}(hjc2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hj|2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx2ubj)}(hlongh]hlong}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx2ubj)}(hlenh]hlen}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hunsigned long proth](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&]uh1jhj2ubj)}(hproth]hprot}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj,3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hlongh]hlong}(hj:3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjH3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hflagsh]hflags}(hjV3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hvm_flags_t vm_flagsh](h)}(hhh]j)}(h vm_flags_th]h vm_flags_t}(hjr3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo3ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjt3modnameN classnameNjpjs)}jv]j1 c.do_mmapasbuh1hhjk3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk3ubj)}(hvm_flagsh]hvm_flags}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hpgoffh]hpgoff}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hunsigned long *populateh](j)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hlongh]hlong}(hj$4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj24hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjF )}(hjI h]h*}(hj@4hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj4ubj)}(hpopulateh]hpopulate}(hjM4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubj )}(hstruct list_head *ufh](j5)}(hj8h]hstruct}(hjf4hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjb4ubj)}(h h]h }(hjs4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb4ubh)}(hhh]j)}(h list_headh]h list_head}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4modnameN classnameNjpjs)}jv]j1 c.do_mmapasbuh1hhjb4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb4ubjF )}(hjI h]h*}(hj4hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjb4ubj)}(hufh]huf}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj1ubeh}(h]h ]h"]h$]h&]jjuh1j hj\1hhhjn1hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjX1hhhjn1hMubah}(h]jS1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjn1hMhjU1hhubj4)}(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 }(hj4hhhNhNubj)}(h**len**h]hlen}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh with protection bits }(hj4hhhNhNubj)}(h**prot**h]hprot}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh , mmap flags }(hj4hhhNhNubj)}(h **flags**h]hflags}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhP (from which VMA flags will be inferred), and any additional VMA flags to apply }(hj4hhhNhNubj)}(h **vm_flags**h]hvm_flags}(hj%5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhA. If this is a file-backed mapping then the file is specified in }(hj4hhhNhNubj)}(h**file**h]hfile}(hj75hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh# and page offset into the file via }(hj4hhhNhNubj)}(h **pgoff**h]hpgoff}(hjI5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj4hhubah}(h]h ]h"]h$]h&]uh1j3hjU1hhhjn1hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjk5jHjk5jIjJjKuh1hhhhjxhNhNubj)}(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.eh](jM)}(h**Parameters**h]j)}(hju5h]h Parameters}(hjw5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs5ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjo5ubj)}(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)}(hj5h]hstruct file *file}(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.chM9hj5ubj)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM8hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM9hj5ubj)}(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)}(hj5h]hunsigned long addr}(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.chM<hj5ubj)}(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 }(hj5hhhNhNubj)}(h **flags**h]hflags}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh| has MAP_FIXED set, specifies) the address at which to perform this mapping. See mmap (2) for details. Must be page-aligned.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM:hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM<hj5ubj)}(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)}(hj6h]hunsigned long len}(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.chM>hj6ubj)}(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.}(hj36hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM=hj06ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj/6hM>hj5ubj)}(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)}(hjT6h]hunsigned long prot}(hjV6hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjR6ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM@hjN6ubj)}(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.}(hjm6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM?hjj6ubah}(h]h ]h"]h$]h&]uh1jhjN6ubeh}(h]h ]h"]h$]h&]uh1jhji6hM@hj5ubj)}(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)}(hj6h]hunsigned long flags}(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.chMBhj6ubj)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMAhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMBhj5ubj)}(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)}(hj6h]hvm_flags_t vm_flags}(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.chMChj6ubj)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hMChj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMChj5ubj)}(h]``unsigned long pgoff`` Page offset into the **file** if file-backed, should be 0 otherwise. h](j)}(h``unsigned long pgoff``h]jS)}(hj7h]hunsigned long pgoff}(hj7hhhNhNubah}(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.chMDhj6ubj)}(hhh]jM)}(hDPage offset into the **file** if file-backed, should be 0 otherwise.h](hPage offset into the }(hj7hhhNhNubj)}(h**file**h]hfile}(hj"7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh' if file-backed, should be 0 otherwise.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhj7hMDhj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hMDhj5ubj)}(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)}(hjL7h]hunsigned long *populate}(hjN7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJ7ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMHhjF7ubj)}(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.}(hje7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMEhjb7ubah}(h]h ]h"]h$]h&]uh1jhjF7ubeh}(h]h ]h"]h$]h&]uh1jhja7hMHhj5ubj)}(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)}(hj7h]hstruct list_head *uf}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMKhj7ubj)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMIhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMKhj5ubeh}(h]h ]h"]h$]h&]uh1jhjo5ubjM)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(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.chMMhjo5ubjM)}(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 }(hj7hhhNhNubj)}(h**uf**h]huf}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubhX is non-NULL, the caller has provided a list head to track unmap events for userfaultfd }(hj7hhhNhNubj)}(h**uf**h]huf}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjo5ubjM)}(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 }(hj 8hhhNhNubj)}(h **populate**h]hpopulate}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 8ubhc, which must be non-NULL, expecting the caller to actually perform this task itself if appropriate.}(hj 8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjo5ubjM)}(hThis function will invoke architecture-specific (and if provided and relevant, file system-specific) logic to determine the most appropriate unmapped area in which to place the mapping if not MAP_FIXED.h]hThis function will invoke architecture-specific (and if provided and relevant, file system-specific) logic to determine the most appropriate unmapped area in which to place the mapping if not MAP_FIXED.}(hj,8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM!hjo5ubjM)}(hoCallers which require userland mmap() behaviour should invoke vm_mmap(), which is also exported for module use.h]hoCallers which require userland mmap() behaviour should invoke vm_mmap(), which is also exported for module use.}(hj;8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM%hjo5ubjM)}(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.}(hjJ8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM(hjo5ubjM)}(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 }(hjY8hhhNhNubj)}(h**len**h]hlen}(hja8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY8ubh. bytes, rounded down to the nearest page size.}(hjY8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM,hjo5ubjM)}(h2The caller must write-lock current->mm->mmap_lock.h]h2The caller must write-lock current->mm->mmap_lock.}(hjz8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM1hjo5ubjM)}(h **Return**h]j)}(hj8h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM3hjo5ubjM)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMMhjo5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"find_vma_intersection (C function)c.find_vma_intersectionhNtauh1hhjxhhhNhNubh)}(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}(hj8hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj8hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMlubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj8hMlubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj8modnameN classnameNjpjs)}jv]jy)}jlfind_vma_intersectionsbc.find_vma_intersectionasbuh1hhj8hhhj8hMlubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj8hMlubjF )}(hjI h]h*}(hj9hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj8hhhj8hMlubh)}(hfind_vma_intersectionh]j)}(hj 9h]hfind_vma_intersection}(hj/9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+9ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj8hhhj8hMlubj )}(hH(struct mm_struct *mm, unsigned long start_addr, unsigned long end_addr)h](j )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hjJ9hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjF9ubj)}(h h]h }(hjW9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF9ubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjh9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje9ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjj9modnameN classnameNjpjs)}jv]j 9c.find_vma_intersectionasbuh1hhjF9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF9ubjF )}(hjI h]h*}(hj9hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjF9ubj)}(hmmh]hmm}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF9ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjB9ubj )}(hunsigned long start_addrh](j)}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hlongh]hlong}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h start_addrh]h start_addr}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjB9ubj )}(hunsigned long end_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 }(hj5:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hend_addrh]hend_addr}(hjC:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjB9ubeh}(h]h ]h"]h$]h&]jjuh1j hj8hhhj8hMlubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj8hhhj8hMlubah}(h]j8ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj8hMlhj8hhubj4)}(hhh]jM)}(h3Look up the first VMA which intersects the intervalh]h3Look up the first VMA which intersects the interval}(hjm:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMlhjj:hhubah}(h]h ]h"]h$]h&]uh1j3hj8hhhj8hMlubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj:jHj:jIjJjKuh1hhhhjxhNhNubj)}(hX/**Parameters** ``struct mm_struct *mm`` The process address space. ``unsigned long start_addr`` The inclusive start user address. ``unsigned long end_addr`` The exclusive end user address. **Return** The first VMA within the provided range, ``NULL`` otherwise. Assumes start_addr < end_addr.h](jM)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMphj:ubj)}(hhh](j)}(h4``struct mm_struct *mm`` The process address space. h](j)}(h``struct mm_struct *mm``h]jS)}(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.chMmhj:ubj)}(hhh]jM)}(hThe process address space.h]hThe process address space.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hMmhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMmhj:ubj)}(h?``unsigned long start_addr`` The inclusive start user address. h](j)}(h``unsigned long start_addr``h]jS)}(hj:h]hunsigned long start_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.chMnhj:ubj)}(hhh]jM)}(h!The inclusive start user address.h]h!The inclusive start user address.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:hMnhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMnhj:ubj)}(h;``unsigned long end_addr`` The exclusive end user address. h](j)}(h``unsigned long end_addr``h]jS)}(hj ;h]hunsigned long end_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.chMohj;ubj)}(hhh]jM)}(hThe exclusive end user address.h]hThe exclusive end user address.}(hj9;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5;hMohj6;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj5;hMohj:ubeh}(h]h ]h"]h$]h&]uh1jhj:ubjM)}(h **Return**h]j)}(hj[;h]hReturn}(hj];hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY;ubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMqhj:ubjM)}(h\The first VMA within the provided range, ``NULL`` otherwise. Assumes start_addr < end_addr.h](h)The first VMA within the provided range, }(hjq;hhhNhNubjS)}(h``NULL``h]hNULL}(hjy;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjq;ubh+ otherwise. Assumes start_addr < end_addr.}(hjq;hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMqhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfind_vma (C function) c.find_vmahNtauh1hhjxhhhNhNubh)}(hhh](h)}(hKstruct vm_area_struct * find_vma (struct mm_struct *mm, unsigned long addr)h]h)}(hIstruct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)h](j5)}(hj8h]hstruct}(hj;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)}jlfind_vmasb c.find_vmaasbuh1hhj;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)}(hfind_vmah]j)}(hj;h]hfind_vma}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj <ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj;hhhj;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 }(hj9<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(<ubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjJ<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG<ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjL<modnameN classnameNjpjs)}jv]j; c.find_vmaasbuh1hhj(<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)}(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}(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;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)}(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;hhhj;hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj=jHj=jIjJjKuh1hhhhjxhNhNubj)}(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}(hjA=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.chMhj9=ubj)}(hhh]jM)}(hThe mm_struct to checkh]hThe mm_struct to check}(hjX=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjT=hMhjU=ubah}(h]h ]h"]h$]h&]uh1jhj9=ubeh}(h]h ]h"]h$]h&]uh1jhjT=hMhj6=ubj)}(h#``unsigned long addr`` The address 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&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjr=ubj)}(hhh]jM)}(h The addressh]h The address}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jhjr=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj6=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&]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}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfind_vma_prev (C function)c.find_vma_prevhNtauh1hhjxhhhNhNubh)}(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 }(hjJ>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hMubjF )}(hjI h]h*}(hjX>hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj>hhhj>hMubh)}(h find_vma_prevh]j)}(hjG>h]h find_vma_prev}(hji>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje>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}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj>modnameN classnameNjpjs)}jv]jE>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>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}(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}(hjE?hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjA?ubj)}(h h]h }(hjR?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA?ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjc?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`?ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetje?modnameN classnameNjpjs)}jv]jE>c.find_vma_prevasbuh1hhjA?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA?ubjF )}(hjI h]h*}(hj?hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjA?ubjF )}(hjI h]h*}(hj?hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjA?ubj)}(hpprevh]hpprev}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA?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 }(hj?hhhNhNubjS)}(h ``pprev``h]hpprev}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj?ubh to the previous VMA, if any.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj?hhubah}(h]h ]h"]h$]h&]uh1j3hj=hhhj>hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj?jHj?jIjJjKuh1hhhhjxhNhNubj)}(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}(hja@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.chMhjY@ubj)}(hhh]jM)}(h The addressh]h The address}(hjx@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjt@hMhju@ubah}(h]h ]h"]h$]h&]uh1jhjY@ubeh}(h]h ]h"]h$]h&]uh1jhjt@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}(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&]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 }(hjAhhhNhNubj)}(h**addr**h]haddr}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh, or the next vma. May return }(hjAhhhNhNubjS)}(h``NULL``h]hNULL}(hj*AhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubh( in the case of no vma at addr or above.}(hjAhhhNhNubeh}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_alloc (C function)c.kmemleak_allochNtauh1hhjxhhhNhNubh)}(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}(hjcAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_AhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM5ubj)}(h h]h }(hjrAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_AhhhjqAhM5ubh__ref}(hj_AhhhNhNubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_AhhhjqAhM5ubh)}(hkmemleak_alloch]j)}(hkmemleak_alloch]hkmemleak_alloc}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1hhj_AhhhjqAhM5ubj )}(h8(const void *ptr, size_t size, int min_count, gfp_t gfp)h](j )}(hconst void *ptrh](j5)}(hjh]hconst}(hjAhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjF )}(hjI h]h*}(hjAhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjAubj)}(hptrh]hptr}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]jy)}jljAsbc.kmemleak_allocasbuh1hhj Bubj)}(h h]h }(hj2BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Bubj)}(hsizeh]hsize}(hj@BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Bubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(h int min_counth](j)}(hinth]hint}(hjYBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUBubj)}(h h]h }(hjgBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUBubj)}(h min_counth]h min_count}(hjuBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUBubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]j.Bc.kmemleak_allocasbuh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hgfph]hgfp}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjAubeh}(h]h ]h"]h$]h&]jjuh1j hj_AhhhjqAhM5ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj[AhhhjqAhM5ubah}(h]jVAah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjqAhM5hjXAhhubj4)}(hhh]jM)}(h!register a newly allocated objecth]h!register a newly allocated object}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM5hjBhhubah}(h]h ]h"]h$]h&]uh1j3hjXAhhhjqAhM5ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjBjHjBjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj Ch]h Parameters}(hj ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM9hjCubj)}(hhh](j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hj(Ch]hconst void *ptr}(hj*ChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&Cubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM6hj"Cubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjAChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=ChM6hj>Cubah}(h]h ]h"]h$]h&]uh1jhj"Cubeh}(h]h ]h"]h$]h&]uh1jhj=ChM6hjCubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]jS)}(hjaCh]h size_t size}(hjcChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj_Cubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM7hj[Cubj)}(hhh]jM)}(hsize of the objecth]hsize of the object}(hjzChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvChM7hjwCubah}(h]h ]h"]h$]h&]uh1jhj[Cubeh}(h]h ]h"]h$]h&]uh1jhjvChM7hjCubj)}(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)}(hjCh]h int min_count}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM<hjCubj)}(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 }(hjChhhNhNubj)}(h **min_count**h]h min_count}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh7 is found, the object is reported as a memory leak. If }(hjChhhNhNubj)}(h **min_count**h]h min_count}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh2 is 0, the object is never reported as a leak. If }(hjChhhNhNubj)}(h **min_count**h]h min_count}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubhF is -1, the object is ignored (not scanned and not reported as a leak)}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM8hjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChM<hjCubj)}(hL``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]jS)}(hj Dh]h gfp_t gfp}(hj DhhhNhNubah}(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.chM=hjDubj)}(hhh]jM)}(h=kmalloc() flags used for kmemleak internal memory allocationsh]h=kmalloc() flags used for kmemleak internal memory allocations}(hj#DhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhM=hj Dubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhM=hjCubeh}(h]h ]h"]h$]h&]uh1jhjCubjM)}(h**Description**h]j)}(hjEDh]h Description}(hjGDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCDubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM?hjCubjM)}(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.).}(hj[DhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM>hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"kmemleak_alloc_percpu (C function)c.kmemleak_alloc_percpuhNtauh1hhjxhhhNhNubh)}(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}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjDhMMubh__ref}(hjDhhhNhNubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjDhMMubh)}(hkmemleak_alloc_percpuh]j)}(hkmemleak_alloc_percpuh]hkmemleak_alloc_percpu}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1hhjDhhhjDhMMubj )}(h2(const void __percpu *ptr, size_t size, gfp_t gfp)h](j )}(hconst void __percpu *ptrh](j5)}(hjh]hconst}(hjDhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh__percpu}(hjDhhhNhNubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjF )}(hjI h]h*}(hj"EhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hptrh]hptr}(hj/EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjKEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHEubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjMEmodnameN classnameNjpjs)}jv]jy)}jljDsbc.kmemleak_alloc_percpuasbuh1hhjDEubj)}(h h]h }(hjkEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDEubj)}(hsizeh]hsize}(hjyEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjEmodnameN classnameNjpjs)}jv]jgEc.kmemleak_alloc_percpuasbuh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hgfph]hgfp}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubeh}(h]h ]h"]h$]h&]jjuh1j hjDhhhjDhMMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjDhhhjDhMMubah}(h]j}Dah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjDhMMhjDhhubj4)}(hhh]jM)}(h*register a newly allocated __percpu objecth]h*register a newly allocated __percpu object}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMMhjEhhubah}(h]h ]h"]h$]h&]uh1j3hjDhhhjDhMMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjFjHjFjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj Fh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Fubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMQhjFubj)}(hhh](j)}(hI``const void __percpu *ptr`` __percpu pointer to beginning of the object h](j)}(h``const void __percpu *ptr``h]jS)}(hj,Fh]hconst void __percpu *ptr}(hj.FhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*Fubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMNhj&Fubj)}(hhh]jM)}(h+__percpu pointer to beginning of the objecth]h+__percpu pointer to beginning of the object}(hjEFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAFhMNhjBFubah}(h]h ]h"]h$]h&]uh1jhj&Fubeh}(h]h ]h"]h$]h&]uh1jhjAFhMNhj#Fubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]jS)}(hjeFh]h size_t size}(hjgFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcFubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMOhj_Fubj)}(hhh]jM)}(hsize of the objecth]hsize of the object}(hj~FhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzFhMOhj{Fubah}(h]h ]h"]h$]h&]uh1jhj_Fubeh}(h]h ]h"]h$]h&]uh1jhjzFhMOhj#Fubj)}(hB``gfp_t gfp`` flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]jS)}(hjFh]h gfp_t gfp}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMPhjFubj)}(hhh]jM)}(h3flags used for kmemleak internal memory allocationsh]h3flags used for kmemleak internal memory allocations}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFhMPhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMPhj#Fubeh}(h]h ]h"]h$]h&]uh1jhjFubjM)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMRhjFubjM)}(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).}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMQhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_vmalloc (C function)c.kmemleak_vmallochNtauh1hhjxhhhNhNubh)}(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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM`ubj)}(h h]h }(hj-GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhj,GhM`ubh__ref}(hjGhhhNhNubj)}(h h]h }(hj?GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhj,GhM`ubh)}(hkmemleak_vmalloch]j)}(hkmemleak_vmalloch]hkmemleak_vmalloc}(hjQGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMGubah}(h]h ](jjeh"]h$]h&]jjuh1hhjGhhhj,GhM`ubj )}(h6(const struct vm_struct *area, size_t size, gfp_t gfp)h](j )}(hconst struct vm_struct *areah](j5)}(hjh]hconst}(hjmGhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjiGubj)}(h h]h }(hjzGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiGubj5)}(hj8h]hstruct}(hjGhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjiGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiGubh)}(hhh]j)}(h vm_structh]h vm_struct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjGmodnameN classnameNjpjs)}jv]jy)}jljSGsbc.kmemleak_vmallocasbuh1hhjiGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiGubjF )}(hjI h]h*}(hjGhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjiGubj)}(hareah]harea}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiGubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeGubj )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjGmodnameN classnameNjpjs)}jv]jGc.kmemleak_vmallocasbuh1hhjGubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hsizeh]hsize}(hj)HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeGubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjEHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBHubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjGHmodnameN classnameNjpjs)}jv]jGc.kmemleak_vmallocasbuh1hhj>Hubj)}(h h]h }(hjcHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Hubj)}(hgfph]hgfp}(hjqHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Hubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeGubeh}(h]h ]h"]h$]h&]jjuh1j hjGhhhj,GhM`ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjGhhhj,GhM`ubah}(h]jGah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj,GhM`hjGhhubj4)}(hhh]jM)}(h"register a newly vmalloc'ed objecth]h$register a newly vmalloc’ed object}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM`hjHhhubah}(h]h ]h"]h$]h&]uh1j3hjGhhhj,GhM`ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjHjHjHjIjJjKuh1hhhhjxhNhNubj)}(hX;**Parameters** ``const struct vm_struct *area`` pointer to vm_struct ``size_t size`` size of the object ``gfp_t gfp`` __vmalloc() flags used for kmemleak internal memory allocations **Description** This function is called from the vmalloc() kernel allocator when a new object (memory block) is allocated.h](jM)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMdhjHubj)}(hhh](j)}(h6``const struct vm_struct *area`` pointer to vm_struct h](j)}(h ``const struct vm_struct *area``h]jS)}(hjHh]hconst struct vm_struct *area}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjHubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMahjHubj)}(hhh]jM)}(hpointer to vm_structh]hpointer to vm_struct}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHhMahjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMahjHubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]jS)}(hjIh]h size_t size}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMbhjIubj)}(hhh]jM)}(hsize of the objecth]hsize of the object}(hj.IhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj*IhMbhj+Iubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhj*IhMbhjHubj)}(hN``gfp_t gfp`` __vmalloc() flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]jS)}(hjNIh]h gfp_t gfp}(hjPIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjLIubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMchjHIubj)}(hhh]jM)}(h?__vmalloc() flags used for kmemleak internal memory allocationsh]h?__vmalloc() flags used for kmemleak internal memory allocations}(hjgIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjcIhMchjdIubah}(h]h ]h"]h$]h&]uh1jhjHIubeh}(h]h ]h"]h$]h&]uh1jhjcIhMchjHubeh}(h]h ]h"]h$]h&]uh1jhjHubjM)}(h**Description**h]j)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMehjHubjM)}(hjThis function is called from the vmalloc() kernel allocator when a new object (memory block) is allocated.h]hjThis function is called from the vmalloc() kernel allocator when a new object (memory block) is allocated.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMdhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_free (C function)c.kmemleak_freehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h*void __ref kmemleak_free (const void *ptr)h]h)}(h)void __ref kmemleak_free(const void *ptr)h](j)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMyubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjIhMyubh__ref}(hjIhhhNhNubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjIhMyubh)}(h kmemleak_freeh]j)}(h kmemleak_freeh]h kmemleak_free}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1hhjIhhhjIhMyubj )}(h(const void *ptr)h]j )}(hconst void *ptrh](j5)}(hjh]hconst}(hjJhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjJubj)}(h h]h }(hj*JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hvoidh]hvoid}(hj8JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hjFJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjF )}(hjI h]h*}(hjTJhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjJubj)}(hptrh]hptr}(hjaJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjJubah}(h]h ]h"]h$]h&]jjuh1j hjIhhhjIhMyubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjIhhhjIhMyubah}(h]jIah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjIhMyhjIhhubj4)}(hhh]jM)}(h)unregister a previously registered objecth]h)unregister a previously registered object}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMyhjJhhubah}(h]h ]h"]h$]h&]uh1j3hjIhhhjIhMyubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjJjHjJjIjJjKuh1hhhhjxhNhNubj)}(h**Parameters** ``const void *ptr`` pointer to beginning of the object **Description** This function is called from the kernel allocators when an object (memory block) is freed (kmem_cache_free, kfree, vfree etc.).h](jM)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM}hjJubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hjJh]hconst void *ptr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMzhjJubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhMzhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMzhjJubah}(h]h ]h"]h$]h&]uh1jhjJubjM)}(h**Description**h]j)}(hjKh]h Description}(hj KhhhNhNubah}(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.chM|hjJubjM)}(hThis function is called from the kernel allocators when an object (memory block) is freed (kmem_cache_free, kfree, vfree etc.).h]hThis function is called from the kernel allocators when an object (memory block) is freed (kmem_cache_free, kfree, vfree etc.).}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM{hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemleak_free_part (C function)c.kmemleak_free_parthNtauh1hhjxhhhNhNubh)}(hhh](h)}(hnext reference to it is changed.h](jM)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjRubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]jS)}(hjRh]hconst void *ptr}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjRubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjRubj)}(hhh]jM)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(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&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjRubjM)}(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.}(hj)ShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#kmemleak_ignore_percpu (C function)c.kmemleak_ignore_percpuhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hflags. 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)}(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:118: ./mm/memremap.chMghj`ubj)}(hhh](j)}(h2``struct device *dev`` hosting device for **res** h](j)}(h``struct device *dev``h]jS)}(hj"ah]hstruct device *dev}(hj$ahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj aubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMdhjaubj)}(hhh]jM)}(hhosting device for **res**h](hhosting device for }(hj;ahhhNhNubj)}(h**res**h]hres}(hjCahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;aubeh}(h]h ]h"]h$]h&]uh1jLhj7ahMdhj8aubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj7ahMdhjaubj)}(h>``struct dev_pagemap *pgmap`` pointer to a struct dev_pagemap h](j)}(h``struct dev_pagemap *pgmap``h]jS)}(hjiah]hstruct dev_pagemap *pgmap}(hjkahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgaubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMehjcaubj)}(hhh]jM)}(hpointer to a struct dev_pagemaph]hpointer to a struct dev_pagemap}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~ahMehjaubah}(h]h ]h"]h$]h&]uh1jhjcaubeh}(h]h ]h"]h$]h&]uh1jhj~ahMehjaubeh}(h]h ]h"]h$]h&]uh1jhj`ubjM)}(h **Notes**h]j)}(hjah]hNotes}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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 }(hjahhhNhNubj)}(h **pgmap**h]hpgmap}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh must be initialized}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhhjaubj)}(hhh]jM)}(h0by the caller before passing it to this functionh]h0by the caller before passing it to this function}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahMhhjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhhjaubj)}(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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMkhjaubj)}(hhh]jM)}(h/PGMAP_ALTMAP_VALID must be set in pgmap->flags.h]h/PGMAP_ALTMAP_VALID must be set in pgmap->flags.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbhMkhjbubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjbhMkhjaubj)}(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}(hj3bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMohj/bubj)}(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.}(hjEbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMnhjBbubah}(h]h ]h"]h$]h&]uh1jhj/bubeh}(h]h ]h"]h$]h&]uh1jhjAbhMohjaubj)}(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}(hjdbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMrhj`bubj)}(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.}(hjvbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrbhMrhjsbubah}(h]h ]h"]h$]h&]uh1jhj`bubeh}(h]h ]h"]h$]h&]uh1jhjrbhMrhjaubeh}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_dev_pagemap (C function)c.get_dev_pagemaphNtauh1hhjxhhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjbhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhMubh)}(hhh]j)}(h dev_pagemaph]h dev_pagemap}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjbmodnameN classnameNjpjs)}jv]jy)}jlget_dev_pagemapsbc.get_dev_pagemapasbuh1hhjbhhhjbhMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhMubjF )}(hjI h]h*}(hjchhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjbhhhjbhMubh)}(hget_dev_pagemaph]j)}(hjbh]hget_dev_pagemap}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1hhjbhhhjbhMubj )}(h(unsigned long pfn)h]j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj0chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,cubj)}(h h]h }(hj>chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,cubj)}(hlongh]hlong}(hjLchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,cubj)}(h h]h }(hjZchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,cubj)}(hpfnh]hpfn}(hjhchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,cubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj(cubah}(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)}(h8take a new live reference on the dev_pagemap for **pfn**h](h1take a new live reference on the dev_pagemap for }(hjchhhNhNubj)}(h**pfn**h]hpfn}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjchhubah}(h]h ]h"]h$]h&]uh1j3hjbhhhjbhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjcjHjcjIjJjKuh1hhhhjxhNhNubj)}(hL**Parameters** ``unsigned long pfn`` page frame number to lookup page_maph](jM)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjcubj)}(hhh]j)}(h:``unsigned long pfn`` page frame number to lookup page_maph](j)}(h``unsigned long pfn``h]jS)}(hjch]hunsigned long pfn}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjcubj)}(hhh]jM)}(h$page frame number to lookup page_maph]h$page frame number to lookup page_map}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhuge_pmd_unshare (C function)c.huge_pmd_unsharehNtauh1hhjxhhhNhNubh)}(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}(hj;dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7dhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chM ubj)}(h h]h }(hjJdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7dhhhjIdhM ubh)}(hhuge_pmd_unshareh]j)}(hhuge_pmd_unshareh]hhuge_pmd_unshare}(hj\dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXdubah}(h]h ](jjeh"]h$]h&]jjuh1hhj7dhhhjIdhM ubj )}(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}(hjxdhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjtdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtdubh)}(hhh]j)}(h mmu_gatherh]h mmu_gather}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]jy)}jlj^dsbc.huge_pmd_unshareasbuh1hhjtdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtdubjF )}(hjI h]h*}(hjdhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjtdubj)}(htlbh]htlb}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpdubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjdhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj emodnameN classnameNjpjs)}jv]jdc.huge_pmd_unshareasbuh1hhjdubj)}(h h]h }(hj&ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjF )}(hjI h]h*}(hj4ehhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjdubj)}(hvmah]hvma}(hjAehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpdubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjZehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVeubj)}(h h]h }(hjhehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVeubj)}(hlongh]hlong}(hjvehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVeubj)}(haddrh]haddr}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVeubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpdubj )}(h pte_t *pteph](h)}(hhh]j)}(hpte_th]hpte_t}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjemodnameN classnameNjpjs)}jv]jdc.huge_pmd_unshareasbuh1hhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjF )}(hjI h]h*}(hjehhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjeubj)}(hpteph]hptep}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjpdubeh}(h]h ]h"]h$]h&]jjuh1j hj7dhhhjIdhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj3dhhhjIdhM ubah}(h]j.dah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjIdhM hj0dhhubj4)}(hhh]jM)}(h3Unmap a pmd table if it is shared by multiple usersh]h3Unmap a pmd table if it is shared by multiple users}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chM hjfhhubah}(h]h ]h"]h$]h&]uh1j3hj0dhhhjIdhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj)fjHj)fjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj3fh]h Parameters}(hj5fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1fubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj-fubj)}(hhh](j)}(h3``struct mmu_gather *tlb`` the current mmu_gather. h](j)}(h``struct mmu_gather *tlb``h]jS)}(hjRfh]hstruct mmu_gather *tlb}(hjTfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPfubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjLfubj)}(hhh]jM)}(hthe current mmu_gather.h]hthe current mmu_gather.}(hjkfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjgfhMhjhfubah}(h]h ]h"]h$]h&]uh1jhjLfubeh}(h]h ]h"]h$]h&]uh1jhjgfhMhjIfubj)}(h?``struct vm_area_struct *vma`` the vma covering the pmd table. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjfh]hstruct vm_area_struct *vma}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjfubj)}(hhh]jM)}(hthe vma covering the pmd table.h]hthe vma covering the pmd table.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjIfubj)}(h=``unsigned long addr`` the address we are trying to unshare. h](j)}(h``unsigned long addr``h]jS)}(hjfh]hunsigned long addr}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjfubj)}(hhh]jM)}(h%the address we are trying to unshare.h]h%the address we are trying to unshare.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjIfubj)}(h3``pte_t *ptep`` pointer into the (pmd) page table. h](j)}(h``pte_t *ptep``h]jS)}(hjfh]h pte_t *ptep}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjfubj)}(hhh]jM)}(h"pointer into the (pmd) page table.h]h"pointer into the (pmd) page table.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjghMhjIfubeh}(h]h ]h"]h$]h&]uh1jhj-fubjM)}(h**Description**h]j)}(hj8gh]h Description}(hj:ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6gubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj-fubjM)}(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.}(hjNghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj-fubjM)}(h**Note**h]j)}(hj_gh]hNote}(hjaghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]gubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj-fubjM)}(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.}(hjughhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj-fubjM)}(h **Return**h]j)}(hjgh]hReturn}(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.chMhj-fubjM)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj-fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_isolate_hugetlb (C function)c.folio_isolate_hugetlbhNtauh1hhjxhhhNhNubh)}(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}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjghMubh)}(hfolio_isolate_hugetlbh]j)}(hfolio_isolate_hugetlbh]hfolio_isolate_hugetlb}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1hhjghhhjghMubj )}(h-(struct folio *folio, struct list_head *list)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}(hj%hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj'hmodnameN classnameNjpjs)}jv]jy)}jljgsbc.folio_isolate_hugetlbasbuh1hhjhubj)}(h h]h }(hjEhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjF )}(hjI h]h*}(hjShhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhubj)}(hfolioh]hfolio}(hj`hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjgubj )}(hstruct list_head *listh](j5)}(hj8h]hstruct}(hjyhhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjuhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjhmodnameN classnameNjpjs)}jv]jAhc.folio_isolate_hugetlbasbuh1hhjuhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhubjF )}(hjI h]h*}(hjhhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjuhubj)}(hlisth]hlist}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjgubeh}(h]h ]h"]h$]h&]jjuh1j hjghhhjghMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjghhhjghMubah}(h]jgah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjghMhjghhubj4)}(hhh]jM)}(h)try to isolate an allocated hugetlb folioh]h)try to isolate an allocated hugetlb folio}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjhhhubah}(h]h ]h"]h$]h&]uh1j3hjghhhjghMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjijHjijIjJjKuh1hhhhjxhNhNubj)}(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)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjiubj)}(hhh](j)}(h-``struct folio *folio`` the folio to isolate h](j)}(h``struct folio *folio``h]jS)}(hj;ih]hstruct folio *folio}(hj=ihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj9iubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj5iubj)}(hhh]jM)}(hthe folio to isolateh]hthe folio to isolate}(hjTihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPihMhjQiubah}(h]h ]h"]h$]h&]uh1jhj5iubeh}(h]h ]h"]h$]h&]uh1jhjPihMhj2iubj)}(hC``struct list_head *list`` the list to add the folio to on success h](j)}(h``struct list_head *list``h]jS)}(hjtih]hstruct list_head *list}(hjvihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjriubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjniubj)}(hhh]jM)}(h'the list to add the folio to on successh]h'the list to add the folio to on success}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjniubeh}(h]h ]h"]h$]h&]uh1jhjihMhj2iubeh}(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&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjiubjM)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjiubjM)}(hpIsolation will fail if **folio** is not an allocated hugetlb folio, or if it is already isolated/non-migratable.h](hIsolation will fail if }(hjihhhNhNubj)}(h **folio**h]hfolio}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubhP is not an allocated hugetlb folio, or if it is already isolated/non-migratable.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjiubjM)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjiubjM)}(h **Return**h]j)}(hjjh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjiubjM)}(h*True if isolation worked, otherwise False.h]h*True if isolation worked, otherwise False.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"folio_putback_hugetlb (C function)c.folio_putback_hugetlbhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h0void folio_putback_hugetlb (struct folio *folio)h]h)}(h/void folio_putback_hugetlb(struct folio *folio)h](j)}(hvoidh]hvoid}(hjKjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMubj)}(h h]h }(hjZjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGjhhhjYjhMubh)}(hfolio_putback_hugetlbh]j)}(hfolio_putback_hugetlbh]hfolio_putback_hugetlb}(hjljhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjGjhhhjYjhMubj )}(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)}jljnjsbc.folio_putback_hugetlbasbuh1hhjjubj)}(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 hjGjhhhjYjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjCjhhhjYjhMubah}(h]j>jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjYjhMhj@jhhubj4)}(hhh]jM)}(hunisolate a hugetlb folioh]hunisolate a hugetlb folio}(hj khhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjkhhubah}(h]h ]h"]h$]h&]uh1j3hj@jhhhjYjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj#kjHj#kjIjJjKuh1hhhhjxhNhNubj)}(hXV**Parameters** ``struct folio *folio`` the isolated hugetlb folio **Description** Putback/un-isolate the hugetlb folio that was previous isolated using folio_isolate_hugetlb(): marking it non-isolated/migratable and putting it back onto the active list. Will drop the additional folio reference obtained through folio_isolate_hugetlb().h](jM)}(h**Parameters**h]j)}(hj-kh]h Parameters}(hj/khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+kubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj'kubj)}(hhh]j)}(h3``struct folio *folio`` the isolated hugetlb folio h](j)}(h``struct folio *folio``h]jS)}(hjLkh]hstruct folio *folio}(hjNkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJkubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjFkubj)}(hhh]jM)}(hthe isolated hugetlb folioh]hthe isolated hugetlb folio}(hjekhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjakhMhjbkubah}(h]h ]h"]h$]h&]uh1jhjFkubeh}(h]h ]h"]h$]h&]uh1jhjakhMhjCkubah}(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&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj'kubjM)}(hPutback/un-isolate the hugetlb folio that was previous isolated using folio_isolate_hugetlb(): marking it non-isolated/migratable and putting it back onto the active list.h]hPutback/un-isolate the hugetlb folio that was previous isolated using folio_isolate_hugetlb(): marking it non-isolated/migratable and putting it back onto the active list.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj'kubjM)}(hRWill drop the additional folio reference obtained through folio_isolate_hugetlb().h]hRWill drop the additional folio reference obtained through folio_isolate_hugetlb().}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj'kubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_mark_accessed (C function)c.folio_mark_accessedhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h.void folio_mark_accessed (struct folio *folio)h]h)}(h-void folio_mark_accessed(struct folio *folio)h](j)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhjkhMubh)}(hfolio_mark_accessedh]j)}(hfolio_mark_accessedh]hfolio_mark_accessed}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1hhjkhhhjkhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjlubj)}(h h]h }(hj%lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j)}(hfolioh]hfolio}(hj6lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3lubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj8lmodnameN classnameNjpjs)}jv]jy)}jljksbc.folio_mark_accessedasbuh1hhjlubj)}(h h]h }(hjVlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjF )}(hjI h]h*}(hjdlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjlubj)}(hfolioh]hfolio}(hjqlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjlubah}(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)}(h%Mark a folio as having seen activity.h]h%Mark a folio as having seen activity.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjlhhubah}(h]h ]h"]h$]h&]uh1j3hjkhhhjkhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjljHjljIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct folio *folio`` The folio to mark. **Description** This function will perform one of the following transitions: * inactive,unreferenced -> inactive,referenced * inactive,referenced -> active,unreferenced * active,unreferenced -> active,referenced When a newly allocated folio is not yet visible, so safe for non-atomic ops, __folio_set_referenced() may be substituted for folio_mark_accessed().h](jM)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjlubj)}(hhh]j)}(h+``struct folio *folio`` The folio to mark. h](j)}(h``struct folio *folio``h]jS)}(hjlh]hstruct folio *folio}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjlubj)}(hhh]jM)}(hThe folio to mark.h]hThe folio to mark.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubah}(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&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjlubjM)}(h inactive,referencedh]jM)}(hjAmh]h6inactive,unreferenced -> inactive,referenced}(hjCmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj?mubah}(h]h ]h"]h$]h&]uh1j+hj active,unreferencedh]jM)}(hjYmh]h6inactive,referenced -> active,unreferenced}(hj[mhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjWmubah}(h]h ]h"]h$]h&]uh1j+hj active,referenced h]jM)}(h4active,unreferenced -> active,referencedh]h4active,unreferenced -> active,referenced}(hjsmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjomubah}(h]h ]h"]h$]h&]uh1j+hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ohhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM ubj)}(h h]h }(hjMohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ohhhjLohM ubh)}(hfolio_add_lru_vmah]j)}(hfolio_add_lru_vmah]hfolio_add_lru_vma}(hj_ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[oubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:ohhhjLohM ubj )}(h1(struct folio *folio, struct vm_area_struct *vma)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj{ohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwoubh)}(hhh]j)}(hfolioh]hfolio}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjomodnameN classnameNjpjs)}jv]jy)}jljaosbc.folio_add_lru_vmaasbuh1hhjwoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwoubjF )}(hjI h]h*}(hjohhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwoubj)}(hfolioh]hfolio}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwoubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsoubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj pmodnameN classnameNjpjs)}jv]joc.folio_add_lru_vmaasbuh1hhjoubj)}(h h]h }(hj)phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjF )}(hjI h]h*}(hj7phhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjoubj)}(hvmah]hvma}(hjDphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsoubeh}(h]h ]h"]h$]h&]jjuh1j hj:ohhhjLohM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6ohhhjLohM ubah}(h]j1oah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjLohM hj3ohhubj4)}(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.}(hjnphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM hjkphhubah}(h]h ]h"]h$]h&]uh1j3hj3ohhhjLohM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjpjHjpjIjJjKuh1hhhhjxhNhNubj)}(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)}(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`` The folio to be added to the LRU. h](j)}(h``struct folio *folio``h]jS)}(hjph]hstruct folio *folio}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM hjpubj)}(hhh]jM)}(h!The folio to be added to the LRU.h]h!The folio to be added to the LRU.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphM hjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphM hjpubj)}(hA``struct vm_area_struct *vma`` VMA in which the folio is mapped. h](j)}(h``struct vm_area_struct *vma``h]jS)}(hjph]hstruct vm_area_struct *vma}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM hjpubj)}(hhh]jM)}(h!VMA in which the folio is mapped.h]h!VMA in which the folio is mapped.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphM hjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphM hjpubeh}(h]h ]h"]h$]h&]uh1jhjpubjM)}(h**Description**h]j)}(hj#qh]h Description}(hj%qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!qubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjpubjM)}(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, }(hj9qhhhNhNubj)}(h **folio**h]hfolio}(hjAqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9qubh\ is added to the unevictable list. Otherwise, it is treated the same way as folio_add_lru().}(hj9qhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"deactivate_file_folio (C function)c.deactivate_file_foliohNtauh1hhjxhhhNhNubh)}(hhh](h)}(h0void deactivate_file_folio (struct folio *folio)h]h)}(h/void deactivate_file_folio(struct folio *folio)h](j)}(hvoidh]hvoid}(hjzqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvqhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvqhhhjqhMubh)}(hdeactivate_file_folioh]j)}(hdeactivate_file_folioh]hdeactivate_file_folio}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1hhjvqhhhjqhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjqhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]j)}(hfolioh]hfolio}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjqmodnameN classnameNjpjs)}jv]jy)}jljqsbc.deactivate_file_folioasbuh1hhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjF )}(hjI h]h*}(hjrhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjqubj)}(hfolioh]hfolio}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjqubah}(h]h ]h"]h$]h&]jjuh1j hjvqhhhjqhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjrqhhhjqhMubah}(h]jmqah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjqhMhjoqhhubj4)}(hhh]jM)}(hDeactivate a file folio.h]hDeactivate a file folio.}(hj:rhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj7rhhubah}(h]h ]h"]h$]h&]uh1j3hjoqhhhjqhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjRrjHjRrjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj\rh]h Parameters}(hj^rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZrubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjVrubj)}(hhh]j)}(h-``struct folio *folio`` Folio to deactivate. h](j)}(h``struct folio *folio``h]jS)}(hj{rh]hstruct folio *folio}(hj}rhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyrubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjurubj)}(hhh]jM)}(hFolio to deactivate.h]hFolio to deactivate.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjurubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjrrubah}(h]h ]h"]h$]h&]uh1jhjVrubjM)}(h**Description**h]j)}(hjrh]h Description}(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.chMhjVrubjM)}(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 }(hjrhhhNhNubj)}(h **folio**h]hfolio}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubht is a good reclaim candidate, for example if its invalidation fails due to the folio being dirty or under writeback.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjVrubjM)}(h **Context**h]j)}(hjrh]hContext}(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.chMhjVrubjM)}(h&Caller holds a reference on the folio.h]h&Caller holds a reference on the folio.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjVrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h folio_mark_lazyfree (C function)c.folio_mark_lazyfreehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h.void folio_mark_lazyfree (struct folio *folio)h]h)}(h-void folio_mark_lazyfree(struct folio *folio)h](j)}(hvoidh]hvoid}(hj4shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0shhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjCshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0shhhjBshMubh)}(hfolio_mark_lazyfreeh]j)}(hfolio_mark_lazyfreeh]hfolio_mark_lazyfree}(hjUshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQsubah}(h]h ](jjeh"]h$]h&]jjuh1hhj0shhhjBshMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjqshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjmsubj)}(h h]h }(hj~shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmsubh)}(hhh]j)}(hfolioh]hfolio}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjsmodnameN classnameNjpjs)}jv]jy)}jljWssbc.folio_mark_lazyfreeasbuh1hhjmsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmsubjF )}(hjI h]h*}(hjshhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjmsubj)}(hfolioh]hfolio}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjisubah}(h]h ]h"]h$]h&]jjuh1j hj0shhhjBshMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj,shhhjBshMubah}(h]j'sah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjBshMhj)shhubj4)}(hhh]jM)}(hmake an anon folio lazyfreeh]hmake an anon folio lazyfree}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjshhubah}(h]h ]h"]h$]h&]uh1j3hj)shhhjBshMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj tjHj tjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjtubj)}(hhh]j)}(h,``struct folio *folio`` folio to deactivate h](j)}(h``struct folio *folio``h]jS)}(hj5th]hstruct folio *folio}(hj7thhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3tubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj/tubj)}(hhh]jM)}(hfolio to deactivateh]hfolio to deactivate}(hjNthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJthMhjKtubah}(h]h ]h"]h$]h&]uh1jhj/tubeh}(h]h ]h"]h$]h&]uh1jhjJthMhj,tubah}(h]h ]h"]h$]h&]uh1jhjtubjM)}(h**Description**h]j)}(hjpth]h Description}(hjrthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjntubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjtubjM)}(hufolio_mark_lazyfree() moves **folio** to the inactive file list. This is done to accelerate the reclaim of **folio**.h](hfolio_mark_lazyfree() moves }(hjthhhNhNubj)}(h **folio**h]hfolio}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubhF to the inactive file list. This is done to accelerate the reclaim of }(hjthhhNhNubj)}(h **folio**h]hfolio}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh.}(hjthhhNhNubeh}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolios_put_refs (C function)c.folios_put_refshNtauh1hhjxhhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthMubh)}(hfolios_put_refsh]j)}(hfolios_put_refsh]hfolios_put_refs}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1hhjthhhjthMubj )}(h0(struct folio_batch *folios, unsigned int *refs)h](j )}(hstruct folio_batch *foliosh](j5)}(hj8h]hstruct}(hjuhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjuubj)}(h h]h }(hj#uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hj4uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1uubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj6umodnameN classnameNjpjs)}jv]jy)}jljtsbc.folios_put_refsasbuh1hhjuubj)}(h h]h }(hjTuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjF )}(hjI h]h*}(hjbuhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjuubj)}(hfoliosh]hfolios}(hjouhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubj )}(hunsigned int *refsh](j)}(hunsignedh]hunsigned}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hinth]hint}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjF )}(hjI h]h*}(hjuhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjuubj)}(hrefsh]hrefs}(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)}(h0Reduce the reference count on a batch of folios.h]h0Reduce the reference count on a batch of folios.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjuhhubah}(h]h ]h"]h$]h&]uh1j3hjthhhjthMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjvjHjvjIjJjKuh1hhhhjxhNhNubj)}(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)}(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)}(h+``struct folio_batch *folios`` The folios. h](j)}(h``struct folio_batch *folios``h]jS)}(hj8vh]hstruct folio_batch *folios}(hj:vhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6vubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj2vubj)}(hhh]jM)}(h The folios.h]h The folios.}(hjQvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMvhMhjNvubah}(h]h ]h"]h$]h&]uh1jhj2vubeh}(h]h ]h"]h$]h&]uh1jhjMvhMhj/vubj)}(hG``unsigned int *refs`` The number of refs to subtract from each folio. h](j)}(h``unsigned int *refs``h]jS)}(hjqvh]hunsigned int *refs}(hjsvhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjovubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjkvubj)}(hhh]jM)}(h/The number of refs to subtract from each folio.h]h/The number of refs to subtract from each folio.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjkvubeh}(h]h ]h"]h$]h&]uh1jhjvhMhj/vubeh}(h]h ]h"]h$]h&]uh1jhjvubjM)}(h**Description**h]j)}(hjvh]h Description}(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.chMhjvubjM)}(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 }(hjvhhhNhNubj)}(h**refs**h]hrefs}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh3 is NULL, we subtract one from each folio refcount.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjvubjM)}(h **Context**h]j)}(hjvh]hContext}(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.chMhjvubjM)}(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.}(hjvhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelease_pages (C function)c.release_pageshNtauh1hhjxhhhNhNubh)}(hhh](h)}(h2void release_pages (release_pages_arg arg, int nr)h]h)}(h1void release_pages(release_pages_arg arg, int nr)h](j)}(hvoidh]hvoid}(hj*whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&whhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hj9whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&whhhj8whMubh)}(h release_pagesh]j)}(h release_pagesh]h release_pages}(hjKwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGwubah}(h]h ](jjeh"]h$]h&]jjuh1hhj&whhhj8whMubj )}(h(release_pages_arg arg, int nr)h](j )}(hrelease_pages_arg argh](h)}(hhh]j)}(hrelease_pages_argh]hrelease_pages_arg}(hjjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgwubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjlwmodnameN classnameNjpjs)}jv]jy)}jljMwsbc.release_pagesasbuh1hhjcwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcwubj)}(hargh]harg}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_wubj )}(hint nrh](j)}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hnrh]hnr}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_wubeh}(h]h ]h"]h$]h&]jjuh1j hj&whhhj8whMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj"whhhj8whMubah}(h]jwah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj8whMhjwhhubj4)}(hhh]jM)}(hbatched put_page()h]hbatched put_page()}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjwhhubah}(h]h ]h"]h$]h&]uh1j3hjwhhhj8whMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjxjHjxjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjxubj)}(hhh](j)}(h4``release_pages_arg arg`` array of pages to release h](j)}(h``release_pages_arg arg``h]jS)}(hj8xh]hrelease_pages_arg arg}(hj:xhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6xubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj2xubj)}(hhh]jM)}(harray of pages to releaseh]harray of pages to release}(hjQxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMxhMhjNxubah}(h]h ]h"]h$]h&]uh1jhj2xubeh}(h]h ]h"]h$]h&]uh1jhjMxhMhj/xubj)}(h``int nr`` number of pages h](j)}(h ``int nr``h]jS)}(hjqxh]hint nr}(hjsxhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoxubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjkxubj)}(hhh]jM)}(hnumber of pagesh]hnumber of pages}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjkxubeh}(h]h ]h"]h$]h&]uh1jhjxhMhj/xubeh}(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&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjxubjM)}(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 }(hjxhhhNhNubj)}(h**arg**h]harg}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh@. If it fell to zero, remove the page from the LRU and free it.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjxubjM)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,folio_batch_remove_exceptionals (C function)!c.folio_batch_remove_exceptionalshNtauh1hhjxhhhNhNubh)}(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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM1ubj)}(h h]h }(hj!yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhj yhM1ubh)}(hfolio_batch_remove_exceptionalsh]j)}(hfolio_batch_remove_exceptionalsh]hfolio_batch_remove_exceptionals}(hj3yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/yubah}(h]h ](jjeh"]h$]h&]jjuh1hhjyhhhj yhM1ubj )}(h(struct folio_batch *fbatch)h]j )}(hstruct folio_batch *fbatchh](j5)}(hj8h]hstruct}(hjOyhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjKyubj)}(h h]h }(hj\yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKyubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjmyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjoymodnameN classnameNjpjs)}jv]jy)}jlj5ysb!c.folio_batch_remove_exceptionalsasbuh1hhjKyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKyubjF )}(hjI h]h*}(hjyhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjKyubj)}(hfbatchh]hfbatch}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjGyubah}(h]h ]h"]h$]h&]jjuh1j hjyhhhj yhM1ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj yhhhj yhM1ubah}(h]jyah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj yhM1hjyhhubj4)}(hhh]jM)}(hPrune non-folios from a batch.h]hPrune non-folios from a batch.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM1hjyhhubah}(h]h ]h"]h$]h&]uh1j3hjyhhhj yhM1ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjyjHjyjIjJjKuh1hhhhjxhNhNubj)}(hX7**Parameters** ``struct folio_batch *fbatch`` The batch to prune **Description** find_get_entries() fills a batch with both folios and shadow/swap/DAX entries. This function prunes all the non-folio entries from **fbatch** without leaving holes, so that it can be passed on to folio-only batch operations.h](jM)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM5hjyubj)}(hhh]j)}(h2``struct folio_batch *fbatch`` The batch to prune h](j)}(h``struct folio_batch *fbatch``h]jS)}(hjzh]hstruct folio_batch *fbatch}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjzubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM2hj zubj)}(hhh]jM)}(hThe batch to pruneh]hThe batch to prune}(hj,zhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj(zhM2hj)zubah}(h]h ]h"]h$]h&]uh1jhj zubeh}(h]h ]h"]h$]h&]uh1jhj(zhM2hj zubah}(h]h ]h"]h$]h&]uh1jhjyubjM)}(h**Description**h]j)}(hjNzh]h Description}(hjPzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLzubah}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM4hjyubjM)}(hfind_get_entries() fills a batch with both folios and shadow/swap/DAX entries. This function prunes all the non-folio entries from **fbatch** without leaving holes, so that it can be passed on to folio-only batch operations.h](hfind_get_entries() fills a batch with both folios and shadow/swap/DAX entries. This function prunes all the non-folio entries from }(hjdzhhhNhNubj)}(h **fbatch**h]hfbatch}(hjlzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdzubhS without leaving holes, so that it can be passed on to folio-only batch operations.}(hjdzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM3hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*get_mem_cgroup_css_from_folio (C function)c.get_mem_cgroup_css_from_foliohNtauh1hhjxhhhNhNubh)}(hhh](h)}(hPstruct cgroup_subsys_state * get_mem_cgroup_css_from_folio (struct folio *folio)h]h)}(hNstruct cgroup_subsys_state *get_mem_cgroup_css_from_folio(struct folio *folio)h](j5)}(hj8h]hstruct}(hjzhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjzhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM>ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhM>ubh)}(hhh]j)}(hcgroup_subsys_stateh]hcgroup_subsys_state}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjzmodnameN classnameNjpjs)}jv]jy)}jlget_mem_cgroup_css_from_foliosbc.get_mem_cgroup_css_from_folioasbuh1hhjzhhhjzhM>ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhM>ubjF )}(hjI h]h*}(hjzhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjzhhhjzhM>ubh)}(hget_mem_cgroup_css_from_folioh]j)}(hjzh]hget_mem_cgroup_css_from_folio}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjzhhhjzhM>ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj{ubj)}(h h]h }(hj,{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]j)}(hfolioh]hfolio}(hj={hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:{ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj?{modnameN classnameNjpjs)}jv]jzc.get_mem_cgroup_css_from_folioasbuh1hhj{ubj)}(h h]h }(hj[{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjF )}(hjI h]h*}(hji{hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj{ubj)}(hfolioh]hfolio}(hjv{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj{ubah}(h]h ]h"]h$]h&]jjuh1j hjzhhhjzhM>ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjzhhhjzhM>ubah}(h]jzah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjzhM>hjzhhubj4)}(hhh]jM)}(h2acquire a css of the memcg associated with a folioh]h2acquire a css of the memcg associated with a folio}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM>hj{hhubah}(h]h ]h"]h$]h&]uh1j3hjzhhhjzhM>ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj{jHj{jIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMBhj{ubj)}(hhh]j)}(h*``struct folio *folio`` folio of interest 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM?hj{ubj)}(hhh]jM)}(hfolio of interesth]hfolio 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{ubah}(h]h ]h"]h$]h&]uh1jhj{ubjM)}(h**Description**h]j)}(hj|h]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMAhj{ubjM)}(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 }(hj2|hhhNhNubj)}(h **folio**h]hfolio}(hj:|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2|ubh8 is returned. The returned css remains associated with }(hj2|hhhNhNubj)}(h **folio**h]hfolio}(hjL|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2|ubh until it is released.}(hj2|hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM@hj{ubjM)}(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.}(hje|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMDhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpage_cgroup_ino (C function)c.page_cgroup_inohNtauh1hhjxhhhNhNubh)}(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 }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj|hMUubh)}(hpage_cgroup_inoh]j)}(hj|h]hpage_cgroup_ino}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj|hhhj|hMUubj )}(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]j|c.page_cgroup_inoasbuh1hhj|ubj)}(h h]h }(hj"}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjF )}(hjI h]h*}(hj0}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|hMUubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj|hhhj|hMUubah}(h]j|ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj|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}(hjg}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMUhjd}hhubah}(h]h ]h"]h$]h&]uh1j3hj|hhhj|hMUubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj}jHj}jIjJjKuh1hhhhjxhNhNubj)}(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.chMVhj}ubj)}(hhh]jM)}(hthe pageh]hthe page}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}hMVhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMVhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubjM)}(h**Description**h]j)}(hj}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api: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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmod_memcg_state (C function)c.mod_memcg_statehNtauh1hhjxhhhNhNubh)}(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}(hjm~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji~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&]uh1jhji~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&]jjuh1hhji~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 }(hj~hhhNhNubah}(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)}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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj~ubj )}(henum memcg_stat_item idxh](j5)}(hj+h]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hmemcg_stat_itemh]hmemcg_stat_item}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj<modnameN classnameNjpjs)}jv]j~c.mod_memcg_stateasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidxh]hidx}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj~ubj )}(hint valh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hvalh]hval}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj~ubeh}(h]h ]h"]h$]h&]jjuh1j hji~hhhj{~hMbubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hje~hhhj{~hMbubah}(h]j`~ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj{~hMbhjb~hhubj4)}(hhh]jM)}(hupdate cgroup memory statisticsh]hupdate cgroup memory statistics}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMbhjhhubah}(h]h ]h"]h$]h&]uh1j3hjb~hhhj{~hMbubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMfhjubj)}(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.chMchjubj)}(hhh]jM)}(hthe memory cgrouph]hthe memory cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjubj)}(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}(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.chMdhj9ubj)}(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}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjThMdhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMdhjubj)}(h8``int val`` delta to add to the counter, can be negativeh](j)}(h ``int val``h]jS)}(hjxh]hint val}(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.chMfhjrubj)}(hhh]jM)}(h,delta to add to the counter, can be negativeh]h,delta to add to the counter, can be negative}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMehjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmod_lruvec_state (C function)c.mod_lruvec_statehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hOvoid mod_lruvec_state (struct lruvec *lruvec, enum node_stat_item idx, int val)h]h)}(hNvoid mod_lruvec_state(struct lruvec *lruvec, enum node_stat_item idx, int val)h](j)}(hvoidh]hvoid}(hjҀhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj΀hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj΀hhhjhMubh)}(hmod_lruvec_stateh]j)}(hmod_lruvec_stateh]hmod_lruvec_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj΀hhhjhMubj )}(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&]uh1j4hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(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.mod_lruvec_stateasbuh1hhj 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)}(hlruvech]hlruvec}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum node_stat_item idxh](j5)}(hj+h]henum}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubh)}(hhh]j)}(hnode_stat_itemh]hnode_stat_item}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jIc.mod_lruvec_stateasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hidxh]hidx}(hjˁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hint valh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvalh]hval}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj΀hhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjʀhhhjhMubah}(h]jŀah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjǀhhubj4)}(hhh]jM)}(hupdate lruvec memory statisticsh]hupdate lruvec memory statistics}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj'hhubah}(h]h ]h"]h$]h&]uh1j3hjǀhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjBjHjBjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjLh]h Parameters}(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.chMhjFubj)}(hhh](j)}(h%``struct lruvec *lruvec`` the lruvec h](j)}(h``struct lruvec *lruvec``h]jS)}(hjkh]hstruct lruvec *lruvec}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjeubj)}(hhh]jM)}(h the lruvech]h the lruvec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(h*``enum node_stat_item idx`` the stat item h](j)}(h``enum node_stat_item idx``h]jS)}(hjh]henum node_stat_item idx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(h the stat itemh]h the stat item}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(h9``int val`` delta to add to the counter, can be negative h](j)}(h ``int val``h]jS)}(hj݂h]hint val}(hj߂hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjۂubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjׂubj)}(hhh]jM)}(h,delta to add to the counter, can be negativeh]h,delta to add to the counter, can be negative}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjׂubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubeh}(h]h ]h"]h$]h&]uh1jhjFubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjFubjM)}(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.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcount_memcg_events (C function)c.count_memcg_eventshNtauh1hhjxhhhNhNubh)}(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}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhMubh)}(hcount_memcg_eventsh]j)}(hcount_memcg_eventsh]hcount_memcg_events}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jjuh1hhjYhhhjkhMubj )}(hG(struct mem_cgroup *memcg, enum vm_event_item idx, unsigned long count)h](j )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.count_memcg_eventsasbuh1hhjubj)}(h h]h }(hj؃hhhNhNubah}(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 hjubj )}(henum vm_event_item idxh](j5)}(hj+h]henum}(hj hhhNhNubah}(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}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,modnameN classnameNjpjs)}jv]jԃc.count_memcg_eventsasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidxh]hidx}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long counth](j)}(hunsignedh]hunsigned}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(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)}(haccount VM events in a cgrouph]haccount VM events in a cgroup}(hjфhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj΄hhubah}(h]h ]h"]h$]h&]uh1j3hjRhhhjkhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.chMhj ubj)}(hhh]jM)}(hthe memory cgrouph]hthe memory cgroup}(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*``enum vm_event_item idx`` the event item h](j)}(h``enum vm_event_item idx``h]jS)}(hjKh]henum vm_event_item idx}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjEubj)}(hhh]jM)}(hthe event itemh]hthe event item}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj ubj)}(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.chMhj~ubj)}(hhh]jM)}(h"the number of events that occurredh]h"the number of events that occurred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#get_mem_cgroup_from_mm (C function)c.get_mem_cgroup_from_mmhNtauh1hhjxhhhNhNubh)}(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}(hjޅhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjڅhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڅhhhjhMNubh)}(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_mmasbuh1hhjڅhhhjhMNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڅhhhjhMNubjF )}(hjI h]h*}(hj,hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjڅhhhjhMNubh)}(hget_mem_cgroup_from_mmh]j)}(hjh]hget_mem_cgroup_from_mm}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjڅhhhjhMNubj )}(h(struct mm_struct *mm)h]j )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hjXhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjxmodnameN classnameNjpjs)}jv]jc.get_mem_cgroup_from_mmasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjTubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPubah}(h]h ]h"]h$]h&]jjuh1j hjڅhhhjhMNubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjօhhhjhMNubah}(h]jхah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMNhjӅhhubj4)}(hhh]jM)}(h.Obtain a reference on given mm_struct's memcg.h]h0Obtain a reference on given mm_struct’s memcg.}(hjنhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMNhjֆhhubah}(h]h ]h"]h$]h&]uh1j3hjӅhhhjhMNubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hMOhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMOhjubah}(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.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.}(hjkhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(get_mem_cgroup_from_current (C function)c.get_mem_cgroup_from_currenthNtauh1hhjxhhhNhNubh)}(hhh](h)}(h6struct mem_cgroup * get_mem_cgroup_from_current (void)h]h)}(h4struct mem_cgroup *get_mem_cgroup_from_current(void)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlget_mem_cgroup_from_currentsbc.get_mem_cgroup_from_currentasbuh1hhjhhhjhMubj)}(h h]h }(hjڇhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hget_mem_cgroup_from_currenth]j)}(hjׇh]hget_mem_cgroup_from_current}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(void)h]j )}(hvoidh]j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1j hj ubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h+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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjVjHjVjIjJjKuh1hhhhjxhNhNubj)}(h'**Parameters** ``void`` no argumentsh](jM)}(h**Parameters**h]j)}(hj`h]h Parameters}(hjbhhhNhNubah}(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.chMhjZubj)}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]jS)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjyubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chKhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&get_mem_cgroup_from_folio (C function)c.get_mem_cgroup_from_foliohNtauh1hhjxhhhNhNubh)}(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}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՈhhhjhMubh)}(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_folioasbuh1hhjՈhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՈhhhjhMubjF )}(hjI h]h*}(hj'hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjՈhhhjhMubh)}(hget_mem_cgroup_from_folioh]j)}(hjh]hget_mem_cgroup_from_folio}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjՈhhhjhMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjShhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(hfolioh]hfolio}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjsmodnameN classnameNjpjs)}jv]jc.get_mem_cgroup_from_folioasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjOubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubah}(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,Obtain a reference on a given folio's memcg.h]h.Obtain a reference on a given folio’s memcg.}(hjԉhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjщhhubah}(h]h ]h"]h$]h&]uh1j3hjΈhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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&]uh1jLhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]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.}(hjfhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmem_cgroup_iter (C function)c.mem_cgroup_iterhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hstruct mem_cgroup * mem_cgroup_iter (struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)h]h)}(hstruct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)h](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlmem_cgroup_itersbc.mem_cgroup_iterasbuh1hhjhhhjhMubj)}(h h]h }(hjՊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hmem_cgroup_iterh]j)}(hjҊh]hmem_cgroup_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h](struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)h](j )}(hstruct mem_cgroup *rooth](j5)}(hj8h]hstruct}(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]jЊc.mem_cgroup_iterasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjYhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hrooth]hroot}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mem_cgroup *prevh](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]jЊc.mem_cgroup_iterasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjF )}(hjI h]h*}(hjɋhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj{ubj)}(hprevh]hprev}(hj֋hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1j 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_cookieh]hmem_cgroup_reclaim_cookie}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jЊc.mem_cgroup_iterasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj9hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hreclaimh]hreclaim}(hjFhhhNhNubah}(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$iterate over memory cgroup hierarchyh]h$iterate over memory cgroup hierarchy}(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&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct mem_cgroup *root`` hierarchy root ``struct mem_cgroup *prev`` previously returned memcg, NULL on first invocation ``struct mem_cgroup_reclaim_cookie *reclaim`` cookie for shared reclaim walks, NULL for full walks **Description** Returns references to children of the hierarchy below **root**, or **root** itself, or ``NULL`` after a full round-trip. Caller must pass the return value in **prev** on subsequent invocations for reference counting, or use mem_cgroup_iter_break() to cancel a hierarchy walk before the round-trip is complete. Reclaimers can specify a node in **reclaim** to divide up the memcgs in the hierarchy among all concurrent reclaimers operating on the same node.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh](j)}(h+``struct mem_cgroup *root`` hierarchy root h](j)}(h``struct mem_cgroup *root``h]jS)}(hjh]hstruct mem_cgroup *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hhierarchy rooth]hhierarchy root}(hjʌhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjƌhMhjnjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƌhMhjubj)}(hP``struct mem_cgroup *prev`` previously returned memcg, NULL on first invocation h](j)}(h``struct mem_cgroup *prev``h]jS)}(hjh]hstruct mem_cgroup *prev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hc``struct mem_cgroup_reclaim_cookie *reclaim`` cookie for shared reclaim walks, NULL for full walks h](j)}(h-``struct mem_cgroup_reclaim_cookie *reclaim``h]jS)}(hj#h]h)struct mem_cgroup_reclaim_cookie *reclaim}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!ubah}(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&]uh1jLhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubeh}(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)}(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 }(hjthhhNhNubj)}(h**root**h]hroot}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh, or }(hjthhhNhNubj)}(h**root**h]hroot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh itself, or }(hjthhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtubh after a full round-trip.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(hCaller must pass the return value in **prev** on subsequent invocations for reference counting, or use mem_cgroup_iter_break() to cancel a hierarchy walk before the round-trip is complete.h](h%Caller must pass the return value in }(hjhhhNhNubj)}(h**prev**h]hprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh on subsequent invocations for reference counting, or use mem_cgroup_iter_break() to cancel a hierarchy walk before the round-trip is complete.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(hReclaimers can specify a node in **reclaim** to divide up the memcgs in the hierarchy among all concurrent reclaimers operating on the same node.h](h!Reclaimers can specify a node in }(hjڍhhhNhNubj)}(h **reclaim**h]hreclaim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڍubhe to divide up the memcgs in the hierarchy among all concurrent reclaimers operating on the same node.}(hjڍhhhNhNubeh}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"mem_cgroup_iter_break (C function)c.mem_cgroup_iter_breakhNtauh1hhjxhhhNhNubh)}(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 }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hMubh)}(hmem_cgroup_iter_breakh]j)}(hmem_cgroup_iter_breakh]hmem_cgroup_iter_break}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj)hMubj )}(h2(struct mem_cgroup *root, struct mem_cgroup *prev)h](j )}(hstruct mem_cgroup *rooth](j5)}(hj8h]hstruct}(hjXhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjxmodnameN classnameNjpjs)}jv]jy)}jlj>sbc.mem_cgroup_iter_breakasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjTubj)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPubj )}(hstruct mem_cgroup *prevh](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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mem_cgroup_iter_breakasbuh1hhjƎ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)}(hprevh]hprev}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƎubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj)hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj)hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj)hMhjhhubj4)}(hhh]jM)}(h"abort a hierarchy walk prematurelyh]h"abort a hierarchy walk prematurely}(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&]uh1j3hjhhhj)hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjcjHjcjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjgubj)}(hhh](j)}(h+``struct mem_cgroup *root`` hierarchy root h](j)}(h``struct mem_cgroup *root``h]jS)}(hjh]hstruct mem_cgroup *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hhierarchy rooth]hhierarchy root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hZ``struct mem_cgroup *prev`` last visited hierarchy member as returned by mem_cgroup_iter()h](j)}(h``struct mem_cgroup *prev``h]jS)}(hjŏh]hstruct mem_cgroup *prev}(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)}(h>last visited hierarchy member as returned by mem_cgroup_iter()h]h>last visited hierarchy member as returned by mem_cgroup_iter()}(hjޏhhhNhNubah}(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&]uh1jhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"mem_cgroup_scan_tasks (C function)c.mem_cgroup_scan_taskshNtauh1hhjxhhhNhNubh)}(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&]uh1jhjhhhj-hMFubh)}(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&]jjuh1hhjhhhj-hMFubj )}(hL(struct mem_cgroup *memcg, int (*fn)(struct task_struct*, void*), void *arg)h](j )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hj\hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj|modnameN classnameNjpjs)}jv]jy)}jljBsbc.mem_cgroup_scan_tasksasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjXubj)}(hmemcgh]hmemcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubj )}(h%int (*fn)(struct task_struct*, void*)h](j)}(hinth]hint}(hjΐhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʐubj)}(h h]h }(hjܐhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʐubjF )}(hj!h]h(}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjʐubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjʐubj)}(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}(hj,hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjʐubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʐubh)}(hhh]j)}(h task_structh]h task_struct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjLmodnameN classnameNjpjs)}jv]jc.mem_cgroup_scan_tasksasbuh1hhjʐubjF )}(hjI h]h*}(hjhhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjʐubjF )}(h,h]h,}(hjuhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjʐubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʐubj)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʐubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjʐubjF )}(hj!h]h)}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjʐubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubj )}(h void *argh](j)}(hvoidh]hvoid}(hjđhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjґhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hargh]harg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjTubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj-hMFubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj-hMFubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj-hMFhjhhubj4)}(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&]uh1j3hjhhhj-hMFubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj/jHj/jIjJjKuh1hhhhjxhNhNubj)}(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)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMJhj3ubj)}(hhh](j)}(h,``struct mem_cgroup *memcg`` hierarchy root h](j)}(h``struct mem_cgroup *memcg``h]jS)}(hjXh]hstruct mem_cgroup *memcg}(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.chMGhjRubj)}(hhh]jM)}(hhierarchy rooth]hhierarchy root}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmhMGhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMGhjOubj)}(hK``int (*fn)(struct task_struct *, void *)`` function to call for each task h](j)}(h+``int (*fn)(struct task_struct *, void *)``h]jS)}(hjh]h'int (*fn)(struct task_struct *, void *)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMHhjubj)}(hhh]jM)}(hfunction to call for each taskh]hfunction to call for each task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjOubj)}(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.chMIhjĒubj)}(hhh]jM)}(hargument passed to **fn**h](hargument passed to }(hjhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jLhjߒhMIhjubah}(h]h ]h"]h$]h&]uh1jhjĒubeh}(h]h ]h"]h$]h&]uh1jhjߒhMIhjOubeh}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMKhj3ubjM)}(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 }(hj)hhhNhNubj)}(h **memcg**h]hmemcg}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh( or to any of its descendants and calls }(hj)hhhNhNubj)}(h**fn**h]hfn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh for each task. If }(hj)hhhNhNubj)}(h**fn**h]hfn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubhz returns a non-zero value, the function breaks the iteration loop. Otherwise, it will iterate over all tasks and return 0.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMJhj3ubjM)}(hvoid __memcg_kmem_uncharge_page (struct page *page, int order)h]h)}(h=void __memcg_kmem_uncharge_page(struct page *page, int order)h](j)}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM7 ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhj4hM7 ubh)}(h__memcg_kmem_uncharge_pageh]j)}(h__memcg_kmem_uncharge_pageh]h__memcg_kmem_uncharge_page}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1hhj"hhhj4hM7 ubj )}(h(struct page *page, int order)h](j )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjchhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj_ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljIsbc.__memcg_kmem_uncharge_pageasbuh1hhj_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 )}(h int orderh](j)}(hinth]hint}(hjթhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѩubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѩubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѩubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj[ubeh}(h]h ]h"]h$]h&]jjuh1j hj"hhhj4hM7 ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj4hM7 ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj4hM7 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.chM7 hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj4hM7 ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj3jHj3jIjJjKuh1hhhhjxhNhNubj)}(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.chM; hj7ubj)}(hhh](j)}(h'``struct page *page`` page to uncharge h](j)}(h``struct page *page``h]jS)}(hj\h]hstruct page *page}(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.chM8 hjVubj)}(hhh]jM)}(hpage to unchargeh]hpage to uncharge}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjqhM8 hjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhM8 hjSubj)}(h``int order`` allocation orderh](j)}(h ``int order``h]jS)}(hjh]h int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM: hjubj)}(hhh]jM)}(hallocation orderh]hallocation order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM9 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM: hjSubeh}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h mem_cgroup_wb_stats (C function)c.mem_cgroup_wb_statshNtauh1hhjxhhhNhNubh)}(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.chM4ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM4ubh)}(hmem_cgroup_wb_statsh]j)}(hmem_cgroup_wb_statsh]hmem_cgroup_wb_stats}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM4ubj )}(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}(hj,hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubh)}(hhh]j)}(h bdi_writebackh]h bdi_writeback}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjLmodnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_wb_statsasbuh1hhj(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)}(hwbh]hwb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$ubj )}(hunsigned long *pfilepagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjȫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj֫hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h pfilepagesh]h pfilepages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$ubj )}(hunsigned long *pheadroomh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj4hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h pheadroomh]h pheadroom}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$ubj )}(hunsigned long *pdirtyh](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&]uh1jhjVubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjVubj)}(hpdirtyh]hpdirty}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$ubj )}(hunsigned long *pwritebackh](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&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h pwritebackh]h pwriteback}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM4ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM4ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM4hjhhubj4)}(hhh]jM)}(h/retrieve writeback related stats from its memcgh]h/retrieve writeback related stats from its memcg}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM4hj$hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM4ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj?jHj?jIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chM8hjCubj)}(hhh](j)}(h7``struct bdi_writeback *wb`` bdi_writeback in question h](j)}(h``struct bdi_writeback *wb``h]jS)}(hjhh]hstruct bdi_writeback *wb}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM5hjbubj)}(hhh]jM)}(hbdi_writeback in questionh]hbdi_writeback in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}hM5hj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hM5hj_ubj)}(hE``unsigned long *pfilepages`` out parameter for number of file pages h](j)}(h``unsigned long *pfilepages``h]jS)}(hjh]hunsigned long *pfilepages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM6hjubj)}(hhh]jM)}(h&out parameter for number of file pagesh]h&out parameter for number of file pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hj_ubj)}(h^``unsigned long *pheadroom`` out parameter for number of allocatable pages according to memcg h](j)}(h``unsigned long *pheadroom``h]jS)}(hjڭh]hunsigned long *pheadroom}(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.chM7hjԭubj)}(hhh]jM)}(h@out parameter for number of allocatable pages according to memcgh]h@out parameter for number of allocatable pages according to memcg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjԭubeh}(h]h ]h"]h$]h&]uh1jhjhM7hj_ubj)}(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.chM8hj ubj)}(hhh]jM)}(h'out parameter for number of dirty pagesh]h'out parameter for number of dirty pages}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj(hM8hj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hM8hj_ubj)}(hP``unsigned long *pwriteback`` out parameter for number of pages under writeback h](j)}(h``unsigned long *pwriteback``h]jS)}(hjLh]hunsigned long *pwriteback}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM9hjFubj)}(hhh]jM)}(h1out parameter for number of pages under writebackh]h1out parameter for number of pages under writeback}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahM9hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM9hj_ubeh}(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)}(hDetermine the numbers of file, headroom, dirty, and writeback pages in **wb**'s memcg. File, dirty and writeback are self-explanatory. Headroom is a bit more involved.h](hGDetermine the numbers of file, headroom, dirty, and writeback pages in }(hjhhhNhNubj)}(h**wb**h]hwb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh^’s memcg. File, dirty and writeback are self-explanatory. Headroom is a bit more involved.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM:hjCubjM)}(hX!A memcg's headroom is "min(max, high) - used". In the hierarchy, the headroom is calculated as the lowest headroom of itself and the ancestors. Note that this doesn't consider the actual amount of available memory in the system. The caller should further cap ***pheadroom** accordingly.h](hXA memcg’s headroom is “min(max, high) - used”. In the hierarchy, the headroom is calculated as the lowest headroom of itself and the ancestors. Note that this doesn’t consider the actual amount of available memory in the system. The caller should further cap }(hjhhhNhNubj)}(h***pheadroom**h]h *pheadroom}(hjƮhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh accordingly.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM>hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'mem_cgroup_from_private_id (C function)c.mem_cgroup_from_private_idhNtauh1hhjxhhhNhNubh)}(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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM)ubh)}(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]jy)}jlmem_cgroup_from_private_idsbc.mem_cgroup_from_private_idasbuh1hhjhhhj hM)ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM)ubjF )}(hjI h]h*}(hjMhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhj hM)ubh)}(hmem_cgroup_from_private_idh]j)}(hj<h]hmem_cgroup_from_private_id}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj hM)ubj )}(h(unsigned short id)h]j )}(hunsigned short idh](j)}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hshorth]hshort}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjqubah}(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)}(hlook up a memcg from a memcg idh]hlook up a memcg from a memcg id}(hjۯhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM)hjدhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj hM)ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1hM*hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM*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&]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().}(hjmhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!mem_cgroup_css_reset (C function)c.mem_cgroup_css_resethNtauh1hhjxhhhNhNubh)}(hhh](h)}(h;void mem_cgroup_css_reset (struct cgroup_subsys_state *css)h]h)}(h:void mem_cgroup_css_reset(struct cgroup_subsys_state *css)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmem_cgroup_css_reseth]j)}(hmem_cgroup_css_reseth]hmem_cgroup_css_reset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h!(struct cgroup_subsys_state *css)h]j )}(hstruct cgroup_subsys_state *cssh](j5)}(hj8h]hstruct}(hjٰhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjհubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjհubh)}(hhh]j)}(hcgroup_subsys_stateh]hcgroup_subsys_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_css_resetasbuh1hhjհ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)}(hcssh]hcss}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjհubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjѰubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h reset the states of a mem_cgrouph]h reset the states of a mem_cgroup}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjYhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjtjHjtjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct cgroup_subsys_state *css`` the target css **Description** Reset the states of the mem_cgroup associated with **css**. This is invoked when the userland requests disabling on the default hierarchy but the memcg is pinned through dependency. The memcg should stop applying policies and should revert to the vanilla state as it may be made visible again. The current implementation only resets the essential configurations. This needs to be expanded to cover all the visible parts.h](jM)}(h**Parameters**h]j)}(hj~h]h Parameters}(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.chMhjxubj)}(hhh]j)}(h3``struct cgroup_subsys_state *css`` the target css h](j)}(h#``struct cgroup_subsys_state *css``h]jS)}(hjh]hstruct cgroup_subsys_state *css}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hthe target cssh]hthe target css}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubjM)}(h**Description**h]j)}(hjرh]h Description}(hjڱhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjֱubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjxubjM)}(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.chMhjxubjM)}(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.chMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,mem_cgroup_calculate_protection (C function)!c.mem_cgroup_calculate_protectionhNtauh1hhjxhhhNhNubh)}(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.chMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjLhMubh)}(hmem_cgroup_calculate_protectionh]j)}(hmem_cgroup_calculate_protectionh]hmem_cgroup_calculate_protection}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhjLhMubj )}(h3(struct mem_cgroup *root, struct mem_cgroup *memcg)h](j )}(hstruct mem_cgroup *rooth](j5)}(hj8h]hstruct}(hj{hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(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)}jljasb!c.mem_cgroup_calculate_protectionasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjF )}(hjI h]h*}(hjDzhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjwubj)}(hrooth]hroot}(hjԲhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubj )}(hstruct mem_cgroup *memcgh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mem_cgrouph]h mem_cgroup}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]j!c.mem_cgroup_calculate_protectionasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj7hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmemcgh]hmemcg}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjsubeh}(h]h ]h"]h$]h&]jjuh1j hj:hhhjLhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6hhhjLhMubah}(h]j1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjLhMhj3hhubj4)}(hhh]jM)}(h2check if memory consumption is in the normal rangeh]h2check if memory consumption is in the normal range}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjkhhubah}(h]h ]h"]h$]h&]uh1j3hj3hhhjLhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX/**Parameters** ``struct mem_cgroup *root`` the top ancestor of the sub-tree being checked ``struct mem_cgroup *memcg`` the memory cgroup to check **Description** WARNING: This function is not stateless! It can only be used as part of a top-down tree iteration, not for isolated queries.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh](j)}(hK``struct mem_cgroup *root`` the top ancestor of the sub-tree being checked h](j)}(h``struct mem_cgroup *root``h]jS)}(hjh]hstruct mem_cgroup *root}(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 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&]uh1jLhjijhMhjųubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjijhMhjubj)}(h8``struct mem_cgroup *memcg`` the memory cgroup to check 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 cgroup to checkh]hthe memory cgroup to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hj#h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]j)}(h|WARNING: This function is not stateless! It can only be used as part of a top-down tree iteration, not for isolated queries.h](j)}(hDWARNING: This function is not stateless! It can only be used as parth]hDWARNING: This function is not stateless! It can only be used as part}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj<ubj)}(hhh]jM)}(h7of a top-down tree iteration, not for isolated queries.h]h7of a top-down tree iteration, not for isolated queries.}(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&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&mem_cgroup_charge_hugetlb (C function)c.mem_cgroup_charge_hugetlbhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h>int mem_cgroup_charge_hugetlb (struct folio *folio, gfp_t gfp)h]h)}(h=int mem_cgroup_charge_hugetlb(struct folio *folio, gfp_t gfp)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmem_cgroup_charge_hugetlbh]j)}(hmem_cgroup_charge_hugetlbh]hmem_cgroup_charge_hugetlb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h (struct folio *folio, gfp_t gfp)h](j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjдhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj̴ubj)}(h h]h }(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.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}(hj)hhhNhNubah}(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}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjGmodnameN classnameNjpjs)}jv]j c.mem_cgroup_charge_hugetlbasbuh1hhj>ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hgfph]hgfp}(hjqhhhNhNubah}(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$charge the memcg for a hugetlb folioh]h$charge the memcg for a hugetlb folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct folio *folio`` folio being charged ``gfp_t gfp`` reclaim mode **Description** This function is called when allocating a huge page folio, after the page has already been obtained and charged to the appropriate hugetlb cgroup controller (if it is enabled). Returns ENOMEM if the memcg is already full. Returns 0 if either the charge was successful, or if we skip the charging.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh](j)}(h,``struct folio *folio`` folio being charged 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjֵubj)}(hhh]jM)}(hfolio being chargedh]hfolio being charged}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjֵubeh}(h]h ]h"]h$]h&]uh1jhjhMhjӵubj)}(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&]uh1jLhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhjӵubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(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).}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(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.}(hjuhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+mem_cgroup_swapin_charge_folio (C function) c.mem_cgroup_swapin_charge_foliohNtauh1hhjxhhhNhNubh)}(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}(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_swapin_charge_folioh]j)}(hmem_cgroup_swapin_charge_folioh]hmem_cgroup_swapin_charge_folio}(hjŶhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(hI(struct folio *folio, struct mm_struct *mm, gfp_t gfp, swp_entry_t entry)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Ƕsb c.mem_cgroup_swapin_charge_folioasbuh1hhjݶubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݶubjF )}(hjI h]h*}(hj-hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjݶubj)}(hfolioh]hfolio}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݶubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjٶubj )}(hstruct mm_struct *mmh](j5)}(hj8h]hstruct}(hjShhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjsmodnameN classnameNjpjs)}jv]j c.mem_cgroup_swapin_charge_folioasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjOubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(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]j c.mem_cgroup_swapin_charge_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 hjٶubj )}(hswp_entry_t entryh](h)}(hhh]j)}(h swp_entry_th]h swp_entry_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(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&]uh1jhjubj)}(hentryh]hentry}(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*Charge a newly allocated folio for swapin.h]h*Charge a newly allocated folio for swapin.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjahhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj|jHj|jIjJjKuh1hhhhjxhNhNubj)}(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)}(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)}(hfolio to charge.h]hfolio to charge.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``struct mm_struct *mm`` mm context of the victim h](j)}(h``struct mm_struct *mm``h]jS)}(hj޸h]hstruct mm_struct *mm}(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)}(hmm context of the victimh]hmm context of the victim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjظubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(hB``swp_entry_t entry`` swap entry for which the folio is allocated h](j)}(h``swp_entry_t entry``h]jS)}(hjPh]hswp_entry_t entry}(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)}(h+swap entry for which the folio is allocatedh]h+swap entry for which the folio is allocated}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjubeh}(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)}(hnThis function charges a folio allocated for swapin. Please call this before adding the folio to the swapcache.h]hnThis function charges a folio allocated for swapin. Please call this before adding the folio to the swapcache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(h;Returns 0 on success. Otherwise, an error code is returned.h]h;Returns 0 on success. Otherwise, an error code is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%mem_cgroup_replace_folio (C function)c.mem_cgroup_replace_foliohNtauh1hhjxhhhNhNubh)}(hhh](h)}(hDvoid mem_cgroup_replace_folio (struct folio *old, struct folio *new)h]h)}(hCvoid mem_cgroup_replace_folio(struct folio *old, struct folio *new)h](j)}(hvoidh]hvoid}(hj߹hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۹hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۹hhhjhMgubh)}(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&]jjuh1hhj۹hhhjhMgubj )}(h&(struct folio *old, struct folio *new)h](j )}(hstruct folio *oldh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj<modnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_replace_folioasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(holdh]hold}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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 reftargetjmodnameN classnameNjpjs)}jv]jVc.mem_cgroup_replace_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)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj۹hhhjhMgubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj׹hhhjhMgubah}(h]jҹah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMghjԹhhubj4)}(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.chMghj hhubah}(h]h ]h"]h$]h&]uh1j3hjԹhhhjhMgubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj'jHj'jIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMkhj+ubj)}(hhh](j)}(h3``struct folio *old`` Currently circulating folio. h](j)}(h``struct folio *old``h]jS)}(hjPh]hstruct folio *old}(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.chMhhjJubj)}(hhh]jM)}(hCurrently circulating folio.h]hCurrently circulating folio.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjehMhhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhhjGubj)}(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.chMihjubj)}(hhh]jM)}(hReplacement folio.h]hReplacement folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMihjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMihjGubeh}(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.chMkhj+ubjM)}(hWCharge **new** as a replacement folio for **old**. **old** will be uncharged upon free.h](hCharge }(hjڻhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڻubh as a replacement folio for }(hjڻhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڻubh. }(hjڻhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڻubh will be uncharged upon free.}(hjڻhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMjhj+ubjM)}(hmapping** must be set up.h](hBoth folios must be locked, }(hjhhhNhNubj)}(h**new->mapping**h]h new->mapping}(hj'hhhNhNubah}(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.chMmhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmem_cgroup_migrate (C function)c.mem_cgroup_migratehNtauh1hhjxhhhNhNubh)}(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}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhjnhMubh)}(hmem_cgroup_migrateh]j)}(hmem_cgroup_migrateh]hmem_cgroup_migrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj\hhhjnhMubj )}(h&(struct folio *old, struct folio *new)h](j )}(hstruct folio *oldh](j5)}(hj8h]hstruct}(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.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)}(holdh]hold}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct folio *newh](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]j׼c.mem_cgroup_migrateasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjYhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hnewh]hnew}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj\hhhjnhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjXhhhjnhMubah}(h]jSah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjnhMhjUhhubj4)}(hhh]jM)}(h6Transfer the memcg data from the old to the new folio.h]h6Transfer the memcg data from the old to the new folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjUhhhjnhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct folio *old`` Currently circulating folio. ``struct folio *new`` Replacement folio. **Description** Transfer the memcg data from the old folio to the new folio for migration. The old folio's data info will be cleared. Note that the memory counters will remain unchanged throughout the process. Both folios must be locked, **new->mapping** must be set up.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh](j)}(h3``struct folio *old`` Currently circulating folio. h](j)}(h``struct folio *old``h]jS)}(hjѽh]hstruct folio *old}(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)}(hCurrently circulating folio.h]hCurrently circulating folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj˽ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȽubj)}(h)``struct folio *new`` Replacement folio. h](j)}(h``struct folio *new``h]jS)}(hj h]hstruct folio *new}(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)}(hReplacement folio.h]hReplacement folio.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȽubeh}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubjM)}(hmapping** must be set up.h](hBoth folios must be locked, }(hjjhhhNhNubj)}(h**new->mapping**h]h new->mapping}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh must be set up.}(hjjhhhNhNubeh}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!mem_cgroup_sk_charge (C function)c.mem_cgroup_sk_chargehNtauh1hhjxhhhNhNubh)}(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}(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_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&]jjuh1hhjhhhjhMubj )}(h>(const struct sock *sk, unsigned int nr_pages, gfp_t gfp_mask)h](j )}(hconst struct sock *skh](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)}(hsockh]hsock}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj"modnameN classnameNjpjs)}jv]jy)}jlj;sbc.mem_cgroup_sk_chargeasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjNhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hskh]hsk}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj߾ubj )}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(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.mem_cgroup_sk_chargeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj߾ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj6jHj6jIjJjKuh1hhhhjxhNhNubj)}(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}(hjBhhhNhNubah}(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)}(hj_h]hconst struct sock *sk}(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.chMhjYubj)}(hhh]jM)}(hsocket in memcg to chargeh]hsocket in memcg to charge}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjVubj)}(h4``unsigned int nr_pages`` number of pages to charge h](j)}(h``unsigned int nr_pages``h]jS)}(hjh]hunsigned int nr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hnumber of pages to chargeh]hnumber of pages to charge}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubj)}(h ``gfp_t gfp_mask`` reclaim mode 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:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(h reclaim modeh]h reclaim mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubeh}(h]h ]h"]h$]h&]uh1jhj:ubjM)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]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 }(hj"hhhNhNubj)}(h **nr_pages**h]hnr_pages}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh to }(hj"hhhNhNubj)}(h **memcg**h]hmemcg}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh . Returns }(hj"hhhNhNubjS)}(h``true``h]htrue}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubh if the charge fit within }(hj"hhhNhNubj)}(h **memcg**h]hmemcg}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh’s configured limit, }(hj"hhhNhNubjS)}(h ``false``h]hfalse}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubh if it doesn’t.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#mem_cgroup_sk_uncharge (C function)c.mem_cgroup_sk_unchargehNtauh1hhjxhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hmem_cgroup_sk_unchargeh]j)}(hmem_cgroup_sk_unchargeh]hmem_cgroup_sk_uncharge}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM ubj )}(h.(const struct sock *sk, unsigned int nr_pages)h](j )}(hconst struct sock *skh](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)}(hsockh]hsock}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj#modnameN classnameNjpjs)}jv]jy)}jljsbc.mem_cgroup_sk_unchargeasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjOhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hskh]hsk}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(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)}(huncharge socket memoryh]huncharge socket memory}(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&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.chM hjubj)}(hhh]jM)}(hsocket in memcg to unchargeh]hsocket in memcg to uncharge}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj-hM hj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hM hjubj)}(h5``unsigned int nr_pages`` number of pages to unchargeh](j)}(h``unsigned int nr_pages``h]jS)}(hjQh]hunsigned int nr_pages}(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)}(hnumber of pages to unchargeh]hnumber of pages to uncharge}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)__mem_cgroup_try_charge_swap (C function)c.__mem_cgroup_try_charge_swaphNtauh1hhjxhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMcubh)}(h__mem_cgroup_try_charge_swaph]j)}(h__mem_cgroup_try_charge_swaph]h__mem_cgroup_try_charge_swap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMcubj )}(h((struct folio *folio, swp_entry_t entry)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.__mem_cgroup_try_charge_swapasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj4hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hswp_entry_t entryh](h)}(hhh]j)}(h swp_entry_th]h swp_entry_t}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj_modnameN classnameNjpjs)}jv]j"c.__mem_cgroup_try_charge_swapasbuh1hhjVubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(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#try charging swap space for a folioh]h#try charging swap space for a folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMchjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMcubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMghjubj)}(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.chMdhjubj)}(hhh]jM)}(hfolio being added to swaph]hfolio being added to swap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMdhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMdhjubj)}(h+``swp_entry_t entry`` swap entry to charge h](j)}(h``swp_entry_t entry``h]jS)}(hj-h]hswp_entry_t entry}(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.chMehj'ubj)}(hhh]jM)}(hswap entry to chargeh]hswap entry to charge}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhMehjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMehjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjhh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMghjubjM)}(h@Try to charge **folio**'s memcg for the swap space at **entry**.h](hTry to charge }(hj~hhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh!’s memcg for the swap space at }(hj~hhhNhNubj)}(h **entry**h]hentry}(hjhhhNhNubah}(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.chMfhjubjM)}(h)Returns 0 on success, -ENOMEM on failure.h]h)Returns 0 on success, -ENOMEM on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'__mem_cgroup_uncharge_swap (C function)c.__mem_cgroup_uncharge_swaphNtauh1hhjxhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h__mem_cgroup_uncharge_swaph]j)}(h__mem_cgroup_uncharge_swaph]h__mem_cgroup_uncharge_swap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h*(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj"modnameN classnameNjpjs)}jv]jy)}jljsbc.__mem_cgroup_uncharge_swapasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(huncharge swap spaceh]huncharge swap space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh](j)}(h-``swp_entry_t entry`` swap entry to uncharge h](j)}(h``swp_entry_t entry``h]jS)}(hj h]hswp_entry_t entry}(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)}(hswap entry to unchargeh]hswap entry to uncharge}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhj ubah}(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)}(hjCh]hunsigned int nr_pages}(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 amount of swap space to unchargeh]h$the amount of swap space to uncharge}(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&]uh1jhjXhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!obj_cgroup_may_zswap (C function)c.obj_cgroup_may_zswaphNtauh1hhjxhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM]ubh)}(hobj_cgroup_may_zswaph]j)}(hobj_cgroup_may_zswaph]hobj_cgroup_may_zswap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM]ubj )}(h(struct obj_cgroup *objcg)h]j )}(hstruct obj_cgroup *objcgh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h obj_cgrouph]h obj_cgroup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.obj_cgroup_may_zswapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj%hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hobjcgh]hobjcg}(hj2hhhNhNubah}(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)}(hcheck if this cgroup can zswaph]hcheck if this cgroup can zswap}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM]hjYhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM]ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjtjHjtjIjJjKuh1hhhhjxhNhNubj)}(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)}(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:121: ./mm/memcontrol.chMahjxubj)}(hhh]j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]jS)}(hjh]hstruct obj_cgroup *objcg}(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 object cgrouph]hthe object cgroup}(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&]uh1jhjxubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM`hjxubjM)}(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.chM_hjxubjM)}(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.chMahjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$obj_cgroup_charge_zswap (C function)c.obj_cgroup_charge_zswaphNtauh1hhjxhhhNhNubh)}(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}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj:hMubh)}(hobj_cgroup_charge_zswaph]j)}(hobj_cgroup_charge_zswaph]hobj_cgroup_charge_zswap}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1hhj(hhhj:hMubj )}(h'(struct obj_cgroup *objcg, size_t size)h](j )}(hstruct obj_cgroup *objcgh](j5)}(hj8h]hstruct}(hjihhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(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)}jljOsbc.obj_cgroup_charge_zswapasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjeubj)}(hobjcgh]hobjcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjaubj )}(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]jc.obj_cgroup_charge_zswapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjaubeh}(h]h ]h"]h$]h&]jjuh1j hj(hhhj:hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj$hhhj:hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj:hMhj!hhubj4)}(hhh]jM)}(h!charge compression backend memoryh]h!charge compression backend memory}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj1hhubah}(h]h ]h"]h$]h&]uh1j3hj!hhhj:hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjLjHjLjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjPubj)}(hhh](j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]jS)}(hjuh]hstruct obj_cgroup *objcg}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjsubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjoubj)}(hhh]jM)}(hthe object cgrouph]hthe object cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubj)}(h*``size_t size`` size of compressed object h](j)}(h``size_t size``h]jS)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hsize of compressed objecth]hsize of compressed object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubeh}(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&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjPubjM)}(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.chMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&obj_cgroup_uncharge_zswap (C function)c.obj_cgroup_uncharge_zswaphNtauh1hhjxhhhNhNubh)}(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}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hMubh)}(hobj_cgroup_uncharge_zswaph]j)}(hobj_cgroup_uncharge_zswaph]hobj_cgroup_uncharge_zswap}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1hhj*hhhj<hMubj )}(h'(struct obj_cgroup *objcg, size_t size)h](j )}(hstruct obj_cgroup *objcgh](j5)}(hj8h]hstruct}(hjkhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(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)}jljQsbc.obj_cgroup_uncharge_zswapasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjgubj)}(hobjcgh]hobjcg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubj )}(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]jc.obj_cgroup_uncharge_zswapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjcubeh}(h]h ]h"]h$]h&]jjuh1j hj*hhhj<hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj&hhhj<hMubah}(h]j!ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj<hMhj#hhubj4)}(hhh]jM)}(h#uncharge compression backend memoryh]h#uncharge compression backend memory}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj3hhubah}(h]h ]h"]h$]h&]uh1j3hj#hhhj<hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjNjHjNjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjXh]h Parameters}(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.chMhjRubj)}(hhh](j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]jS)}(hjwh]hstruct obj_cgroup *objcg}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjqubj)}(hhh]jM)}(hthe object cgrouph]hthe object cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(h*``size_t size`` size of compressed object h](j)}(h``size_t size``h]jS)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjubj)}(hhh]jM)}(hsize of compressed objecth]hsize of compressed object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjRubjM)}(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.chMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubj|_)}(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{_hjxhhhhhKzubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_recalc_inode (C function)c.shmem_recalc_inodehNtauh1hhjxhhhNhNubh)}(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}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjKhMubh)}(hshmem_recalc_inodeh]j)}(hshmem_recalc_inodeh]hshmem_recalc_inode}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhjKhMubj )}(h1(struct inode *inode, long alloced, long swapped)h](j )}(hstruct inode *inodeh](j5)}(hj8h]hstruct}(hjzhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlj`sbc.shmem_recalc_inodeasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjvubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubj )}(h long allocedh](j)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hallocedh]halloced}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubj )}(h long swappedh](j)}(hlongh]hlong}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hswappedh]hswapped}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjrubeh}(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'recalculate the block usage of an inodeh]h'recalculate the block usage of an inode}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjdhhubah}(h]h ]h"]h$]h&]uh1j3hj3hhhjKhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMhjubj)}(hhh]jM)}(hinode to recalch]hinode to recalc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``long alloced`` the change in number of pages allocated to inode h](j)}(h``long alloced``h]jS)}(hjh]h long alloced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubj)}(hhh]jM)}(h0the change in number of pages allocated to inodeh]h0the change in number of pages allocated to inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubeh}(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&]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.}(hjkhhhNhNubah}(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)}(hjzhhhNhNubah}(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}(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=true if swapped was incremented from 0, for shmem_writeout().h]h=true if swapped was incremented from 0, for shmem_writeout().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_writeout (C function)c.shmem_writeouthNtauh1hhjxhhhNhNubh)}(hhh](h)}(h_int shmem_writeout (struct folio *folio, struct swap_iocb **plug, struct list_head *folio_list)h]h)}(h^int shmem_writeout(struct folio *folio, struct swap_iocb **plug, struct list_head *folio_list)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM2ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM2ubh)}(hshmem_writeouth]j)}(hshmem_writeouth]hshmem_writeout}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM2ubj )}(hL(struct folio *folio, struct swap_iocb **plug, struct list_head *folio_list)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}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj-modnameN classnameNjpjs)}jv]jy)}jljsbc.shmem_writeoutasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjYhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hfolioh]hfolio}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct swap_iocb **plugh](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 swap_iocbh]h swap_iocb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jGc.shmem_writeoutasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj{ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj{ubj)}(hplugh]hplug}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(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 }(hj hhhNhNubah}(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]jGc.shmem_writeoutasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjFhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h folio_listh]h folio_list}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM2ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM2ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM2hjhhubj4)}(hhh]jM)}(hWrite the folio to swaph]hWrite the folio to swap}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM2hjzhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM2ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chM6hjubj)}(hhh](j)}(h+``struct folio *folio`` The folio to write h](j)}(h``struct folio *folio``h]jS)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM3hjubj)}(hhh]jM)}(hThe folio to writeh]hThe folio to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubj)}(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&]uh1jLhj hM4hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM4hjubj)}(hB``struct list_head *folio_list`` list to put back folios on split h](j)}(h ``struct list_head *folio_list``h]jS)}(hj0h]hstruct list_head *folio_list}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj.ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM5hj*ubj)}(hhh]jM)}(h list to put back folios on splith]h list to put back folios on split}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhM5hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM5hjubeh}(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&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM7hjubjM)}(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.chM6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_get_folio (C function)c.shmem_get_foliohNtauh1hhjxhhhNhNubh)}(hhh](h)}(htint shmem_get_folio (struct inode *inode, pgoff_t index, loff_t write_end, struct folio **foliop, enum sgp_type sgp)h]h)}(hsint shmem_get_folio(struct inode *inode, pgoff_t index, loff_t write_end, struct folio **foliop, enum sgp_type sgp)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMT ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMT ubh)}(hshmem_get_folioh]j)}(hshmem_get_folioh]hshmem_get_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMT ubj )}(h`(struct inode *inode, pgoff_t index, loff_t write_end, struct folio **foliop, enum sgp_type sgp)h](j )}(hstruct inode *inodeh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hinodeh]hinode}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljsbc.shmem_get_folioasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj9hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hinodeh]hinode}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjdmodnameN classnameNjpjs)}jv]j'c.shmem_get_folioasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hloff_t write_endh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j'c.shmem_get_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h write_endh]h write_end}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j'c.shmem_get_folioasbuh1hhjubj)}(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)}(hfolioph]hfoliop}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum sgp_type sgph](j5)}(hj+h]henum}(hjlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]j)}(hsgp_typeh]hsgp_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j'c.shmem_get_folioasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hsgph]hsgp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMT ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMT ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMT hjhhubj4)}(hhh]jM)}(hfind, and lock a shmem folio.h]hfind, and lock a shmem folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMT hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMT ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj!h]hstruct inode *inode}(hj#hhhNhNubah}(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}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hMU hj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMU hjubj)}(h"``pgoff_t index`` the page index. h](j)}(h``pgoff_t index``h]jS)}(hjZh]h pgoff_t index}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjXubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMV hjTubj)}(hhh]jM)}(hthe page index.h]hthe page index.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjohMV hjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMV hjubj)}(h=``loff_t write_end`` end of a write, could extend inode size h](j)}(h``loff_t write_end``h]jS)}(hjh]hloff_t write_end}(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.chMW hjubj)}(hhh]jM)}(h'end of a write, could extend inode sizeh]h'end of a write, could extend inode size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMW hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMW hjubj)}(h8``struct folio **foliop`` pointer to the folio if found h](j)}(h``struct folio **foliop``h]jS)}(hjh]hstruct folio **foliop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMX hjubj)}(hhh]jM)}(hpointer to the folio if foundh]hpointer to the folio if found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMX hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMX 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)}(hj@h]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.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 }(hjVhhhNhNubj)}(h **inode**h]hinode}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh & }(hjVhhhNhNubj)}(h **index**h]hindex}(hjphhhNhNubah}(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&]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 }(hjhhhNhNubj)}(h**sgp**h]hsgp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMe hjubj)}(hhh]j.L)}(hhh](j+)}(h7for SGP_READ, ***foliop** is ``NULL`` and 0 is returnedh]jM)}(hjh](hfor SGP_READ, }(hjhhhNhNubj)}(h ***foliop**h]h*foliop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is }(hjhhhNhNubjS)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and 0 is returned}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMb hjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(h@for SGP_NOALLOC, ***foliop** is ``NULL`` and -ENOENT is returnedh]jM)}(hjh](hfor SGP_NOALLOC, }(hjhhhNhNubj)}(h ***foliop**h]h*foliop}(hj hhhNhNubah}(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+hjubj+)}(hnfor all other flags a new folio is allocated, inserted into the page cache and returned locked in **foliop**. h]jM)}(hmfor all other flags a new folio is allocated, inserted into the page cache and returned locked in **foliop**.h](hbfor all other flags a new folio is allocated, inserted into the page cache and returned locked in }(hjBhhhNhNubj)}(h **foliop**h]hfoliop}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMd hj>ubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjhMb hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMe hjubah}(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.}(hjhhhNhNubah}(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)}(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.chMj hjubjM)}(h,0 if successful, else a negative error code.h]h,0 if successful, else a negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMi hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$shmem_kernel_file_setup (C function)c.shmem_kernel_file_setuphNtauh1hhjxhhhNhNubh)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlshmem_kernel_file_setupsbc.shmem_kernel_file_setupasbuh1hhjhhhjhMubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF )}(hjI h]h*}(hj=hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhMubh)}(hshmem_kernel_file_setuph]j)}(hj,h]hshmem_kernel_file_setup}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(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}(hjihhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjeubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjaubj )}(h loff_t sizeh](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j*c.shmem_kernel_file_setupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjaubj )}(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]j*c.shmem_kernel_file_setupasbuh1hhj 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 hjaubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(hXCget an unlinked file living in tmpfs which must be kernel internal. There will be NO LSM permission checks against the underlying inode. So users of this interface must do LSM checks at a higher layer. The users are the big_key and shm implementations. LSM checks are provided at the key or shm level rather than the inode.h]hXCget an unlinked file living in tmpfs which must be kernel internal. There will be NO LSM permission checks against the underlying inode. So users of this interface must do LSM checks at a higher layer. The users are the big_key and shm implementations. LSM checks are provided at the key or shm level rather than the inode.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjdhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_file_setup (C function)c.shmem_file_setuphNtauh1hhjxhhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjphhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlshmem_file_setupsbc.shmem_file_setupasbuh1hhjphhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjphhhjhMubh)}(hshmem_file_setuph]j)}(hjh]hshmem_file_setup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjphhhjhMubj )}(h2(const char *name, loff_t size, vma_flags_t flags)h](j )}(hconst char *nameh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcharh]hchar}(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)}(hnameh]hname}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h loff_t sizeh](h)}(hhh]j)}(hloff_th]hloff_t}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjPmodnameN classnameNjpjs)}jv]jc.shmem_file_setupasbuh1hhjGubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hsizeh]hsize}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(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_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 hjphhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjlhhhjhMubah}(h]jgah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjihhubj4)}(hhh]jM)}(h$get an unlinked file living in tmpfsh]h$get an unlinked file living in tmpfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjihhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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&]uh1jhj ubah}(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.chMhj'ubj)}(hhh]jM)}(h0name for dentry (to be seen in /proc//maps)h]h0name for dentry (to be seen in /proc//maps)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhj$ubj)}(h,``loff_t size`` size to be set for the file h](j)}(h``loff_t size``h]jS)}(hjfh]h loff_t size}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj`ubj)}(hhh]jM)}(hsize to be set for the fileh]hsize to be set for the file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj$ubj)}(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&]uh1jhjhMhj$ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&shmem_file_setup_with_mnt (C function)c.shmem_file_setup_with_mnthNtauh1hhjxhhhNhNubh)}(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 }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubjF )}(hjI h]h*}(hjGhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjhhhjhM ubh)}(hshmem_file_setup_with_mnth]j)}(hj6h]hshmem_file_setup_with_mnt}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(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}(hjshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j)}(hvfsmounth]hvfsmount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j4c.shmem_file_setup_with_mntasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjoubj)}(hmnth]hmnt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkubj )}(hconst char *nameh](j5)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hnameh]hname}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkubj )}(h loff_t sizeh](h)}(hhh]j)}(hloff_th]hloff_t}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjEmodnameN classnameNjpjs)}jv]j4c.shmem_file_setup_with_mntasbuh1hhj<ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hsizeh]hsize}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkubj )}(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]j4c.shmem_file_setup_with_mntasbuh1hhjubj)}(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 hjkubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj"h]hstruct vfsmount *mnt}(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 hjubj)}(hhh]jM)}(h.the tmpfs mount where the file will be createdh]h.the tmpfs mount where the file will be created}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7hM hj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hM hjubj)}(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&]uh1jRhjYubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM hjUubj)}(hhh]jM)}(h0name for dentry (to be seen in /proc//maps)h]h0name for dentry (to be seen in /proc//maps)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphM hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphM hjubj)}(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.chM hjubj)}(hhh]jM)}(hsize to be set for the fileh]hsize to be set for the file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM 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)}(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.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hshmem_zero_setup (C function)c.shmem_zero_setuphNtauh1hhjxhhhNhNubh)}(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}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj5hM%ubh)}(hshmem_zero_setuph]j)}(hshmem_zero_setuph]hshmem_zero_setup}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1hhj#hhhj5hM%ubj )}(h(struct vm_area_struct *vma)h]j )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjdhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj`ubj)}(h h]h }(hjqhhhNhNubah}(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)}jljJsbc.shmem_zero_setupasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj`ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj\ubah}(h]h ]h"]h$]h&]jjuh1j hj#hhhj5hM%ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj5hM%ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj5hM%hjhhubj4)}(hhh]jM)}(h setup a shared anonymous mappingh]h setup a shared anonymous mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM%hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj5hM%ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj h]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)}(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)}(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:123: ./mm/shmem.chM&hj"ubj)}(hhh]jM)}(h,the vma to be mmapped is prepared by do_mmaph]h,the vma to be mmapped is prepared by do_mmap}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hM&hj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hM&hjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjch]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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}(hjyhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"shmem_zero_setup_desc (C function)c.shmem_zero_setup_deschNtauh1hhjxhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM9ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM9ubh)}(hshmem_zero_setup_desch]j)}(hshmem_zero_setup_desch]hshmem_zero_setup_desc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM9ubj )}(h(struct vm_area_desc *desc)h]j )}(hstruct vm_area_desc *desch](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h vm_area_desch]h vm_area_desc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.shmem_zero_setup_descasbuh1hhjubj)}(h h]h }(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 hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM9ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM9ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM9hjhhubj4)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM9hjehhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM9ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(ha**Parameters** ``struct vm_area_desc *desc`` Describes VMA **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)}(h,``struct vm_area_desc *desc`` Describes VMA 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&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM;hjubj)}(hhh]jM)}(h Describes VMAh]h Describes VMA}(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}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!shmem_read_folio_gfp (C function)c.shmem_read_folio_gfphNtauh1hhjxhhhNhNubh)}(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}(hj)hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj%hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMLubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj6hMLubh)}(hhh]j)}(hfolioh]hfolio}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjJmodnameN classnameNjpjs)}jv]jy)}jlshmem_read_folio_gfpsbc.shmem_read_folio_gfpasbuh1hhj%hhhj6hMLubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj6hMLubjF )}(hjI h]h*}(hjwhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj%hhhj6hMLubh)}(hshmem_read_folio_gfph]j)}(hjfh]hshmem_read_folio_gfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhj%hhhj6hMLubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jdc.shmem_read_folio_gfpasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jdc.shmem_read_folio_gfpasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexh]hindex}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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]jdc.shmem_read_folio_gfpasbuh1hhjWubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hj%hhhj6hMLubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj!hhhj6hMLubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj6hMLhjhhubj4)}(hhh]jM)}(hread_folio() method: which does not suit tmpfs, since it may have pages in swapcache, and needs to find those for itself; although drivers/gpu/drm i915 and ttm rely upon this support. i915_gem_object_get_pages_gtt() mixes __GFP_NORETRY | __GFP_NOWARN in with the mapping_gfp_mask(), to avoid OOMing the machine unnecessarily.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMPhjubj)}(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&]uh1jLhj hMMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMMhjubj)}(h"``pgoff_t index`` the folio index h](j)}(h``pgoff_t index``h]jS)}(hj.h]h pgoff_t index}(hj0hhhNhNubah}(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.chMNhj(ubj)}(hhh]jM)}(hthe folio indexh]hthe folio index}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChMNhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMNhjubj)}(h<``gfp_t gfp`` the page allocator flags to use if allocating h](j)}(h ``gfp_t gfp``h]jS)}(hjgh]h gfp_t gfp}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMOhjaubj)}(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&]uh1jLhj|hMOhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMOhjubeh}(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.chMQhjubjM)}(hXiThis behaves as a tmpfs "read_cache_page_gfp(mapping, index, gfp)", with any new page allocations done using the specified allocation flags. But read_cache_page_gfp() uses the ->read_folio() method: which does not suit tmpfs, since it may have pages in swapcache, and needs to find those for itself; although drivers/gpu/drm i915 and ttm rely upon this support.h]hXmThis behaves as a tmpfs “read_cache_page_gfp(mapping, index, gfp)”, with any new page allocations done using the specified allocation flags. But read_cache_page_gfp() uses the ->read_folio() method: which does not suit tmpfs, since it may have pages in swapcache, and needs to find those for itself; although drivers/gpu/drm i915 and ttm rely upon this support.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMPhjubjM)}(hi915_gem_object_get_pages_gtt() mixes __GFP_NORETRY | __GFP_NOWARN in with the mapping_gfp_mask(), to avoid OOMing the machine unnecessarily.h]hi915_gem_object_get_pages_gtt() mixes __GFP_NORETRY | __GFP_NOWARN in with the mapping_gfp_mask(), to avoid OOMing the machine unnecessarily.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMVhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$migrate_vma_split_folio (C function)c.migrate_vma_split_foliohNtauh1hhjxhhhNhNubh)}(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}(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]jy)}jljsbc.migrate_vma_split_folioasbuh1hhj/ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj/ubj)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj+ubj )}(hstruct page *fault_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]jmc.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)}(h fault_pageh]h fault_page}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj+ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKLubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKLubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKLhjhhubj4)}(hhh]jM)}(h$Helper function to split a THP folioh]h$Helper function to split a THP folio}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chKLhj#hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKLubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj>jHj>jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chKPhjBubj)}(hhh](j)}(h+``struct folio *folio`` the folio to split h](j)}(h``struct folio *folio``h]jS)}(hjgh]hstruct folio *folio}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chKMhjaubj)}(hhh]jM)}(hthe folio to splith]hthe folio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|hKMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKMhj^ubj)}(hI``struct page *fault_page`` struct page associated with the fault if any h](j)}(h``struct page *fault_page``h]jS)}(hjh]hstruct page *fault_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.chKNhjubj)}(hhh]jM)}(h,struct page associated with the fault if anyh]h,struct page associated with the fault if any}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhj^ubeh}(h]h ]h"]h$]h&]uh1jhjBubjM)}(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.chKPhjBubjM)}(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.chKOhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmigrate_vma_setup (C function)c.migrate_vma_setuphNtauh1hhjxhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj.hMubh)}(hmigrate_vma_setuph]j)}(hmigrate_vma_setuph]hmigrate_vma_setup}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj.hMubj )}(h(struct migrate_vma *args)h]j )}(hstruct migrate_vma *argsh](j5)}(hj8h]hstruct}(hj]hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(h migrate_vmah]h migrate_vma}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jy)}jljCsbc.migrate_vma_setupasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjYubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjUubah}(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$prepare to migrate a range of memoryh]h$prepare to migrate a range of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj.hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj!h]hstruct migrate_vma *args}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(h:contains the vma, start, and pfns arrays for the migrationh]h:contains the vma, start, and pfns arrays for the migration}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hj\h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(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.}(hjrhhhNhNubah}(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.}(hjhhhNhNubah}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hXNote that the caller does not have to migrate all the pages that are marked with MIGRATE_PFN_MIGRATE flag in src array unless this is a migration from device memory to system memory. If the caller cannot migrate a device page back to system memory, then it must return VM_FAULT_SIGBUS, which has severe consequences for the userspace process, so it must be avoided if at all possible.h]hXNote that the caller does not have to migrate all the pages that are marked with MIGRATE_PFN_MIGRATE flag in src array unless this is a migration from device memory to system memory. If the caller cannot migrate a device page back to system memory, then it must return VM_FAULT_SIGBUS, which has severe consequences for the userspace process, so it must be avoided if at all possible.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hX0For empty entries inside CPU page table (pte_none() or pmd_none() is true) we do set MIGRATE_PFN_MIGRATE flag inside the corresponding source array thus allowing the caller to allocate device memory for those unbacked virtual addresses. For this the caller simply has to allocate device memory and properly set the destination entry like for regular migration. Note that this can still fail, and thus inside the device driver you must check if the migration was successful for those entries after calling migrate_vma_pages(), just like for regular migration.h]hX0For empty entries inside CPU page table (pte_none() or pmd_none() is true) we do set MIGRATE_PFN_MIGRATE flag inside the corresponding source array thus allowing the caller to allocate device memory for those unbacked virtual addresses. For this the caller simply has to allocate device memory and properly set the destination entry like for regular migration. Note that this can still fail, and thus inside the device driver you must check if the migration was successful for those entries after calling migrate_vma_pages(), just like for regular migration.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hXAfter that, the callers must call migrate_vma_pages() to go over each entry in the src array that has the MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set. If the corresponding entry in dst array has MIGRATE_PFN_VALID flag set, then migrate_vma_pages() to migrate struct page information from the source struct page to the destination struct page. If it fails to migrate the struct page information, then it clears the MIGRATE_PFN_MIGRATE flag in the src array.h]hXAfter that, the callers must call migrate_vma_pages() to go over each entry in the src array that has the MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set. If the corresponding entry in dst array has MIGRATE_PFN_VALID flag set, then migrate_vma_pages() to migrate struct page information from the source struct page to the destination struct page. If it fails to migrate the struct page information, then it clears the MIGRATE_PFN_MIGRATE flag in the src array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hAt this point all successfully migrated pages have an entry in the src array with MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set and the dst array entry with MIGRATE_PFN_VALID flag set.h]hAt this point all successfully migrated pages have an entry in the src array with MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set and the dst array entry with MIGRATE_PFN_VALID flag set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hOnce migrate_vma_pages() returns the caller may inspect which pages were successfully migrated, and which were not. Successfully migrated pages will have the MIGRATE_PFN_MIGRATE flag set for their src array entry.h]hOnce migrate_vma_pages() returns the caller may inspect which pages were successfully migrated, and which were not. Successfully migrated pages will have the MIGRATE_PFN_MIGRATE flag set for their src array entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hIt is safe to update device page table after migrate_vma_pages() because both destination and source page are still locked, and the mmap_lock is held in read mode (hence no one can unmap the range being migrated).h]hIt is safe to update device page table after migrate_vma_pages() because both destination and source page are still locked, and the mmap_lock is held in read mode (hence no one can unmap the range being migrated).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hXBOnce the caller is done cleaning up things and updating its page table (if it chose to do so, this is not an obligation) it finally calls migrate_vma_finalize() to update the CPU page table to point to new pages for successfully migrated pages or otherwise restore the CPU page table to point to the original source pages.h]hXBOnce the caller is done cleaning up things and updating its page table (if it chose to do so, this is not an obligation) it finally calls migrate_vma_finalize() to update the CPU page table to point to new pages for successfully migrated pages or otherwise restore the CPU page table to point to the original source pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h-migrate_vma_insert_huge_pmd_page (C function)"c.migrate_vma_insert_huge_pmd_pagehNtauh1hhjxhhhNhNubh)}(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}(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 }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhjNhMubh)}(h migrate_vma_insert_huge_pmd_pageh]j)}(h migrate_vma_insert_huge_pmd_pageh]h migrate_vma_insert_huge_pmd_page}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj<hhhjNhMubj )}(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}(hj}hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(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)}jljcsb"c.migrate_vma_insert_huge_pmd_pageasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjyubj)}(hmigrateh]hmigrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubj )}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hj@hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj<ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j)}(hpageh]hpage}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj`modnameN classnameNjpjs)}jv]j"c.migrate_vma_insert_huge_pmd_pageasbuh1hhj<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)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubj )}(hunsigned long *srch](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubj )}(h pmd_t *pmdph](h)}(hhh]j)}(hpmd_th]hpmd_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j"c.migrate_vma_insert_huge_pmd_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)}(hpmdph]hpmdp}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubeh}(h]h ]h"]h$]h&]jjuh1j hj<hhhjNhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj8hhhjNhMubah}(h]j3ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjNhMhj5hhubj4)}(hhh]jM)}(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 }(hjthhhNhNubj)}(h**migrate->vma->vm_mm**h]hmigrate->vma->vm_mm}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh at }(hjthhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubhP. folio is already allocated as a part of the migration process with large page.}(hjthhhNhNubeh}(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&]uh1j3hj5hhhjNhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct migrate_vma *migrate`` migrate_vma arguments ``unsigned long addr`` address where the folio will be inserted ``struct page *page`` page to be inserted at **addr** ``unsigned long *src`` src pfn which is being migrated ``pmd_t *pmdp`` pointer to the pmd **Description** **page** needs to be initialized and setup after it's allocated. The code bits here follow closely the code in __do_huge_pmd_anonymous_page(). This API does not support THP zero pages.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM hjubj)}(hhh](j)}(h6``struct migrate_vma *migrate`` migrate_vma arguments h](j)}(h``struct migrate_vma *migrate``h]jS)}(hjh]hstruct migrate_vma *migrate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM hjubj)}(hhh]jM)}(hmigrate_vma argumentsh]hmigrate_vma arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h@``unsigned long addr`` address where the folio will be inserted h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhj ubj)}(hhh]jM)}(h(address where the folio will be insertedh]h(address where the folio will be inserted}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhjubj)}(h6``struct page *page`` page to be inserted at **addr** h](j)}(h``struct page *page``h]jS)}(hjKh]hstruct page *page}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjEubj)}(hhh]jM)}(hpage to be inserted at **addr**h](hpage to be inserted at }(hjdhhhNhNubj)}(h**addr**h]haddr}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jLhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjubj)}(h7``unsigned long *src`` src pfn which is being migrated h](j)}(h``unsigned long *src``h]jS)}(hjh]hunsigned long *src}(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)}(hsrc pfn which is being migratedh]hsrc pfn which is being migrated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h#``pmd_t *pmdp`` pointer to the pmd h](j)}(h``pmd_t *pmdp``h]jS)}(hjh]h pmd_t *pmdp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(hpointer to the pmdh]hpointer to the pmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(h**page** needs to be initialized and setup after it's allocated. The code bits here follow closely the code in __do_huge_pmd_anonymous_page(). This API does not support THP zero pages.h](j)}(h**page**h]hpage}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh needs to be initialized and setup after it’s allocated. The code bits here follow closely the code in __do_huge_pmd_anonymous_page(). This API does not support THP zero pages.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!migrate_device_pages (C function)c.migrate_device_pageshNtauh1hhjxhhhNhNubh)}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhjghMubh)}(hmigrate_device_pagesh]j)}(hmigrate_device_pagesh]hmigrate_device_pages}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1hhjUhhhjghMubj )}(hH(unsigned long *src_pfns, unsigned long *dst_pfns, unsigned long npages)h](j )}(hunsigned long *src_pfnsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hsrc_pfnsh]hsrc_pfns}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long *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*}(hj,hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hdst_pfnsh]hdst_pfns}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long npagesh](j)}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hnpagesh]hnpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjUhhhjghMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjQhhhjghMubah}(h]jLah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjghMhjNhhubj4)}(hhh]jM)}(h+migrate meta-data from src page to dst pageh]h+migrate meta-data from src page to dst page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjNhhhjghMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX{**Parameters** ``unsigned long *src_pfns`` src_pfns returned from migrate_device_range() ``unsigned long *dst_pfns`` array of pfns allocated by the driver to migrate memory to ``unsigned long npages`` number of pages in the range **Description** Equivalent to migrate_vma_pages(). This is called to migrate struct page meta-data from source struct page to destination.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh](j)}(hJ``unsigned long *src_pfns`` src_pfns returned from migrate_device_range() h](j)}(h``unsigned long *src_pfns``h]jS)}(hjh]hunsigned long *src_pfns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(h-src_pfns returned from migrate_device_range()h]h-src_pfns returned from migrate_device_range()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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)}(hj.h]hunsigned long *dst_pfns}(hj0hhhNhNubah}(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)}(h:array of pfns allocated by the driver to migrate memory toh]h:array of pfns allocated by the driver to migrate memory to}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjubj)}(h6``unsigned long npages`` number of pages in the range h](j)}(h``unsigned long npages``h]jS)}(hjgh]hunsigned long npages}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjeubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjaubj)}(hhh]jM)}(hnumber of pages in the rangeh]hnumber of pages in the range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(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&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hzEquivalent to migrate_vma_pages(). This is called to migrate struct page meta-data from source struct page to destination.h]hzEquivalent to migrate_vma_pages(). This is called to migrate struct page meta-data from source struct page to destination.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmigrate_vma_pages (C function)c.migrate_vma_pageshNtauh1hhjxhhhNhNubh)}(hhh](h)}(h4void migrate_vma_pages (struct migrate_vma *migrate)h]h)}(h3void migrate_vma_pages(struct migrate_vma *migrate)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmigrate_vma_pagesh]j)}(hmigrate_vma_pagesh]hmigrate_vma_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h(struct migrate_vma *migrate)h]j )}(hstruct migrate_vma *migrateh](j5)}(hj8h]hstruct}(hj$hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h migrate_vmah]h migrate_vma}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDmodnameN classnameNjpjs)}jv]jy)}jlj sbc.migrate_vma_pagesasbuh1hhj 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)}(hmigrateh]hmigrate}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjhhubj4)}(hhh]jM)}(h+migrate meta-data from src page to dst pageh]h+migrate meta-data from src page to dst page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX!**Parameters** ``struct migrate_vma *migrate`` migrate struct containing all migration information **Description** This migrates struct page meta-data from source struct page to destination struct page. This effectively finishes the migration from source page to the destination page.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]j)}(hT``struct migrate_vma *migrate`` migrate struct containing all migration information h](j)}(h``struct migrate_vma *migrate``h]jS)}(hjh]hstruct migrate_vma *migrate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(h3migrate struct containing all migration informationh]h3migrate struct containing all migration information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(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:124: ./mm/migrate_device.chMhjubjM)}(hThis migrates struct page meta-data from source struct page to destination struct page. This effectively finishes the migration from source page to the destination page.h]hThis migrates struct page meta-data from source struct page to destination struct page. This effectively finishes the migration from source page to the destination page.}(hj9hhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!migrate_vma_finalize (C function)c.migrate_vma_finalizehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h7void migrate_vma_finalize (struct migrate_vma *migrate)h]h)}(h6void migrate_vma_finalize(struct migrate_vma *migrate)h](j)}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM=ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjvhM=ubh)}(hmigrate_vma_finalizeh]j)}(hmigrate_vma_finalizeh]hmigrate_vma_finalize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjdhhhjvhM=ubj )}(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_finalizeasbuh1hhjubj)}(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 hjdhhhjvhM=ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj`hhhjvhM=ubah}(h]j[ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjvhM=hj]hhubj4)}(hhh]jM)}(hrestore CPU page table entryh]hrestore CPU page table entry}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM=hj%hhubah}(h]h ]h"]h$]h&]uh1j3hj]hhhjvhM=ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj@jHj@jIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMAhjDubj)}(hhh]j)}(hT``struct migrate_vma *migrate`` migrate struct containing all migration information h](j)}(h``struct migrate_vma *migrate``h]jS)}(hjih]hstruct migrate_vma *migrate}(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.chM>hjcubj)}(hhh]jM)}(h3migrate struct containing all migration informationh]h3migrate struct containing all migration information}(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&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM@hjDubjM)}(hThis replaces the special migration pte entry with either a mapping to the new page if migration was successful for that page, or to the original page otherwise.h]hThis replaces the special migration pte entry with either a mapping to the new page if migration was successful for that page, or to the original page otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM?hjDubjM)}(hiThis also unlocks the pages and puts them back on the lru, or drops the extra refcount, for device pages.h]hiThis also unlocks the pages and puts them back on the lru, or drops the extra refcount, for device pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMChjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!migrate_device_range (C function)c.migrate_device_rangehNtauh1hhjxhhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hlongh]hlong}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjF )}(hjI h]h*}(hjmhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1ubj)}(hsrc_pfnsh]hsrc_pfns}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj-ubj )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j 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 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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM_hjChhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM_ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj^jHj^jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMchjbubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hj~ubj)}(h>``unsigned long start`` starting pfn in the range to migrate. h](j)}(h``unsigned long start``h]jS)}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMahjubj)}(hhh]jM)}(h%starting pfn in the range to migrate.h]h%starting pfn in the range to migrate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahj~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.chMbhjubj)}(hhh]jM)}(hnumber of pages to migrate.h]hnumber of pages to migrate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMbhj~ubeh}(h]h ]h"]h$]h&]uh1jhjbubjM)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMdhjbubjM)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMchjbubjM)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMghjbubjM)}(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().}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMkhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h migrate_device_pfns (C function)c.migrate_device_pfnshNtauh1hhjxhhhNhNubh)}(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}(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_pfnsh]j)}(hmigrate_device_pfnsh]hmigrate_device_pfns}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h/(unsigned long *src_pfns, unsigned long npages)h](j )}(hunsigned long *src_pfnsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hsrc_pfnsh]hsrc_pfns}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long npagesh](j)}(hunsignedh]hunsigned}(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.ubj)}(hnpagesh]hnpages}(hjjhhhNhNubah}(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-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.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX#**Parameters** ``unsigned long *src_pfns`` pre-populated array of source device private pfns to migrate. ``unsigned long npages`` number of pages to migrate. **Description** Similar to migrate_device_range() but supports non-contiguous pre-populated array of device pages to migrate.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh](j)}(hZ``unsigned long *src_pfns`` pre-populated array of source device private pfns to migrate. h](j)}(h``unsigned long *src_pfns``h]jS)}(hjh]hunsigned long *src_pfns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]jM)}(h=pre-populated array of source device private pfns to migrate.h]h=pre-populated array of source device private pfns to migrate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h5``unsigned long npages`` number of pages to migrate. h](j)}(h``unsigned long npages``h]jS)}(hjh]hunsigned long npages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(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.}(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&]uh1jhjubjM)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubjM)}(hmSimilar to migrate_device_range() but supports non-contiguous pre-populated array of device pages to migrate.h]hmSimilar to migrate_device_range() but supports non-contiguous pre-populated array of device pages to migrate.}(hj_hhhNhNubah}(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&]uh1jhjxhhhNhNubj|_)}(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)}hjusbah}(h]h ]h"]h$]h&]jjuh1j{_hjxhhhhhK}ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwp_walk (C struct) c.wp_walkhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hwp_walkh]h)}(hstruct wp_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.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hwp_walkh]j)}(hjh]hwp_walk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKhjhhubj4)}(hhh]jM)}(h+Private struct for pagetable walk callbacksh]h+Private struct for pagetable walk callbacks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj,h]hMembers}(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.chKhjubj)}(hhh](j)}(h"``range`` Range for mmu notifiers h](j)}(h ``range``h]jS)}(hjKh]hrange}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK hjEubj)}(hhh]jM)}(hRange for mmu notifiersh]hRange for mmu notifiers}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`hK hjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hK hjBubj)}(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.chKhj~ubj)}(hhh]jM)}(hAddress of first modified pteh]hAddress of first modified pte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjBubj)}(h2``tlbflush_end`` Address of last modified pte + 1 h](j)}(h``tlbflush_end``h]jS)}(hjh]h tlbflush_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]jM)}(h Address of last modified pte + 1h]h Address of last modified pte + 1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjBubj)}(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.chKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjBubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwp_pte (C function)c.wp_ptehNtauh1hhjxhhhNhNubh)}(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}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhh[/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&]uh1jhjLhhhj^hKubh)}(hwp_pteh]j)}(hwp_pteh]hwp_pte}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1hhjLhhhj^hKubj )}(hI(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h](j )}(h pte_t *pteh](h)}(hhh]j)}(hpte_th]hpte_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljssbc.wp_pteasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpteh]hpte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hlongh]hlong}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hendh]hend}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mm_walk *walkh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hmm_walkh]hmm_walk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.wp_pteasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hwalkh]hwalk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjLhhhj^hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjHhhhj^hKubah}(h]jCah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj^hKhjEhhubj4)}(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&]uh1j3hjEhhhj^hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj#ubj)}(hhh](j)}(h"``pte_t *pte`` Pointer to the pte h](j)}(h``pte_t *pte``h]jS)}(hjHh]h pte_t *pte}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjBubj)}(hhh]jM)}(hPointer to the pteh]hPointer to the pte}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]hKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKhj?ubj)}(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.chKhj{ubj)}(hhh]jM)}(h'The start of protecting virtual addressh]h'The start of protecting virtual address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj?ubj)}(h<``unsigned long end`` The end of protecting virtual address h](j)}(h``unsigned long end``h]jS)}(hjh]hunsigned long end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]jM)}(h%The end of protecting virtual addressh]h%The end of protecting virtual address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj?ubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj?ubeh}(h]h ]h"]h$]h&]uh1jhj#ubjM)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj#ubjM)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclean_walk (C struct) c.clean_walkhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h clean_walkh]h)}(hstruct clean_walkh](j5)}(hj8h]hstruct}(hjshhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjohhh[/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&]uh1jhjohhhjhK$ubh)}(h clean_walkh]j)}(hjmh]h clean_walk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjohhhjhK$ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjkhhhjhK$ubah}(h]jfah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhK$hjhhhubj4)}(hhh]jM)}(h1Private struct for the clean_record_pte function.h]h1Private struct for the clean_record_pte function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK7hjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhhjhK$ubeh}(h]h ](jAstructeh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(hX>**Definition**:: struct clean_walk { struct wp_walk base; pgoff_t bitmap_pgoff; unsigned long *bitmap; pgoff_t start; pgoff_t end; }; **Members** ``base`` struct wp_walk we derive from ``bitmap_pgoff`` Address_space Page offset of the first bit in **bitmap** ``bitmap`` Bitmap with one bit for each page offset in the address_space range covered. ``start`` Address_space page offset of first modified pte relative to **bitmap_pgoff** ``end`` Address_space page offset of last modified pte relative to **bitmap_pgoff**h](jM)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK;hjubj()}(hstruct clean_walk { struct wp_walk base; pgoff_t bitmap_pgoff; unsigned long *bitmap; pgoff_t start; pgoff_t end; };h]hstruct clean_walk { struct wp_walk base; pgoff_t bitmap_pgoff; unsigned long *bitmap; pgoff_t start; pgoff_t end; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK=hjubjM)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKEhjubj)}(hhh](j)}(h'``base`` struct wp_walk we derive from h](j)}(h``base``h]jS)}(hj"h]hbase}(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.chK9hjubj)}(hhh]jM)}(hstruct wp_walk we derive fromh]hstruct wp_walk we derive from}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7hK9hj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hK9hjubj)}(hJ``bitmap_pgoff`` Address_space Page offset of the first bit in **bitmap** h](j)}(h``bitmap_pgoff``h]jS)}(hj[h]h bitmap_pgoff}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK:hjUubj)}(hhh]jM)}(h8Address_space Page offset of the first bit in **bitmap**h](h.Address_space Page offset of the first bit in }(hjthhhNhNubj)}(h **bitmap**h]hbitmap}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jLhjphK:hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphK:hjubj)}(hX``bitmap`` Bitmap with one bit for each page offset in the address_space range covered. h](j)}(h ``bitmap``h]jS)}(hjh]hbitmap}(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)}(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)}(hj$h]hend}(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.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 }(hj=hhhNhNubj)}(h**bitmap_pgoff**h]h bitmap_pgoff}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jLhj9hK?hj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hK?hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclean_record_pte (C function)c.clean_record_ptehNtauh1hhjxhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKLubh)}(hclean_record_pteh]j)}(hclean_record_pteh]hclean_record_pte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKLubj )}(hI(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h](j )}(h pte_t *pteh](h)}(hhh]j)}(hpte_th]hpte_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.clean_record_pteasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpteh]hpte}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mm_walk *walkh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hmm_walkh]hmm_walk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.clean_record_pteasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hwalkh]hwalk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhKLubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhKLubah}(h]j~ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhKLhjhhubj4)}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKLhj?hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKLubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjZjHjZjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKPhj^ubj)}(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.chKNhj}ubj)}(hhh]jM)}(hPointer to the pteh]hPointer to the pte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjzubj)}(h@``unsigned long addr`` The start of virtual address to be clean h](j)}(h``unsigned long addr``h]jS)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKOhjubj)}(hhh]jM)}(h(The start of virtual address to be cleanh]h(The start of virtual address to be clean}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjzubj)}(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&]uh1jLhj hKPhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKPhjzubj)}(h:``struct mm_walk *walk`` pagetable walk callback argument h](j)}(h``struct mm_walk *walk``h]jS)}(hj.h]hstruct mm_walk *walk}(hj0hhhNhNubah}(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.chKQhj(ubj)}(hhh]jM)}(h pagetable walk callback argumenth]h pagetable walk callback argument}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjChKQhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKQhjzubeh}(h]h ]h"]h$]h&]uh1jhj^ubjM)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKShj^ubjM)}(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.chKRhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$wp_shared_mapping_range (C function)c.wp_shared_mapping_rangehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hfunsigned long wp_shared_mapping_range (struct address_space *mapping, pgoff_t first_index, pgoff_t nr)h]h)}(heunsigned long wp_shared_mapping_range(struct address_space *mapping, pgoff_t first_index, pgoff_t nr)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hwp_shared_mapping_rangeh]j)}(hwp_shared_mapping_rangeh]hwp_shared_mapping_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhKubj )}(h@(struct address_space *mapping, pgoff_t first_index, pgoff_t nr)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj'modnameN classnameNjpjs)}jv]jy)}jljsbc.wp_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjShhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hpgoff_t first_indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj~modnameN classnameNjpjs)}jv]jAc.wp_shared_mapping_rangeasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h first_indexh]h first_index}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(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]jAc.wp_shared_mapping_rangeasbuh1hhjubj)}(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 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)}(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&]uh1j3hjhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj2jHj2jIjJjKuh1hhhhjxhNhNubj)}(hXE**Parameters** ``struct address_space *mapping`` The address_space we want to write protect ``pgoff_t first_index`` The first page offset in the range ``pgoff_t nr`` Number of incremental page offsets to cover **Note** This function currently skips transhuge page-table entries, since it's intended for dirty-tracking on the PTE level. It will warn on encountering transhuge write-enabled entries, though, and can easily be extended to handle them as well. **Return** The number of ptes actually write-protected. Note that already write-protected ptes are not counted.h](jM)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj6ubj)}(hhh](j)}(hM``struct address_space *mapping`` The address_space we want to write protect h](j)}(h!``struct address_space *mapping``h]jS)}(hj[h]hstruct address_space *mapping}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjUubj)}(hhh]jM)}(h*The address_space we want to write protecth]h*The address_space we want to write protect}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphKhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphKhjRubj)}(h;``pgoff_t first_index`` The first page offset in the range h](j)}(h``pgoff_t first_index``h]jS)}(hjh]hpgoff_t first_index}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 first page offset in the rangeh]h"The first page offset in the range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjRubj)}(h;``pgoff_t nr`` Number of incremental page offsets to cover h](j)}(h``pgoff_t nr``h]jS)}(hjh]h pgoff_t nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]jM)}(h+Number of incremental page offsets to coverh]h+Number of incremental page offsets to cover}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubjM)}(h**Note**h]j)}(hjh]hNote}(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.chKhj6ubjM)}(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.chKhj6ubjM)}(h **Return**h]j)}(hj/h]hReturn}(hj1hhhNhNubah}(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.chMhj6ubjM)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.clean_record_shared_mapping_range (C function)#c.clean_record_shared_mapping_rangehNtauh1hhjxhhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhh[/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&]uh1jhjphhhjhMubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubh)}(h!clean_record_shared_mapping_rangeh]j)}(h!clean_record_shared_mapping_rangeh]h!clean_record_shared_mapping_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjphhhjhMubj )}(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}(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.clean_record_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hmappingh]hmapping}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hpgoff_t first_indexh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjDmodnameN classnameNjpjs)}jv]j#c.clean_record_shared_mapping_rangeasbuh1hhj;ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h first_indexh]h first_index}(hjnhhhNhNubah}(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.clean_record_shared_mapping_rangeasbuh1hhjubj)}(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 )}(hpgoff_t bitmap_pgoffh](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 bitmap_pgoffh]h bitmap_pgoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long *bitmaph](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjOhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hbitmaph]hbitmap}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hpgoff_t *starth](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjzmodnameN classnameNjpjs)}jv]j#c.clean_record_shared_mapping_rangeasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjqubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h pgoff_t *endh](h)}(hhh]j)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j#c.clean_record_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)}(hendh]hend}(hjhhhNhNubah}(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)}(h3Clean and record all ptes in an address space rangeh]h3Clean and record all ptes in an address space range}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhj-hhubah}(h]h ]h"]h$]h&]uh1j3hjihhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjHjHjHjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjLubj)}(hhh](j)}(hE``struct address_space *mapping`` The address_space we want to clean h](j)}(h!``struct address_space *mapping``h]jS)}(hjqh]hstruct address_space *mapping}(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.chMhjkubj)}(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&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubj)}(h;``pgoff_t first_index`` The first page offset in the range h](j)}(h``pgoff_t first_index``h]jS)}(hjh]hpgoff_t first_index}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 first page offset in the rangeh]h"The first page offset in the range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubj)}(h;``pgoff_t nr`` Number of incremental page offsets to cover h](j)}(h``pgoff_t nr``h]jS)}(hjh]h pgoff_t nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjubj)}(hhh]jM)}(h+Number of incremental page offsets to coverh]h+Number of incremental page offsets to cover}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubj)}(hH``pgoff_t bitmap_pgoff`` The page offset of the first bit in **bitmap** h](j)}(h``pgoff_t bitmap_pgoff``h]jS)}(hj h]hpgoff_t bitmap_pgoff}(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.chMhj ubj)}(hhh]jM)}(h.The page offset of the first bit in **bitmap**h](h$The page offset of the first bit in }(hj5 hhhNhNubj)}(h **bitmap**h]hbitmap}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5 ubeh}(h]h ]h"]h$]h&]uh1jLhj1 hMhj2 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj1 hMhjhubj)}(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)}(hjc h]hunsigned long *bitmap}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhja ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhj] ubj)}(hhh]jM)}(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 }(hj| hhhNhNubj)}(h**nr**h]hnr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj| ubh1 bits. The bitmap needs to cover the whole range }(hj| hhhNhNubj)}(h**first_index**h]h first_index}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj| ubh..**first_index** + }(hj| hhhNhNubj)}(h**nr**h]hnr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj| ubh.}(hj| hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjy ubah}(h]h ]h"]h$]h&]uh1jhj] ubeh}(h]h ]h"]h$]h&]uh1jhjx hMhjhubj)}(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)}(hj h]hpgoff_t *start}(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.chMhj ubj)}(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 }(hj hhhNhNubj)}(h **bitmap**h]hbitmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh2. is modified as new bits are set by the function.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjhubj)}(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)}(hj h]h pgoff_t *end}(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.chM!hj ubj)}(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 }(hj8 hhhNhNubj)}(h **bitmap**h]hbitmap}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8 ubhF. none set. The value is modified as new bits are set by the function.}(hj8 hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM hj5 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj4 hM!hjhubeh}(h]h ]h"]h$]h&]uh1jhjLubjM)}(h**Description**h]j)}(hjm h]h Description}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk ubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM#hjLubjM)}(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"hjLubj.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.}(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 ubeh}(h]h ]h"]h$]h&]jPLjI uh1j-Lhj hM&hjLubjM)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM+hjLubjM)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM1hjLubjM)}(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.chM6hjLubjM)}(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.chM7hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubj|_)}(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{_hjxhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_addr_in_chunk (C function)c.pcpu_addr_in_chunkhNtauh1hhjxhhhNhNubh)}(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 }(hjN hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj< hhhjM 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< hhhjM hKubj )}(h&(struct pcpu_chunk *chunk, void *addr)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hj| hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjx ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx 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)}jljb sbc.pcpu_addr_in_chunkasbuh1hhjx ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjx ubj)}(hchunkh]hchunk}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjt 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 hjt ubeh}(h]h ]h"]h$]h&]jjuh1j hj< hhhjM hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj8 hhhjM hKubah}(h]j3 ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjM hKhj5 hhubj4)}(hhh]jM)}(h.check if the address is served from this chunkh]h.check if the address is served from this chunk}(hjA 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&]uh1j3hj5 hhhjM hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjY jHjY jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjc h]h Parameters}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja 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 hKhjy ubj)}(h``void *addr`` percpu address h](j)}(h``void *addr``h]jS)}(hj h]h void *addr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhj ubj)}(hhh]jM)}(hpercpu addressh]hpercpu address}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjy 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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"pcpu_check_block_hint (C function)c.pcpu_check_block_hinthNtauh1hhjxhhhNhNubh)}(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&]uh1jhj7 hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM4ubj)}(h h]h }(hjI hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7 hhhjH hM4ubh)}(hpcpu_check_block_hinth]j)}(hpcpu_check_block_hinth]hpcpu_check_block_hint}(hj[ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj7 hhhjH hM4ubj )}(h5(struct pcpu_block_md *block, int bits, size_t align)h](j )}(hstruct pcpu_block_md *blockh](j5)}(hj8h]hstruct}(hjw hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjs ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs 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_hintasbuh1hhjs ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs ubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjs ubj)}(hblockh]hblock}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjo 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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjo ubj )}(h size_t alignh](h)}(hhh]j)}(hsize_th]hsize_t}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj#modnameN classnameNjpjs)}jv]j c.pcpu_check_block_hintasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(halignh]halign}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjo ubeh}(h]h ]h"]h$]h&]jjuh1j hj7 hhhjH hM4ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj3 hhhjH hM4ubah}(h]j. ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjH hM4hj0 hhubj4)}(hhh]jM)}(hcheck against the contig hinth]hcheck against the contig hint}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM4hjthhubah}(h]h ]h"]h$]h&]uh1j3hj0 hhhjH hM4ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chM8hjubj)}(hhh](j)}(h2``struct pcpu_block_md *block`` block of interest h](j)}(h``struct pcpu_block_md *block``h]jS)}(hjh]hstruct pcpu_block_md *block}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM5hjubj)}(hhh]jM)}(hblock of interesth]hblock of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubj)}(h ``int bits`` size of allocation h](j)}(h ``int bits``h]jS)}(hjh]hint bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM6hjubj)}(hhh]jM)}(hsize of allocationh]hsize of allocation}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubj)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]jS)}(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)}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj?hM7hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hM7hjubeh}(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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM9hjubjM)}(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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM8hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%pcpu_next_md_free_region (C function)c.pcpu_next_md_free_regionhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hQvoid pcpu_next_md_free_region (struct pcpu_chunk *chunk, int *bit_off, int *bits)h]h)}(hPvoid pcpu_next_md_free_region(struct pcpu_chunk *chunk, int *bit_off, int *bits)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMcubh)}(hpcpu_next_md_free_regionh]j)}(hpcpu_next_md_free_regionh]hpcpu_next_md_free_region}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMcubj )}(h3(struct pcpu_chunk *chunk, int *bit_off, int *bits)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.pcpu_next_md_free_regionasbuh1hhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj3hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hchunkh]hchunk}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int *bit_offh](j)}(hinth]hint}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjF )}(hjI h]h*}(hjuhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjUubj)}(hbit_offh]hbit_off}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h int *bitsh](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)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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)}(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&]uh1j3hjhhhjhMcubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.chMghj 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}(hj1hhhNhNubah}(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.chMdhj)ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhMdhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMdhj&ubj)}(h``int *bit_off`` chunk offset h](j)}(h``int *bit_off``h]jS)}(hjhh]h int *bit_off}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMehjbubj)}(hhh]jM)}(h chunk offseth]h chunk offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}hMehj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMehj&ubj)}(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.chMfhjubj)}(hhh]jM)}(hsize of free areah]hsize of free area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhj&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:128: ./mm/percpu.chMhhj ubjM)}(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.chMghj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!pcpu_next_fit_region (C function)c.pcpu_next_fit_regionhNtauh1hhjxhhhNhNubh)}(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}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj/hMubh)}(hpcpu_next_fit_regionh]j)}(hpcpu_next_fit_regionh]hpcpu_next_fit_region}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj/hMubj )}(hN(struct pcpu_chunk *chunk, int alloc_bits, int align, int *bit_off, int *bits)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hj^hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj~modnameN classnameNjpjs)}jv]jy)}jljDsbc.pcpu_next_fit_regionasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjZubj)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubj )}(hint alloc_bitsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h alloc_bitsh]h alloc_bits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubj )}(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}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubj )}(h int *bit_offh](j)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjF )}(hjI h]h*}(hjVhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj6ubj)}(hbit_offh]hbit_off}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubj )}(h int *bitsh](j)}(hinth]hint}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjxubj)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubeh}(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.finds fit areas for a given allocation requesth]h.finds fit areas for a given allocation request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj/hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.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%hMhjubj)}(h&``int alloc_bits`` size of allocation h](j)}(h``int alloc_bits``h]jS)}(hjIh]hint alloc_bits}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjGubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjCubj)}(hhh]jM)}(hsize of allocationh]hsize of allocation}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhjubj)}(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.chMhj|ubj)}(hhh]jM)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int *bit_off`` chunk offset h](j)}(h``int *bit_off``h]jS)}(hjh]h int *bit_off}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj)}(hhh]jM)}(h chunk offseth]h chunk offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``int *bits`` size of free area h](j)}(h ``int *bits``h]jS)}(hjh]h int *bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj)}(hhh]jM)}(hsize of free areah]hsize of free area}(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&]uh1jhjubjM)}(h**Description**h]j)}(hj/h]h Description}(hj1hhhNhNubah}(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.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.}(hjEhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_mem_zalloc (C function)c.pcpu_mem_zallochNtauh1hhjxhhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjphhhjhMubh)}(hpcpu_mem_zalloch]j)}(hpcpu_mem_zalloch]hpcpu_mem_zalloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjphhhjhMubj )}(h(size_t size, gfp_t gfp)h](j )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.pcpu_mem_zallocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jc.pcpu_mem_zallocasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgfph]hgfp}(hj7hhhNhNubah}(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)}(hallocate memoryh]hallocate memory}(hjahhhNhNubah}(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&]uh1j3hjihhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjyjHjyjIjJjKuh1hhhhjxhNhNubj)}(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.chMhj}ubj)}(hhh](j)}(h"``size_t size`` 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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj)}(hhh]jM)}(hbytes to allocateh]hbytes to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``gfp_t gfp`` allocation flags h](j)}(h ``gfp_t gfp``h]jS)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj)}(hhh]jM)}(hallocation flagsh]hallocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj}ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj}ubjM)}(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 }(hj,hhhNhNubj)}(h**size**h]hsize}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh bytes. If }(hj,hhhNhNubj)}(h**size**h]hsize}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh 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.}(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)}(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:128: ./mm/percpu.chMhj}ubjM)}(h:Pointer to the allocated area on success, NULL on failure.h]h:Pointer to the allocated area on success, NULL on failure.}(hjwhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_mem_free (C function)c.pcpu_mem_freehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hvoid pcpu_mem_free (void *ptr)h]h)}(hvoid pcpu_mem_free(void *ptr)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)}(h pcpu_mem_freeh]j)}(h pcpu_mem_freeh]h pcpu_mem_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h (void *ptr)h]j )}(h void *ptrh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hptrh]hptr}(hj hhhNhNubah}(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 free memoryh]h free memory}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj3hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjNjHjNjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjRubj)}(hhh]j)}(h``void *ptr`` memory to free h](j)}(h ``void *ptr``h]jS)}(hjwh]h void *ptr}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjqubj)}(hhh]jM)}(hmemory to freeh]hmemory to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjRubjM)}(hJFree **ptr**. **ptr** should have been allocated using pcpu_mem_zalloc().h](hFree }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh4 should have been allocated using pcpu_mem_zalloc().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h pcpu_chunk_relocate (C function)c.pcpu_chunk_relocatehNtauh1hhjxhhhNhNubh)}(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 }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hMubh)}(hpcpu_chunk_relocateh]j)}(hpcpu_chunk_relocateh]hpcpu_chunk_relocate}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj)hMubj )}(h%(struct pcpu_chunk *chunk, int oslot)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hjXhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjxmodnameN classnameNjpjs)}jv]jy)}jlj>sbc.pcpu_chunk_relocateasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjTubj)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPubj )}(h int osloth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hosloth]hoslot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjPubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj)hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj)hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj)hMhjhhubj4)}(hhh]jM)}(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.chMhj hhubah}(h]h ]h"]h$]h&]uh1j3hjhhhj)hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj(jHj(jIjJjKuh1hhhhjxhNhNubj)}(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)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM#hj,ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hjQh]hstruct pcpu_chunk *chunk}(hjShhhNhNubah}(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 hjKubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfhM hjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhM hjHubj)}(h*``int oslot`` the previous slot it was on h](j)}(h ``int oslot``h]jS)}(hjh]h int oslot}(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)}(hthe previous slot it was onh]hthe previous slot it was on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjHubeh}(h]h ]h"]h$]h&]uh1jhj,ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM#hj,ubjM)}(hThis function is called after an allocation or free changed **chunk**. New slot according to the changed state is determined and **chunk** is moved to the slot. Note that the reserved chunk is never put on chunk slots.h](hcontig_hint. chunk_md->contig_hint may be off by up to a page, but it will never be more than the available space. If the contig hint is contained in one block, it will be accurate.h](jM)}(h**Parameters**h]j)}(hj)%h]h Parameters}(hj+%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'%ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj#%ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hjH%h]hstruct pcpu_chunk *chunk}(hjJ%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjF%ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjB%ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(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``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)}(hj%h]hint bits}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj%ubj)}(hhh]jM)}(hsize of requesth]hsize of request}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj?%ubeh}(h]h ]h"]h$]h&]uh1jhj#%ubjM)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj#%ubjM)}(hUpdates metadata for the allocation path. This avoids a blind block refresh by making use of the block contig hints. If this fails, it scans forward and backward to determine the extent of the free area. This is capped at the boundary of blocks.h]hUpdates metadata for the allocation path. This avoids a blind block refresh by making use of the block contig hints. If this fails, it scans forward and backward to determine the extent of the free area. This is capped at the boundary of blocks.}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj#%ubjM)}(hXuA chunk update is triggered if a page becomes free, a block becomes free, or the free spans across blocks. This tradeoff is to minimize iterating over the block metadata to update chunk_md->contig_hint. chunk_md->contig_hint may be off by up to a page, but it will never be more than the available space. If the contig hint is contained in one block, it will be accurate.h]hXuA chunk update is triggered if a page becomes free, a block becomes free, or the free spans across blocks. This tradeoff is to minimize iterating over the block metadata to update chunk_md->contig_hint. chunk_md->contig_hint may be off by up to a page, but it will never be more than the available space. If the contig hint is contained in one block, it will be accurate.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj#%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_is_populated (C function)c.pcpu_is_populatedhNtauh1hhjxhhhNhNubh)}(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}(hjI&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE&hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM%ubj)}(h h]h }(hjW&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE&hhhjV&hM%ubh)}(hpcpu_is_populatedh]j)}(hpcpu_is_populatedh]hpcpu_is_populated}(hji&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje&ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjE&hhhjV&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}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj&modnameN classnameNjpjs)}jv]jy)}jljk&sbc.pcpu_is_populatedasbuh1hhj&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}(hj,'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj('ubj)}(h h]h }(hj:'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj('ubj)}(hbitsh]hbits}(hjH'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj('ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj}&ubj )}(h int *next_offh](j)}(hinth]hint}(hja'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]'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)}(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 hjE&hhhjV&hM%ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjA&hhhjV&hM%ubah}(h]j<&ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjV&hM%hj>&hhubj4)}(hhh]jM)}(h%determines if the region is populatedh]h%determines if the region is populated}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM%hj'hhubah}(h]h ]h"]h$]h&]uh1j3hj>&hhhjV&hM%ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj'jHj'jIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int bit_off`` chunk offset ``int bits`` size of area ``int *next_off`` return value for the next offset to start searching **Description** For atomic allocations, check if the backing pages are populated. **Return** Bool if the backing pages are populated. next_index is to skip over unpopulated blocks in pcpu_find_block_fit.h](jM)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM)hj'ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hj'h]hstruct pcpu_chunk *chunk}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM&hj'ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj (hM&hj (ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj (hM&hj'ubj)}(h``int bit_off`` chunk offset h](j)}(h``int bit_off``h]jS)}(hj.(h]h int bit_off}(hj0(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}(hjG(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjC(hM'hjD(ubah}(h]h ]h"]h$]h&]uh1jhj((ubeh}(h]h ]h"]h$]h&]uh1jhjC(hM'hj'ubj)}(h``int bits`` size of area h](j)}(h ``int bits``h]jS)}(hjg(h]hint bits}(hji(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje(ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM(hja(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&]uh1jhja(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)}(hj(h]h int *next_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)}(h3return value for the next offset to start searchingh]h3return value for the next offset to start searching}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj(hM)hj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hM)hj'ubeh}(h]h ]h"]h$]h&]uh1jhj'ubjM)}(h**Description**h]j)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM+hj'ubjM)}(hAFor atomic allocations, check if the backing pages are populated.h]hAFor atomic allocations, check if the backing pages are populated.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM*hj'ubjM)}(h **Return**h]j)}(hj)h]hReturn}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM,hj'ubjM)}(hnBool if the backing pages are populated. next_index is to skip over unpopulated blocks in pcpu_find_block_fit.h]hnBool if the backing pages are populated. next_index is to skip over unpopulated blocks in pcpu_find_block_fit.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM-hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h pcpu_find_block_fit (C function)c.pcpu_find_block_fithNtauh1hhjxhhhNhNubh)}(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}(hjG)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC)hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMDubj)}(h h]h }(hjV)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC)hhhjU)hMDubh)}(hpcpu_find_block_fith]j)}(hpcpu_find_block_fith]hpcpu_find_block_fit}(hjh)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd)ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjC)hhhjU)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}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj)modnameN classnameNjpjs)}jv]jy)}jljj)sbc.pcpu_find_block_fitasbuh1hhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjF )}(hjI h]h*}(hj)hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj)ubj)}(hchunkh]hchunk}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|)ubj )}(hint 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 reftargetj0*modnameN classnameNjpjs)}jv]j)c.pcpu_find_block_fitasbuh1hhj'*ubj)}(h h]h }(hjL*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'*ubj)}(halignh]halign}(hjZ*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|)ubj )}(h bool pop_onlyh](j)}(hj)h]hbool}(hjs*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo*ubj)}(hpop_onlyh]hpop_only}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo*ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|)ubeh}(h]h ]h"]h$]h&]jjuh1j hjC)hhhjU)hMDubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj?)hhhjU)hMDubah}(h]j:)ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjU)hMDhj<)hhubj4)}(hhh]jM)}(h(finds the block index to start searchingh]h(finds the block index to start searching}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMDhj*hhubah}(h]h ]h"]h$]h&]uh1j3hj<)hhhjU)hMDubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj*jHj*jIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMHhj*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)}(hj2+h]hint alloc_bits}(hj4+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0+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}(hjK+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjG+hMFhjH+ubah}(h]h ]h"]h$]h&]uh1jhj,+ubeh}(h]h ]h"]h$]h&]uh1jhjG+hMFhj*ubj)}(h9``size_t align`` alignment of area (max PAGE_SIZE bytes) h](j)}(h``size_t align``h]jS)}(hjk+h]h size_t align}(hjm+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhji+ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMGhje+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&]uh1jhje+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)}(hj+h]h bool pop_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.chMHhj+ubj)}(hhh]jM)}(huse populated regions onlyh]huse populated regions only}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+hMHhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMHhj*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.chMJhj*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.chMIhj*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.chMQhj*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.chMRhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_alloc_area (C function)c.pcpu_alloc_areahNtauh1hhjxhhhNhNubh)}(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}(hjK,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG,hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjZ,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG,hhhjY,hMubh)}(hpcpu_alloc_areah]j)}(hpcpu_alloc_areah]hpcpu_alloc_area}(hjl,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh,ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjG,hhhjY,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&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj,modnameN classnameNjpjs)}jv]jy)}jljn,sbc.pcpu_alloc_areaasbuh1hhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjF )}(hjI h]h*}(hj,hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj,ubj)}(hchunkh]hchunk}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj,ubj )}(hint 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}(hj2-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/-ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4-modnameN classnameNjpjs)}jv]j,c.pcpu_alloc_areaasbuh1hhj+-ubj)}(h h]h }(hjP-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}(hjw-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs-ubj)}(hstarth]hstart}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs-ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj,ubeh}(h]h ]h"]h$]h&]jjuh1j hjG,hhhjY,hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjC,hhhjY,hMubah}(h]j>,ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjY,hMhj@,hhubj4)}(hhh]jM)}(h#allocates an area from a pcpu_chunkh]h#allocates an area from a pcpu_chunk}(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@,hhhjY,hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj-jHj-jIjJjKuh1hhhhjxhNhNubj)}(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)}(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)}(h7``int alloc_bits`` size of request in allocation units h](j)}(h``int alloc_bits``h]jS)}(hj7.h]hint alloc_bits}(hj9.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5.ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj1.ubj)}(hhh]jM)}(h#size of request in allocation unitsh]h#size of request in allocation units}(hjP.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjL.hMhjM.ubah}(h]h ]h"]h$]h&]uh1jhj1.ubeh}(h]h ]h"]h$]h&]uh1jhjL.hMhj-ubj)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]jS)}(hjp.h]h size_t align}(hjr.hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjn.ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjj.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&]uh1jhjj.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.chMhj.ubj)}(hhh]jM)}(hbit_off to start searchingh]hbit_off to start searching}(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)}(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}(hj8/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.chMhj-ubjM)}(h **Return**h]j)}(hjS/h]hReturn}(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.chMhj-ubjM)}(hOAllocated addr offset in **chunk** on success. -1 if no matching area is found.h](hAllocated addr offset in }(hji/hhhNhNubj)}(h **chunk**h]hchunk}(hjq/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji/ubh- on success. -1 if no matching area is found.}(hji/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_free_area (C function)c.pcpu_free_areahNtauh1hhjxhhhNhNubh)}(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 }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj/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/hhhj/hMubj )}(h#(struct pcpu_chunk *chunk, int 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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj0modnameN classnameNjpjs)}jv]jy)}jlj/sbc.pcpu_free_areaasbuh1hhj/ubj)}(h h]h }(hj%0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjF )}(hjI h]h*}(hj30hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj/ubj)}(hchunkh]hchunk}(hj@0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj/ubj )}(hint offh](j)}(hinth]hint}(hjY0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU0ubj)}(h h]h }(hjg0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU0ubj)}(hoffh]hoff}(hju0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU0ubeh}(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)}(hfrees the corresponding offseth]hfrees the corresponding offset}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj0hhubah}(h]h ]h"]h$]h&]uh1j3hj/hhhj/hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj0jHj0jIjJjKuh1hhhhjxhNhNubj)}(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)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj0ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hj0h]hstruct pcpu_chunk *chunk}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj0ubj)}(hhh]jM)}(hchunk of interesth]hchunk of interest}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubj)}(h#``int off`` addr offset into chunk h](j)}(h ``int off``h]jS)}(hj1h]hint off}(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.chMhj1ubj)}(hhh]jM)}(haddr offset into chunkh]haddr offset into chunk}(hj21hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.1hMhj/1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj.1hMhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubjM)}(h**Description**h]j)}(hjT1h]h Description}(hjV1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR1ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj0ubjM)}(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.}(hjj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj0ubjM)}(h **Return**h]j)}(hj{1h]hReturn}(hj}1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy1ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj0ubjM)}(hNumber of freed bytes.h]hNumber of freed bytes.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_alloc_first_chunk (C function)c.pcpu_alloc_first_chunkhNtauh1hhjxhhhNhNubh)}(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}(hj1hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj1hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM;ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hM;ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj1modnameN classnameNjpjs)}jv]jy)}jlpcpu_alloc_first_chunksbc.pcpu_alloc_first_chunkasbuh1hhj1hhhj1hM;ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hM;ubjF )}(hjI h]h*}(hj2hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj1hhhj1hM;ubh)}(hpcpu_alloc_first_chunkh]j)}(hj1h]hpcpu_alloc_first_chunk}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj1hhhj1hM;ubj )}(h&(unsigned long tmp_addr, int map_size)h](j )}(hunsigned long tmp_addrh](j)}(hunsignedh]hunsigned}(hj:2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj62ubj)}(h h]h }(hjH2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj62ubj)}(hlongh]hlong}(hjV2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj62ubj)}(h h]h }(hjd2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj62ubj)}(htmp_addrh]htmp_addr}(hjr2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj62ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj22ubj )}(h int map_sizeh](j)}(hinth]hint}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hmap_sizeh]hmap_size}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj22ubeh}(h]h ]h"]h$]h&]jjuh1j hj1hhhj1hM;ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj1hhhj1hM;ubah}(h]j1ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj1hM;hj1hhubj4)}(hhh]jM)}(h)creates chunks that serve the first chunkh]h)creates chunks that serve the first chunk}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM;hj2hhubah}(h]h ]h"]h$]h&]uh1j3hj1hhhj1hM;ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj2jHj2jIjJjKuh1hhhhjxhNhNubj)}(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)}(hj2h]h Parameters}(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?hj2ubj)}(hhh](j)}(h:``unsigned long tmp_addr`` the start of the region served h](j)}(h``unsigned long tmp_addr``h]jS)}(hj3h]hunsigned long tmp_addr}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj3ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM<hj 3ubj)}(hhh]jM)}(hthe start of the region servedh]hthe start of the region served}(hj+3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'3hM<hj(3ubah}(h]h ]h"]h$]h&]uh1jhj 3ubeh}(h]h ]h"]h$]h&]uh1jhj'3hM<hj 3ubj)}(h+``int map_size`` size of the region served h](j)}(h``int map_size``h]jS)}(hjK3h]h int map_size}(hjM3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjI3ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM=hjE3ubj)}(hhh]jM)}(hsize of the region servedh]hsize of the region served}(hjd3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`3hM=hja3ubah}(h]h ]h"]h$]h&]uh1jhjE3ubeh}(h]h ]h"]h$]h&]uh1jhj`3hM=hj 3ubeh}(h]h ]h"]h$]h&]uh1jhj2ubjM)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM?hj2ubjM)}(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 }(hj3hhhNhNubj)}(h **tmp_addr**h]htmp_addr}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh 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.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM>hj2ubjM)}(h **Return**h]j)}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMChj2ubjM)}(h9Chunk serving the region at **tmp_addr** of **map_size**.h](hChunk serving the region at }(hj3hhhNhNubj)}(h **tmp_addr**h]htmp_addr}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh of }(hj3hhhNhNubj)}(h **map_size**h]hmap_size}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMDhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!pcpu_chunk_populated (C function)c.pcpu_chunk_populatedhNtauh1hhjxhhhNhNubh)}(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}(hj(4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$4hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj74hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$4hhhj64hMubh)}(hpcpu_chunk_populatedh]j)}(hpcpu_chunk_populatedh]hpcpu_chunk_populated}(hjI4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE4ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj$4hhhj64hMubj )}(h8(struct pcpu_chunk *chunk, int page_start, int page_end)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hje4hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hja4ubj)}(h h]h }(hjr4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja4ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj4modnameN classnameNjpjs)}jv]jy)}jljK4sbc.pcpu_chunk_populatedasbuh1hhja4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja4ubjF )}(hjI h]h*}(hj4hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hja4ubj)}(hchunkh]hchunk}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]4ubj )}(hint page_starth](j)}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h page_starth]h page_start}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]4ubj )}(h int page_endh](j)}(hinth]hint}(hj 5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hpage_endh]hpage_end}(hj(5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj]4ubeh}(h]h ]h"]h$]h&]jjuh1j hj$4hhhj64hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj 4hhhj64hMubah}(h]j4ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj64hMhj4hhubj4)}(hhh]jM)}(hpost-population bookkeepingh]hpost-population bookkeeping}(hjR5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjO5hhubah}(h]h ]h"]h$]h&]uh1j3hj4hhhj64hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjj5jHjj5jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjt5h]h Parameters}(hjv5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr5ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjn5ubj)}(hhh](j)}(h<``struct pcpu_chunk *chunk`` pcpu_chunk which got populated h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hj5h]hstruct pcpu_chunk *chunk}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj5ubj)}(hhh]jM)}(hpcpu_chunk which got populatedh]hpcpu_chunk which got populated}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj5ubj)}(h"``int page_start`` the start page h](j)}(h``int page_start``h]jS)}(hj5h]hint page_start}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj5ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj5ubj)}(hhh]jM)}(hthe start pageh]hthe start page}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj5ubj)}(h``int page_end`` the end page h](j)}(h``int page_end``h]jS)}(hj6h]h int page_end}(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.chMhj5ubj)}(hhh]jM)}(h the end pageh]h the end page}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubeh}(h]h ]h"]h$]h&]uh1jhjn5ubjM)}(h**Description**h]j)}(hj@6h]h Description}(hjB6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>6ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjn5ubjM)}(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 [}(hjV6hhhNhNubj)}(h**page_start**h]h page_start}(hj^6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV6ubh&,**page_end**) have been populated to }(hjV6hhhNhNubj)}(h **chunk**h]hchunk}(hjp6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV6ubhd. Update the bookkeeping information accordingly. Must be called after each successful population.}(hjV6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjn5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_chunk_depopulated (C function)c.pcpu_chunk_depopulatedhNtauh1hhjxhhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hMubh)}(hpcpu_chunk_depopulatedh]j)}(hpcpu_chunk_depopulatedh]hpcpu_chunk_depopulated}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj6hhhj6hMubj )}(h8(struct pcpu_chunk *chunk, int page_start, int page_end)h](j )}(hstruct pcpu_chunk *chunkh](j5)}(hj8h]hstruct}(hj6hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(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)}jlj6sbc.pcpu_chunk_depopulatedasbuh1hhj6ubj)}(h h]h }(hj$7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjF )}(hjI h]h*}(hj27hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj6ubj)}(hchunkh]hchunk}(hj?7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6ubj )}(hint page_starth](j)}(hinth]hint}(hjX7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT7ubj)}(h h]h }(hjf7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT7ubj)}(h page_starth]h page_start}(hjt7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6ubj )}(h int page_endh](j)}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hpage_endh]hpage_end}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj6ubeh}(h]h ]h"]h$]h&]jjuh1j hj6hhhj6hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj6hhhj6hMubah}(h]j6ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj6hMhj6hhubj4)}(hhh]jM)}(hpost-depopulation bookkeepingh]hpost-depopulation bookkeeping}(hj7hhhNhNubah}(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&]uh1j3hj6hhhj6hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj7jHj7jIjJjKuh1hhhhjxhNhNubj)}(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)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj7ubj)}(hhh](j)}(h>``struct pcpu_chunk *chunk`` pcpu_chunk which got depopulated h](j)}(h``struct pcpu_chunk *chunk``h]jS)}(hj8h]hstruct pcpu_chunk *chunk}(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.chMhj8ubj)}(hhh]jM)}(h pcpu_chunk which got depopulatedh]h pcpu_chunk which got depopulated}(hj-8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)8hMhj*8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj)8hMhj 8ubj)}(h"``int page_start`` the start page h](j)}(h``int page_start``h]jS)}(hjM8h]hint page_start}(hjO8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjK8ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjG8ubj)}(hhh]jM)}(hthe start pageh]hthe start page}(hjf8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjb8hMhjc8ubah}(h]h ]h"]h$]h&]uh1jhjG8ubeh}(h]h ]h"]h$]h&]uh1jhjb8hMhj 8ubj)}(h``int page_end`` the end page h](j)}(h``int page_end``h]jS)}(hj8h]h int page_end}(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.chMhj8ubj)}(hhh]jM)}(h the end pageh]h the end page}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhj 8ubeh}(h]h ]h"]h$]h&]uh1jhj7ubjM)}(h**Description**h]j)}(hj8h]h Description}(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.chMhj7ubjM)}(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 [}(hj8hhhNhNubj)}(h**page_start**h]h page_start}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh*,**page_end**) have been depopulated from }(hj8hhhNhNubj)}(h **chunk**h]hchunk}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhe. Update the bookkeeping information accordingly. Must be called after each successful depopulation.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_chunk_addr_search (C function)c.pcpu_chunk_addr_searchhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h7struct pcpu_chunk * pcpu_chunk_addr_search (void *addr)h]h)}(h5struct pcpu_chunk *pcpu_chunk_addr_search(void *addr)h](j5)}(hj8h]hstruct}(hj*9hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj&9hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM1ubj)}(h h]h }(hj89hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&9hhhj79hM1ubh)}(hhh]j)}(h pcpu_chunkh]h pcpu_chunk}(hjI9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF9ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjK9modnameN classnameNjpjs)}jv]jy)}jlpcpu_chunk_addr_searchsbc.pcpu_chunk_addr_searchasbuh1hhj&9hhhj79hM1ubj)}(h h]h }(hjj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&9hhhj79hM1ubjF )}(hjI h]h*}(hjx9hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj&9hhhj79hM1ubh)}(hpcpu_chunk_addr_searchh]j)}(hjg9h]hpcpu_chunk_addr_search}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj&9hhhj79hM1ubj )}(h (void *addr)h]j )}(h void *addrh](j)}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjF )}(hjI h]h*}(hj9hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj9ubj)}(haddrh]haddr}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj9ubah}(h]h ]h"]h$]h&]jjuh1j hj&9hhhj79hM1ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj"9hhhj79hM1ubah}(h]j9ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj79hM1hj9hhubj4)}(hhh]jM)}(h,determine chunk containing specified addressh]h,determine chunk containing specified address}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM1hj9hhubah}(h]h ]h"]h$]h&]uh1j3hj9hhhj79hM1ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj:jHj:jIjJjKuh1hhhhjxhNhNubj)}(hX!**Parameters** ``void *addr`` address for which the chunk needs to be determined. **Description** This is an internal function that handles all but static allocations. Static percpu address values should never be passed into the allocator. **Return** The address of the found chunk.h](jM)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM5hj:ubj)}(hhh]j)}(hC``void *addr`` address for which the chunk needs to be determined. h](j)}(h``void *addr``h]jS)}(hj8:h]h void *addr}(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.chM2hj2:ubj)}(hhh]jM)}(h3address for which the chunk needs to be determined.h]h3address for which the chunk needs to be determined.}(hjQ:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjM:hM2hjN:ubah}(h]h ]h"]h$]h&]uh1jhj2:ubeh}(h]h ]h"]h$]h&]uh1jhjM:hM2hj/:ubah}(h]h ]h"]h$]h&]uh1jhj:ubjM)}(h**Description**h]j)}(hjs:h]h Description}(hju:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq:ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM4hj:ubjM)}(hThis is an internal function that handles all but static allocations. Static percpu address values should never be passed into the allocator.h]hThis is an internal function that handles all but static allocations. Static percpu address values should never be passed into the allocator.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM3hj:ubjM)}(h **Return**h]j)}(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.chM6hj:ubjM)}(hThe address of the found chunk.h]hThe address of the found chunk.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM7hj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_alloc (C function) c.pcpu_allochNtauh1hhjxhhhNhNubh)}(hhh](h)}(hPvoid __percpu * pcpu_alloc (size_t size, size_t align, bool reserved, gfp_t gfp)h]h)}(hNvoid __percpu *pcpu_alloc(size_t size, size_t align, bool reserved, gfp_t gfp)h](j)}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hMubh__percpu}(hj:hhhNhNubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hMubjF )}(hjI h]h*}(hj;hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj:hhhj:hMubh)}(h pcpu_alloch]j)}(h pcpu_alloch]h pcpu_alloc}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj:hhhj:hMubj )}(h5(size_t size, size_t align, bool reserved, gfp_t gfp)h](j )}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj>;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;;ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj@;modnameN classnameNjpjs)}jv]jy)}jlj!;sb c.pcpu_allocasbuh1hhj7;ubj)}(h h]h }(hj^;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7;ubj)}(hsizeh]hsize}(hjl;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7;ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3;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]jZ; c.pcpu_allocasbuh1hhj;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 hj3;ubj )}(h bool reservedh](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)}(hreservedh]hreserved}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3;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]jZ; c.pcpu_allocasbuh1hhj;ubj)}(h h]h }(hj"<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hgfph]hgfp}(hj0<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj3;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)}(hthe percpu allocatorh]hthe percpu allocator}(hjZ<hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjW<hhubah}(h]h ]h"]h$]h&]uh1j3hj:hhhj:hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjr<jHjr<jIjJjKuh1hhhhjxhNhNubj)}(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&]uh1jhjz<ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjv<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}(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 area to allocate in bytesh]h!size of area to allocate in bytes}(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@``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)}(hjF=h]h gfp_t gfp}(hjH=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjD=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&]uh1jhjv<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.chMhjv<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}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh bytes aligned at }(hj=hhhNhNubj)}(h **align**h]halign}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh. If }(hj=hhhNhNubj)}(h**gfp**h]hgfp}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh doesn’t contain }(hj=hhhNhNubjS)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hj=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.chMhjv<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.chMhjv<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.chMhjv<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpcpu_balance_free (C function)c.pcpu_balance_freehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h(void pcpu_balance_free (bool empty_only)h]h)}(h'void pcpu_balance_free(bool empty_only)h](j)}(hvoidh]hvoid}(hjG>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC>hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjV>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC>hhhjU>hMubh)}(hpcpu_balance_freeh]j)}(hpcpu_balance_freeh]hpcpu_balance_free}(hjh>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd>ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjC>hhhjU>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}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj|>ubah}(h]h ]h"]h$]h&]jjuh1j hjC>hhhjU>hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj?>hhhjU>hMubah}(h]j:>ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjU>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.chMhj>hhubah}(h]h ]h"]h$]h&]uh1j3hj<>hhhjU>hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj>jHj>jIjJjKuh1hhhhjxhNhNubj)}(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.chMhj>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&]uh1jhj>ubjM)}(h**Description**h]j)}(hjE?h]h Description}(hjG?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC?ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj>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}(hjc?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.chMhj>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.chMhj>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.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_balance_populated (C function)c.pcpu_balance_populatedhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h"void pcpu_balance_populated (void)h]h)}(h!void pcpu_balance_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.chMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhj?hMubh)}(hpcpu_balance_populatedh]j)}(hpcpu_balance_populatedh]hpcpu_balance_populated}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj?hhhj?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 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 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&]uh1j3hj?hhhj?hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjB@jHjB@jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjL@h]h Parameters}(hjN@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ@ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjF@ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]jS)}(hjk@h]hvoid}(hjm@hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhji@ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhje@ubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@hKhj@ubah}(h]h ]h"]h$]h&]uh1jhje@ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhjb@ubah}(h]h ]h"]h$]h&]uh1jhjF@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.chKhjF@ubjM)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjF@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.chMhjF@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.chMhjF@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_reclaim_populated (C function)c.pcpu_reclaim_populatedhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h"void pcpu_reclaim_populated (void)h]h)}(h!void pcpu_reclaim_populated(void)h](j)}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM$ubj)}(h h]h }(hj!AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhj AhM$ubh)}(hpcpu_reclaim_populatedh]j)}(hpcpu_reclaim_populatedh]hpcpu_reclaim_populated}(hj3AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Aubah}(h]h ](jjeh"]h$]h&]jjuh1hhjAhhhj AhM$ubj )}(h(void)h]j )}(hvoidh]j)}(hvoidh]hvoid}(hjOAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKAubah}(h]h ]h"]h$]h&]noemphjjuh1j hjGAubah}(h]h ]h"]h$]h&]jjuh1j hjAhhhj AhM$ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj Ahhhj AhM$ubah}(h]jAah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj AhM$hjAhhubj4)}(hhh]jM)}(h3scan over to_depopulate chunks and free empty pagesh]h3scan over to_depopulate chunks and free empty pages}(hjyAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM$hjvAhhubah}(h]h ]h"]h$]h&]uh1j3hjAhhhj AhM$ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjAjHjAjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chM(hjAubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]jS)}(hjAh]hvoid}(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.chKhjAubj)}(hhh]jM)}(h no argumentsh]h no arguments}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAhKhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhKhjAubah}(h]h ]h"]h$]h&]uh1jhjAubjM)}(h**Description**h]j)}(hjAh]h Description}(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.chKhjAubjM)}(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 BhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM%hjAubjM)}(h **Context**h]j)}(hjBh]hContext}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM-hjAubjM)}(h&pcpu_lock (can be dropped temporarily)h]h&pcpu_lock (can be dropped temporarily)}(hj2BhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM.hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h pcpu_balance_workfn (C function)c.pcpu_balance_workfnhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h3void pcpu_balance_workfn (struct work_struct *work)h]h)}(h2void pcpu_balance_workfn(struct work_struct *work)h](j)}(hvoidh]hvoid}(hjaBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]BhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjpBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]BhhhjoBhMubh)}(hpcpu_balance_workfnh]j)}(hpcpu_balance_workfnh]hpcpu_balance_workfn}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Bubah}(h]h ](jjeh"]h$]h&]jjuh1hhj]BhhhjoBhMubj )}(h(struct work_struct *work)h]j )}(hstruct work_struct *workh](j5)}(hj8h]hstruct}(hjBhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(h work_structh]h work_struct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjBmodnameN classnameNjpjs)}jv]jy)}jljBsbc.pcpu_balance_workfnasbuh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjF )}(hjI h]h*}(hjBhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjBubj)}(hworkh]hwork}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjBubah}(h]h ]h"]h$]h&]jjuh1j hj]BhhhjoBhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjYBhhhjoBhMubah}(h]jTBah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjoBhMhjVBhhubj4)}(hhh]jM)}(h4manage the amount of free chunks and populated pagesh]h4manage the amount of free chunks and populated pages}(hj!ChhhNhNubah}(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&]uh1j3hjVBhhhjoBhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj9CjHj9CjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjCCh]h Parameters}(hjEChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjACubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj=Cubj)}(hhh]j)}(h$``struct work_struct *work`` unused h](j)}(h``struct work_struct *work``h]jS)}(hjbCh]hstruct work_struct *work}(hjdChhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`Cubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj\Cubj)}(hhh]jM)}(hunusedh]hunused}(hj{ChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwChMhjxCubah}(h]h ]h"]h$]h&]uh1jhj\Cubeh}(h]h ]h"]h$]h&]uh1jhjwChMhjYCubah}(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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj=CubjM)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj=Cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfree_percpu (C function) c.free_percpuhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h%void free_percpu (void __percpu *ptr)h]h)}(h$void free_percpu(void __percpu *ptr)h](j)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjChMubh)}(h free_percpuh]j)}(h free_percpuh]h free_percpu}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1hhjChhhjChMubj )}(h(void __percpu *ptr)h]j )}(hvoid __percpu *ptrh](j)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hj-DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh__percpu}(hjDhhhNhNubj)}(h h]h }(hj?DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjF )}(hjI h]h*}(hjMDhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjDubj)}(hptrh]hptr}(hjZDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjDubah}(h]h ]h"]h$]h&]jjuh1j hjChhhjChMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjChhhjChMubah}(h]jCah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjChMhjChhubj4)}(hhh]jM)}(hfree percpu areah]hfree percpu area}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDhhubah}(h]h ]h"]h$]h&]uh1j3hjChhhjChMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjDjHjDjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDubj)}(hhh]j)}(h/``void __percpu *ptr`` pointer to area to free h](j)}(h``void __percpu *ptr``h]jS)}(hjDh]hvoid __percpu *ptr}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDubj)}(hhh]jM)}(hpointer to area to freeh]hpointer to area to free}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubjM)}(h**Description**h]j)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDubjM)}(hFree percpu area **ptr**.h](hFree percpu area }(hjEhhhNhNubj)}(h**ptr**h]hptr}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDubjM)}(h **Context**h]j)}(hj9Eh]hContext}(hj;EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Eubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDubjM)}(h"Can be called from atomic context.h]h"Can be called from atomic context.}(hjOEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%is_kernel_percpu_address (C function)c.is_kernel_percpu_addresshNtauh1hhjxhhhNhNubh)}(hhh](h)}(h2bool is_kernel_percpu_address (unsigned long addr)h]h)}(h1bool is_kernel_percpu_address(unsigned long addr)h](j)}(hj)h]hbool}(hj~EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzEhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzEhhhjEhM ubh)}(his_kernel_percpu_addressh]j)}(his_kernel_percpu_addressh]his_kernel_percpu_address}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1hhjzEhhhjEhM ubj )}(h(unsigned long addr)h]j )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hlongh]hlong}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(haddrh]haddr}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjEubah}(h]h ]h"]h$]h&]jjuh1j hjzEhhhjEhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjvEhhhjEhM ubah}(h]jqEah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjEhM hjsEhhubj4)}(hhh]jM)}(h/test whether address is from static percpu areah]h/test whether address is from static percpu area}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjFhhubah}(h]h ]h"]h$]h&]uh1j3hjsEhhhjEhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj4FjHj4FjIjJjKuh1hhhhjxhNhNubj)}(hXB**Parameters** ``unsigned long addr`` address to test **Description** Test whether **addr** belongs to in-kernel static percpu area. Module static percpu areas are not considered. For those, use is_module_percpu_address(). **Return** ``true`` if **addr** is from in-kernel static percpu area, ``false`` otherwise.h](jM)}(h**Parameters**h]j)}(hj>Fh]h Parameters}(hj@FhhhNhNubah}(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.chMc hj:Jubj)}(hhh](j)}(h'``int nr_groups`` the number of groups h](j)}(h``int nr_groups``h]jS)}(hj_Jh]h int nr_groups}(hjaJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj]Jubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM` hjYJubj)}(hhh]jM)}(hthe number of groupsh]hthe number of groups}(hjxJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjtJhM` hjuJubah}(h]h ]h"]h$]h&]uh1jhjYJubeh}(h]h ]h"]h$]h&]uh1jhjtJhM` hjVJubj)}(h%``int nr_units`` the number of units h](j)}(h``int nr_units``h]jS)}(hjJh]h int nr_units}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMa hjJubj)}(hhh]jM)}(hthe number of unitsh]hthe number of units}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJhMa hjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMa hjVJubeh}(h]h ]h"]h$]h&]uh1jhj:JubjM)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMc hj:JubjM)}(hX*Allocate ai which is large enough for **nr_groups** groups containing **nr_units** units. The returned ai's groups[0].cpu_map points to the cpu_map array which is long enough for **nr_units** and filled with NR_CPUS. It's the caller's responsibility to initialize cpu_map pointer of other groups.h](h&Allocate ai which is large enough for }(hjJhhhNhNubj)}(h **nr_groups**h]h nr_groups}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh groups containing }(hjJhhhNhNubj)}(h **nr_units**h]hnr_units}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubhd units. The returned ai’s groups[0].cpu_map points to the cpu_map array which is long enough for }(hjJhhhNhNubj)}(h **nr_units**h]hnr_units}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubhn and filled with NR_CPUS. It’s the caller’s responsibility to initialize cpu_map pointer of other groups.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMb hj:JubjM)}(h **Return**h]j)}(hj0Kh]hReturn}(hj2KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Kubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMh hj:JubjM)}(hEPointer to the allocated pcpu_alloc_info on success, NULL on failure.h]hEPointer to the allocated pcpu_alloc_info on success, NULL on failure.}(hjFKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMi hj:Jubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!pcpu_free_alloc_info (C function)c.pcpu_free_alloc_infohNtauh1hhjxhhhNhNubh)}(hhh](h)}(h6void pcpu_free_alloc_info (struct pcpu_alloc_info *ai)h]h)}(h5void pcpu_free_alloc_info(struct pcpu_alloc_info *ai)h](j)}(hvoidh]hvoid}(hjuKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqKhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqKhhhjKhM ubh)}(hpcpu_free_alloc_infoh]j)}(hpcpu_free_alloc_infoh]hpcpu_free_alloc_info}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1hhjqKhhhjKhM ubj )}(h(struct pcpu_alloc_info *ai)h]j )}(hstruct pcpu_alloc_info *aih](j5)}(hj8h]hstruct}(hjKhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hhh]j)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjKmodnameN classnameNjpjs)}jv]jy)}jljKsbc.pcpu_free_alloc_infoasbuh1hhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjF )}(hjI h]h*}(hjKhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjKubj)}(haih]hai}(hj LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjKubah}(h]h ]h"]h$]h&]jjuh1j hjqKhhhjKhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjmKhhhjKhM ubah}(h]jhKah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjKhM hjjKhhubj4)}(hhh]jM)}(hfree percpu allocation infoh]hfree percpu allocation info}(hj5LhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj2Lhhubah}(h]h ]h"]h$]h&]uh1j3hjjKhhhjKhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjMLjHjMLjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjWLh]h Parameters}(hjYLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjULubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjQLubj)}(hhh]j)}(h7``struct pcpu_alloc_info *ai`` pcpu_alloc_info to free h](j)}(h``struct pcpu_alloc_info *ai``h]jS)}(hjvLh]hstruct pcpu_alloc_info *ai}(hjxLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtLubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjpLubj)}(hhh]jM)}(hpcpu_alloc_info to freeh]hpcpu_alloc_info to free}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjLhM hjLubah}(h]h ]h"]h$]h&]uh1jhjpLubeh}(h]h ]h"]h$]h&]uh1jhjLhM hjmLubah}(h]h ]h"]h$]h&]uh1jhjQLubjM)}(h**Description**h]j)}(hjLh]h Description}(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 hjQLubjM)}(h;Free **ai** which was allocated by pcpu_alloc_alloc_info().h](hFree }(hjLhhhNhNubj)}(h**ai**h]hai}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh0 which was allocated by pcpu_alloc_alloc_info().}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjQLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!pcpu_dump_alloc_info (C function)c.pcpu_dump_alloc_infohNtauh1hhjxhhhNhNubh)}(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}(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 }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhjMhM ubh)}(hpcpu_dump_alloc_infoh]j)}(hpcpu_dump_alloc_infoh]hpcpu_dump_alloc_info}(hj)MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Mubah}(h]h ](jjeh"]h$]h&]jjuh1hhjMhhhjMhM ubj )}(h3(const char *lvl, const struct pcpu_alloc_info *ai)h](j )}(hconst char *lvlh](j5)}(hjh]hconst}(hjEMhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjAMubj)}(h h]h }(hjRMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAMubj)}(hcharh]hchar}(hj`MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAMubj)}(h h]h }(hjnMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAMubjF )}(hjI h]h*}(hj|MhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjAMubj)}(hlvlh]hlvl}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj=Mubj )}(h const struct pcpu_alloc_info *aih](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)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjMmodnameN classnameNjpjs)}jv]jy)}jlj+Msbc.pcpu_dump_alloc_infoasbuh1hhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjF )}(hjI h]h*}(hj NhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjMubj)}(haih]hai}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj=Mubeh}(h]h ]h"]h$]h&]jjuh1j hjMhhhjMhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjMhhhjMhM ubah}(h]jLah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjMhM hjLhhubj4)}(hhh]jM)}(h+print out information about pcpu_alloc_infoh]h+print out information about pcpu_alloc_info}(hj@NhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj=Nhhubah}(h]h ]h"]h$]h&]uh1j3hjLhhhjMhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjXNjHjXNjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjbNh]h Parameters}(hjdNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Nubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj\Nubj)}(hhh](j)}(h``const char *lvl`` loglevel h](j)}(h``const char *lvl``h]jS)}(hjNh]hconst char *lvl}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj{Nubj)}(hhh]jM)}(hloglevelh]hloglevel}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhM hjNubah}(h]h ]h"]h$]h&]uh1jhj{Nubeh}(h]h ]h"]h$]h&]uh1jhjNhM hjxNubj)}(h=``const struct pcpu_alloc_info *ai`` allocation info to dump h](j)}(h$``const struct pcpu_alloc_info *ai``h]jS)}(hjNh]h const struct pcpu_alloc_info *ai}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjNubj)}(hhh]jM)}(hallocation info to dumph]hallocation info to dump}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhM hjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhM hjxNubeh}(h]h ]h"]h$]h&]uh1jhj\NubjM)}(h**Description**h]j)}(hjNh]h Description}(hjNhhhNhNubah}(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.chM hj\NubjM)}(h:Print out information about **ai** using loglevel **lvl**.h](hPrint out information about }(hj OhhhNhNubj)}(h**ai**h]hai}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Oubh using loglevel }(hj OhhhNhNubj)}(h**lvl**h]hlvl}(hj%OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Oubh.}(hj OhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj\Nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_setup_first_chunk (C function)c.pcpu_setup_first_chunkhNtauh1hhjxhhhNhNubh)}(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}(hj^OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZOhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjmOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZOhhhjlOhM ubh)}(hpcpu_setup_first_chunkh]j)}(hpcpu_setup_first_chunkh]hpcpu_setup_first_chunk}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Oubah}(h]h ](jjeh"]h$]h&]jjuh1hhjZOhhhjlOhM ubj )}(h3(const struct pcpu_alloc_info *ai, void *base_addr)h](j )}(h const struct pcpu_alloc_info *aih](j5)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj5)}(hj8h]hstruct}(hjOhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjOmodnameN classnameNjpjs)}jv]jy)}jljOsbc.pcpu_setup_first_chunkasbuh1hhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjF )}(hjI h]h*}(hjPhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjOubj)}(haih]hai}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubj )}(hvoid *base_addrh](j)}(hvoidh]hvoid}(hj(PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Pubj)}(h h]h }(hj6PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$PubjF )}(hjI h]h*}(hjDPhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj$Pubj)}(h base_addrh]h base_addr}(hjQPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Pubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjOubeh}(h]h ]h"]h$]h&]jjuh1j hjZOhhhjlOhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjVOhhhjlOhM ubah}(h]jQOah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjlOhM hjSOhhubj4)}(hhh]jM)}(h!initialize the first percpu chunkh]h!initialize the first percpu chunk}(hj{PhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjxPhhubah}(h]h ]h"]h$]h&]uh1j3hjSOhhhjlOhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjPjHjPjIjJjKuh1hhhhjxhNhNubj)}(hXz **Parameters** ``const struct pcpu_alloc_info *ai`` pcpu_alloc_info describing how to percpu area is shaped ``void *base_addr`` mapped address **Description** Initialize the first percpu chunk which contains the kernel static percpu area. This function is to be called from arch percpu area setup path. **ai** contains all information necessary to initialize the first chunk and prime the dynamic percpu allocator. **ai->static_size** is the size of static percpu area. **ai->reserved_size**, if non-zero, specifies the amount of bytes to reserve after the static area in the first chunk. This reserves the first chunk such that it's available only through reserved percpu allocation. This is primarily used to serve module percpu static areas on architectures where the addressing model has limited offset range for symbol relocations to guarantee module percpu symbols fall inside the relocatable range. **ai->dyn_size** determines the number of bytes available for dynamic allocation in the first chunk. The area between **ai->static_size** + **ai->reserved_size** + **ai->dyn_size** and **ai->unit_size** is unused. **ai->unit_size** specifies unit size and must be aligned to PAGE_SIZE and equal to or larger than **ai->static_size** + **ai->reserved_size** + **ai->dyn_size**. **ai->atom_size** is the allocation atom size and used as alignment for vm areas. **ai->alloc_size** is the allocation size and always multiple of **ai->atom_size**. This is larger than **ai->atom_size** if **ai->unit_size** is larger than **ai->atom_size**. **ai->nr_groups** and **ai->groups** describe virtual memory layout of percpu areas. Units which should be colocated are put into the same group. Dynamic VM areas will be allocated according to these groupings. If **ai->nr_groups** is zero, a single group containing all units is assumed. The caller should have mapped the first chunk at **base_addr** and copied static data to each unit. The first chunk will always contain a static and a dynamic region. However, the static region is not managed by any chunk. If the first chunk also contains a reserved region, it is served by two chunks - one for the reserved region and one for the dynamic region. They share the same vm, but use offset regions in the area allocation map. The chunk serving the dynamic region is circulated in the chunk slots and available for dynamic allocation like any other chunk.h](jM)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubj)}(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)}(hjPh]h const struct pcpu_alloc_info *ai}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubj)}(hhh]jM)}(h7pcpu_alloc_info describing how to percpu area is shapedh]h7pcpu_alloc_info describing how to percpu area is shaped}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPhM hjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhM hjPubj)}(h#``void *base_addr`` mapped address h](j)}(h``void *base_addr``h]jS)}(hjPh]hvoid *base_addr}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjPubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubj)}(hhh]jM)}(hmapped addressh]hmapped address}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj QhM hj Qubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhj QhM hjPubeh}(h]h ]h"]h$]h&]uh1jhjPubjM)}(h**Description**h]j)}(hj0Qh]h Description}(hj2QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Qubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubjM)}(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.}(hjFQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubjM)}(ho**ai** contains all information necessary to initialize the first chunk and prime the dynamic percpu allocator.h](j)}(h**ai**h]hai}(hjYQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUQubhi contains all information necessary to initialize the first chunk and prime the dynamic percpu allocator.}(hjUQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubjM)}(h6**ai->static_size** is the size of static percpu area.h](j)}(h**ai->static_size**h]hai->static_size}(hjvQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrQubh# is the size of static percpu area.}(hjrQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubjM)}(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}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubhX, 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.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubjM)}(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}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubhg determines the number of bytes available for dynamic allocation in the first chunk. The area between }(hjQhhhNhNubj)}(h**ai->static_size**h]hai->static_size}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh + }(hjQhhhNhNubj)}(h**ai->reserved_size**h]hai->reserved_size}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh + }(hjQhhhNhNubj)}(h**ai->dyn_size**h]h ai->dyn_size}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh and }(hjQhhhNhNubj)}(h**ai->unit_size**h]h ai->unit_size}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh is unused.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubjM)}(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}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubhR specifies unit size and must be aligned to PAGE_SIZE and equal to or larger than }(hjRhhhNhNubj)}(h**ai->static_size**h]hai->static_size}(hj'RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh + }(hjRhhhNhNubj)}(h**ai->reserved_size**h]hai->reserved_size}(hj9RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh + }(hjRhhhNhNubj)}(h**ai->dyn_size**h]h ai->dyn_size}(hjKRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubjM)}(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}(hjhRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdRubh@ is the allocation atom size and used as alignment for vm areas.}(hjdRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubjM)}(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}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh/ is the allocation size and always multiple of }(hjRhhhNhNubj)}(h**ai->atom_size**h]h ai->atom_size}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh. This is larger than }(hjRhhhNhNubj)}(h**ai->atom_size**h]h ai->atom_size}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh if }(hjRhhhNhNubj)}(h**ai->unit_size**h]h ai->unit_size}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh is larger than }(hjRhhhNhNubj)}(h**ai->atom_size**h]h ai->atom_size}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubjM)}(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}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh and }(hjRhhhNhNubj)}(h**ai->groups**h]h ai->groups}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh 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 }(hjRhhhNhNubj)}(h**ai->nr_groups**h]h ai->nr_groups}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh9 is zero, a single group containing all units is assumed.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubjM)}(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 }(hj'ShhhNhNubj)}(h **base_addr**h]h base_addr}(hj/ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Subh% and copied static data to each unit.}(hj'ShhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubjM)}(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.}(hjHShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"pcpu_build_alloc_info (C function)c.pcpu_build_alloc_infohNtauh1hhjxhhhNhNubh)}(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}(hjwShhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjsShhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsShhhjShM ubh)}(hhh]j)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjSmodnameN classnameNjpjs)}jv]jy)}jlpcpu_build_alloc_infosbc.pcpu_build_alloc_infoasbuh1hhjsShhhjShM ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsShhhjShM ubjF )}(hjI h]h*}(hjShhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjsShhhjShM ubh)}(hpcpu_build_alloc_infoh]j)}(hjSh]hpcpu_build_alloc_info}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1hhjsShhhjShM 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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjSmodnameN classnameNjpjs)}jv]jSc.pcpu_build_alloc_infoasbuh1hhjSubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h reserved_sizeh]h reserved_size}(hj ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjSubj )}(hsize_t dyn_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjTmodnameN classnameNjpjs)}jv]jSc.pcpu_build_alloc_infoasbuh1hhj5Tubj)}(h h]h }(hjZThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Tubj)}(hdyn_sizeh]hdyn_size}(hjhThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Tubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjSubj )}(hsize_t atom_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjTmodnameN classnameNjpjs)}jv]jSc.pcpu_build_alloc_infoasbuh1hhj}Tubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Tubj)}(h atom_sizeh]h atom_size}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Tubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjSubj )}(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}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjTmodnameN classnameNjpjs)}jv]jSc.pcpu_build_alloc_infoasbuh1hhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hcpu_distance_fnh]hcpu_distance_fn}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjSubeh}(h]h ]h"]h$]h&]jjuh1j hjsShhhjShM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjoShhhjShM ubah}(h]jjSah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjShM hjlShhubj4)}(hhh]jM)}(h3build alloc_info considering distances between CPUsh]h3build alloc_info considering distances between CPUs}(hj"UhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjUhhubah}(h]h ]h"]h$]h&]uh1j3hjlShhhjShM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj:UjHj:UjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjDUh]h Parameters}(hjFUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBUubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj>Uubj)}(hhh](j)}(hC``size_t reserved_size`` the size of reserved percpu area in bytes h](j)}(h``size_t reserved_size``h]jS)}(hjcUh]hsize_t reserved_size}(hjeUhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaUubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj]Uubj)}(hhh]jM)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hj|UhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxUhM hjyUubah}(h]h ]h"]h$]h&]uh1jhj]Uubeh}(h]h ]h"]h$]h&]uh1jhjxUhM hjZUubj)}(hF``size_t dyn_size`` minimum free size for dynamic allocation in bytes h](j)}(h``size_t dyn_size``h]jS)}(hjUh]hsize_t dyn_size}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjUubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjUubj)}(hhh]jM)}(h1minimum free size for dynamic allocation in bytesh]h1minimum free size for dynamic allocation in bytes}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhM hjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhM hjZUubj)}(h*``size_t atom_size`` allocation atom size h](j)}(h``size_t atom_size``h]jS)}(hjUh]hsize_t atom_size}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjUubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjUubj)}(hhh]jM)}(hallocation atom sizeh]hallocation atom size}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhM hjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhM hjZUubj)}(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)}(hjVh]h)pcpu_fc_cpu_distance_fn_t cpu_distance_fn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj Vubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjVubj)}(hhh]jM)}(h5callback to determine distance between cpus, optionalh]h5callback to determine distance between cpus, optional}(hj'VhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#VhM hj$Vubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhj#VhM hjZUubeh}(h]h ]h"]h$]h&]uh1jhj>UubjM)}(h**Description**h]j)}(hjIVh]h Description}(hjKVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGVubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj>UubjM)}(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.}(hj_VhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj>UubjM)}(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.}(hjnVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj>UubjM)}(h **Return**h]j)}(hjVh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Vubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj>UubjM)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj>Uubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#pcpu_embed_first_chunk (C function)c.pcpu_embed_first_chunkhNtauh1hhjxhhhNhNubh)}(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}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhM ubh)}(hpcpu_embed_first_chunkh]j)}(hpcpu_embed_first_chunkh]hpcpu_embed_first_chunk}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1hhjVhhhjVhM 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}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWmodnameN classnameNjpjs)}jv]jy)}jljVsbc.pcpu_embed_first_chunkasbuh1hhjVubj)}(h h]h }(hj$WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h reserved_sizeh]h reserved_size}(hj2WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubj )}(hsize_t dyn_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjNWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKWubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjPWmodnameN classnameNjpjs)}jv]j Wc.pcpu_embed_first_chunkasbuh1hhjGWubj)}(h h]h }(hjlWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGWubj)}(hdyn_sizeh]hdyn_size}(hjzWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGWubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubj )}(hsize_t atom_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWmodnameN classnameNjpjs)}jv]j Wc.pcpu_embed_first_chunkasbuh1hhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h atom_sizeh]h atom_size}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubj )}(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}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjWmodnameN classnameNjpjs)}jv]j Wc.pcpu_embed_first_chunkasbuh1hhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hcpu_distance_fnh]hcpu_distance_fn}(hj XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubj )}(h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fnh](h)}(hhh]j)}(hpcpu_fc_cpu_to_node_fn_th]hpcpu_fc_cpu_to_node_fn_t}(hj&XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Xubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj(XmodnameN classnameNjpjs)}jv]j Wc.pcpu_embed_first_chunkasbuh1hhjXubj)}(h h]h }(hjDXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h cpu_to_nd_fnh]h cpu_to_nd_fn}(hjRXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjVubeh}(h]h ]h"]h$]h&]jjuh1j hjVhhhjVhM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjVhhhjVhM ubah}(h]jVah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjVhM hjVhhubj4)}(hhh]jM)}(h)embed the first percpu chunk into bootmemh]h)embed the first percpu chunk into bootmem}(hj|XhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjyXhhubah}(h]h ]h"]h$]h&]uh1j3hjVhhhjVhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjXjHjXjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjXubj)}(hhh](j)}(hC``size_t reserved_size`` the size of reserved percpu area in bytes h](j)}(h``size_t reserved_size``h]jS)}(hjXh]hsize_t reserved_size}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjXubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjXubj)}(hhh]jM)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXhM hjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhM hjXubj)}(hF``size_t dyn_size`` minimum free size for dynamic allocation in bytes h](j)}(h``size_t dyn_size``h]jS)}(hjXh]hsize_t dyn_size}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjXubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjXubj)}(hhh]jM)}(h1minimum free size for dynamic allocation in bytesh]h1minimum free size for dynamic allocation in bytes}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj YhM hj Yubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhj YhM hjXubj)}(h*``size_t atom_size`` allocation atom size h](j)}(h``size_t atom_size``h]jS)}(hj/Yh]hsize_t atom_size}(hj1YhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj-Yubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj)Yubj)}(hhh]jM)}(hallocation atom sizeh]hallocation atom size}(hjHYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDYhM hjEYubah}(h]h ]h"]h$]h&]uh1jhj)Yubeh}(h]h ]h"]h$]h&]uh1jhjDYhM hjXubj)}(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)}(hjhYh]h)pcpu_fc_cpu_distance_fn_t cpu_distance_fn}(hjjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfYubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjbYubj)}(hhh]jM)}(h5callback to determine distance between cpus, optionalh]h5callback to determine distance between cpus, optional}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}YhM hj~Yubah}(h]h ]h"]h$]h&]uh1jhjbYubeh}(h]h ]h"]h$]h&]uh1jhj}YhM hjXubj)}(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)}(hjYh]h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn}(hjYhhhNhNubah}(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.chM hjYubj)}(hhh]jM)}(h.callback to convert cpu to it's node, optionalh]h0callback to convert cpu to it’s node, optional}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYhM hjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhM hjXubeh}(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&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjXubjM)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjXubjM)}(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 }(hjZhhhNhNubj)}(h **atom_size**h]h atom_size}(hj ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh aligned to }(hjZhhhNhNubj)}(h **atom_size**h]h atom_size}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjXubjM)}(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).}(hj4ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjXubjM)}(h5**dyn_size** specifies the minimum dynamic area size.h](j)}(h **dyn_size**h]hdyn_size}(hjGZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCZubh) specifies the minimum dynamic area size.}(hjCZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjXubjM)}(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.}(hj`ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjXubjM)}(h **Return**h]j)}(hjqZh]hReturn}(hjsZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoZubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjXubjM)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"pcpu_page_first_chunk (C function)c.pcpu_page_first_chunkhNtauh1hhjxhhhNhNubh)}(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}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMm ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjZhMm ubh)}(hpcpu_page_first_chunkh]j)}(hpcpu_page_first_chunkh]hpcpu_page_first_chunk}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1hhjZhhhjZhMm 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}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjZmodnameN classnameNjpjs)}jv]jy)}jljZsbc.pcpu_page_first_chunkasbuh1hhjZubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h reserved_sizeh]h reserved_size}(hj$[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjZubj )}(h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fnh](h)}(hhh]j)}(hpcpu_fc_cpu_to_node_fn_th]hpcpu_fc_cpu_to_node_fn_t}(hj@[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=[ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjB[modnameN classnameNjpjs)}jv]j[c.pcpu_page_first_chunkasbuh1hhj9[ubj)}(h h]h }(hj^[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9[ubj)}(h cpu_to_nd_fnh]h cpu_to_nd_fn}(hjl[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9[ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjZubeh}(h]h ]h"]h$]h&]jjuh1j hjZhhhjZhMm ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjZhhhjZhMm ubah}(h]jZah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjZhMm hjZhhubj4)}(hhh]jM)}(h)map the first chunk using PAGE_SIZE pagesh]h)map the first chunk using PAGE_SIZE pages}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMm hj[hhubah}(h]h ]h"]h$]h&]uh1j3hjZhhhjZhMm ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj[jHj[jIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMq hj[ubj)}(hhh](j)}(hC``size_t reserved_size`` the size of reserved percpu area in bytes h](j)}(h``size_t reserved_size``h]jS)}(hj[h]hsize_t reserved_size}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMn hj[ubj)}(hhh]jM)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[hMn hj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMn hj[ubj)}(hY``pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn`` callback to convert cpu to it's node, optional h](j)}(h)``pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn``h]jS)}(hj\h]h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMo hj \ubj)}(hhh]jM)}(h.callback to convert cpu to it's node, optionalh]h0callback to convert cpu to it’s node, optional}(hj)\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%\hMo hj&\ubah}(h]h ]h"]h$]h&]uh1jhj \ubeh}(h]h ]h"]h$]h&]uh1jhj%\hMo hj[ubeh}(h]h ]h"]h$]h&]uh1jhj[ubjM)}(h**Description**h]j)}(hjK\h]h Description}(hjM\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI\ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMq hj[ubjM)}(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.}(hja\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMp hj[ubjM)}(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.}(hjp\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMs hj[ubjM)}(h **Return**h]j)}(hj\h]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMv hj[ubjM)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMw hj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#copy_from_user_nofault (C function)c.copy_from_user_nofaulthNtauh1hhjxhhhNhNubh)}(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}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKpubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj\hKpubh)}(hcopy_from_user_nofaulth]j)}(hcopy_from_user_nofaulth]hcopy_from_user_nofault}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj\hhhj\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}(hjE]hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjA]ubj)}(h h]h }(hjR]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA]ubj)}(hvoidh]hvoid}(hj`]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA]ubj)}(h h]h }(hjn]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA]ubh__user}(hjA]hhhNhNubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA]ubjF )}(hjI h]h*}(hj]hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjA]ubj)}(hsrch]hsrc}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA]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_from_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\hKpubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj\hhhj\hKpubah}(h]j\ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj\hKphj\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&]uh1j3hj\hhhj\hKpubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj'^jHj'^jIjJjKuh1hhhhjxhNhNubj)}(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)}(*hj1^h]h Parameters}(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.chKthj+^ubj)}(hhh](j)}(h=``void *dst`` pointer to the buffer that shall take the data h](j)}(h ``void *dst``h]jS)}(hjP^h]h void *dst}(hjR^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjN^ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKqhjJ^ubj)}(hhh]jM)}(h.pointer to the buffer that shall take the datah]h.pointer to the buffer that shall take the data}(hji^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhje^hKqhjf^ubah}(h]h ]h"]h$]h&]uh1jhjJ^ubeh}(h]h ]h"]h$]h&]uh1jhje^hKqhjG^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.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hKrhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hKrhjG^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.chKshj^ubj)}(hhh]jM)}(hsize of the data chunkh]hsize of the data chunk}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj^hKshj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hKshjG^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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!copy_to_user_nofault (C function)c.copy_to_user_nofaulthNtauh1hhjxhhhNhNubh)}(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}(hjf_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb_hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKubj)}(h h]h }(hju_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb_hhhjt_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&]jjuh1hhjb_hhhjt_hKubj )}(h0(void __user *dst, const void *src, size_t size)h](j )}(hvoid __user *dsth](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 }(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 *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}(hjW`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT`ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjY`modnameN classnameNjpjs)}jv]jy)}jlj_sbc.copy_to_user_nofaultasbuh1hhjP`ubj)}(h h]h }(hjw`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP`ubj)}(hsizeh]hsize}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP`ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj_ubeh}(h]h ]h"]h$]h&]jjuh1j hjb_hhhjt_hKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj^_hhhjt_hKubah}(h]jY_ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjt_hKhj[_hhubj4)}(hhh]jM)}(h0safely attempt to write to a user-space locationh]h0safely attempt to write to 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.chKhj`hhubah}(h]h ]h"]h$]h&]uh1j3hj[_hhhjt_hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj`jHj`jIjJjKuh1hhhhjxhNhNubj)}(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)}(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.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 ahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjahKhjaubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhjahKhj`ubj)}(h>``const void *src`` pointer to the data that shall be written h](j)}(h``const void *src``h]jS)}(hj)ah]hconst void *src}(hj+ahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'aubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj#aubj)}(hhh]jM)}(h)pointer to the data that shall be writtenh]h)pointer to the data that shall be written}(hjBahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>ahKhj?aubah}(h]h ]h"]h$]h&]uh1jhj#aubeh}(h]h ]h"]h$]h&]uh1jhj>ahKhj`ubj)}(h'``size_t size`` size of the data chunk h](j)}(h``size_t size``h]jS)}(hjbah]h size_t size}(hjdahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`aubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj\aubj)}(hhh]jM)}(hsize of the data chunkh]hsize of the data chunk}(hj{ahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwahKhjxaubah}(h]h ]h"]h$]h&]uh1jhj\aubeh}(h]h ]h"]h$]h&]uh1jhjwahKhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubjM)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]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 }(hjahhhNhNubj)}(h**dst**h]hdst}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh from the buffer at }(hjahhhNhNubj)}(h**src**h]hsrc}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh=. If a kernel fault happens, handle that and return -EFAULT.}(hjahhhNhNubeh}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&strncpy_from_user_nofault (C function)c.strncpy_from_user_nofaulthNtauh1hhjxhhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhKubh)}(hstrncpy_from_user_nofaulth]j)}(hstrncpy_from_user_nofaulth]hstrncpy_from_user_nofault}(hj'bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#bubah}(h]h ](jjeh"]h$]h&]jjuh1hhjbhhhjbhKubj )}(h7(char *dst, const void __user *unsafe_addr, long count)h](j )}(h char *dsth](j)}(hcharh]hchar}(hjCbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?bubj)}(h h]h }(hjQbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?bubjF )}(hjI h]h*}(hj_bhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj?bubj)}(hdsth]hdst}(hjlbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?bubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj;bubj )}(hconst void __user *unsafe_addrh](j5)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh__user}(hjbhhhNhNubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjF )}(hjI h]h*}(hjbhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjbubj)}(h unsafe_addrh]h unsafe_addr}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj;bubj )}(h long counth](j)}(hlongh]hlong}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hcounth]hcount}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj;bubeh}(h]h ]h"]h$]h&]jjuh1j hjbhhhjbhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjahhhjbhKubah}(h]jaah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjbhKhjahhubj4)}(hhh]j.L)}(hhh]j+)}(h6Copy a NUL terminated string from unsafe user address.h]jM)}(hj?ch]h6Copy a NUL terminated string from unsafe user address.}(hjAchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj=cubah}(h]h ]h"]h$]h&]uh1j+hj:chhhjNchNubah}(h]h ]h"]h$]h&]jPLjQLuh1j-LhjNchKhj7chhubah}(h]h ]h"]h$]h&]uh1j3hjahhhjbhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjdcjHjdcjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjnch]h Parameters}(hjpchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlcubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjhcubj)}(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)}(hjch]h char *dst}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjcubj)}(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 }(hjchhhNhNubj)}(h **count**h]hcount}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh bytes long.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchKhjcubj)}(h8``const void __user *unsafe_addr`` Unsafe user address. h](j)}(h"``const void __user *unsafe_addr``h]jS)}(hjch]hconst void __user *unsafe_addr}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjcubj)}(hhh]jM)}(hUnsafe user address.h]hUnsafe user address.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjchKhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchKhjcubj)}(hL``long count`` Maximum number of bytes to copy, including the trailing NUL. h](j)}(h``long count``h]jS)}(hjdh]h long count}(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.chKhj dubj)}(hhh]jM)}(h count". On exception (or invalid count), returns 0. Unlike strnlen_user, this can be used from IRQ handler etc. because it disables pagefaults.h](jM)}(h**Parameters**h]j)}(hj-fh]h Parameters}(hj/fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+fubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj'fubj)}(hhh](j)}(h:``const void __user *unsafe_addr`` The string to measure. h](j)}(h"``const void __user *unsafe_addr``h]jS)}(hjLfh]hconst void __user *unsafe_addr}(hjNfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjJfubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjFfubj)}(hhh]jM)}(hThe string to measure.h]hThe string to measure.}(hjefhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjafhKhjbfubah}(h]h ]h"]h$]h&]uh1jhjFfubeh}(h]h ]h"]h$]h&]uh1jhjafhKhjCfubj)}(h-``long count`` Maximum count (including NUL) h](j)}(h``long count``h]jS)}(hjfh]h long count}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjfubj)}(hhh]jM)}(hMaximum count (including NUL)h]hMaximum count (including NUL)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfhKhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhKhjCfubeh}(h]h ]h"]h$]h&]uh1jhj'fubjM)}(h**Description**h]j)}(hjfh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj'fubjM)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj'fubjM)}(h=Returns the size of the string INCLUDING the terminating NUL.h]h=Returns the size of the string INCLUDING the terminating NUL.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj'fubjM)}(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 }(hjfhhhNhNubj)}(h **count**h]hcount}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubhg. User has to check the return value against “> count”. On exception (or invalid count), returns 0.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj'fubjM)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj'fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&writeback_throttling_sane (C function)c.writeback_throttling_sanehNtauh1hhjxhhhNhNubh)}(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}(hjDghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ghhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKubj)}(h h]h }(hjRghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ghhhjQghKubh)}(hwriteback_throttling_saneh]j)}(hwriteback_throttling_saneh]hwriteback_throttling_sane}(hjdghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`gubah}(h]h ](jjeh"]h$]h&]jjuh1hhj@ghhhjQghKubj )}(h(struct scan_control *sc)h]j )}(hstruct scan_control *sch](j5)}(hj8h]hstruct}(hjghhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj|gubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|gubh)}(hhh]j)}(h scan_controlh]h scan_control}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjgmodnameN classnameNjpjs)}jv]jy)}jljfgsbc.writeback_throttling_saneasbuh1hhj|gubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|gubjF )}(hjI h]h*}(hjghhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj|gubj)}(hsch]hsc}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|gubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjxgubah}(h]h ]h"]h$]h&]jjuh1j hj@ghhhjQghKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhubj)}(hhh]jM)}(hscan_control in questionh]hscan_control in question}(hj]hhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYhhKhjZhubah}(h]h ]h"]h$]h&]uh1jhj>hubeh}(h]h ]h"]h$]h&]uh1jhjYhhKhj;hubah}(h]h ]h"]h$]h&]uh1jhjhubjM)}(h**Description**h]j)}(hjhh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjhubjM)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjhubjM)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlruvec_lru_size (C function)c.lruvec_lru_sizehNtauh1hhjxhhhNhNubh)}(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}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMubj)}(hlongh]hlong}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMubh)}(hlruvec_lru_sizeh]j)}(hlruvec_lru_sizeh]hlruvec_lru_size}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj iubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhhjhhMubj )}(h8(struct lruvec *lruvec, enum lru_list lru, int zone_idx)h](j )}(hstruct lruvec *lruvech](j5)}(hj8h]hstruct}(hj,ihhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj(iubj)}(h h]h }(hj9ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(iubh)}(hhh]j)}(hlruvech]hlruvec}(hjJihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGiubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjLimodnameN classnameNjpjs)}jv]jy)}jljisbc.lruvec_lru_sizeasbuh1hhj(iubj)}(h h]h }(hjjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(iubjF )}(hjI h]h*}(hjxihhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj(iubj)}(hlruvech]hlruvec}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(iubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$iubj )}(henum lru_list lruh](j5)}(hj+h]henum}(hjihhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hhh]j)}(hlru_listh]hlru_list}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjimodnameN classnameNjpjs)}jv]jfic.lruvec_lru_sizeasbuh1hhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hlruh]hlru}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$iubj )}(h int zone_idxh](j)}(hinth]hint}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hzone_idxh]hzone_idx}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj$iubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhhjhhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhhjhhMubah}(h]jhah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhhMhjhhhubj4)}(hhh]jM)}(h2Returns the number of pages on the given LRU list.h]h2Returns the number of pages on the given LRU list.}(hjGjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjDjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhhjhhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj_jjHj_jjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjijh]h Parameters}(hjkjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgjubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjcjubj)}(hhh](j)}(h%``struct lruvec *lruvec`` lru vector h](j)}(h``struct lruvec *lruvec``h]jS)}(hjjh]hstruct lruvec *lruvec}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjjubj)}(hhh]jM)}(h lru vectorh]h lru vector}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjjubj)}(h!``enum lru_list lru`` lru to use h](j)}(h``enum lru_list lru``h]jS)}(hjjh]henum lru_list lru}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjjubj)}(hhh]jM)}(h lru to useh]h lru to use}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjjubj)}(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)}(hjjh]h int zone_idx}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjjubj)}(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)}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjkubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjcjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hremove_mapping (C function)c.remove_mappinghNtauh1hhjxhhhNhNubh)}(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}(hjTkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPkhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMubj)}(h h]h }(hjckhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPkhhhjbkhMubh)}(hremove_mappingh]j)}(hremove_mappingh]hremove_mapping}(hjukhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqkubah}(h]h ](jjeh"]h$]h&]jjuh1hhjPkhhhjbkhMubj )}(h4(struct address_space *mapping, struct folio *folio)h](j )}(hstruct address_space *mappingh](j5)}(hj8h]hstruct}(hjkhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hhh]j)}(h address_spaceh]h address_space}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjkmodnameN classnameNjpjs)}jv]jy)}jljwksbc.remove_mappingasbuh1hhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjF )}(hjI h]h*}(hjkhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjkubj)}(hmappingh]hmapping}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkubj )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjlhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hhh]j)}(hfolioh]hfolio}(hj!lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj#lmodnameN classnameNjpjs)}jv]jkc.remove_mappingasbuh1hhjkubj)}(h h]h }(hj?lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjF )}(hjI h]h*}(hjMlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjkubj)}(hfolioh]hfolio}(hjZlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjkubeh}(h]h ]h"]h$]h&]jjuh1j hjPkhhhjbkhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjLkhhhjbkhMubah}(h]jGkah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjbkhMhjIkhhubj4)}(hhh]jM)}(h+Attempt to remove a folio from its mapping.h]h+Attempt to remove a folio from its mapping.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjlhhubah}(h]h ]h"]h$]h&]uh1j3hjIkhhhjbkhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjljHjljIjJjKuh1hhhhjxhNhNubj)}(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)}(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:130: ./mm/vmscan.chMhjlubj)}(hhh](j)}(h5``struct address_space *mapping`` The address space. h](j)}(h!``struct address_space *mapping``h]jS)}(hjlh]hstruct address_space *mapping}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjlubj)}(hhh]jM)}(hThe address space.h]hThe address space.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubj)}(h-``struct folio *folio`` The folio to remove. h](j)}(h``struct folio *folio``h]jS)}(hjlh]hstruct folio *folio}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjlubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjlubj)}(hhh]jM)}(hThe folio to remove.h]hThe folio to remove.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjlubeh}(h]h ]h"]h$]h&]uh1jhjlubjM)}(h**Description**h]j)}(hj9mh]h Description}(hj;mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7mubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjlubjM)}(h]If the folio is dirty, under writeback or if someone else has a ref on it, removal will fail.h]h]If the folio is dirty, under writeback or if someone else has a ref on it, removal will fail.}(hjOmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjlubjM)}(h **Return**h]j)}(hj`mh]hReturn}(hjbmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^mubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjlubjM)}(hSThe number of pages removed from the mapping. 0 if the folio could not be removed.h]hSThe number of pages removed from the mapping. 0 if the folio could not be removed.}(hjvmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjlubjM)}(h **Context**h]j)}(hjmh]hContext}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM hjlubjM)}(hHThe caller should have a single refcount on the folio and hold its lock.h]hHThe caller should have a single refcount on the folio and hold its lock.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_putback_lru (C function)c.folio_putback_lruhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h,void folio_putback_lru (struct folio *folio)h]h)}(h+void folio_putback_lru(struct folio *folio)h](j)}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM1ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjmhM1ubh)}(hfolio_putback_lruh]j)}(hfolio_putback_lruh]hfolio_putback_lru}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1hhjmhhhjmhM1ubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hj nhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(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_putback_lruasbuh1hhjnubj)}(h h]h }(hjGnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjF )}(hjI h]h*}(hjUnhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjnubj)}(hfolioh]hfolio}(hjbnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjnubah}(h]h ]h"]h$]h&]jjuh1j hjmhhhjmhM1ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjmhhhjmhM1ubah}(h]jmah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjmhM1hjmhhubj4)}(hhh]jM)}(h8Put previously isolated folio onto appropriate LRU list.h]h8Put previously isolated folio onto appropriate LRU list.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM1hjnhhubah}(h]h ]h"]h$]h&]uh1j3hjmhhhjmhM1ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjnjHjnjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct folio *folio`` Folio to be returned to an LRU list. **Description** Add previously isolated **folio** to appropriate LRU list. The folio may still be unevictable for other reasons. **Context** lru_lock must not be held, interrupts must be enabled.h](jM)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM5hjnubj)}(hhh]j)}(h=``struct folio *folio`` Folio to be returned to an LRU list. h](j)}(h``struct folio *folio``h]jS)}(hjnh]hstruct folio *folio}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjnubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM2hjnubj)}(hhh]jM)}(h$Folio to be returned to an LRU list.h]h$Folio to be returned to an LRU list.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjnhM2hjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhM2hjnubah}(h]h ]h"]h$]h&]uh1jhjnubjM)}(h**Description**h]j)}(hjoh]h Description}(hj ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM4hjnubjM)}(hpAdd previously isolated **folio** to appropriate LRU list. The folio may still be unevictable for other reasons.h](hAdd previously isolated }(hjohhhNhNubj)}(h **folio**h]hfolio}(hj&ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubhO to appropriate LRU list. The folio may still be unevictable for other reasons.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM3hjnubjM)}(h **Context**h]j)}(hjAoh]hContext}(hjCohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?oubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM6hjnubjM)}(h6lru_lock must not be held, interrupts must be enabled.h]h6lru_lock must not be held, interrupts must be enabled.}(hjWohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM7hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_isolate_lru (C function)c.folio_isolate_lruhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h,bool folio_isolate_lru (struct folio *folio)h]h)}(h+bool folio_isolate_lru(struct folio *folio)h](j)}(hj)h]hbool}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjohMubh)}(hfolio_isolate_lruh]j)}(hfolio_isolate_lruh]hfolio_isolate_lru}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1hhjohhhjohMubj )}(h(struct folio *folio)h]j )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjohhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j)}(hfolioh]hfolio}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjomodnameN classnameNjpjs)}jv]jy)}jljosbc.folio_isolate_lruasbuh1hhjoubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjF )}(hjI h]h*}(hjphhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjoubj)}(hfolioh]hfolio}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjoubah}(h]h ]h"]h$]h&]jjuh1j hjohhhjohMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj~ohhhjohMubah}(h]jyoah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjohMhj{ohhubj4)}(hhh]jM)}(h)Try to isolate a folio from its LRU list.h]h)Try to isolate a folio from its LRU list.}(hjEphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjBphhubah}(h]h ]h"]h$]h&]uh1j3hj{ohhhjohMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj]pjHj]pjIjJjKuh1hhhhjxhNhNubj)}(hXR**Parameters** ``struct folio *folio`` Folio to isolate from its LRU list. **Description** Isolate a **folio** from an LRU list and adjust the vmstat statistic corresponding to whatever LRU list the folio was on. The folio will have its LRU flag cleared. If it was found on the active list, it will have the Active flag set. If it was found on the unevictable list, it will have the Unevictable flag set. These flags may need to be cleared by the caller before letting the page go. (1) Must be called with an elevated refcount on the folio. This is a fundamental difference from isolate_lru_folios() (which is called without a stable reference). (2) The lru_lock must not be held. (3) Interrupts must be enabled. **Context** **Return** true if the folio was removed from an LRU list. false if the folio was not on an LRU list.h](jM)}(h**Parameters**h]j)}(hjgph]h Parameters}(hjiphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjepubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjapubj)}(hhh]j)}(h<``struct folio *folio`` Folio to isolate from its LRU list. h](j)}(h``struct folio *folio``h]jS)}(hjph]hstruct folio *folio}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjpubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjpubj)}(hhh]jM)}(h#Folio to isolate from its LRU list.h]h#Folio to isolate from its LRU list.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphMhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMhj}pubah}(h]h ]h"]h$]h&]uh1jhjapubjM)}(h**Description**h]j)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjapubjM)}(hyIsolate a **folio** from an LRU list and adjust the vmstat statistic corresponding to whatever LRU list the folio was on.h](h Isolate a }(hjphhhNhNubj)}(h **folio**h]hfolio}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubhf from an LRU list and adjust the vmstat statistic corresponding to whatever LRU list the folio was on.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjapubjM)}(hXThe folio will have its LRU flag cleared. If it was found on the active list, it will have the Active flag set. If it was found on the unevictable list, it will have the Unevictable flag set. These flags may need to be cleared by the caller before letting the page go.h]hXThe folio will have its LRU flag cleared. If it was found on the active list, it will have the Active flag set. If it was found on the unevictable list, it will have the Unevictable flag set. These flags may need to be cleared by the caller before letting the page go.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjapubj+)}(hhh](j+)}(hMust be called with an elevated refcount on the folio. This is a fundamental difference from isolate_lru_folios() (which is called without a stable reference).h]jM)}(hMust be called with an elevated refcount on the folio. This is a fundamental difference from isolate_lru_folios() (which is called without a stable reference).h]hMust be called with an elevated refcount on the folio. This is a fundamental difference from isolate_lru_folios() (which is called without a stable reference).}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhj qubah}(h]h ]h"]h$]h&]uh1j+hjqubj+)}(hThe lru_lock must not be held.h]jM)}(hj%qh]hThe lru_lock must not be held.}(hj'qhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhj#qubah}(h]h ]h"]h$]h&]uh1j+hjqubj+)}(hInterrupts must be enabled. h]jM)}(hInterrupts must be enabled.h]hInterrupts must be enabled.}(hj?qhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhj;qubah}(h]h ]h"]h$]h&]uh1j+hjqubeh}(h]h ]h"]h$]h&]j+j+j+j!j+j!uh1j+hjapubjM)}(h **Context**h]j)}(hj\qh]hContext}(hj^qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZqubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjapubjM)}(h **Return**h]j)}(hjtqh]hReturn}(hjvqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrqubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjapubjM)}(hZtrue if the folio was removed from an LRU list. false if the folio was not on an LRU list.h]hZtrue if the folio was removed from an LRU list. false if the folio was not on an LRU list.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjapubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*check_move_unevictable_folios (C function)c.check_move_unevictable_folioshNtauh1hhjxhhhNhNubh)}(hhh](h)}(h?void check_move_unevictable_folios (struct folio_batch *fbatch)h]h)}(h>void check_move_unevictable_folios(struct folio_batch *fbatch)h](j)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMBubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhMBubh)}(hcheck_move_unevictable_foliosh]j)}(hcheck_move_unevictable_foliosh]hcheck_move_unevictable_folios}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1hhjqhhhjqhMBubj )}(h(struct folio_batch *fbatch)h]j )}(hstruct folio_batch *fbatchh](j5)}(hj8h]hstruct}(hjqhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjqubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]j)}(h folio_batchh]h folio_batch}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjrmodnameN classnameNjpjs)}jv]jy)}jljqsbc.check_move_unevictable_foliosasbuh1hhjqubj)}(h h]h }(hj4rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjF )}(hjI h]h*}(hjBrhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjqubj)}(hfbatchh]hfbatch}(hjOrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjqubah}(h]h ]h"]h$]h&]jjuh1j hjqhhhjqhMBubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjqhhhjqhMBubah}(h]jqah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjqhMBhjqhhubj4)}(hhh]jM)}(h2Move evictable folios to appropriate zone lru listh]h2Move evictable folios to appropriate zone lru list}(hjyrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMBhjvrhhubah}(h]h ]h"]h$]h&]uh1j3hjqhhhjqhMBubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjrjHjrjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMFhjrubj)}(hhh]j)}(h=``struct folio_batch *fbatch`` Batch of lru folios to check. h](j)}(h``struct folio_batch *fbatch``h]jS)}(hjrh]hstruct folio_batch *fbatch}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjrubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMDhjrubj)}(hhh]jM)}(hBatch of lru folios to check.h]hBatch of lru folios to check.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrhMDhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMDhjrubah}(h]h ]h"]h$]h&]uh1jhjrubjM)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMFhjrubjM)}(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.}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1jLhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMEhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__remove_pages (C function)c.__remove_pageshNtauh1hhjxhhhNhNubh)}(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}(hj:shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6shhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chM?ubj)}(h h]h }(hjIshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6shhhjHshM?ubh)}(h__remove_pagesh]j)}(h__remove_pagesh]h__remove_pages}(hj[shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWsubah}(h]h ](jjeh"]h$]h&]jjuh1hhj6shhhjHshM?ubj )}(hG(unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap)h](j )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjwshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjssubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjssubj)}(hlongh]hlong}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjssubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjssubj)}(hpfnh]hpfn}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjssubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjosubj )}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hlongh]hlong}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hnr_pagesh]hnr_pages}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjosubj )}(hstruct vmem_altmap *altmaph](j5)}(hj8h]hstruct}(hjthhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjtubj)}(h h]h }(hj&thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j)}(h vmem_altmaph]h vmem_altmap}(hj7thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4tubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj9tmodnameN classnameNjpjs)}jv]jy)}jlj]ssbc.__remove_pagesasbuh1hhjtubj)}(h h]h }(hjWthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjF )}(hjI h]h*}(hjethhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjtubj)}(haltmaph]haltmap}(hjrthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjosubeh}(h]h ]h"]h$]h&]jjuh1j hj6shhhjHshM?ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj2shhhjHshM?ubah}(h]j-sah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjHshM?hj/shhubj4)}(hhh]jM)}(hremove sections of pagesh]hremove sections of pages}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chM?hjthhubah}(h]h ]h"]h$]h&]uh1j3hj/shhhjHshM?ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjtjHjtjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMChjtubj)}(hhh](j)}(hQ``unsigned long pfn`` starting pageframe (must be aligned to start of a section) h](j)}(h``unsigned long pfn``h]jS)}(hjth]hunsigned long pfn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjtubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chM@hjtubj)}(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)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjthM@hjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthM@hjtubj)}(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)}(hjuh]hunsigned long nr_pages}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMAhjuubj)}(hhh]jM)}(h{modnameN classnameNjpjs)}jv]jy)}jlj{sbc.mmu_notifier_registerasbuh1hhj{ubj)}(h h]h }(hj\{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjF )}(hjI h]h*}(hjj{hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj{ubj)}(h subscriptionh]h subscription}(hjw{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{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]jX{c.mmu_notifier_registerasbuh1hhj{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 hjzhhhjzhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjzhhhjzhMubah}(h]jzah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjzhMhjzhhubj4)}(hhh]jM)}(hRegister a notifier on a mmh]hRegister a notifier on a mm}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj|hhubah}(h]h ]h"]h$]h&]uh1j3hjzhhhjzhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj)|jHj)|jIjJjKuh1hhhhjxhNhNubj)}(hX7**Parameters** ``struct mmu_notifier *subscription`` The notifier to attach ``struct mm_struct *mm`` The mm to attach the notifier to **Description** Must not hold mmap_lock nor any other VM related lock when calling this registration function. Must also ensure mm_users can't go down to zero while this runs to avoid races with mmu_notifier_release, so mm has to be current->mm or the mm should be pinned safely such as with get_task_mm(). If the mm is not current->mm, the mm_users pin should be released by calling mmput after mmu_notifier_register returns. mmu_notifier_unregister() or mmu_notifier_put() must be always called to unregister the notifier. While the caller has a mmu_notifier get the subscription->mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().h](jM)}(h**Parameters**h]j)}(hj3|h]h Parameters}(hj5|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1|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)}(h=``struct mmu_notifier *subscription`` The notifier to attach h](j)}(h%``struct mmu_notifier *subscription``h]jS)}(hjR|h]h!struct mmu_notifier *subscription}(hjT|hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjP|ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjL|ubj)}(hhh]jM)}(hThe notifier to attachh]hThe notifier to attach}(hjk|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjg|hMhjh|ubah}(h]h ]h"]h$]h&]uh1jhjL|ubeh}(h]h ]h"]h$]h&]uh1jhjg|hMhjI|ubj)}(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}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjI|ubeh}(h]h ]h"]h$]h&]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)}(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.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj-|ubjM)}(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.chMhj-|ubjM)}(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.chMhj-|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$mmu_notifier_get_locked (C function)c.mmu_notifier_get_lockedhNtauh1hhjxhhhNhNubh)}(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 }(hj7}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%}hhhj6}hM ubh)}(hhh]j)}(h mmu_notifierh]h mmu_notifier}(hjH}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjJ}modnameN classnameNjpjs)}jv]jy)}jlmmu_notifier_get_lockedsbc.mmu_notifier_get_lockedasbuh1hhj%}hhhj6}hM ubj)}(h h]h }(hji}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%}hhhj6}hM ubjF )}(hjI h]h*}(hjw}hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj%}hhhj6}hM ubh)}(hmmu_notifier_get_lockedh]j)}(hjf}h]hmmu_notifier_get_locked}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj%}hhhj6}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}(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)}(hmmu_notifier_opsh]hmmu_notifier_ops}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jd}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)}(hopsh]hops}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}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}(hjL~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI~ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjN~modnameN classnameNjpjs)}jv]jd}c.mmu_notifier_get_lockedasbuh1hhj*~ubj)}(h h]h }(hjj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*~ubjF )}(hjI h]h*}(hjx~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%}hhhj6}hM ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj!}hhhj6}hM ubah}(h]j}ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj6}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}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chM hj~hhubah}(h]h ]h"]h$]h&]uh1j3hj}hhhj6}hM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj~jHj~jIjJjKuh1hhhhjxhNhNubj)}(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)}(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.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&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~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}(hjBhhhNhNubah}(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)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj~ubjM)}(hEach call to mmu_notifier_get() must be paired with a call to mmu_notifier_put(). The caller must hold the write side of mm->mmap_lock.h]hEach call to mmu_notifier_get() must be paired with a call to mmu_notifier_put(). The caller must hold the write side of mm->mmap_lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj~ubjM)}(hWhile the caller has a mmu_notifier get the mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().h]hWhile the caller has a mmu_notifier get the mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().}(hjhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmmu_notifier_put (C function)c.mmu_notifier_puthNtauh1hhjxhhhNhNubh)}(hhh](h)}(h9void mmu_notifier_put (struct mmu_notifier *subscription)h]h)}(h8void mmu_notifier_put(struct mmu_notifier *subscription)h](j)}(hvoidh]hvoid}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmmu_notifier_puth]j)}(hmmu_notifier_puth]hmmu_notifier_put}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(h#(struct mmu_notifier *subscription)h]j )}(h!struct mmu_notifier *subscriptionh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h mmu_notifierh]h mmu_notifier}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj$modnameN classnameNjpjs)}jv]jy)}jljsbc.mmu_notifier_putasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjPhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h subscriptionh]h subscription}(hj]hhhNhNubah}(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%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&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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)}(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&]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 notifier to act onh]hThe notifier to act on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj݀hMhjހubah}(h]h ]h"]h$]h&]uh1jhj€ubeh}(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&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubjM)}(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.chMhjubjM)}(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.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubjM)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubjM)}(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().}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubjM)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)mmu_interval_notifier_insert (C function)c.mmu_interval_notifier_inserthNtauh1hhjxhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmmu_interval_notifier_inserth]j)}(hmmu_interval_notifier_inserth]hmmu_interval_notifier_insert}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hj΁hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hmmu_interval_notifierh]hmmu_interval_notifier}(hj߁hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj܁ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.mmu_interval_notifier_insertasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(h interval_subh]h interval_sub}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hstruct mm_struct *mmh](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 mm_structh]h mm_struct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjSmodnameN classnameNjpjs)}jv]jc.mmu_interval_notifier_insertasbuh1hhj/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)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj͂hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjۂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h+const struct mmu_interval_notifier_ops *opsh](j5)}(hjh]hconst}(hjEhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj5)}(hj8h]hstruct}(hj`hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjAubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hhh]j)}(hmmu_interval_notifier_opsh]hmmu_interval_notifier_ops}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.mmu_interval_notifier_insertasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjAubj)}(hopsh]hops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(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)}(hInsert an interval notifierh]hInsert an interval notifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjރhhubah}(h]h ]h"]h$]h&]uh1j3hjyhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj"h]h*struct mmu_interval_notifier *interval_sub}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubj)}(hhh]jM)}(h!Interval subscription to registerh]h!Interval subscription to register}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(h0``struct mm_struct *mm`` mm_struct to attach to h](j)}(h``struct mm_struct *mm``h]jS)}(hj[h]hstruct mm_struct *mm}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjYubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjUubj)}(hhh]jM)}(hmm_struct to attach toh]hmm_struct to attach to}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubj)}(h<``unsigned long start`` Starting virtual address to monitor h](j)}(h``unsigned long start``h]jS)}(hjh]hunsigned long start}(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#Starting virtual address to monitorh]h#Starting virtual address to monitor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h8``unsigned long length`` Length of the range to monitor h](j)}(h``unsigned long length``h]jS)}(hj̈́h]hunsigned long length}(hjτhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj˄ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjDŽubj)}(hhh]jM)}(hLength of the range to monitorh]hLength of the range to monitor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjDŽubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.}(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&]uh1j3hj`hhhjyhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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?``struct balloon_dev_info *balloon`` pointer to balloon device h](j)}(h$``struct balloon_dev_info *balloon``h]jS)}(hj܉h]h struct balloon_dev_info *balloon}(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.chKhj։ubj)}(hhh]jM)}(hpointer to balloon deviceh]hpointer to balloon device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj։ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjӉubj)}(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&]uh1jLhj*hKhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjӉubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(h2Caller must ensure the balloon_pages_lock is held.h]h2Caller must ensure the balloon_pages_lock is held.}(hjfhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"balloon_page_finalize (C function)c.balloon_page_finalizehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h.void balloon_page_finalize (struct page *page)h]h)}(h-void balloon_page_finalize(struct page *page)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chK(ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK(ubh)}(hballoon_page_finalizeh]j)}(hballoon_page_finalizeh]hballoon_page_finalize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhK(ubj )}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsbc.balloon_page_finalizeasbuh1hhjΊubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΊubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjΊubj)}(hpageh]hpage}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΊubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjʊubah}(h]h ]h"]h$]h&]jjuh1j hjhhhjhK(ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhK(ubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhK(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}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chK(hjRhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhK(ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjmjHjmjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chK,hjqubj)}(hhh]j)}(h@``struct page *page`` page to be released to the page allocator 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.chK*hjubj)}(hhh]jM)}(h)page to be released to the page allocatorh]h)page to be released to the page allocator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhK*hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK*hjubah}(h]h ]h"]h$]h&]uh1jhjqubjM)}(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:133: ./mm/balloon.chK,hjqubjM)}(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.chK+hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&balloon_page_list_enqueue (C function)c.balloon_page_list_enqueuehNtauh1hhjxhhhNhNubh)}(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)}(hj7h]hballoon_page_list_enqueue}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(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}(hjhhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j)}(hballoon_dev_infoh]hballoon_dev_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j5c.balloon_page_list_enqueueasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjdubj)}(h b_dev_infoh]h b_dev_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubj )}(hstruct list_head *pagesh](j5)}(hj8h]hstruct}(hj،hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjԌubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԌubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]j5c.balloon_page_list_enqueueasbuh1hhjԌ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)}(hpagesh]hpages}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԌubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj`ubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj:hKAubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj:hKAubah}(h]j ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj:hKAhj hhubj4)}(hhh]jM)}(h3inserts a list of pages into the balloon page list.h]h3inserts a list of pages into the balloon page list.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKAhjVhhubah}(h]h ]h"]h$]h&]uh1j3hj hhhj:hKAubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjqjHjqjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct balloon_dev_info *b_dev_info`` balloon device descriptor where we will insert a new page to ``struct list_head *pages`` pages to enqueue - allocated using balloon_page_alloc. **Description** Driver must call this function to properly enqueue balloon pages before definitively removing them from the guest system. **Return** number of pages that were enqueued.h](jM)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKEhjuubj)}(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)}(hjh]h#struct balloon_dev_info *b_dev_info}(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.chKChjubj)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjEhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj`jHj`jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjdubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(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&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjdubjM)}(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.}(hjڒhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjdubjM)}(h **Return**h]j)}(hjh]hReturn}(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.chKhjdubjM)}(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.chKhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!balloon_page_enqueue (C function)c.balloon_page_enqueuehNtauh1hhjxhhhNhNubh)}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj>hKubh)}(hballoon_page_enqueueh]j)}(hballoon_page_enqueueh]hballoon_page_enqueue}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1hhj,hhhj>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}(hjmhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hhh]j)}(hballoon_dev_infoh]hballoon_dev_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljSsbc.balloon_page_enqueueasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjiubj)}(h b_dev_infoh]h b_dev_info}(hjƓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeubj )}(hstruct page *pageh](j5)}(hj8h]hstruct}(hjߓhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjۓubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۓubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.balloon_page_enqueueasbuh1hhjۓ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)}(hpageh]hpage}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۓubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjeubeh}(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.inserts a new page into the balloon page list.h]h.inserts a new page 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%hhhj>hKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjxjHjxjIjJjKuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct balloon_dev_info *b_dev_info`` balloon device descriptor where we will insert a new page ``struct page *page`` new page to enqueue - allocated using balloon_page_alloc. **Description** Drivers must call this function to properly enqueue a new allocated balloon page before definitively removing the page from the guest system. Drivers must not enqueue pages while page->lru is still in use, and must not use page->lru until a page was unqueued again.h](jM)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj|ubj)}(hhh](j)}(hb``struct balloon_dev_info *b_dev_info`` balloon device descriptor where we will insert a new page h](j)}(h'``struct balloon_dev_info *b_dev_info``h]jS)}(hjh]h#struct balloon_dev_info *b_dev_info}(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)}(h9balloon device descriptor where we will insert a new pageh]h9balloon device descriptor where we will insert a new page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hP``struct page *page`` new page to enqueue - allocated using balloon_page_alloc. 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.chKhjԔubj)}(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&]uh1jhjԔubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhj|ubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj|ubjM)}(hDrivers must call this function to properly enqueue a new allocated balloon page before definitively removing the page from the guest system.h]hDrivers must call this function to properly enqueue a new allocated balloon page before definitively removing the page from the guest system.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj|ubjM)}(h{Drivers must not enqueue pages while page->lru is still in use, and must not use page->lru until a page was unqueued again.h]h{Drivers must not enqueue pages while page->lru is still in use, and must not use page->lru until a page was unqueued again.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!balloon_page_dequeue (C function)c.balloon_page_dequeuehNtauh1hhjxhhhNhNubh)}(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}(hjihhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjehhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjvhKubh)}(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_dequeueasbuh1hhjehhhjvhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjvhKubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjehhhjvhKubh)}(hballoon_page_dequeueh]j)}(hjh]hballoon_page_dequeue}(hjȕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĕubah}(h]h ](jjeh"]h$]h&]jjuh1hhjehhhjvhKubj )}(h%(struct balloon_dev_info *b_dev_info)h]j )}(h#struct balloon_dev_info *b_dev_infoh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjߕubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߕubh)}(hhh]j)}(hballoon_dev_infoh]hballoon_dev_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.balloon_page_dequeueasbuh1hhjߕ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)}(h b_dev_infoh]h b_dev_info}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߕubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjەubah}(h]h ]h"]h$]h&]jjuh1j hjehhhjvhKubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjahhhjvhKubah}(h]j\ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjvhKhj^hhubj4)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjahhubah}(h]h ]h"]h$]h&]uh1j3hj^hhhjvhKubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj|jHj|jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjh]h#struct balloon_dev_info *b_dev_info}(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)}(h9balloon device descriptor where we will grab a page from.h]h9balloon device descriptor where we will grab a page from.}(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}(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)}(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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon.chKhjubjM)}(h **Return**h]j)}(hj4h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(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.}(hjJhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmf_insert_pfn_pmd (C function)c.vmf_insert_pfn_pmdhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hSvm_fault_t vmf_insert_pfn_pmd (struct vm_fault *vmf, unsigned long pfn, bool write)h]h)}(hRvm_fault_t vmf_insert_pfn_pmd(struct vm_fault *vmf, unsigned long pfn, bool write)h](h)}(hhh]j)}(h vm_fault_th]h vm_fault_t}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj~modnameN classnameNjpjs)}jv]jy)}jlvmf_insert_pfn_pmdsbc.vmf_insert_pfn_pmdasbuh1hhjuhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhMubh)}(hvmf_insert_pfn_pmdh]j)}(hjh]hvmf_insert_pfn_pmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjuhhhjhMubj )}(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 }(hjؗhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǗubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.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}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǗubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj×ubj )}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hlongh]hlong}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hpfnh]hpfn}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj×ubj )}(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 hj×ubeh}(h]h ]h"]h$]h&]jjuh1j hjuhhhjhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjqhhhjhMubah}(h]jlah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhMhjnhhubj4)}(hhh]jM)}(hinsert a pmd size pfnh]hinsert a pmd size pfn}(hjјhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjΘhhubah}(h]h ]h"]h$]h&]uh1j3hjnhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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.chMhj ubj)}(hhh]jM)}(hStructure describing the faulth]hStructure describing the fault}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj ubj)}(h$``unsigned long pfn`` pfn to insert h](j)}(h``unsigned long pfn``h]jS)}(hjKh]hunsigned long pfn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjIubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjEubj)}(hhh]jM)}(h pfn to inserth]h pfn to insert}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj 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.chMhj~ubj)}(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&]uh1jhj~ubeh}(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&]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.}(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)}(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.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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmf_insert_pfn_pud (C function)c.vmf_insert_pfn_pudhNtauh1hhjxhhhNhNubh)}(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&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj0modnameN classnameNjpjs)}jv]jy)}jlvmf_insert_pfn_pudsbc.vmf_insert_pfn_pudasbuh1hhj'hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhjOhMubh)}(hvmf_insert_pfn_pudh]j)}(hjLh]hvmf_insert_pfn_pud}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj'hhhjOhMubj )}(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&]uh1j4hjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jJc.vmf_insert_pfn_pudasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjF )}(hjI h]h*}(hjǚhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjyubj)}(hvmfh]hvmf}(hjԚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubj )}(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 hjuubj )}(h bool writeh](j)}(hj)h]hbool}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hwriteh]hwrite}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjuubeh}(h]h ]h"]h$]h&]jjuh1j hj'hhhjOhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj#hhhjOhMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjOhMhj hhubj4)}(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&]uh1j3hj hhhjOhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh](j)}(h8``struct vm_fault *vmf`` Structure describing the fault h](j)}(h``struct vm_fault *vmf``h]jS)}(hjěh]hstruct vm_fault *vmf}(hjƛhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj›ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]jM)}(hStructure describing the faulth]hStructure describing the fault}(hjݛhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjٛhMhjڛubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjٛhMhjubj)}(h$``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&]uh1jhjhMhjubj)}(h*``bool write`` whether it's a write fault h](j)}(h``bool write``h]jS)}(hj6h]h bool write}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj0ubj)}(hhh]jM)}(hwhether it's a write faulth]hwhether it’s a write fault}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjubeh}(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&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubjM)}(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.chMhjubjM)}(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.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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!vmf_insert_folio_pud (C function)c.vmf_insert_folio_pudhNtauh1hhjxhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݜubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jlvmf_insert_folio_pudsbc.vmf_insert_folio_pudasbuh1hhjٜ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ٜhhhjhMubh)}(hvmf_insert_folio_pudh]j)}(hjh]hvmf_insert_folio_pud}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjٜhhhjhMubj )}(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&]uh1j4hj+ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubh)}(hhh]j)}(hvm_faulth]hvm_fault}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjOmodnameN classnameNjpjs)}jv]jc.vmf_insert_folio_pudasbuh1hhj+ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjF )}(hjI h]h*}(hjyhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj+ubj)}(hvmfh]hvmf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj'ubj )}(hstruct folio *folioh](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.vmf_insert_folio_pudasbuh1hhjubj)}(h h]h }(hj۝hhhNhNubah}(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 hj'ubj )}(h bool writeh](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hwriteh]hwrite}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(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-insert a pud size folio mapped by a pud entryh]h-insert a pud size folio mapped by a pud entry}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjQhhubah}(h]h ]h"]h$]h&]uh1j3hjҜhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjljHjljIjJjKuh1hhhhjxhNhNubj)}(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)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjpubj)}(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(``struct folio *folio`` folio to insert h](j)}(h``struct folio *folio``h]jS)}(hjΞh]hstruct folio *folio}(hjОhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj̞ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjȞubj)}(hhh]jM)}(hfolio to inserth]hfolio 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}(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)}(hwhether it's a write faulth]hwhether it’s a write fault}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjpubjM)}(h **Return**h]j)}(hjBh]hReturn}(hjDhhhNhNubah}(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 hjpubjM)}(hvm_fault_t value.h]hvm_fault_t value.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htouch_pmd (C function) c.touch_pmdhNtauh1hhjxhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM5ubh)}(h touch_pmdh]j)}(h touch_pmdh]h touch_pmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM5ubj )}(hH(struct vm_area_struct *vma, unsigned long addr, pmd_t *pmd, bool write)h](j )}(hstruct vm_area_struct *vmah](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_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޟubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljsb c.touch_pmdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hlongh]hlong}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(haddrh]haddr}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hpmdh]hpmd}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(h bool writeh](j)}(hj)h]hbool}(hj۠hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjנubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjנubj)}(hwriteh]hwrite}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjנubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhjhM5ubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhjhM5ubah}(h]jzah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjhM5hj|hhubj4)}(hhh]jM)}(h;Mark page table pmd entry as accessed and dirty (for write)h]h;Mark page table pmd entry as accessed and dirty (for write)}(hj hhhNhNubah}(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&]uh1j3hj|hhhjhM5ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj8jHj8jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjBh]h Parameters}(hjDhhhNhNubah}(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)}(hjah]hstruct vm_area_struct *vma}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj_ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM6hj[ubj)}(hhh]jM)}(hThe VMA covering **addr**h](hThe VMA covering }(hjzhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jLhjvhM6hjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhM6hjXubj)}(h+``unsigned long addr`` The 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&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM7hjubj)}(hhh]jM)}(hThe virtual addressh]hThe virtual address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjXubj)}(h@``pmd_t *pmd`` pmd pointer into the page table mapping **addr** h](j)}(h``pmd_t *pmd``h]jS)}(hjh]h pmd_t *pmd}(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.chM8hjۡubj)}(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&]uh1jhjۡubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjXubj)}(h+``bool write`` Whether it's a write access 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.chM9hj"ubj)}(hhh]jM)}(hWhether it's a write accessh]hWhether it’s a write access}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hM9hj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hM9hjXubeh}(h]h ]h"]h$]h&]uh1jhj<ubjM)}(h **Return**h]j)}(hjch]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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}(hjyhhhNhNubah}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hzap_huge_pmd (C function)c.zap_huge_pmdhNtauh1hhjxhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(h zap_huge_pmdh]j)}(h zap_huge_pmdh]h zap_huge_pmd}(hjȢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĢubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM 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}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(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_pmdasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj0hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(htlbh]htlb}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjܢubj )}(hstruct vm_area_struct *vmah](j5)}(hj8h]hstruct}(hjVhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjvmodnameN classnameNjpjs)}jv]jc.zap_huge_pmdasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjRubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjܢubj )}(h pmd_t *pmdh](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]jc.zap_huge_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)}(hpmdh]hpmd}(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 }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjShhhNhNubah}(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)}(h$Zap a huge THP which is of PMD size.h]h$Zap a huge THP which is of PMD size.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM hjzhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhM ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chM hjubj)}(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)}(hjh]hstruct mmu_gather *tlb}(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)}(h7The MMU gather TLB state associated with the operation.h]h7The MMU gather TLB state associated with the operation.}(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)}(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&]uh1jLhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h0``pmd_t *pmd`` A pointer to the leaf PMD entry. h](j)}(h``pmd_t *pmd``h]jS)}(hj0h]h pmd_t *pmd}(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.chM hj*ubj)}(hhh]jM)}(h A pointer to the leaf PMD entry.h]h A pointer to the leaf PMD entry.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEhM hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM hjubj)}(hA``unsigned long addr`` The virtual address for the range to zap. h](j)}(h``unsigned long addr``h]jS)}(hjih]hunsigned long addr}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjgubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM hjcubj)}(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&]uh1jLhj~hM hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM hjubjM)}(h)``true`` on success, ``false`` otherwise.h](jS)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh on success, }(hjhhhNhNubjS)}(h ``false``h]hfalse}(hjХhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh otherwise.}(hjhhhNhNubeh}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__split_unmapped_folio (C function)c.__split_unmapped_foliohNtauh1hhjxhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMlubh)}(h__split_unmapped_folioh]j)}(h__split_unmapped_folioh]h__split_unmapped_folio}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMlubj )}(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}(hjFhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(hfolioh]hfolio}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjfmodnameN classnameNjpjs)}jv]jy)}jlj,sbc.__split_unmapped_folioasbuh1hhjBubj)}(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 )}(h int new_orderh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjƦhhhNhNubah}(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 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.__split_unmapped_folioasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj7hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hsplit_ath]hsplit_at}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubj )}(hstruct xa_state *xash](j5)}(hj8h]hstruct}(hj]hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(hxa_stateh]hxa_state}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj}modnameN classnameNjpjs)}jv]jc.__split_unmapped_folioasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjYubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hj>ubj )}(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}(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ɧubjF )}(hjI h]h*}(hjhhhNhNubah}(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 )}(henum split_type split_typeh](j5)}(hj+h]henum}(hj=hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(h split_typeh]h split_type}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj]modnameN classnameNjpjs)}jv]jc.__split_unmapped_folioasbuh1hhj9ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h split_typeh]h split_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(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)}(hcsplits an unmapped **folio** to lower order folios in two ways: uniform split or non-uniform split.h](hsplits an unmapped }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhG to lower order folios in two ways: uniform split or non-uniform split.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMlhjhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMlubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjۨjHjۨjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMphjߨubj)}(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.chMnhjubj)}(hhh]jM)}(hthe to-be-split folioh]hthe to-be-split folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubj)}(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.chMqhj7ubj)}(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 }(hjVhhhNhNubj)}(h **folio**h]hfolio}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh’s order - 1 to new_order).}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMohjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMqhjubj)}(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.chMshjubj)}(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 }(hjhhhNhNubj)}(h **split_at**h]hsplit_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh' will be split until its order becomes }(hjhhhNhNubj)}(h **new_order**h]h new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubj)}(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)}(hjh]hstruct xa_state *xas}(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)}(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&]uh1jLhjhMthjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMthjubj)}(h5``struct address_space *mapping`` **folio->mapping** h](j)}(h!``struct address_space *mapping``h]jS)}(hj h]hstruct address_space *mapping}(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.chMuhjubj)}(hhh]jM)}(h**folio->mapping**h]j)}(hj;h]hfolio->mapping}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jLhj5hMuhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMuhjubj)}(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)}(hjbh]henum split_type split_type}(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.chMvhj\ubj)}(hhh]jM)}(h;if the split is uniform or not (buddy allocator like split)h]h;if the split is uniform or not (buddy allocator like split)}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwhMvhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMvhjubeh}(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.chMxhjߨubj+)}(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 }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjªhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh into multiple }(hjhhhNhNubj)}(h **new_order**h]h new_order}(hjԪhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhn small folios, where all small folios have the same order. This is done when split_type is SPLIT_TYPE_UNIFORM.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMwhjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(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}(hj#hhhNhNubah}(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.chMzhjubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]j+j+j+hj+j+uh1j+hjߨubjM)}(h.The high level flow for these two methods are:h]h.The high level flow for these two methods are:}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjߨubj+)}(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: }(hj^hhhNhNubj)}(h**xas**h]hxas}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubhf is split with no expectation of failure and a single __split_folio_to_order() is called to split the }(hj^hhhNhNubj)}(h **folio**h]hfolio}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh into }(hj^hhhNhNubj)}(h **new_order**h]h new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh along with stats update.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjZubah}(h]h ]h"]h$]h&]uh1j+hjWubj+)}(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 - }(hjhhhNhNubj)}(h **new_order**h]h new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhV calls to __split_folio_to_order() are expected to be made in a for loop to split the }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjǫhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh4 to one lower order at a time. The folio containing }(hjhhhNhNubj)}(h **split_at**h]hsplit_at}(hj٫hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is split in each iteration. }(hjhhhNhNubj)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh= is split into half in each iteration and can fail. A failed }(hjhhhNhNubj)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; split leaves split folios as is without merging them back.}(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+hjWubeh}(h]h ]h"]h$]h&]j+j+j+hj+j+uh1j+hjߨubjM)}(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 }(hj"hhhNhNubj)}(h **split_at**h]hsplit_at}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubhI. The caller needs to unlock and/or free after-split folios if necessary.}(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 **Return**h]j)}(hjEh]hReturn}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjߨubjM)}(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, }(hj[hhhNhNubj)}(h **folio**h]hfolio}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh might be split but not to }(hj[hhhNhNubj)}(h **new_order**h]h new_order}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh, the caller needs to check)}(hj[hhhNhNubeh}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#folio_check_splittable (C function)c.folio_check_splittablehNtauh1hhjxhhhNhNubh)}(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}(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)}(hfolio_check_splittableh]j)}(hfolio_check_splittableh]hfolio_check_splittable}(hjϬhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjˬubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhMubj )}(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&]uh1j4hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljѬsbc.folio_check_splittableasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj7hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int new_orderh](j)}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hinth]hint}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h new_orderh]h new_order}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(henum split_type split_typeh](j5)}(hj+h]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}(hj̭hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɭubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjέmodnameN classnameNjpjs)}jv]j%c.folio_check_splittableasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h split_typeh]h split_type}(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 folio can be split to a given orderh]h.check if a folio can be split to a given order}(hj"hhhNhNubah}(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:jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(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)}(hjch]hstruct folio *folio}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjaubah}(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 be splith]hfolio to be split}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjZubj)}(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)}(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 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.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjZubj)}(h<``enum split_type split_type`` uniform or 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)}(huniform or non-uniform splith]huniform or non-uniform split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjZubeh}(h]h ]h"]h$]h&]uh1jhj>ubjM)}(h**Description**h]j)}(hj#h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.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 }(hj9hhhNhNubj)}(h **folio**h]hfolio}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh can be split to }(hj9hhhNhNubj)}(h **new_order**h]h new_order}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh using }(hj9hhhNhNubj)}(h**split_type**h]h split_type}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh3 method. The truncated folio check must come first.}(hj9hhhNhNubeh}(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&]uh1jhj~ubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj>ubjM)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj>ubjM)}(hS0 - **folio** can be split to **new_order**, otherwise an error number is returned.h](h0 - }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjůhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh can be split to }(hjhhhNhNubj)}(h **new_order**h]h new_order}(hjׯhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh(, otherwise an error number is returned.}(hjhhhNhNubeh}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__folio_split (C function)c.__folio_splithNtauh1hhjxhhhNhNubh)}(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&]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 hhhjhMubh)}(h __folio_splith]j)}(h __folio_splith]h __folio_split}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj hhhjhMubj )}(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}(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]jy)}jlj3sbc.__folio_splitasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjF )}(hjI h]h*}(hjhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjIubj)}(hfolio h]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjEubj )}(hunsigned int new_orderh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjͰhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjEubj )}(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}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj0modnameN classnameNjpjs)}jv]jc.__folio_splitasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjF )}(hjI h]h*}(hjZhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj ubj)}(hsplit_ath]hsplit_at}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjEubj )}(hstruct page *lock_ath](j5)}(hj8h]hstruct}(hjhhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__folio_splitasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjF )}(hjI h]h*}(hjʱhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hj|ubj)}(hlock_ath]hlock_at}(hjױhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjEubj )}(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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jc.__folio_splitasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj:hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hlisth]hlist}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjEubj )}(henum split_type split_typeh](j5)}(hj+h]henum}(hj`hhhNhNubah}(h]h ]jAah"]h$]h&]uh1j4hj\ubj)}(h h]h }(hjmhhhNhNubah}(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 reftargetjmodnameN classnameNjpjs)}jv]jc.__folio_splitasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(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 hjEubeh}(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)}(h6split a folio at **split_at** to a **new_order** folioh](hsplit a folio at }(hjԲhhhNhNubj)}(h **split_at**h]hsplit_at}(hjܲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԲubh to a }(hjԲhhhNhNubj)}(h **new_order**h]h new_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԲubh folio}(hjԲhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjѲhhubah}(h]h ]h"]h$]h&]uh1j3hjhhhjhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjjHjjIjJjKuh1hhhhjxhNhNubj)}(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)}(hj9h]hstruct folio *folio}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj3ubj)}(hhh]jM)}(hfolio to splith]hfolio to split}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhMhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj0ubj)}(h6``unsigned int new_order`` the order of the new folio h](j)}(h``unsigned int new_order``h]jS)}(hjrh]hunsigned int new_order}(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.chMhjlubj)}(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&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMhj0ubj)}(h6``struct page *split_at`` a page within the new folio 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.chMhjubj)}(hhh]jM)}(ha page within the new folioh]ha page within the new folio}(hjijhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj0ubj)}(hM``struct page *lock_at`` a page within **folio** to be left locked to caller h](j)}(h``struct page *lock_at``h]jS)}(hjh]hstruct page *lock_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.chMhj޳ubj)}(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&]uh1jhj޳ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj0ubj)}(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}(hj1hhhNhNubah}(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)}(h0after-split folios will be put on it if non NULLh]h0after-split folios will be put on it if non NULL}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhj0ubj)}(hP``enum split_type split_type`` perform uniform split or not (non-uniform split) h](j)}(h``enum split_type split_type``h]jS)}(hjhh]henum split_type split_type}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjbubj)}(hhh]jM)}(h0perform uniform split or not (non-uniform split)h]h0perform uniform split or not (non-uniform split)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj0ubeh}(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)}(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 }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for __split_unmapped_folio().}(hjhhhNhNubeh}(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 }(hjڴhhhNhNubj)}(h **lock_at**h]hlock_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڴubh? remains locked and others are unlocked: 1. for uniform split, }(hjڴhhhNhNubj)}(h **lock_at**h]hlock_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڴubh points to one of }(hjڴhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڴubh@’s subpages; 2. for buddy allocator like (non-uniform) split, }(hjڴhhhNhNubj)}(h **lock_at**h]hlock_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڴubh points to }(hjڴhhhNhNubj)}(h **folio**h]hfolio}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڴubh.}(hjڴhhhNhNubeh}(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)}(hjEh]hReturn}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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, }(hj[hhhNhNubj)}(h **folio**h]hfolio}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh might be split but not to }(hj[hhhNhNubj)}(h **new_order**h]h new_order}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh, the caller needs to check)}(hj[hhhNhNubeh}(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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!folio_split_unmapped (C function)c.folio_split_unmappedhNtauh1hhjxhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM|ubh)}(hfolio_split_unmappedh]j)}(hfolio_split_unmappedh]hfolio_split_unmapped}(hjϵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˵ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhjhM|ubj )}(h-(struct folio *folio, unsigned int new_order)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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetj modnameN classnameNjpjs)}jv]jy)}jljѵsbc.folio_split_unmappedasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hj7hhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hfolioh]hfolio}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjubj )}(hunsigned int new_orderh](j)}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hinth]hint}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h new_orderh]h new_order}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(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)}(h1split a large anon folio that is already unmappedh]h1split a large anon folio that is already unmapped}(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&]uh1j3hjhhhjhM|ubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGj׶jHj׶jIjJjKuh1hhhhjxhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(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 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)}(hj9h]hunsigned int new_order}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM~hj3ubj)}(hhh]jM)}(hthe order of folios after splith]hthe order of folios after split}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNhM~hjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhM~hjubeh}(h]h ]h"]h$]h&]uh1jhj۶ubjM)}(h**Description**h]j)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj۶ubjM)}(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.chMhj۶ubjM)}(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. }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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. }(hjhhhNhNubj)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> should also be unmapped and isolated from LRU (if applicable)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj۶ubjM)}(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.chMhj۶ubjM)}(h **Return**h]j)}(hjݷh]hReturn}(hj߷hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj۷ubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj۶ubjM)}(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.chMhj۶ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_split (C function) c.folio_splithNtauh1hhjxhhhNhNubh)}(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}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj0hMubh)}(h folio_splith]j)}(h folio_splith]h folio_split}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1hhjhhhj0hMubj )}(h\(struct folio *folio, unsigned int new_order, struct page *split_at, struct list_head *list)h](j )}(hstruct folio *folioh](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)}(hfolioh]hfolio}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjAreftypejl reftargetjmodnameN classnameNjpjs)}jv]jy)}jljEsb c.folio_splitasbuh1hhj[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 hjWubj )}(hunsigned int new_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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͸ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͸ubj)}(h new_orderh]h new_order}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͸ubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubj )}(hstruct page *split_ath](j5)}(hj8h]hstruct}(hj"hhhNhNubah}(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 reftargetjBmodnameN classnameNjpjs)}jv]j c.folio_splitasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjlhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hsplit_ath]hsplit_at}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubj )}(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]j c.folio_splitasbuh1hhjubj)}(h h]h }(hjιhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF )}(hjI h]h*}(hjܹhhhNhNubah}(h]h ]jR ah"]h$]h&]uh1jE hjubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1j hjWubeh}(h]h ]h"]h$]h&]jjuh1j hjhhhj0hMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hjhhhj0hMubah}(h]jah ](j+j,eh"]h$]h&]j0j1)j2huh1hhj0hMhjhhubj4)}(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}(hj-hhhNhNubah}(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&]uh1j3hjhhhj0hMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjOjHjOjIjJjKuh1hhhhjxhNhNubj)}(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)}(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.chMhjSubj)}(hhh](j)}(h'``struct folio *folio`` folio to split h](j)}(h``struct folio *folio``h]jS)}(hjxh]hstruct folio *folio}(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)}(hfolio to splith]hfolio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubj)}(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}(hjʺhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjƺhMhjǺubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƺhMhjoubj)}(h6``struct page *split_at`` a page within the new folio 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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubj)}(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)}(hj#h]hstruct list_head *list}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjubj)}(hhh]jM)}(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}(hjDhhhNhNubah}(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.chMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjoubeh}(h]h ]h"]h$]h&]uh1jhjSubjM)}(h**Description**h]j)}(hjqh]h Description}(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.chMhjSubjM)}(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.chMhjSubjM)}(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 }(hjhhhNhNubj)}(h **split_at**h]hsplit_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhXj 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 }(hjhhhNhNubj)}(h **split_at**h]hsplit_at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhY is marked in bracket: [order-4, {order-3}, order-3, order-5, order-6, order-7, order-8].}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjSubjM)}(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.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&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h min_order_for_split (C function)c.min_order_for_splithNtauh1hhjxhhhNhNubh)}(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}(hjChhhNhNubah}(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 }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhMubj)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhMubh)}(hmin_order_for_splith]j)}(hmin_order_for_splith]hmin_order_for_split}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1hhj?hhhjQhMubj )}(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.min_order_for_splitasbuh1hhjubj)}(h h]h }(hjڼhhhNhNubah}(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?hhhjQhMubeh}(h]h ]h"]h$]h&]jjj%uh1hj&j'hj;hhhjQhMubah}(h]j6ah ](j+j,eh"]h$]h&]j0j1)j2huh1hhjQhMhj8hhubj4)}(hhh]jM)}(h/get the minimum order **folio** can be split toh](hget the minimum order }(hjhhhNhNubj)}(h **folio**h]hfolio}(hj'hhhNhNubah}(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&]uh1j3hj8hhhjQhMubeh}(h]h ](jAfunctioneh"]h$]h&]jFjAjGjIjHjIjIjJjKuh1hhhhjxhNhNubj)}(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)}(hjSh]h Parameters}(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.chMhjMubj)}(hhh]j)}(h'``struct folio *folio`` folio to split h](j)}(h``struct folio *folio``h]jS)}(hjrh]hstruct folio *folio}(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.chMhjlubj)}(hhh]jM)}(hfolio to splith]hfolio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubjM)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjMubjM)}(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 }(hjýhhhNhNubj)}(h **folio**h]hfolio}(hj˽hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjýubh 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.}(hjýhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhjMubjM)}(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.chMhjMubjM)}(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.chMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubeh}(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_handlerjSerror_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}(j-j*jFjCjbj@jaj^jJjGjjjEjBjYjVjqjqj}jzjjjjjnjkj\jYjjjujrj%j"u nametypes}(j-jFjbjajJjjEjYjqj}jjjnj\jjuj%uh}(j*hjChhhjjjjjjjjj j j j j@jIj^jIjGjZjjMjBjjVjHjqjijjjmjrjjjjjojjj'j,j$j$jd'ji'j)j)j9,j>,j1j!1j3j3j5j5j6j6jz8j8je:jj:j<j<j?j?j@jAjBjBjJDjODjGjGjeIjjIj`KjeKj0Mj5MjNjNjSjSjVjVj!Xj&XjYjYj|[j[j_j_jhdjmdjhjhjGjjLjjljljmjmjnjnjrpjwpjzjqjrj rj?sjDsjujujwjwjyjyj@{jE{j~j~jjjjj_jdjjjjjjjjjjjjjoj"j'jșj͙jjjjjjjujzj-j2jjjjjejjjjjjjgjlj2j7jjjjj6j;j޻jjjjjjj jjj~jj&j+jjjVj[j+j0jjjjjjjYj^j>jCjjjjjjjjjjjjjjj:j?jjjkjjj jjjYjqjjjjjqjvj j jjj)j.jjjDjIjjjjjj_j|jj j%j j j #j#j$j$j'j'j,*j1*j+j+j-j-j0j 0j2j2j5j"5j7j 7j,9j19j:j:jT<jY<jR>jW>j?j?j*Bj/BjCjCjEjEjGjGjIjIjKjKjMjMj4Oj9OjRjRjeUjjUjXjXjZjZj]j#]j_j_j$cj)cjpejuejgj$gjhjhj2kj7kjumjzmj6pj;pjqjqjsjsjDujIujvjvjxjxj{j{j6}j;}jjjjjjjjj!j&jjj<jAjŎjʎj8j=jrjj#j(jؕjݕj~jj:j?j{jjjjojtjjjթjکj;j@j"jxjjjNjSj׵jܵjjj,j1j;j@j6j;jkjpj@jEjjjjjjj'j,jjj[j`j6j;jjjjjcjhj\jajjjjjjjrjwjjj>jCj(j-jfjkjjjjjhjmjjjjjjj` je j j jj jjjojfjkjbjgjjj.j3j}jj:"j?"j&j&j)j)j,j,j.j.j;1j@1j3j3j_6je6j7j7j/@j4@jEjEjKFjPFjJjJjNjNjPjPjQjQjSjSj VjVjtWjyWjXjXj[j [j\j\j>^jC^j`j`jajajFcjKcjejej`fjefjgjgjijijkjkj-mj2mjoj"ojpjpj/rj4rjsjsjMujRujvjvj yjyjzjzj|j|j~j~j@jEjjjzjj'j,jԈjوjjjˌjЌjюj֎jjj_jdj|jjזjܖjjjjjjj/j4jtjyjjjMjRjEjJj*j/j"j'jj jjjjjjjjj jj~jjjjjjjj8j=jj!j&j+j3j8jOjTj=jBjjjjjjj1j6j"j'jjj1j6j~jjZj_jjj*j/j%j*jjjjjjjBjGjjjtjyjV j[ j j jjjjjojjjjjj#jjj!j!jb#jg#js&jx&j)j)j-j-jS1jX1j8j8j;j;j=j>jVAj[Aj}DjDjGjGjIjIj?KjDKjAMjFMjNjNjOPjTPjQjQjKSjPSjTjTj3Vj8VjXjXj4Zj9Zj{\j\jB^jG^j_j_jbjbj.dj3djgjgj>jjCjjkjkjmjmj1oj6ojmqjrqj'sj,sjtjtjwj"wjyj yjzjzj|j|j`~je~jŀjʀjPjUjхjօjjj̈jшjjjjjjjjjsjxjVj[jЙjՙjɜjΜjxj}jjƠjj!jjjjjjjjjjjjj1j6jjjjjҹj׹jSjXjjjjjjjjjjjj$j!j&j1j6jjjjjjjgjljjjjjjjj!jjjjj3j8jLjQjjj[j`jjjjjjjCjHjfjkj~jjjjgjlj3 j8 j. j3 jjjjjgjljjjjjHjMjjjjjs!jx!j#j#j<&jA&j:)j?)j>,jC,j/j/j1j1j4j 4j6j6j9j"9j:j:j:>j?>j?j?jAj AjTBjYBjCjCjqEjvEj;Gj@GjIj!IjhKjmKjLjMjQOjVOjjSjoSjVjVjZjZj\j\jY_j^_jajajdjdj7gj